X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   i swear i did nothing officer. :-) (https://forum.x-cart.com/showthread.php?t=13156)

auggybendoggy 04-04-2005 02:51 PM

ill give it a try

auggybendoggy 04-04-2005 03:01 PM

i dont know what to put?

heres what it says

#
# fopen + fread wrapper
#
function func_file_get($file, $is_root = false) {
$fp = func_fopen($file, 'rb', $is_root);

if ($fp === false) return false;

while (strlen($str = fread($fp, 8192)) > 0 )
$data .= $str;

fclose($fp);
return $data;
}

#
# readfile() wrapper
#
function func_readfile($file, $is_root = false) {
$file = func_allow_file($file, $is_root);
if ($file === false) return false;
return readfile($file);
}

#
# Get tmpfile content
#
function func_temp_read($tmpfile, $delete = false) {
if (empty($tmpfile))
return false;

$fp = @fopen($tmpfile,"rb");
if(!$fp)
return false;

while (strlen($str = fread($fp, 4096)) > 0 )
$data .= $str;
fclose($fp);

if ($delete) {
@unlink($tmpfile);
}

return $data;
}

Jon 04-04-2005 07:45 PM

That looks like a PHP file not a template file.

theway 05-13-2005 07:49 PM

i just spent an hour going through all my folders, till i found the one i had to fix.
so i dont really have a simpile solution.

shan 05-14-2005 02:12 AM

or use the debug window to show you the templates being used in the page with the error


All times are GMT -8. The time now is 09:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.