X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=admin.php;h=722821407349993df25c35e93a6252b9998565a5;hp=b69cc9d0348ca1ecb660ee321ee8657dfec14607;hb=4414f33ecd172ea188660a45c8d8fb3469416d4f;hpb=57511b4efd7402ef58de66ac1fe2c01ed1b1d7b5 diff --git a/admin.php b/admin.php index b69cc9d..7228214 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 -

-

-
-
-
- - - - -