Exemplo n.º 1
0
function trangtruoc()
{
    $trinh_duyet = phathien_trinhduyet();
    switch ($trinh_duyet) {
        case "opera":
            $tt = $_SERVER['HTTP_REFERER'];
            //Header("refresh: 0.1; url=$tt");
            chuyentrang($tt);
            break;
        default:
            echo "\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\twindow.history.back();\n\t\t\t\t\t},100);\n\t\t\t\t</script>\n\t\t\t\t";
    }
    //history.go(-1)
    /*echo "
    		<script type=\"text/javascript\">
    			setTimeout(function(){
    			window.history.back();
    			},100);
    		</script>
    		";*/
    /*echo "
    		<script type=\"text/javascript\">
    			setTimeout(function(){
    			window.history.go(-1);
    			},100);
    		</script>
    		";*/
    exit;
}
Exemplo n.º 2
0
<?php

chong_pha_hoai();
$chuoi = "DELETE FROM `hoadon` WHERE `hoadon`.`id` = '{$_GET['id']}' LIMIT 1";
mysql_query($chuoi);
chuyentrang("quan_tri.php?p=104");
Exemplo n.º 3
0
if ($_GET['thamso'] == "xoa_quang_cao_trai") {
    include "cumchucnang/quangcao/trai/xoa.php";
    trangtruoc();
    exit;
}
if (isset($_POST['them_quang_cao_phai'])) {
    include "cumchucnang/quangcao/phai/thuc_hien_them.php";
    trangtruoc();
    exit;
}
if (isset($_POST['sua_quang_cao_phai'])) {
    include "cumchucnang/quangcao/phai/thuc_hien_sua.php";
    trangtruoc();
    exit;
}
if ($_GET['thamso'] == "xoa_quang_cao_phai") {
    include "cumchucnang/quangcao/phai/xoa.php";
    trangtruoc();
    exit;
}
if (isset($_POST['sua_thong_tin_admin'])) {
    include "cumchucnang/thongtin_quantri/thuc_hien_sua.php";
    trangtruoc();
    exit;
}
if ($_GET['thamso'] == "thoat") {
    unset($_SESSION[$ten_danh_dau . "ky_danh__quan_tri"]);
    unset($_SESSION[$ten_danh_dau . "mat_khau__quan_tri"]);
    chuyentrang("index.php");
    exit;
}
 function logoutAction()
 {
     $vi = new Zend_View();
     $base = $vi->baseurl();
     Zend_Session::namespaceUnset('identity');
     chuyentrang($base);
 }
Exemplo n.º 5
0
}
if (isset($_POST['lay_lai_mat_khau__en'])) {
    include "dangky_dangnhap/lay_lai_mat_khau__en.php";
    trangtruoc();
    exit;
}
if ($_GET['thamso'] == "thoat") {
    include "dangky_dangnhap/thoat.php";
    trangtruoc();
    exit;
}
if ($_GET['thamso'] == "chon_ngon_ngu") {
    //include("dangky_dangnhap/thoat.php");
    switch ($_GET['ngon_ngu']) {
        case "en":
            $_SESSION[$ten_danh_dau . "ngon_ngu_abc"] = "tieng_anh";
            break;
        default:
            $_SESSION[$ten_danh_dau . "ngon_ngu_abc"] = "tieng_viet";
    }
    /*echo $_SERVER['HTTP_REFERER'];echo "<hr>";exit();
    		if(ereg("#detail_info",$_SERVER['HTTP_REFERER']))
    		{
    			$_SERVER['HTTP_REFERER']=str_replace("#detail_info","",$_SERVER['HTTP_REFERER']);
    			chuyentrang($_SERVER['HTTP_REFERER']);
    			exit();
    		}*/
    //trangtruoc();
    chuyentrang($_SERVER['HTTP_REFERER']);
    exit;
}