semaphor.php 310 B

12345678910111213141516171819
  1. <?php
  2. //require_once 'init.php';
  3. require_once 'auth.php';
  4. if ( file_exists("templates/sem") ) {
  5. unlink("templates/sem");
  6. } else {
  7. $handle = fopen("templates/sem","w");
  8. fwrite($handle, $_SESSION["userid"]);
  9. fclose($handle);
  10. }
  11. ?>
  12. <html>
  13. <head>
  14. </head>
  15. <body onload="window.close();"></body>
  16. </html>