You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
632 B

4 years ago
<?php
define('FINEREPORT', '100');
require_once '../com.php';
echo id_synlogout();
sleep(0.5);
$script = <<<str
<script>
function getPar(par){
var local_url = document.location.href;
var get = local_url.indexOf(par +"=");
if(get == -1){
return false;
}
var get_par = local_url.slice(par.length + get + 1);
var nextPar = get_par.indexOf("&");
if(nextPar != -1){
get_par = get_par.slice(0, nextPar);
}
return get_par;
}
if(getPar('referrer').length>0){
location.href = decodeURIComponent(getPar('referrer'));
} else {
location.href = '../login/login.php';
}
</script>
str;
echo $script;