<html> <body bgcolor=#cfcfcf> <font face=ubuntu size=50> Modified Files in Current Version<br/> </font> <font face=ubuntu > <?php include "../../config.php"; session_start(); require_once "../../classes/database.class.php"; $con = new Database(); if ($con->checkCookie($_SESSION['sessionID'], $_SESSION['uname']) == 0) { $con->close(); header("location:../../../views/loginwrong.html"); } $con->close(); chdir($GIT_ROOT); echo exec("git diff --name-only"); ?> </font> </html>
<?php session_start(); require_once "../classes/database.class.php"; $con = new Database(); if ($con->checkCookie($_SESSION['sessionID'], 'admin') == 0) { $con->close(); header("Location:../views/login.html"); } else { $con->messageDump(); $con->close(); $page = "\n\t<html>\n\t<title>Administrator Page</title>\n\t<h4 align=right><a href=../controllers/logout.php>Logout</a></h4>\n\t<body bgcolor=#cfcfcf style='font-family:ubuntu'>\n\t<center><h1>Welcome to Administrator page</h1></center>\n\t<h2>Administrative tasks</h2>\n\t<h3>\n\t1.<a href='newUsers.php'>Add new users</a><br>\n\t2.<a href='recoverPassword.php'>Recover lost password</a><br>\n\t3.<a href='/phpmyadmin'>Database Admin using <i>PHPMyAdmin</i>,with master reset</a>\n\t</h3>\n\t</body>\n\t</html>"; echo $page; }