瀏覽代碼

Updating the server name reference in code

This change replaces the use of $_SERVER['SERVER_NAME'] with $_SERVER['HTTP_HOST'] throughout the codebase. The modification ensures consistency and compliance with best practices, since $_SERVER['HTTP_HOST'] is often used to extract the host header from an HTTP request. This update may improve compatibility and security, especially in scenarios where the Host header plays a key role in proper server configuration and routing. Please review and test the changes carefully to ensure smooth functionality in different environments.
Sergei Solovev 1 年之前
父節點
當前提交
276ec7f3eb
共有 100 個文件被更改,包括 100 次插入100 次删除
  1. 1 1
      system/acp/distributor.php
  2. 1 1
      system/acp/engine/addons.php
  3. 1 1
      system/acp/engine/boost.php
  4. 1 1
      system/acp/engine/cashback.php
  5. 1 1
      system/acp/engine/control.php
  6. 1 1
      system/acp/engine/hosting.php
  7. 1 1
      system/acp/engine/index.php
  8. 1 1
      system/acp/engine/jobs.php
  9. 1 1
      system/acp/engine/letter.php
  10. 1 1
      system/acp/engine/logs.php
  11. 1 1
      system/acp/engine/news.php
  12. 1 1
      system/acp/engine/notice.php
  13. 1 1
      system/acp/engine/pages.php
  14. 1 1
      system/acp/engine/promo.php
  15. 1 1
      system/acp/engine/servers.php
  16. 1 1
      system/acp/engine/system.php
  17. 1 1
      system/acp/engine/tarifs.php
  18. 1 1
      system/acp/engine/units.php
  19. 1 1
      system/acp/engine/users.php
  20. 1 1
      system/acp/engine/web.php
  21. 1 1
      system/acp/engine/wiki.php
  22. 1 1
      system/acp/sections/addons/addcat.php
  23. 1 1
      system/acp/sections/addons/addpl.php
  24. 1 1
      system/acp/sections/addons/cats.php
  25. 1 1
      system/acp/sections/addons/delete.php
  26. 1 1
      system/acp/sections/addons/index.php
  27. 1 1
      system/acp/sections/addons/plugin.php
  28. 1 1
      system/acp/sections/addons/search.php
  29. 1 1
      system/acp/sections/addons/update.php
  30. 1 1
      system/acp/sections/addons/updmp.php
  31. 1 1
      system/acp/sections/boost/index.php
  32. 1 1
      system/acp/sections/boost/search.php
  33. 1 1
      system/acp/sections/boost/service.php
  34. 1 1
      system/acp/sections/control/delete.php
  35. 1 1
      system/acp/sections/control/index.php
  36. 1 1
      system/acp/sections/control/overdue.php
  37. 1 1
      system/acp/sections/control/search.php
  38. 1 1
      system/acp/sections/control/server.php
  39. 1 1
      system/acp/sections/jobs/add.php
  40. 1 1
      system/acp/sections/jobs/edit.php
  41. 1 1
      system/acp/sections/jobs/index.php
  42. 1 1
      system/acp/sections/jobs/request.php
  43. 1 1
      system/acp/sections/letter/index.php
  44. 1 1
      system/acp/sections/letter/send.php
  45. 1 1
      system/acp/sections/logs/buy.php
  46. 1 1
      system/acp/sections/logs/cashout.php
  47. 1 1
      system/acp/sections/logs/extend.php
  48. 1 1
      system/acp/sections/logs/index.php
  49. 1 1
      system/acp/sections/logs/part.php
  50. 1 1
      system/acp/sections/logs/replenish.php
  51. 1 1
      system/acp/sections/logs/search.php
  52. 1 1
      system/acp/sections/logs/sysearch.php
  53. 1 1
      system/acp/sections/news/add.php
  54. 1 1
      system/acp/sections/news/delete.php
  55. 1 1
      system/acp/sections/news/index.php
  56. 1 1
      system/acp/sections/news/news.php
  57. 1 1
      system/acp/sections/news/search.php
  58. 1 1
      system/acp/sections/notice/add.php
  59. 1 1
      system/acp/sections/notice/delete.php
  60. 1 1
      system/acp/sections/notice/end.php
  61. 1 1
      system/acp/sections/notice/index.php
  62. 1 1
      system/acp/sections/notice/notice.php
  63. 1 1
      system/acp/sections/notice/search.php
  64. 1 1
      system/acp/sections/pages/add.php
  65. 1 1
      system/acp/sections/pages/delete.php
  66. 1 1
      system/acp/sections/pages/index.php
  67. 1 1
      system/acp/sections/pages/page.php
  68. 1 1
      system/acp/sections/promo/add.php
  69. 1 1
      system/acp/sections/promo/delete.php
  70. 1 1
      system/acp/sections/promo/end.php
  71. 1 1
      system/acp/sections/promo/index.php
  72. 1 1
      system/acp/sections/promo/promo.php
  73. 1 1
      system/acp/sections/promo/search.php
  74. 1 1
      system/acp/sections/promo/stats.php
  75. 1 1
      system/acp/sections/servers/crmp.php
  76. 1 1
      system/acp/sections/servers/cs.php
  77. 1 1
      system/acp/sections/servers/cs2.php
  78. 1 1
      system/acp/sections/servers/csgo.php
  79. 1 1
      system/acp/sections/servers/css.php
  80. 1 1
      system/acp/sections/servers/cssold.php
  81. 1 1
      system/acp/sections/servers/delete.php
  82. 1 1
      system/acp/sections/servers/index.php
  83. 1 1
      system/acp/sections/servers/mc.php
  84. 1 1
      system/acp/sections/servers/mta.php
  85. 1 1
      system/acp/sections/servers/overdue.php
  86. 1 1
      system/acp/sections/servers/rust.php
  87. 1 1
      system/acp/sections/servers/samp.php
  88. 1 1
      system/acp/sections/servers/search.php
  89. 1 1
      system/acp/sections/servers/server.php
  90. 1 1
      system/acp/sections/tarifs/add.php
  91. 1 1
      system/acp/sections/tarifs/copy.php
  92. 1 1
      system/acp/sections/tarifs/delete.php
  93. 1 1
      system/acp/sections/tarifs/index.php
  94. 1 1
      system/acp/sections/tarifs/search.php
  95. 1 1
      system/acp/sections/tarifs/stats.php
  96. 1 1
      system/acp/sections/tarifs/tarif.php
  97. 1 1
      system/acp/sections/units/add.php
  98. 1 1
      system/acp/sections/units/delete.php
  99. 1 1
      system/acp/sections/units/index.php
  100. 1 1
      system/acp/sections/units/loading.php

