Exemple #1
0
function Check()
{
    global $userid;
    if (!$userid) {
        API_Logout();
        exit('<script>if(top!==self)top.location.reload();</script>');
    }
}
Exemple #2
0
<?php

include_once "include/common.inc.php";
$channelid = Char_Cv('channelid', 'get');
echo API_Logout('index.php?channelid=' . $channelid);
Exemple #3
0
<?php

include_once "include/common.inc.php";
foreach (API_Config() as $k => $v) {
    ${$k} = $v;
}
switch ($action = Char_Cv('type', 'get')) {
    case 'islogin':
        print $userid ? 'Y' : 'N';
        break;
    case 'logout':
        echo API_Logout();
        break;
}
Exemple #4
0
    if ($Conn) {
        $Conn->reset();
    }
    @unlink('onezdata/cache/channel/' . $Channel['id'] . '.php');
}
if ($Channel['username'] == $username) {
    $grade = 28;
} elseif (in_array($username, explode(',', $Channel['masters']))) {
    $grade = 2;
} elseif ($username) {
    $grade = 1;
} else {
    if ($Channel['allowguest'] == 1) {
        $grade = 0;
    } else {
        API_Logout();
        exit('<script>if(top!==self)top.location.reload();</script>');
    }
}
@(include_once 'onezdata/cache/robot.php');
@(include_once 'plugins/toolbar.php');
if (is_array($ONLOAD)) {
    $ONLOAD = implode("\n", $ONLOAD);
}
if (is_array($SWFLOAD)) {
    $SWFLOAD = implode(";", $SWFLOAD);
}
if (is_array($closeobj)) {
    $closeobj = implode(";", $closeobj);
}
$JS .= "\nfunction window_onload(){\r\n  try{\$('inputbox').focus();\r\n  }catch(e){}\r\n  {$ONLOAD}\r\n}";