ftimme
2012-05-10 4c28d9c34f5f3e5ccbbed6dbb0ba08bc5235b53b
interface/web/sites/ftp_user_list.php
@@ -41,18 +41,34 @@
* End Form configuration
******************************************/
// Checking module permissions
if(!stristr($_SESSION["s"]["user"]["modules"],'sites')) {
   header("Location: ../index.php");
   exit;
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->load('listform_actions');
class list_action extends listform_actions {
   function onShow() {
      global $app,$conf;
      $app->uses('getconf');
      $global_config = $app->getconf->get_global_config('sites');
      if($global_config['webftp_url'] != '') {
         $app->tpl->setVar('webftp_link',1);
         $app->tpl->setVar('webftp_url',$global_config['webftp_url']);
      } else {
         $app->tpl->setVar('webftp_link',0);
      }
      parent::onShow();
   }
}
$app->uses('listform_actions');
// Limit the results to alias domains
//$app->listform_actions->SQLExtWhere = "type = 'subdomain'";
$app->listform_actions->onLoad();
$list = new list_action;
$list->onLoad();
?>