Changeset 11 for registrace
- Timestamp:
- Aug 11, 2007, 12:04:22 AM (17 years ago)
- Location:
- registrace
- Files:
-
- 1 added
- 2 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 ?> -
registrace/index.php
r5 r11 1 <? 1 <?php 2 2 include('../global.php'); 3 3 ShowHeader(); … … 13 13 <br><br> 14 14 15 Poèet povolených registrací na dnení den: <? 16 include('LockRegistration/script.php'); 17 PovoleneRegistrace(); 15 Poèet povolených registrací na dnení den: 16 <?php 17 //include('LockRegistration/script.php'); 18 //PovolenychRegistraci(); 19 echo('Neomezeno'); 18 20 ?> 19 21 <br /> 20 Stav Registrací: <? 21 StafRegistraci(); 22 Stav Registrací: 23 <?php 24 //StafRegistraci(); 22 25 echo('</p>'); 23 AdresaRegistraceRegistrace(); 26 echo('Registrovat se mùete: <a href="'.$BaseUrl.'minimanager/register.php">zde</a>'); 27 //AdresaRegistraceRegistrace(); 24 28 ?> 25 29 <P> … … 33 37 <br> 34 38 <br />Statitiku najdete <a href="http://game-server.zdechov.net/statistic/?Measure=8">zde</a> 35 <br>Mùete taky pøispìt na server aby se mohl zlepit. Stav úètu mùete sledovat v sekci <A href=" /donate.php" target="_parent">Donate</A>39 <br>Mùete taky pøispìt na server aby se mohl zlepit. Stav úètu mùete sledovat v sekci <A href="<?php echo($BaseUrl); ?>donate.php" target="_parent">Donate</A> 36 40 <br> 37 41 </P>
Note:
See TracChangeset
for help on using the changeset viewer.