+ 1 - 1
system/acp/distributor.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 // Подключение filp/whoops
 $whoops = new \Whoops\Run;

+ 1 - 1
system/acp/engine/addons.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-cubes"></i> Управление дополнениями';
 

+ 1 - 1
system/acp/engine/boost.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 include(DATA . 'boost.php');
 

+ 1 - 1
system/acp/engine/cashback.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 @ini_set('display_errors', TRUE);
 @ini_set('html_errors', TRUE);

+ 1 - 1
system/acp/engine/control.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-dropbox"></i> Контроль';
 

+ 1 - 1
system/acp/engine/hosting.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-globe"></i> Список вирт. хостингов';
 

+ 1 - 1
system/acp/engine/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $mcache_name = 'acp_main';
 

+ 1 - 1
system/acp/engine/jobs.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-envelope-open"></i> Вакансии';
 

+ 1 - 1
system/acp/engine/letter.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-envelope-open"></i> Рассылка новостей';
 

+ 1 - 1
system/acp/engine/logs.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-clipboard"></i> Логи операций';
 

+ 1 - 1
system/acp/engine/news.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-newspaper-o"></i> Управление новостями';
 

+ 1 - 1
system/acp/engine/notice.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-bullhorn"></i> Управление уведомлениями';
 

+ 1 - 1
system/acp/engine/pages.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-file-text-o"></i> Управление старницами';
 

+ 1 - 1
system/acp/engine/promo.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-gift"></i> Управление акциями';
 

+ 1 - 1
system/acp/engine/servers.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-gamepad"></i> Список серверов';
 

+ 1 - 1
system/acp/engine/system.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $sql->query('SELECT `address`, `passwd` FROM `panel` LIMIT 1');

