<?php include_once "/var/www/web_classes/DUser.php"; include_once "/var/www/php/sql_connect.php"; $user = new DUser($_COOKIE["token"]); error_log($user->Email()); if ($user->Perms() == 1) { $string = $_POST["query"]; if (isset($_POST["query"])) { $query = $_POST["query"]; $string = db_find($query); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta name="theme-color" content="#FF8800"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="The Official Oregon Tech Gaming Community Website. The place to find event times, locations, and announcements."> <meta name="author" content="Ian Murphy"> <link rel="icon" href="/assets/media/cog128.png"> <title>Administration - oitgaming.com</title> <!-- Bootstrap core CSS --> <link href="/assets/stylesheets/bootstrap.min.css" rel="stylesheet"> <link href="/assets/stylesheets/add.css" rel="stylesheet">
</li> </ul> </div> </nav> </div> <!-- END NAVBAR --> <div class="container"> <center> <h4><center> <?php if ($user->Perms() !== 1) { if ($user->Perms() === 0) { echo "<p style='color:red'>Invalid login token</p>"; } ?> <center> <h2> Log in </h2> <form id="signin" method="POST" action="./gibcookie.php"> <input class="form-control frm-sm" type="email" id="email2" name="email" value="OIT Email" onfocus="pwClear(this, 'OIT Email', 'text')" onblur="blurRe(this, 'OIT Email')"> <br> <input class="form-control frm-sm" type="text" id="password2" name="password" value="Password" class="1" onfocus="pwClear(this, 'Password', 'password')" onblur="blurRe(this, 'Password')"> <br> <button class="btn btn-default" type="button" onclick="logFormSubmit()">Submit</button> <div id="err2" style="color:red"></div>