Changeset 2709 for trunk


Ignore:
Timestamp:
03/21/10 12:40:44 (2 years ago)
Author:
tomdooley
Message:
  • [GUI] Fixed: Unable to delete database properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/include/client-functions.php

    r2532 r2709  
    3030 
    3131function get_domain_default_props(&$sql, $domain_admin_id, $returnWKeys = false) { 
    32          
     32 
    3333        // /!\ Note to dev: 
    3434        // Please, when you adds new field here, you must 
     
    546546 
    547547        $rs = exec_query($sql, $query, array($_SESSION['user_created_by'])); 
    548    
     548 
    549549        if (!Config::get('ISPCP_SUPPORT_SYSTEM') || $rs->fields['support_system'] == 'no') { 
    550550                $tpl->assign('ISACTIVE_SUPPORT', ''); 
     
    672672 
    673673        $rs = exec_query($sql, $query, array($_SESSION['user_created_by'])); 
    674    
     674 
    675675        if (!Config::get('ISPCP_SUPPORT_SYSTEM') || $rs->fields['support_system'] == 'no') { 
    676676                $tpl->assign('SUPPORT_SYSTEM', ''); 
     
    876876                $rs = exec_query($sql, $query, array()); 
    877877        } else { 
    878                 $new_db_name = str_replace("_", "\\_", $db_name); 
    879878                $query = <<<SQL_QUERY 
    880                         REVOKE ALL ON $new_db_name.* FROM ?@'%' 
    881 SQL_QUERY; 
     879                        REVOKE ALL ON $db_name.* FROM ?@'%' 
     880SQL_QUERY; 
     881 
    882882                $rs = exec_query($sql, $query, array($db_user_name)); 
    883883 
    884884                $query = <<<SQL_QUERY 
    885                         REVOKE ALL ON $new_db_name.* FROM ?@localhost 
     885                        REVOKE ALL ON $db_name.* FROM ?@localhost 
    886886SQL_QUERY; 
    887887                $rs = exec_query($sql, $query, array($db_user_name)); 
     
    10631063/** 
    10641064 * Checks the User rights to add Domain Aliases 
    1065  *  
     1065 * 
    10661066 * @param int User ID 
    10671067 * @return boolean Client Domain Alias Permissions 
Note: See TracChangeset for help on using the changeset viewer.