Beispiel #1
0
<link href="./style.css" rel="stylesheet" type="text/css">
</head>

<body>
<br>
	<table class="principale" width="100%" style="border-style: none;">
		<tr>
			<td><h1><?php 
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
if (HTTP_RESQUEST::exist('login') && HTTP_RESQUEST::exist('password') && HTTP_RESQUEST::exist('course')) {
    $login = HTTP_RESQUEST::param('login');
    $password = HTTP_RESQUEST::param('password');
    if ($login == "set" && ($password = "******")) {
        $obj_utils = new DbUtils();
        $obj_utils->connect();
        $obj_utils->setCourse(HTTP_RESQUEST::param('course'));
        $obj_utils->close();
        echo "COURSE: " . HTTP_RESQUEST::param('course');
    }
    ?>
</h1> <?php 
}
?>
			</td>
		</tr>
		
	</table>
</body>
</html>
Beispiel #2
0
 static function exist($name)
 {
     return HTTP_RESQUEST::param($name) != null;
 }
Beispiel #3
0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<link href="./style.css" rel="stylesheet" type="text/css">
</head>

<body>
	<table class="principale" width="100%" style="border-style: none;">
		<tr>
			<td><h1><?php 
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
if (HTTP_RESQUEST::exist('login') && HTTP_RESQUEST::exist('password')) {
    $login = HTTP_RESQUEST::param('login');
    $password = HTTP_RESQUEST::param('password');
    if ($login == "reset" && $password == "database" && Config::team) {
        $obj_utils = new DbUtils();
        $obj_utils->connect();
        $obj_utils->resetDB();
        $obj_utils->close();
        echo "La base de donnée a été réinitialisée";
    } else {
        if ($login == "reset" && ($password == "database_all" || !Config::team && $password == "database")) {
            $obj_utils = new DbUtils();
            $obj_utils->connect();
            $obj_utils->resetDBALL();
            $obj_utils->close();
            echo "La base de donnée a été réinitialisée TOTALEMENT !!!!";
        }
    }