[phpMP-CVS] CVS: phpMP/includes admin.php,1.2,1.3
Status: Pre-Alpha
Brought to you by:
heimidal
From: Anthony W. <ant...@us...> - 2003-02-09 20:49:00
|
Update of /cvsroot/phpmp/phpMP/includes In directory sc8-pr-cvs1:/tmp/cvs-serv27992/includes Modified Files: admin.php Log Message: Made a few changes to the site config form Index: admin.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/includes/admin.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** admin.php 9 Feb 2003 19:20:51 -0000 1.2 --- admin.php 9 Feb 2003 20:48:57 -0000 1.3 *************** *** 4,8 **** { ! var $p_action; // Executes the given admin action --- 4,8 ---- { ! var $p_action; // Action desired by the user // Executes the given admin action *************** *** 32,45 **** print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 0) { $checked = "CHECKED"; } else { $checked = ""; } print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"accact\" value=\"0\" " . $checked . "> Enable Account Activation?<br>"; print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; ! if (C_USE_PORTAL_PERMS == 0) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"0\" " . $checked . "> Use Portal Permissions?<br>"; print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; } --- 32,52 ---- print "<form method=\"post\" action=\"main.php?parse=" . $this->p_action . "\">"; print "Site Name: <input type=\"text\" name=\"sname\" value=\"" . C_SITE_NAME . "\"><br>"; ! if (C_OVERRIDE_USR_TPL == 1) { $checked = "CHECKED"; } else { $checked = ""; } print "Default Template: <input type=\"text\" name=\"deftpl\" value=\"" . C_DEFAULT_TPL . "\">"; print " <input type=\"checkbox\" name=\"ovrtpl\" value=\"0\" " . $checked . "> Override User Template?<br>"; print "Default Language: <input type=\"text\" name=\"deflang\" value=\"" . C_DEFAULT_LANG . "\"> (french, english)<br>"; // Should / Will be a dropdown list print "Default Date Format: <input type=\"text\" name=\"defdate\" value=\"" . C_DEFAULT_DATE_FORMAT . "\"> (Example: " . date(C_DEFAULT_DATE_FORMAT) . ") [Same syntax as the PHP date function]<br>"; ! print "Account Activation Level: "; ! print "<select name=\"accact\">"; ! if (C_ENABLE_ACCOUNT_ACTIVATION == 0) { $sel0 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 1) { $sel1 = "SELECTED"; } ! if (C_ENABLE_ACCOUNT_ACTIVATION == 2) { $sel2 = "SELECTED"; } ! print "<option value=\"0\" " . $sel0 . ">No Activation"; ! print "<option value=\"1\" " . $sel1 . ">User Activation"; ! print "<option value=\"2\" " . $sel2 . ">Admin Activation"; ! print "</select><br>"; print "System Timezone: <input type=\"text\" name=\"systime\" value=\"" . C_SYSTEM_TIMEZONE . "\"><br>"; ! if (C_USE_PORTAL_PERMS == 1) { $checked = "CHECKED"; } else { $checked = ""; } ! print "<input type=\"checkbox\" name=\"portperms\" value=\"1\" " . $checked . "> Use Portal Permissions?<br>"; print "<input type=\"submit\" name=\"submit_general\" value=\"Submit Configuration\">"; } *************** *** 54,60 **** $DB = new DB; ! if ($ovrtpl != 0) { $ovrtpl = 1; } ! if ($accact != 0) { $accact = 1; } ! if ($portperms != 0) { $portperms = 1; } // We now go through each config_value and update it accordingly --- 61,66 ---- $DB = new DB; ! if ($ovrtpl != 1) { $ovrtpl = 0; } ! if ($portperms != 1) { $portperms = 0; } // We now go through each config_value and update it accordingly |