]> dev.renevier.net Git - syp.git/blobdiff - inc/html/admin.php
demo restrictions
[syp.git] / inc / html / admin.php
index b0df4b5c6ea866c69d40fbc09ad907ce8facd6d2..3dc893cd686e90ec28fd4a66658117a6e1e4fd35 100644 (file)
@@ -7,7 +7,7 @@ $error = false;
 if (!@include_once ("./inc/settings.php")) {
     $error = true;
 }
-require_once ("./inc/db/mysql.php");
+require_once ("./inc/db/" . (defined ("DBTYPE")? DBTYPE: "mysql") . ".php");
 require_once ("./inc/utils.php");
 
 try {
@@ -83,7 +83,8 @@ if (!$usrtblexists || !$itemstblexists) {
             changePassSuccess: "<?php ptrans('Password successfully changed.')?>",
             newUserNonameError: "<?php ptrans('User name has not been set.')?>",
             newUserExistsError: "<?php ptrans('User already exists in database.')?>",
-            newUserSuccess: "<?php ptrans('User successfully added.')?>"
+            newUserSuccess: "<?php ptrans('User successfully added.')?>",
+            DisabledForDemo: "<?php ptrans('This feature is not enabled on demo site')?>"
         };
 
         var sypSettings =  {