Exemplo n.º 1
0
:</TD>
<TD><INPUT NAME=dbs_psw TYPE=password CLASS=text></TD>
</TR>
</TABLE><CENTER>
<?php 
    checkbox($forever, "forever");
    lprint("LOG_FOREVER");
    submitkey("loginstate", "FMG_ENTER");
    //submitkey ("anonymous","ANONYMOUS");
    echo "</CENTER></form></FIELDSET></div>";
    exit;
}
//второе окно
##начало проверка ключа
if ($dbskeystate === false and $addkeystate === true) {
    $regresult = installnewkey($key);
}
if ($dbskeystate === false and $addkeystate === false) {
    $nokeys = 1;
}
// тут затребовать загрузку add.key
if ($dbskeystate === true and $addkeystate === true) {
    $regresult = addnewkey($key);
}
if ($regresult) {
    msgexiterror("key", $regresult, "login.php");
}
##конец проверка ключа
//END OF LIMITATIONS
echo "<cite><p>" . cmsg("WELCOME!") . " dbscript , {$_SERVER['PHP_AUTH_USER']}<br></cite>";
if ($pr[36] == "on") {
Exemplo n.º 2
0
    exit;
}
//debug
if ($cmd[0] === "time" or $cmd[0] === "TIME") {
    echo "Server time: " . date("d.m.Y H-i-s") . "<br>";
    exit;
}
if ($prauth[$ADM][2]) {
    //модуль совместимости с conf файлами.
    unset($data);
    if ($cmd[0] == "phpinfo") {
        phpinfo();
        exit;
    }
    if ($cmd[0] == "installnewkey") {
        installnewkey(1);
        exit;
    }
    if ($cmd[0] == "gmdata") {
        $tbl = $cmd[0];
        $namebas = $tbl;
    }
    if ($cmd[0] == "dbdata") {
        $tbl = $cmd[0];
        $namebas = $tbl;
    }
    if ($cmd[0] == "files") {
        $tbl = $cmd[0];
        $namebas = $tbl;
    }
    if ($cmd[0] == "denywords") {