Beispiel #1
0
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
##
################################################################################
if ($Username != "") {
    $result = mysql_query("SELECT * FROM " . $PA["table"] . " WHERE nick='{$Username}' AND password='******' AND closed=0", $db);
    if (mysql_num_rows($result) == 1) {
    } else {
        Setcookie("Username", "");
        Setcookie("Password", "");
        Setcookie("Userid", "");
        Setcookie("Access", "");
        $Username = "";
        $Userid = "";
        $Access = "";
        Header("Location: index.php");
        die;
    }
}
?>
<html>
<!--       Copyright 2001       -->
<!--   WASSINK   -->
<body bgcolor="black" text="white" link="white" vlink="white" alink="white">
<title>Wassink PA</title>
<link rel="stylesheet" href="stylesheet.css">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,must-revalidate">
Beispiel #2
0
//nastavenia banerov a title
include "config_texts.inc";
//cesty na ukladanie napr obrazkov
include "config_pathz.inc";
//definicia hlavnej najpouzivanejsej class
$kyberia = new CLASS_KYBERIA();
//ak sa niekto snazil podstrcit prihlasenie cez GET
if (isset($user_id)) {
    $kyberia->ubikMail("38", "Bastard to skusal z {$REMOTE_ADDR}");
    echo "Hmmm nepokusaj sa o blbosti. Tvoja ip mi bola prave odoslana do posty.";
    die;
}
//pokial neexistuje cookie tak ho vytvori
if (empty($_COOKIE['kybersession'])) {
    $id = md5(MicroTime());
    Setcookie("kybersession", $id, 0, "/");
}
//posiela hlavicku aby nic necachovalo
Header("Cache-control: no-cache");
Header("Expires:" . gmdate("D, d M Y H:i:s") . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
//neviem na co je tato premenna, ak viete tak napiste
if (!$offset) {
    $offset = 0;
}
//odhlas ma
if ($action == "logoff") {
    $kyberia->logOff();
    unset($action);
}
//user data caching