+ 1 - 1
system/acp/engine/tarifs.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-shopping-bag"></i> Управление тарифами';
 

+ 1 - 1
system/acp/engine/units.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-server"></i> Управление локациями';
 

+ 1 - 1
system/acp/engine/users.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-users"></i> Управление пользователями';
 

+ 1 - 1
system/acp/engine/web.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-cloud"></i> Список бесплатных услуг';
 

+ 1 - 1
system/acp/engine/wiki.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $info = '<i class="fa fa-cubes"></i> Управление википедией';
 

+ 1 - 1
system/acp/sections/addons/addcat.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aGames = array('cs', 'cssold', 'css', 'csgo', 'cs2', 'samp', 'crmp', 'mta', 'mc');

+ 1 - 1
system/acp/sections/addons/addpl.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $aGames = array('cs', 'cssold', 'css', 'csgo', 'cs2', 'samp', 'crmp', 'mta', 'mc');
 $types = array('cfg', 'txt', 'ini', 'js');

+ 1 - 1
system/acp/sections/addons/cats.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $cats = $sql->query('SELECT `id`, `game`, `name`, `sort` FROM `plugins_category` ORDER BY `game` ASC');
 while ($cat = $sql->get($cats)) {

+ 1 - 1
system/acp/sections/addons/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (!isset($url['type']))
     exit;

+ 1 - 1
system/acp/sections/addons/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'addons/search.php');

+ 1 - 1
system/acp/sections/addons/plugin.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `plugins` WHERE `id`="' . $id . '" LIMIT 1');
 $plugin = $sql->get();

+ 1 - 1
system/acp/sections/addons/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/addons/update.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `plugins_update` WHERE `id`="' . $id . '" LIMIT 1');
 $plugin = $sql->get();

+ 1 - 1
system/acp/sections/addons/updmp.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['get']) and $url['get'] == 'list') {
     $unit = isset($url['unit']) ? sys::int($url['unit']) : sys::out();

+ 1 - 1
system/acp/sections/boost/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'boost/sysearch.php');

+ 1 - 1
system/acp/sections/boost/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/boost/service.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'boost/sysearch.php');

+ 1 - 1
system/acp/sections/control/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('UPDATE `control` set `user`="-1", `status`="overdue", `time`="0", `overdue`="0" WHERE `id`="' . $id . '" LIMIT 1');
 

+ 1 - 1
system/acp/sections/control/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'control/search.php');

+ 1 - 1
system/acp/sections/control/overdue.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'control/server.php');

+ 1 - 1
system/acp/sections/control/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/control/server.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `time`, `overdue` FROM `control` WHERE `id`="' . $id . '" LIMIT 1');
 $ctrl = $sql->get();

+ 1 - 1
system/acp/sections/jobs/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = [];

+ 1 - 1
system/acp/sections/jobs/edit.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `jobs` WHERE `id`="' . $id . '" LIMIT 1');
 if (!$sql->num())

+ 1 - 1
system/acp/sections/jobs/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($url['edit']) {
     include(SEC . 'jobs/edit.php');

+ 1 - 1
system/acp/sections/jobs/request.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id) {
     $sql->query('SELECT * FROM `jobs_app` WHERE `id`="' . $id . '" LIMIT 1');

+ 1 - 1
system/acp/sections/letter/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $group = array('user' => 'Пользователь', 'support' => 'Тех.поддержка', 'admin' => 'Администратор');
 $list = '';

+ 1 - 1
system/acp/sections/letter/send.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 set_time_limit(1200);
 

+ 1 - 1
system/acp/sections/logs/buy.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/logs/cashout.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/logs/extend.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/logs/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'logs/sysearch.php');

+ 1 - 1
system/acp/sections/logs/part.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/logs/replenish.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/logs/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/logs/sysearch.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/news/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/news/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('DELETE FROM `news` WHERE `id`="' . $id . '" LIMIT 1');
 

+ 1 - 1
system/acp/sections/news/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'news/search.php');

+ 1 - 1
system/acp/sections/news/news.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `name`, `text`, `full_text`, `tags` FROM `news` WHERE `id`="' . $id . '" LIMIT 1');
 $news = $sql->get();

