Advertisement
GWibisono

install

Feb 23rd, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. <?PHP
  2. if ( !file_exists( "oz-library/config.php" ) )
  3.     {
  4.         session_start();
  5.  
  6.  
  7.         $now = gmdate('D, d M Y H:i:s') . ' GMT';
  8.         header("Expires: $now");
  9.         header("Last-Modified: $now");
  10.         header("Cache-Control: no-cache, must-revalidate");
  11.         header("Pragma: no-cache");
  12.  
  13.         if (file_exists("oz-install/index.php"))
  14.             {
  15.         $_SESSION['act']='install';
  16.                 ?><script>
  17. alert('please wait');
  18.   location.href ='oz-install';
  19. </script>
  20. <?php
  21.             }
  22.         exit;
  23.     }
  24. else {
  25.     require_once( 'oz-library/config.php' );
  26.     echo "<script language=\"Javascript\">location.href = 'oz-content/basic/';</script>\n";
  27. }
  28. ?>
  29.  
  30. <!--oz-install/index.php-->
  31. <?php
  32. session_start();
  33.  
  34. if(isset($_SESSION['act']=='install'))
  35. {
  36. //,.,,,,,,,,
  37. }else{
  38. ?><script>
  39. alert('please wait');
  40.   location.href ='../index.php';
  41. </script>
  42. <?php
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement