Changeset 11 for registrace/LockRegistration/script.php
- Timestamp:
- Aug 11, 2007, 12:04:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
registrace/LockRegistration/script.php
r5 r11 1 <? 1 <?php 2 require_once('../../config.php'); 3 4 $RegFile = 'NumberRegistration.txt'; 5 2 6 function StafRegistraci() 3 7 { 4 $NumberRegistration = 0; 5 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 6 $NumberRegistration = fread($File,5); 7 fclose($File); 8 global $RegFile, $BaseUrl; 9 $NumberRegistration = 0; 10 $File = fopen($RegFile, 'r'); 11 $NumberRegistration = fread($File, 5); 12 fclose($File); 8 13 9 if ($NumberRegistration == 'close')10 echo('<a href="/registrace/">Vyèerpáno</a>');11 else12 echo('Zbývá registrací: '.$NumberRegistration);14 if ($NumberRegistration == 'close') 15 echo('<a href="'.$BaseUrl.'registrace/">Vyèerpáno</a>'); 16 else 17 echo('Zbývá registrací: '.$NumberRegistration); 13 18 } 14 19 15 20 function AdresaRegistrace() 16 21 { 17 $NumberRegistration = 0; 18 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 19 $NumberRegistration = fread($File,5); 20 fclose($File); 22 global $RegFile, $BaseUrl; 23 $NumberRegistration = 0; 24 $File = fopen($RegFile, 'r'); 25 $NumberRegistration = fread($File,5); 26 fclose($File); 21 27 22 if ($NumberRegistration != 'close') 23 echo('<a href="/registrace/">zde</a>'); 28 if ($NumberRegistration != 'close') echo('<a href="'.$BaseUrl.'registrace/">zde</a>'); 24 29 } 25 30 26 31 function AdresaRegistraceRegistrace() 27 32 { 28 $NumberRegistration = 0; 29 $File = fopen('c:\www\registrace\LockRegistration\NumberRegistration','r'); 30 $NumberRegistration = fread($File,5); 31 fclose($File); 33 global $RegFile, $BaseUrl; 34 $NumberRegistration = 0; 35 $File = fopen($RegFile, 'r'); 36 $NumberRegistration = fread($File,5); 37 fclose($File); 32 38 33 if ($NumberRegistration != 'close')39 if ($NumberRegistration != 'close') 34 40 // include('c:\www\registrace\LockRegistration\FormularRegistrace.php'); 35 echo('Registrovat se mùete: <a href="http://wow.zdechov.net/minimanager/register.php">zde</a>');41 echo('Registrovat se mùete: <a href="'.$BaseUrl.'minimanager/register.php">zde</a>'); 36 42 } 37 43 38 44 function PovoleneRegistrace() 39 45 { 40 $NumberRegistration = 0; 41 $File = fopen('c:\www\registrace\LockRegistration\UnlockRegistration','r'); 42 $NumberRegistration = fread($File,5); 43 fclose($File); 44 echo($NumberRegistration); 46 global $RegFile; 47 $NumberRegistration = 0; 48 $File = fopen($RegFile, 'r'); 49 $NumberRegistration = fread($File, 5); 50 fclose($File); 51 echo($NumberRegistration); 45 52 } 46 53 ?>
Note:
See TracChangeset
for help on using the changeset viewer.