Sergio Cambra
2014-06-30 b91328b225502a9fd9d871bae4529b6ea04b9b67
interface/web/client/domain_del.php
@@ -38,8 +38,8 @@
* 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');
@@ -52,11 +52,11 @@
   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
       */
@@ -67,16 +67,17 @@
      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();
?>
?>