the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Tabula Rasa is distributed in the hope that it will be useful,
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 Tabula Rasa.  If not, see <http://www.gnu.org/licenses/>.
*/
//Do not remove - essential to login system
include_once 'include/processes.php';
include "include/nav.php";
//Verifies user is admin and logged in.
$Admin_Process = new Admin_Process();
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$delete = $Admin_Process->delete_user($con, $_POST, $_POST['delete']);
// Inserts Navigation Bar
?>
<title><?php 
echo Site_Name;
?>
 | Admin | Delete User</title>
<link href="include/style.css" rel="stylesheet" type="text/css">
<body>
<div align="center">
<div style="width:200px;">
<form id="form1" name="form1" method="post" action="<?php 
echo $_SERVER['PHP_SELF'] . "?login=" . $_GET['login'];
?>
<?php

include_once '../include/admin_processes.php';
$Admin_Process = new Admin_Process();
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$editpass = $Admin_Process->edit_pass($_POST, $_POST['editpass']);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Crisp Webdesign - Login Script</title>
<link href="../include/style.css" rel="stylesheet" type="text/css">
<body>

<form id="form1" name="form1" method="post" action="<?php 
echo $_SERVER['PHP_SELF'] . "?userid=" . $_GET['userid'];
?>
">
<h1>Edit Password : <?php 
echo $_GET['userid'];
?>
</h1>
<div class="red"><?php 
echo $editpass;
?>
</div>
<div class="label">New Password :</div>
<input name="pass1" type="password" class="field" />
<div class="label">Confirm New :</div>
<input name="pass2" type="password" class="field" />
<?php

include_once '../include/admin_processes.php';
$Admin_Process = new Admin_Process();
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$New = $Admin_Process->Register($_POST, $_POST['add_user']);
$myNew = $Admin_Process->Voilation($_POST, $_POST['add_voilation']);
$Suspend = $Admin_Process->suspend_user($_POST, $_POST['Suspend']);
$Change = $Admin_Process->update_user($_POST, $_POST['Change']);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Crisp Webdesign - Login Script</title>
<link href="../include/style.css" rel="stylesheet" type="text/css">
<body>
<h1>Admin Center: <?php 
echo $_SESSION['username'];
?>
<br />
</h1>
<div align="center"><a href="../main.php">Return to Main
  
</a></div>
<div class="red" align="center">
<?php 
echo $_GET['alert'];
?>
</div>
<br />
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Tabula Rasa is distributed in the hope that it will be useful,
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 Tabula Rasa.  If not, see <http://www.gnu.org/licenses/>.
*/
//Do not remove - essential to login system
include_once 'include/processes.php';
include "include/nav.php";
//Verifies user is admin and logged in.
$Admin_Process = new Admin_Process();
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$edit_user = $Admin_Process->edit_user($con, $_POST, $_POST['edit']);
$row = $Admin_Process->edit_request($con, $_POST['edit']);
// Inserts Navigation Bar
?>
<title><?php 
echo Site_Name;
?>
 | Admin | Edit User Details</title>
<link href="include/style.css" rel="stylesheet" type="text/css">
<body>
<div align="center">
<div style="width:200px;">
<form id="form1" name="form1" method="post" action="<?php 
echo $_SERVER['PHP_SELF'] . "?login=" . $_GET['login'];
Exemple #5
0
<?php

require WPATH . "modules/process/ad_processor/ad_processor.php";
$admin = new Admin_Process();
?>
<section id="footer">
    <div class="inner">
        <h2 class="major">ADMIN LOGIN</h2>
           <form method="POST">
            <input type="hidden" name="action" value="loginer"/>
            <div class="field">
                <label for="username">Username</label>
                <input type="text" name="username" id="username" maxlength="60" required/>
            </div>
            <div class="field">
                <label for="password">Password</label>
                <input type="password" name="password" id="password" required/>
                <?php 
if (!empty($_POST)) {
    $success = $admin->execute();
    if (is_bool($success) && $success == true) {
        App::redirectTo('?ad_profile');
    }
}
?>
            </div>

            <ul class="actions">
                <li><input type="submit" value="Submit" /></li>
            </ul>
        </form>
You should have received a copy of the GNU General Public License
along with Tabula Rasa.  If not, see <http://www.gnu.org/licenses/>.
*/
//Do not remove - essential to login system
include_once "include/processes.php";
//include_once "include/admin_processes.php";
include "include/nav.php";
//If something isn't working, turn this on to see all form data.
#print_r($_POST);
//makes login a usable variable
$login = $_SESSION["login"];
//Verifies user is admin and logged in.
$Login_Process = new Login_Process();
$Login_Process->check_status($_SERVER['SCRIPT_NAME']);
$Table_Process = new Table_Process();
$Admin_Process = new Admin_Process();
$Admin_Process->check_status($_SERVER['SCRIPT_NAME']);
$New = $Admin_Process->Register($con, $_POST, $_POST['add_user']);
$Suspend = $Admin_Process->suspend_user($con, $_POST, $_POST['Suspend']);
$Change = $Admin_Process->update_user($con, $_POST, $_POST['Change']);
$hide_table = $Admin_Process->hide_table($con, $_POST, $_POST['hide_table']);
$delete_table = $Admin_Process->delete_table($con, $_POST, $_POST['delete_table']);
$create_db_table = $Admin_Process->create_db_table($con, $_REQUEST, $Table_Process, $_REQUEST['create_db_table']);
// Inserts Navigation Bar
?>
<title><?php 
print Site_Name;
?>
 | Admin | Control Panel</title>
<body>
<div align="center">