Changeset 359
- Timestamp:
- 03/27/07 17:24:40 (5 years ago)
- Location:
- trunk/webinterface
- Files:
-
- 5 modified
-
core/mysql.sql (modified) (2 diffs)
-
core/openvcp.conf (modified) (1 diff)
-
mods/super/admins/main.php (modified) (2 diffs)
-
mods/super/functions.php (modified) (1 diff)
-
themes/default/theme.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webinterface/core/mysql.sql
r345 r359 68 68 ('vserver_prefix_last', '0', 'int'), 69 69 ('language', 'en_US', 'dropdown'), 70 ('theme', 'default', 'dropdown'); 70 ('theme', 'default', 'dropdown'), 71 ('add_user_mail_subject', 'New user account created', 'string'), 72 ('add_user_mail_body', 'Hello %firstname %lastname, a new useraccount was created for you: %loginname %password you can login using %url regards openVCP Team', 'text'); 71 73 72 74 CREATE TABLE IF NOT EXISTS `openvcp_network` ( … … 118 120 ('add_admin_mail_subject', 'New admin account created', 'string'), 119 121 ('add_admin_mail_body', 'Hello %firstname %lastname,\r\n\r\na new adminaccount was created for you:\r\n%loginname\r\n%password\r\n\r\nyou can login using %url\r\n\r\nregards\r\n\r\nopenVCP Team', 'text'), 120 ('url', 'http://www.openvcp.org', 'string'); 122 ('url', 'http://www.openvcp.org', 'string'), 123 ('add_user_mail_subject', 'New user account created', 'string'), 124 ('add_user_mail_body', 'Hello %firstname %lastname,\r\n\r\na new useraccount was created for you:\r\n%loginname\r\n%password\r\n\r\nyou can login using %url\r\n\r\nregards\r\n\r\nopenVCP Team', 'text'); 121 125 122 126 CREATE TABLE IF NOT EXISTS `openvcp_user` ( -
trunk/webinterface/core/openvcp.conf
r353 r359 72 72 table TABLE_USER_SETTINGS user_settings 73 73 table TABLE_USER_SETTINGS_AVAILABLE user_settings_available 74 table TABLE_USER_TEMPLATES user_templates 74 75 table TABLE_ADMIN admin 75 76 table TABLE_ADMIN_PRIVILEGES admin_privileges -
trunk/webinterface/mods/super/admins/main.php
r343 r359 164 164 $AUTH->getPrivileges('manage_admins') == "y" ? "" : OpenVCP::gotoURL("super/admins"); 165 165 $nok = true; 166 if( $PARAMS[1] == "submit")166 if(in_array("submit", $PARAMS)) 167 167 { 168 168 if(checkEmail($_POST['email']) && ($_POST['company'] != "" || $_POST['firstname'] != "" && $_POST['lastname'] != "")) … … 239 239 } 240 240 241 $form = $GUI->form(0, "add_admin", (i sset($_POST['id']) ? "submit" : "add/submit"));241 $form = $GUI->form(0, "add_admin", (in_array("submit", $PARAMS) ? "submit" : "add/submit")); 242 242 $table = $GUI->table($form); 243 243 $thead = $GUI->tableAddHead($table); -
trunk/webinterface/mods/super/functions.php
r345 r359 266 266 function checkEmail($email) 267 267 { 268 return preg_match("/(.*)@[a-z|A-Z|0-9 ]+\.[a-z|A-Z]+/i", $email) ? true : false;268 return preg_match("/(.*)@[a-z|A-Z|0-9|á|é|í|ó|ú|à|è|ì|ò|ù|ä|ë|ï|ö|ü|â|ê|î|ô|û|ñ|ç|þ|æ|ð|å|ý]+\.[a-z|A-Z]+/i", $email) ? true : false; 269 269 } 270 270 -
trunk/webinterface/themes/default/theme.css
r357 r359 12 12 background-color: #dddddd; 13 13 height:100%; 14 font-family: Geneva, Arial, Helvetica, sans-serif; 14 15 } 15 16
