| | |
| | | $module["name"] = "sites"; |
| | | $module["title"] = "top_menu_sites"; |
| | | $module["template"] = "module.tpl.htm"; |
| | | $module["startpage"] = "sites/web_domain_list.php"; |
| | | $module["startpage"] = "sites/web_vhost_domain_list.php"; |
| | | $module["tab_width"] = ''; |
| | | $module['order'] = '30'; |
| | | |
| | | // Websites menu |
| | | $items=array(); |
| | |
| | | { |
| | | $items[] = array( 'title' => "Website", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/web_domain_list.php', |
| | | 'link' => 'sites/web_vhost_domain_list.php?type=domain', |
| | | 'html_id' => 'domain_list'); |
| | | } |
| | | |
| | |
| | | { |
| | | $items[] = array( 'title' => "Subdomain", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/web_subdomain_list.php', |
| | | 'html_id' => 'subdomain_list'); |
| | | 'link' => 'sites/web_childdomain_list.php?type=subdomain', |
| | | 'html_id' => 'childdomain_list'); |
| | | |
| | | // read web config |
| | | $app->uses('getconf'); |
| | |
| | | if($sys_config['vhost_subdomains'] == 'y') { |
| | | $items[] = array( 'title' => "Subdomain (Vhost)", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/web_vhost_subdomain_list.php', |
| | | 'html_id' => 'subdomain_list'); |
| | | 'link' => 'sites/web_vhost_domain_list.php?type=subdomain', |
| | | 'html_id' => 'childdomain_list'); |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | $items[] = array( 'title' => "Aliasdomain", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/web_aliasdomain_list.php', |
| | | 'html_id' => 'aliasdomain_list'); |
| | | 'link' => 'sites/web_childdomain_list.php?type=aliasdomain', |
| | | 'html_id' => 'childdomain_list'); |
| | | |
| | | // read web config |
| | | $app->uses('getconf'); |
| | | $sys_config = $app->getconf->get_global_config('sites'); |
| | | if($sys_config['vhost_aliasdomains'] == 'y') { |
| | | $items[] = array( 'title' => "Aliasdomain (Vhost)", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/web_vhost_domain_list.php?type=aliasdomain', |
| | | 'html_id' => 'childdomain_list'); |
| | | } |
| | | } |
| | | |
| | | if(count($items)) |
| | |
| | | |
| | | if($app->auth->get_client_limit($userid, 'webdav_user') != 0) |
| | | { |
| | | $items[] = array( 'title' => "Webdav-User", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/webdav_user_list.php', |
| | | 'html_id' => 'webdav_user_list'); |
| | | $apache_in_use = false; |
| | | $servers = $app->db->queryAllRecords("SELECT * FROM server WHERE web_server = 1 AND active = 1"); |
| | | if(is_array($servers) && !empty($servers)){ |
| | | foreach($servers as $server){ |
| | | $tmp_web_config = $app->getconf->get_server_config($server['server_id'], 'web'); |
| | | if(strtolower($tmp_web_config['server_type']) == 'apache'){ |
| | | $apache_in_use = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | if($apache_in_use == true){ |
| | | $items[] = array( 'title' => "Webdav-User", |
| | | 'target' => 'content', |
| | | 'link' => 'sites/webdav_user_list.php', |
| | | 'html_id' => 'webdav_user_list'); |
| | | } |
| | | } |
| | | |
| | | $items[] = array( 'title' => "Folder", |
| | |
| | | 'link' => 'sites/user_quota_stats.php', |
| | | 'html_id' => 'user_quota_stats'); |
| | | |
| | | $items[] = array( 'title' => 'Database quota', |
| | | 'target' => 'content', |
| | | 'link' => 'sites/database_quota_stats.php', |
| | | 'html_id' => 'databse_quota_stats'); |
| | | |
| | | $items[] = array ( |
| | | 'title' => 'Backup Stats', |
| | | 'target' => 'content', |
| | | 'link' => 'sites/backup_stats.php', |
| | | 'html_id' => 'backup_stats' |
| | | ); |
| | | |
| | | $module['nav'][] = array( 'title' => 'Statistics', |
| | | 'open' => 1, |
| | | 'items' => $items); |