X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=admin.php;fp=admin.php;h=a27141aaafd9f7d93fd9b38f54a8cb11d6cb8e09;hp=b69cc9d0348ca1ecb660ee321ee8657dfec14607;hb=0feade23ffa41ac299b252a93be4da11bc2a16b7;hpb=3848f54e1bde1afac7fa595822526d6c96b1ff18 diff --git a/admin.php b/admin.php index b69cc9d..a27141a 100644 --- a/admin.php +++ b/admin.php @@ -2,152 +2,6 @@ /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD license. */ -require_once ("./inc/settings.php"); -require_once ("./inc/db/mysql.php"); -require_once ("./inc/utils.php"); - -$error = false; -try { - $connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX); - $usrtblexists = $connection->users_table_exists (); - $itemstblexists = $connection->items_table_exists (); -} catch (Exception $e) { - $error = true; -} -if (!$usrtblexists || !$itemstblexists) { - $error = true; -} - if ($error) { -?> - - - - - SYP admin - - - -

SYP n'est pas correctement installé. Veuillez - consulter le fichier README.txt et suivez les instructions - d'installation.

- - - - - - - - SYP admin - - - - - - - - - - - - - - - - - - -
- -
- -

-

-
- -

Déconnexion

- -
- -
-
-
-
-
-
- -
- - -
-
-
- -
- - - - - -
-
- - - -
-
- -
checkpwdmd5 ("admin", - $_COOKIE [sprintf ("%sauth", DBPREFIX)])) { - echo ' class="hidden"'; - } - ?>> -
-
-
-
- - - - - -
-

- - -

-

- Connexion en cours - throbber -

-

-
-
-
- - - - -