ID:               43954
 User updated by:  vadim dot negoda at gmail dot com
 Reported By:      vadim dot negoda at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: FreeBSD 6.3-RELEASE
 PHP Version:      5.2.5
 New Comment:

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;
?>


Previous Comments:
------------------------------------------------------------------------

[2008-01-28 15:05:46] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2008-01-28 14:30:15] vadim dot negoda at gmail dot com

.

------------------------------------------------------------------------

[2008-01-28 14:11:35] 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 ===



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43954&edit=1

Reply via email to