|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-01-28 14:11 UTC] vadim dot negoda at gmail dot com
Description: ------------ [Sat Jan 26 21:46:58 2008] Script: '/home/.../www/engine/ajax/rating.php' /usr/ports/lang/php5/work/php-5.2.5/main/SAPI.c(565) : Freeing 0x0093D608 (16 bytes), script=/home/.../www/engine/ajax/rating.php === Total 1 memory leaks detected === PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Sorry if may message very long... <? @session_start(); @error_reporting(7); @ini_set('display_errors', true); @ini_set('html_errors', false); define('DATALIFEENGINE', true); define('ROOT_DIR', '../..'); define('ENGINE_DIR', '..'); include ENGINE_DIR.'/data/config.php'; require_once ENGINE_DIR.'/inc/mysql.php'; require_once ENGINE_DIR.'/data/dbconfig.php'; $_REQUEST['skin'] = end (explode (DIRECTORY_SEPARATOR, $_REQUEST['skin'])); if ($_REQUEST['skin']) { if (@is_dir(ROOT_DIR.'/templates/'.$_REQUEST['skin'])) { $config['skin'] = $_REQUEST['skin']; } else { die ("Hacking attempt!"); } } if ($config["lang_".$config['skin']]) { include_once ROOT_DIR.'/language/'.$config["lang_".$config['skin']].'/website.lng'; } else { include_once ROOT_DIR.'/language/'.$config['langs'].'/website.lng'; } $config['charset'] = ($lang['charset'] != '') ? $lang['charset'] : $config['charset']; require_once ENGINE_DIR.'/modules/functions.php'; require_once ENGINE_DIR.'/modules/sitelogin.php'; $go_rate = intval($_REQUEST['go_rate']); $news_id = intval($_REQUEST['news_id']); if ($go_rate > 5 OR $go_rate < 1) $go_rate = 0; if (!$go_rate OR !$news_id) die ("error"); $_IP = $db->safesql($_SERVER['REMOTE_ADDR']); if ($is_logged) $where = "member = '{$member_id['name']}'"; else $where = "ip ='{$_IP}'"; @header("HTTP/1.0 200 OK"); @header("HTTP/1.1 200 OK"); @header("Cache-Control: no-cache, must-revalidate, max-age=0"); @header("Expires: 0"); @header("Pragma: no-cache"); @header("Content-type: text/css; charset=".$config['charset']); echo $buffer; ?>I had success changing a line: //@header("HTTP/1.0 200 OK");