Просмотр файла themes/ZnGrey.php

Размер файла: 6.43Kb
  1. <?php
  2. echo '<?xml version="1.0" encoding="utf-8"?>
  3.  
  4. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  5.  
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
  7.  
  8. <head>
  9. <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
  10. <meta name="description" content="'.$meta_descr.'" />
  11. <meta name="keywords" content="'.$meta_key.'" />
  12. <link rel="stylesheet" href="'.$home.'/themes/ZnGrey/style.css" type="text/css" />
  13. <title>'.$title_page.' | '.$title.'</title>
  14. </head>
  15.  
  16. <body>';
  17.  
  18. function myhtml($myhtml) {
  19. $myhtml = str_replace('<br>','<br />',$myhtml);
  20. $myhtml = str_replace('<hr>','<hr />',$myhtml);
  21. $myhtml = str_replace('alt="">','alt="" />',$myhtml);
  22. $myhtml = str_replace('<img src="/images/st/rekl.gif"align="right"/><br />','<img src="/themes/ZnGrey/rekl.gif"align="right"alt="" /><br />',$myhtml);
  23. $myhtml = str_replace('<p class="modul_name">','<p class="modul_name"align="center">',$myhtml);
  24. return $myhtml;
  25. }
  26. ob_start('myhtml');
  27.  
  28. echo '<div class="head"><p align="center">';
  29. if(!empty($logo))
  30. {
  31. echo '<img src="/themes/ZnGrey/logo.gif" alt="Лого" title="Лого" /><br />';
  32. }
  33. echo '</p></div>';
  34. echo '<div class="auth">';
  35. if(isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw)
  36. {
  37.  
  38. if($icon_text == "1" || $icon_text == "")
  39. {
  40. echo "<a href=\"$dob_url/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/home.gif\"align=\"top\"alt=\"\" title=\"Дом\"></a> | ";
  41. if($pol == "1")
  42. {
  43. if($status == "4")
  44. {
  45. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  46. }
  47. elseif($status == "5")
  48. {
  49. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m_nov.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  50. }
  51. elseif($status == "3" || $status == "2" || $status == "1")
  52. {
  53. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/m.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  54. }
  55. }
  56. elseif($pol == "0")
  57. {
  58. if($status == "4")
  59. {
  60. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  61. }
  62. elseif($status == "5")
  63. {
  64. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w_nov.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  65. }
  66. elseif($status == "3" || $status == "2" || $status == "1")
  67. {
  68. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/w.gif\"align=\"top\"alt=\"\" title=\"Кабинет\"></a>";
  69. }
  70. }
  71.  
  72. if($new_ls > 0)
  73. {
  74. echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\"><img src=\"/themes/2011/0.gif\"align=\"top\"alt=\"\" title=\"Новые сообщения\"><font color=\"blue\">+$new_ls</font></a>";
  75. }
  76.  
  77. else
  78. {
  79. echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\"><img src=\"/themes/2011/0.gif\"align=\"top\"alt=\"\" title=\"Почта\"></a>";
  80. }
  81. if($pol == "1")
  82. {
  83. if($status == '3')
  84. {
  85. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/mod_m.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
  86. }
  87. elseif($status == '2')
  88. {
  89. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/gmod_m.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
  90. }
  91. elseif($status == '1')
  92. {
  93. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/admin_m.gif\"alt=\"\" title=\"Админка\"/></a><br />";
  94. }
  95. }
  96. elseif($pol == "0")
  97. {
  98. if($status == '3')
  99. {
  100. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/mod_w.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
  101. }
  102. elseif($status == '2')
  103. {
  104. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/gmod_w.gif\"alt=\"\" title=\"Модерка\"/></a><br />";
  105. }
  106. elseif($status == '1')
  107. {
  108. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\"><img src=\"/images/st/admin_w.gif\"alt=\"\" title=\"Админка\"/></a><br />";
  109. }
  110. }
  111. }
  112.  
  113. if($icon_text == "0")
  114. {
  115. echo "<a href=\"$dob_url/index.php?".session_name()."=".session_id()."\">Дом</a> | ";
  116.  
  117. echo"<a href=\"$dob_url/modules/kabinet/index.php?".session_name()."=".session_id()."\">Кабинет</a>";
  118.  
  119.  
  120. if($new_ls > 0)
  121. {
  122. echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\">Почта <font color=\"blue\">+$new_ls</font></a>";
  123. }
  124.  
  125. else
  126. {
  127. echo " | <a href=\"$dob_url/modules/kabinet/inbox.php?".session_name()."=".session_id()."\" class=\"aerr\">Почта</a>";
  128. }
  129.  
  130. if($status == '3')
  131. {
  132. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Модерка</a><br />";
  133. }
  134. elseif($status == '2')
  135. {
  136. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Модерка</a><br />";
  137. }
  138. elseif($status == '1')
  139. {
  140. echo" | <a href=\"$dob_url/modules/admin/index.php?".session_name()."=".session_id()."\">Админка</a><br />";
  141. }
  142. }
  143.  
  144. }
  145. else
  146. {
  147. echo '<a href="'.$home.'/modules/kabinet/reg.php">Регистрация</a> | <a href="'.$home.'/modules/kabinet/index.php">Вход</a><br/>';
  148. }
  149. echo '</div>';
  150.  
  151. function re_icon($re_icon)
  152. {
  153. if(!strstr($_SERVER['SCRIPT_NAME'], 'modules/forum') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/zagruz') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/book') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/admin') && !strstr($_SERVER['SCRIPT_NAME'], 'modules/kabinet/notepad'))
  154. {
  155. $re_icon = str_replace ('&#187;','&#187;',$re_icon);
  156. $re_icon = str_replace ('»','&#187;',$re_icon);
  157. }
  158. return $re_icon;
  159. }
  160.  
  161. ob_start(re_icon);
  162.  
  163. ####################
  164. $file_all_top = file_get_contents($dob_url.'/data/reklama_all_top.txt');
  165. if(!empty($file_all_top))
  166. {
  167. echo'<p class="adv"><img src="/images/st/rekl.gif"align="right"/><br /> '.$file_all_top.'</p>';
  168. }
  169. ####################
  170. list($msec,$sec)=explode(chr(32),microtime());
  171. $headtime=$sec+$msec;
  172. ?>