<?php

include_once '../include/information_storage.php';
$info_store = new information_storage();
// Checking for user logged in or not
if ($info_store->get_session()) {
    header("location:../index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <link type="text/css" rel="stylesheet" href="../css/style.css"/>
        <title>Admin Registration</title>
        <style>
            body{
                font-family:Arial, Helvetica, sans-serif;
                margin: 0px 10%;
            }
        </style>
        <script language="javascript" type="text/javascript">
            function submitregistration(){
                var form = document.admin_reg;				 
                if(form.name.value == ""){
                    alert( "Enter name." );
                    return false;
                }
                else if(form.username.value == ""){
                    alert( "Enter username." );
                    return false;
예제 #2
0
<?php

include_once './include/information_storage.php';
$info_store = new information_storage();
if (isset($_GET['q'])) {
    if ($_GET['q'] == 'logout') {
        //echo $_GET['q'];
        //echo '-----'.$_GET['id'];
        //exit();
        $info_store->admin_logout();
        header("location:./admin/admin_login.php");
    }
}
?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="./css/style.css"/>
    <title>Information Storage</title>
    <style>
        body{
            font-family:Arial, Helvetica, sans-serif;
            margin: 0px 10%;
        }
    </style>
</head>
<body>
    <?php 
include_once "./layout/tem_header.php";
?>
    <?php 
include_once "./layout/temp_nav.php";
<?php

session_start();
include_once '../include/information_storage.php';
$info_store = new information_storage();
if ($info_store->get_session()) {
    header("location:../index.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <link type="text/css" rel="stylesheet" href="../css/style.css"/>
        <title>Admin Login</title>
        <style>
            body{
                font-family:Arial, Helvetica, sans-serif;
                margin: 0px 10%;
            }
        </style>
	<script language="javascript" type="text/javascript">
            function submitregistration() {
                var form = document.admin_login;
                if(form.emailusername.value == ""){
                    alert( "Enter email or username." );
                    return false;
                }
                else if(form.password.value == ""){
                    alert( "Enter password." );
                    return false;
예제 #4
0
<?php

session_start();
include_once './include/information_storage.php';
$info_store = new information_storage();
$aid = $_SESSION['aid'];
if (!$info_store->get_session()) {
    header("location:./admin/admin_login.php");
}
if (isset($_GET['q'])) {
    if ($_GET['q'] == 'logout') {
        //echo $_GET['q'];
        //echo '-----'.$_GET['id'];
        //exit();
        $info_store->admin_logout();
        header("location:./admin/admin_login.php");
    }
}
?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Home</title>
        <link type="text/css" href="css/style.css" rel="stylesheet"/>
        <style>
            body{
                font-family:Arial, Helvetica, sans-serif;
                margin-top: -20px;
                margin-left: -1.5px;