index.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. // Send main headers
  3. header('Last-Modified: ' . gmdate('r'));
  4. header('Content-Type: text/html; charset=utf-8');
  5. header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
  6. header("Pragma: no-cache");
  7. include("libs/api.mysql.php");
  8. include("libs/api.uhw.php");
  9. $uconf= uhw_LoadConfig();
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <head>
  14. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  15. <title><?=$uconf['TITLE'];?></title>
  16. <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
  17. <link type="text/css" href="jui/css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
  18. <script type="text/javascript" src="jui/js/jquery-1.8.0.min.js"></script>
  19. <script type="text/javascript" src="jui/js/jquery-ui-1.8.23.custom.min.js"></script>
  20. </head>
  21. <body>
  22. <div id="wrapper">
  23. <div id="header" class="container">
  24. <div id="logo">
  25. <h1><a href="<?=$uconf['ISP_URL'];?>"><img src="<?=$uconf['ISP_LOGO'];?>" width="80" border="0"></a> <?=$uconf['ISP_NAME'];?></h1>
  26. </div>
  27. <div id="menu">
  28. </div>
  29. </div>
  30. <div id="page" class="container">
  31. <div id="content">
  32. <div class="post">
  33. <h3 class="title"> <font color="#000000"><?=$uconf['SUB_TITLE'];?></font></h3>
  34. <div style="clear: both;">&nbsp;</div>
  35. <div class="entry">
  36. <h3><?=$uconf['CALL_US'];?> <?=$uconf['SUP_PHONES'];?> <?=$uconf['SUP_ACTIVATE'];?>
  37. <?=$uconf['SUP_REQUIRE'];?>
  38. <?php
  39. // debug
  40. //$remote_ip='172.32.0.101';
  41. $remote_ip=$_SERVER['REMOTE_ADDR'];
  42. if (ispos($remote_ip, $uconf['UNKNOWN_MASK'])) {
  43. $useroption= uhw_FindOpt82($remote_ip);
  44. if ($useroption) {
  45. //show user option
  46. uhw_Opt82Display($useroption);
  47. if ($uconf['SELFACT_ENABLED']) {
  48. $db=new MySQLDB;
  49. }
  50. } else {
  51. print($uconf['SUP_NOOPT']);
  52. }
  53. } else {
  54. //not unknown user network
  55. uhw_redirect($uconf['ISP_URL']);
  56. }
  57. ?>
  58. </h3>
  59. </div>
  60. </div>
  61. <div style="clear: both;">&nbsp;</div>
  62. </div>
  63. <div id="sidebar">
  64. <ul>
  65. </ul>
  66. </div>
  67. <div style="clear: both;">&nbsp;</div>
  68. </div>
  69. </div>
  70. <div id="footer-content" class="container">
  71. <div id="footer-bg">
  72. <div id="column1">
  73. <p>&copy; 2012 <a href="<?=$uconf['ISP_URL'];?>"><?=$uconf['ISP_NAME'];?></a></p>
  74. </div>
  75. <div id="column2">
  76. <?=$uconf['SUP_DESC'];?><br>
  77. <i><?=$uconf['SUP_DAYS'];?><br>
  78. <?=$uconf['SUP_TIME'];?></i>
  79. </div>
  80. <div id="column3">
  81. Powered by <a href="http://ubilling.net.ua">Ubilling</a>
  82. <br>
  83. QC:<?=$query_counter; ?>
  84. </div>
  85. </div>
  86. </div>
  87. <div id="footer">
  88. </div>
  89. </body>
  90. </html>