Changeset 2710 for branches/omega-1.0.5
- Timestamp:
- 03/21/10 13:48:36 (2 years ago)
- Location:
- branches/omega-1.0.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
gui/include/client-functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/omega-1.0.5
-
branches/omega-1.0.5/gui/include/client-functions.php
r2532 r2710 30 30 31 31 function get_domain_default_props(&$sql, $domain_admin_id, $returnWKeys = false) { 32 32 33 33 // /!\ Note to dev: 34 34 // Please, when you adds new field here, you must … … 546 546 547 547 $rs = exec_query($sql, $query, array($_SESSION['user_created_by'])); 548 548 549 549 if (!Config::get('ISPCP_SUPPORT_SYSTEM') || $rs->fields['support_system'] == 'no') { 550 550 $tpl->assign('ISACTIVE_SUPPORT', ''); … … 672 672 673 673 $rs = exec_query($sql, $query, array($_SESSION['user_created_by'])); 674 674 675 675 if (!Config::get('ISPCP_SUPPORT_SYSTEM') || $rs->fields['support_system'] == 'no') { 676 676 $tpl->assign('SUPPORT_SYSTEM', ''); … … 876 876 $rs = exec_query($sql, $query, array()); 877 877 } else { 878 $new_db_name = str_replace("_", "\\_", $db_name);879 878 $query = <<<SQL_QUERY 880 REVOKE ALL ON $new_db_name.* FROM ?@'%' 881 SQL_QUERY; 879 REVOKE ALL ON $db_name.* FROM ?@'%' 880 SQL_QUERY; 881 882 882 $rs = exec_query($sql, $query, array($db_user_name)); 883 883 884 884 $query = <<<SQL_QUERY 885 REVOKE ALL ON $ new_db_name.* FROM ?@localhost885 REVOKE ALL ON $db_name.* FROM ?@localhost 886 886 SQL_QUERY; 887 887 $rs = exec_query($sql, $query, array($db_user_name)); … … 1063 1063 /** 1064 1064 * Checks the User rights to add Domain Aliases 1065 * 1065 * 1066 1066 * @param int User ID 1067 1067 * @return boolean Client Domain Alias Permissions
Note: See TracChangeset
for help on using the changeset viewer.
