diff --git a/web/admin.php b/web/admin.php index 24d157ea..fc25a745 100644 --- a/web/admin.php +++ b/web/admin.php @@ -53,6 +53,7 @@ if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui- } else if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]))) { include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]); } else if ($ui->smallletters('w', 255, 'get') and isset($customFiles[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]))) { + $customModule = true; include(EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]); } else { $template_file = 'admin_home.tpl'; @@ -71,7 +72,7 @@ if (!isset($template_file) or is_array($template_file)) { } include(IncludeTemplate($template_to_use, 'admin_header.tpl')); -include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'general.tpl')); +include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'general.tpl', (isset($customModule)) ? 'custom_modules' : 'admin')); include(IncludeTemplate($template_to_use, 'admin_footer.tpl')); $sql = null; \ No newline at end of file diff --git a/web/index.php b/web/index.php index 57936809..809fca35 100644 --- a/web/index.php +++ b/web/index.php @@ -82,7 +82,7 @@ if (isset($page_active) and $page_active == 'Y') { } include(IncludeTemplate($template_to_use, 'page_header.tpl', 'cms')); - include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'page_general.tpl', 'cms')); + include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'page_general.tpl', (isset($customModule)) ? 'custom_modules' : 'cms')); include(IncludeTemplate($template_to_use, 'page_footer.tpl', 'cms')); } else { diff --git a/web/install/update_430-440.php b/web/install/update_430-440.php index b179bf6d..5c1b1257 100644 --- a/web/install/update_430-440.php +++ b/web/install/update_430-440.php @@ -170,7 +170,9 @@ if (isset($include) and $include == true) { if (substr($row, -4) == '.tpl') { - @unlink(EASYWIDIR . '/template/default/' . $row); + if (is_file(EASYWIDIR . '/template/default/' . $row)) { + @unlink(EASYWIDIR . '/template/default/' . $row); + } foreach ($customDirs as $custom) { if (is_dir(EASYWIDIR . '/template/' . $custom) and is_file(EASYWIDIR . '/template/' . $custom . '/' . $row)) { @@ -194,6 +196,13 @@ if (isset($include) and $include == true) { $query = $sql->prepare("UPDATE `servertypes` SET `gamebinaryWin`='srcds.exe',`os`='B' WHERE `gamebinary`='srcds_run'"); $query->execute(); + $query = $sql->prepare("UPDATE `servertypes` SET `gameq`='mta' WHERE `gameq`='Mta'"); + $query->execute(); + + $query = $sql->prepare("DROP TABLE IF EXISTS `voice_server_stats_hours`"); + $query->execute(); + + } else { echo "Error: this file needs to be included by the updater!
"; } \ No newline at end of file diff --git a/web/statuscheck.php b/web/statuscheck.php index 020fb92e..97bf4928 100644 --- a/web/statuscheck.php +++ b/web/statuscheck.php @@ -1147,9 +1147,14 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, # Web Quotas if ($checkTypeOfServer == 'all' or $checkTypeOfServer == 'vh') { - $query = $sql->prepare("SELECT `webMasterID`,`resellerID` FROM `webMaster` WHERE `active`='Y'"); + echo "Checking Quota usage\r\n"; + + $query = $sql->prepare("SELECT `webMasterID`,`ip`,`resellerID` FROM `webMaster` WHERE `active`='Y'"); $query->execute(); foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { + + echo 'Checking webMaster ' . $row['ip'] . ' with webMasterID ' . $row['webMasterID'] . "\r\n"; + $httpd = new HttpdManagement($row['webMasterID'], $row['resellerID']); $httpd->ssh2Connect(); $httpd->checkQuotaUsage(); diff --git a/web/template/default/admin/admin_page_news_list.tpl b/web/template/default/admin/admin_page_news_list.tpl index 8515dd42..aac60da9 100644 --- a/web/template/default/admin/admin_page_news_list.tpl +++ b/web/template/default/admin/admin_page_news_list.tpl @@ -29,12 +29,12 @@ - - - - - - + + + + + + diff --git a/web/userpanel.php b/web/userpanel.php index 7ea7df23..967c0eed 100644 --- a/web/userpanel.php +++ b/web/userpanel.php @@ -55,6 +55,7 @@ if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui- } else if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')])) { include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]); } else if ($ui->smallletters('w', 255, 'get') and isset($customFiles[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]))) { + $customModule = true; include(EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]); } else { $template_file = 'userpanel_home.tpl'; @@ -73,7 +74,7 @@ if (!isset($template_file) or is_array($template_file)) { } include(IncludeTemplate($template_to_use, 'userpanel_header.tpl', 'user')); -include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'general.tpl', 'user')); +include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'general.tpl', (isset($customModule)) ? 'custom_modules' : 'user')); include(IncludeTemplate($template_to_use, 'userpanel_footer.tpl', 'user')); $sql = null; \ No newline at end of file
&p=&o=">title;?>:&p=&o=">ID:&p=&o=">languages;?>:&p=&o=">released;?>:&p=&o=">author;?>:&p=&o=">date;?>:&p=&o=">title;?>&p=&o=">ID&p=&o=">languages;?>&p=&o=">released;?>&p=&o=">author;?>&p=&o=">date;?> del;?> mod;?>