diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index d4edf506100..736cce80791 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -21,78 +21,28 @@ */ require("./pre.inc.php"); -if ($HTTP_POST_VARS["action"] == 'changetheme') -{ - $sql = "REPLACE INTO ".MAIN_DB_PREFIX."const SET name = 'MAIN_THEME', value='".$HTTP_POST_VARS["theme"]."', visible=0"; - - if ($db->query($sql)) - { - - } - Header('Location: index.php'); -} - if ($HTTP_POST_VARS["action"] == 'update') { dolibarr_set_const($db, "MAIN_INFO_SOCIETE_NOM",$HTTP_POST_VARS["nom"]); dolibarr_set_const($db, "MAIN_INFO_TVAINTRA",$HTTP_POST_VARS["tva"]); - Header('Location: index.php'); + Header("Location: $PHP_SELF"); } llxHeader(); -print_titre("Configuration Dolibarr (version ".DOL_VERSION.")"); +print_titre("Configuration générale (Dolibarr version ".DOL_VERSION.")"); -print '
| Nom | Valeur | Action | '; -print "
| Version | ' . DOL_VERSION . ' | |
| Theme | '; - -if ($_GET["action"] == 'modtheme') -{ - clearstatcache(); - $dir = "../theme/"; - $handle=opendir($dir); - - print ''; -} -else -{ - print '' . $conf->theme . ' | Changer |