File size: 674B
<?php
////////////////////
//By Chiksan 2oo9///
//[email protected]//
////////////////////
session_start();
$act=$_GET['act'];
if (!isset($act)){$act='default';}
switch ($act)
{
case 'exit' :
if ($act="exit")
{
unset($_SESSION['login']);
unset($_SESSION['password']);
}
break;
default:
echo '</div><div class="niz">';
echo "<a href='javascript:history.back(1)'> Назад </a><br/>\n";
echo "<a href='/magazin/admin/index.php?".session_name()."=".session_id()."'>В админку</a><br />\n";
echo " <a href='/magazin/admin/login.php?act=exit&".session_name()."=".session_id()."'>Выход</a><br />\n";
echo "</body></html>\n";
break;
}
?>