| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | |
| | | function onBeforeDelete() { |
| | | global $app; $conf; |
| | | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | include($lng_file); |
| | | |
| | | include $lng_file; |
| | | |
| | | /* |
| | | * We can only delete domains if they are NOT in use |
| | | */ |
| | |
| | | if (is_array($res)){ |
| | | $app->error($wb['error_domain_in mailuse']); |
| | | } |
| | | |
| | | |
| | | $sql = "SELECT domain_id FROM web_domain WHERE domain = '" . $app->db->quote($domain) . "'"; |
| | | $res = $app->db->queryOneRecord($sql); |
| | | if (is_array($res)){ |
| | | $app->error($wb['error_domain_in webuse']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | | $page->onDelete(); |
| | | |
| | | ?> |
| | | ?> |