Edit post give error chk out plz
Collapse
X
-
thats in init.php
PHP Code:<?php
error_reporting(0); //
include_once(dirname(dirname(__FILE__))."/include/settings.php");
include_once(dirname(dirname(__FILE__))."/lib/db.php");
include_once(dirname(dirname(__FILE__))."/lib/users.php");
include_once(dirname(dirname(__FILE__))."/lib/functions.php");
require_once(dirname(dirname(__FILE__))."/lib/sessions.php");
$config->ip=$_SERVER['REMOTE_ADDR'];
$config->browser=$_SERVER['HTTP_USER_AGENT'];
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
init_session();
?>
Comment
-
problem solved
and its in init.php and correct code is
PHP Code:thats in init.php
[PHP]<?php
error_reporting(0); //
include_once("settings.php");
include_once(dirname(dirname(__FILE__))."/lib/db.php");
include_once(dirname(dirname(__FILE__))."/lib/users.php");
include_once(dirname(dirname(__FILE__))."/lib/functions.php");
require_once(dirname(dirname(__FILE__))."/lib/sessions.php");
$config->ip=$_SERVER['REMOTE_ADDR'];
$config->browser=$_SERVER['HTTP_USER_AGENT'];
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
//$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
//$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
//$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
init_session();
?>
Comment
Comment