<?php

include_once 'include/processes.php';
$Login_Process = new Login_Process();
$Login_Process->check_status($_SERVER['SCRIPT_NAME']);
$Edit = $Login_Process->edit_password($_POST, $_POST['process']);
?>

<!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">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		
		<meta name="TrafficVoilation" content="Traffic Voilation">

        <!-- Stylesheets -->
        <link rel="stylesheet" type="text/css" href="css/style.css">
        		
		<title>CHANGE PASSWORD</title>
          
    </head>

	<body bgcolor="black">

	<span style="position:absolute;top:30%;left:43%;" class="heading">UPDATE PASSWORD</span>	<br />	<br />
		
	<div style="text-align:center;position:absolute;top:35%;left:35%;border-style:solid;border-width:7px 7px 7px 7px;border-color:#a6e348;padding:2px;width:400px;height:180px;"><br />
	
		<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
(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';
// Inserts Navigation Bar
include "include/nav.php";
//Makes Sure User is Logged In
$Login_Process = new Login_Process();
$Check = $Login_Process->Forgot_Password($con, $_GET, $_POST);
$Request = $Login_Process->Request_Password($con, $_POST, $_POST['Request']);
$Reset = $Login_Process->Reset_Password($con, $_POST, $_POST['Reset']);
?>
<title><?php 
print Site_Name;
?>
 | Forgot Password</title>
<link href="include/style.css" rel="stylesheet" type="text/css">
<body>
<?php 
switch ($Check) {
    case "<!-- !-->":
        ?>
<div align="center">
<?php

include_once 'include/processes.php';
$Login_Process = new Login_Process();
$Login_Process->check_login($_GET['page']);
$Login = $Login_Process->log_in($_POST['user'], $_POST['pass'], $_POST['remember'], $_POST['page'], $_POST['submit']);
?>


<!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">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		
        <meta name="TrafficVoilation" content="Traffic Voilation">

        <!-- Stylesheets -->
        <link rel="stylesheet" type="text/css" href="css/style.css">
        		
		<title>LOG!N</title>
          
    </head>
	<body bgcolor="black">
	
		<span style="position:absolute;top:43%;left:40%;" class="heading">CHENNAI TRAFFIC VOILATION</span>	<br />	<br />
		
		<div style="text-align:center;position:absolute;top:50%;left:35%;border-style:solid;border-width:7px 7px 7px 7px;border-color:#a6e348;padding:2px;width:400px;height:230px;"><br />
			
			<form method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
Tabula Rasa is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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/>.
*/
//calls configuration file - do not remove this line.
include_once 'include/processes.php';
$Login_Process = new Login_Process();
$Login_Process->check_status($_SERVER['SCRIPT_NAME']);
// Inserts Navigation Bar
include "include/nav.php";
$exclude = explode(' ', $Table_Process->create_exclude_statement($con, $Table_Process));
function form_submit($con, $Table_Process, $exclude)
{
    print "<div id='form'><table><tr class='type1'>";
    print "</tr>";
    $table_exclude = explode(' ', $Table_Process->create_exclude_table_statement($con, $Table_Process));
    $table_list = $Table_Process->create_table_statement_exclude($con, $Table_Process, $table_exclude);
    $querytable = $con->query("select table_name from information_schema.tables where table_schema= DATABASE(){$table_list};");
    while ($row = $querytable->fetch(PDO::FETCH_ASSOC)) {
        foreach ($row as $tablename) {
            $tablenameucfirst = $Table_Process->titlecase($tablename);
            $prettytablename = str_replace('_', ' ', $tablenameucfirst);
<?php

include_once 'include/processes.php';
$Login_Process = new Login_Process();
$New = $Login_Process->Register($_POST, $_POST['process']);
?>

<!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">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		
		<meta name="TrafficVoilation" content="Traffic Voilation">
        <!-- Stylesheets -->
        <link rel="stylesheet" type="text/css" href="css/style.css">
        		
		<title>REGISTER</title>
          
    </head>
	<body bgcolor="black">
	
	<span style="position:absolute;top:20%;left:47%;" class="heading">REGISTER</span>	<br />	<br />
		
	<div style="text-align:center;position:absolute;top:25%;left:35%;border-style:solid;border-width:7px 7px 7px 7px;border-color:#a6e348;padding:2px;width:400px;height:380px;"><br />
		<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post">
		<span style="position:relative;left:160px;top:-20px;"><a class="stext" href="main.php">-> Log In</a></span><br />
		
		<div class="red">
<?php

error_reporting(E_ERROR | 0);
include 'constants.php';
include 'mail.php';
if (isset($_GET['log_out'])) {
    $Login_Process = new Login_Process();
    $Login_Process->log_out($_SESSION['username'], $_SESSION['password']);
}
class Login_Process
{
    var $cookie_user = CKIEUS;
    var $cookie_pass = CKIEPS;
    function connect_db()
    {
        $conn_str = mysql_connect(DBHOST, DBUSER, DBPASS);
        mysql_select_db(DBNAME, $conn_str) or die('Could not select Database.');
    }
    function query($sql)
    {
        $this->connect_db();
        $sql = mysql_query($sql);
        $num_rows = mysql_num_rows($sql);
        $result = mysql_fetch_assoc($sql);
        return array("num_rows" => $num_rows, "result" => $result, "sql" => $sql);
    }
    function show_voilation($license)
    {
        $sql = $this->query("SELECT * FROM voilation WHERE license = '{$license}'");
        $result = $sql['sql'];
        $num_rows = $sql['num_rows'];
Beispiel #7
0
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 this line - it is integral to login system.
include_once 'include/processes.php';
// Inserts Navigation Bar
include "include/nav.php";
//Checks if user is logged in.
$exclude = explode(' ', $Table_Process->create_exclude_statement($con, $Table_Process));
$Login_Process = new Login_Process();
$Login_Process->check_status($_SERVER['SCRIPT_NAME']);
$Table_Process = new Table_Process();
$Login = $Login_Process->log_in($con, $_POST['user'], $_POST['pass'], $_POST['page'], $_POST['submit']);
$New = $Login_Process->Register($con, $_POST, $_POST['process']);
?>
<!-- Site_Name is registered in constants.php and is used in the title tag of every page -->

<!-- Login Form -->
<?php 
//Variables needed for conditional processing
//Rendered Code Starts Here.
if (!$con) {
    print "<title>" . Site_Name . " | Welcome</title><body>";
    print "<div style='width:600px;'>Welcome to Tabula Rasa. Here are a few things you will need to know as you configure the system:<br /><br />\nYou will first need a server running PHP 5.5 or above, preferably PHP 7.  You will need a server running MySQL.  Instructions on how to install MySQL can be found here: <a href='http://dev.mysql.com/doc/refman/5.6/en/installing.html'>Installing and Upgrading MySQL</a>.<br/>\nOnce you have MySQL up and running, there is a database schema in the include folder of this directory with a .sql extension.  Importing this file will set up everything needed for this system to run.<br />\n<br />\nOnce you create the database, you will need to tell the system where to find it by opening /include/constants.php and supplying the information requested. Constants.php also contains variables for naming your system.<br />\nOnce the system knows where to find the database, this documentation will only be viewable when editing the index.php file. For more detailed information, please open README.md.<br /><br />\nTabula Rasa is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.<br /><br />\n\nTabula Rasa is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<br /><br />\n\nYou should have received a copy of the GNU General Public License\nalong with Tabula Rasa.  If not, see <http://www.gnu.org/licenses/>.<br />\n<br /><br />\n<br /></div>";
}
<?php

include_once 'include/processes.php';
$Login_Process = new Login_Process();
$Login_Process->check_status($_SERVER['SCRIPT_NAME']);
$myLogin = $Login_Process->show_voilation($_SESSION['info']);
?>

<!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">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		
		<meta name="TrafficVoilation" content="Traffic Voilation">

        <!-- Stylesheets -->
        <link rel="stylesheet" type="text/css" href="css/style.css">
		
        		
		<title>WELCOME</title>
          
    </head>

	<body bgcolor="black">

<form>
	

		
		<span style="text-align:center;position:absolute;top:2%;left:83px;background-color:#a6e348;height:30px;width:1200px;color:black" class="heading">&nbsp;Welcome <?php 
echo $_SESSION['first_name'];
<?php

include_once 'include/processes.php';
$Login_Process = new Login_Process();
$Status = $Login_Process->welcome_note();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Welcome to My Web site</title>
</head>
<body>
<p>
Status: <?php 
echo $Status;
?>
</p>
</body>
</html>