| Current Path : /var/www/html/mmishra/indem/website0312/usercp/ |
| Current File : /var/www/html/mmishra/indem/website0312/usercp/logout.php |
<?php
$ABS_ROOT_PATH =str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
$arrPath = @explode("/",$_SERVER[PHP_SELF]);
if(in_array("website",$arrPath) || in_array("demo2",$arrPath))
{
$ABS_ROOT_PATH.="/".$arrPath[1]."/".$arrPath[2];
require_once($ABS_ROOT_PATH."/includes/config.php");
}
else
{
require_once($ABS_ROOT_PATH."/includes/config.php");
}
$go=$ABS_ROOT_PATH.'/user/index.php';
session_destroy();
header("location:index.php");
exit();
?>