+ 1 - 1
system/acp/sections/news/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/notice/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/notice/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('DELETE FROM `notice` WHERE `id`="' . $id . '" LIMIT 1');
 

+ 1 - 1
system/acp/sections/notice/end.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'notice/search.php');

+ 1 - 1
system/acp/sections/notice/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'notice/search.php');

+ 1 - 1
system/acp/sections/notice/notice.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `notice` WHERE `id`="' . $id . '" LIMIT 1');
 $notice = $sql->get();

+ 1 - 1
system/acp/sections/notice/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/pages/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/pages/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `file` FROM `pages` WHERE `id`="' . $id . '" LIMIT 1');
 $page = $sql->get();

+ 1 - 1
system/acp/sections/pages/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'pages/page.php');

+ 1 - 1
system/acp/sections/pages/page.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `name`, `file` FROM `pages` WHERE `id`="' . $id . '" LIMIT 1');
 $page = $sql->get();

+ 1 - 1
system/acp/sections/promo/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/promo/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('DELETE FROM `promo` WHERE `id`="' . $id . '" LIMIT 1');
 $sql->query('DELETE FROM `promo_use` WHERE `promo`="' . $id . '" LIMIT 1');

+ 1 - 1
system/acp/sections/promo/end.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'promo/search.php');

+ 1 - 1
system/acp/sections/promo/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'promo/search.php');

+ 1 - 1
system/acp/sections/promo/promo.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `promo` WHERE `id`="' . $id . '" LIMIT 1');
 $promo = $sql->get();

+ 1 - 1
system/acp/sections/promo/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/promo/stats.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['delete'])) {
     $sql->query('DELETE FROM `promo_use` WHERE `id`="' . sys::int($url['delete']) . '" LIMIT 1');

+ 1 - 1
system/acp/sections/servers/crmp.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/cs.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/cs2.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/csgo.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/css.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/cssold.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('UPDATE `servers` set `user`="-1", `status`="overdue", `time`="0", `overdue`="0" WHERE `id`="' . $id . '" LIMIT 1');
 

+ 1 - 1
system/acp/sections/servers/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'servers/search.php');

+ 1 - 1
system/acp/sections/servers/mc.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/mta.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/overdue.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/rust.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/samp.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'servers/server.php');

+ 1 - 1
system/acp/sections/servers/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/servers/server.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `time`, `overdue` FROM `servers` WHERE `id`="' . $id . '" LIMIT 1');
 $server = $sql->get();

+ 1 - 1
system/acp/sections/tarifs/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/tarifs/copy.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `tarifs` WHERE `id`="' . $id . '" LIMIT 1');
 $tarif = $sql->get();

+ 1 - 1
system/acp/sections/tarifs/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT `id` FROM `servers` WHERE `tarif`="' . $id . '" LIMIT 1');
 if ($sql->num())

+ 1 - 1
system/acp/sections/tarifs/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['subsection']) and $url['subsection'] == 'search')
     include(SEC . 'tarifs/search.php');

+ 1 - 1
system/acp/sections/tarifs/search.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $text = isset($_POST['text']) ? trim($_POST['text']) : '';
 

+ 1 - 1
system/acp/sections/tarifs/stats.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $list = '';
 

+ 1 - 1
system/acp/sections/tarifs/tarif.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 $sql->query('SELECT * FROM `tarifs` WHERE `id`="' . $id . '" LIMIT 1');
 $tarif = $sql->get();

+ 1 - 1
system/acp/sections/units/add.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($go) {
     $aData = array();

+ 1 - 1
system/acp/sections/units/delete.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if (isset($url['delete']) and $url['delete'] == 'all') {
     $sql->query('SELECT `address`, `passwd` FROM `panel` LIMIT 1');

+ 1 - 1
system/acp/sections/units/index.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id)
     include(SEC . 'units/unit.php');

+ 1 - 1
system/acp/sections/units/loading.php

@@ -1,6 +1,6 @@
 <?php
 if (!DEFINED('EGP'))
-    exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
+    exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
 
 if ($id) {
     $sql->query('SELECT `address`, `passwd` FROM `units` WHERE `id`="' . $id . '" LIMIT 1');

Some files were not shown because too many files changed in this diff