Просмотр файла includes/web/index.php

Размер файла: 605B
  1. <?php
  2. $webpath=$rootpath."web/";
  3. $tmp=explode('-',$query0);
  4. $query0=$tmp[0];
  5. $mpage=$tmp[1];
  6. if ($mpage!='') $dmpage='-';
  7. $tmp=explode('-',$query2);
  8. $query2=$tmp[0];
  9. $apage=$tmp[1];
  10. if ($apage!='') $dapage='-';
  11. Header("Content-type: text/html; charset=windows-1251");
  12. Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  13. Header("Cache-Control: no-cache, must-relative");
  14. if ($user!='')
  15. {
  16. //авторизованный чел
  17. exit();
  18. }
  19. elseif ($query0=='faq')
  20. {
  21. include($webpath.'faq.php');
  22. exit();
  23. }
  24. else
  25. {
  26. // главная страница
  27. include($webpath.'site.inc.php');
  28. exit;
  29. }
  30. ?>