-
Fototrend
WordPress tartalom kezelő rendszer (CMS) topik
Új hozzászólás Aktív témák
-
Dexter68
addikt
válasz
Dexter68 #3072 üzenetére
Újabb eredmény, de még mindig bénázom a szintaxissal. Szóval most már majdnem jó az útvonal a hibaüziben, kizárólag a https: után hiányzik a //.
Tehát két helyen van benne a site_url, az egyik itt:if( strpos($src, 'http://') === FALSE && strpos($src, 'https://') === FALSE ){
$src = preg_replace( '|([\.\.\/]+)(.*)|i' , $PT.'://'.$host.'/$2', $src);
}
else{
$makeitlocal = trim(get_option( 'site_url();' ) . '/') . '/';
$src = str_replace($makeitlocal, '', $src);
}A másik meg itt:
function wpp_path( $file ){
$f = fopen($file,'rb');
if(!$f){
$makeitlocal = trim(get_option( 'site_url();' ) . '/') . '/';
$file = str_replace($makeitlocal, '', $file);
$f = fopen($file,'rb');
if( !$f && strpos($file, 'http') !== FALSE ){
echo ('[WPP PDF Error] Please turn on "allow_url_fopen" on your server to allow insert images in PDF Document, more info here: http://stackoverflow.com/questions/3694240/add-allow-url-fopen-to-my-php-ini-using-htaccess');
}
}
fclose($f);
return $file;
}(nem könnyű javítani másnak a php kódját úgy, hogy közben magam sem tudok php-ül
)
Új hozzászólás Aktív témák
- BESZÁMÍTÁS! GIGABYTE AORUS MASTER RTX 3070 8GB GDDR6 videokártya garanciával hibátlan működéssel
- Bomba ár! Dell Latitude E6520 - i5-2GEN I 6GB I 320GB I HDMI I 15,6" HD+ I W10 I Gari!
- Targus Universal USB 3.0 DV1K-2K Compact docking station (DisplayLink)
- Bomba ár! Lenovo IdeaPad V110 - i3-6GEN I 4GB I 128GB SSD I 15,6" I HDMI I Cam I W10 I Garancia!
- Telefon felvásárlás!! Apple iPhone SE (2016), Apple iPhone SE2 (2020), Apple iPhone SE3 (2022)
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest