示例#1
1
<?php

$time_start = microtime(true);
$login = new sec_login();
$login->sec_session_start();
if (!DEBUG) {
    if ($login->login_check($mysqli) == false) {
        header("Location: ?Login");
    }
}
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="<?php 
echo APP_SLOGAN;
?>
">
    <meta name="author" content="<?php 
echo DEVELOPER;
?>
">
    <link rel="icon" href="../../staceppa.ico">

    <title><?php 
echo APP_NAME;
示例#2
0
<?php

sec_login::sec_session_start();
if (!isset($_SESSION['username'])) {
    exit('Hack Attempt! Reported!');
}
//im gonna be the best API