Changeset 546 for trunk/pages/register.php
- Timestamp:
- Mar 25, 2009, 10:34:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/register.php
r545 r546 1 1 <? 2 include('. ./inc/db.php');2 include('./inc/db.php'); 3 3 ?> 4 4 5 <table align="center" width=" 460">6 <tr><th align="center">< h1> Heroes of Fantasy</h1></th></tr>7 8 <tr><td align="center"> 5 <table align="center" width="520"> 6 <tr><th align="center"><img src="./imgs/logoreg.png" alt="Registrace"></th></tr> 7 <tr><th align="center"><img src="./imgs/textreg.png" alt="Registrace"></th></tr> 8 <tr><td align="center"><br> 9 9 10 10 <table align="center" width="230"> … … 21 21 <tr><td></td><td><input type="submit" Value="Registrovat"></td></tr> 22 22 </form> 23 <style type="text/css"> 24 h10 {color: red; font-style: arial} 25 h11 {color: blue; font-style: arial} 26 </style> 27 <tr><td colspan="2" align="center"><strong> 28 <?php 29 mysql_connect($db_server, $db_user, $db_pass) or die ("Spojení nebylo uspěšné"); 30 $p = mysql_num_rows(mysql_query("SELECT * FROM `realm1_realmd`.`account`")); 31 if($p >= 15000) { 32 echo "<h10>Registrace jsou uzavřeny</h10>"; 33 echo "<h11>Limit vyčerpán</h11>"; 34 } else { 23 35 24 <tr><td colspan="2" align="center"><strong>25 26 <?php27 36 $account = addslashes($_POST['account']); 28 37 $password1 = addslashes($_POST['heslo1']); … … 38 47 } 39 48 49 echo "<br>"; 50 40 51 if ($account == "" || $password1 == "" || $password2 == "" || $email="" || $expansion=""): 41 echo "Je nutno vyplnit všechny údaje"; 52 echo "<h10>Je nutno vyplnit všechny údaje</h10>"; 53 echo "<p>"; 54 echo "<h11>Registrace otevřeny</h11>"; 42 55 else: 43 56 … … 74 87 endif; 75 88 76 89 } 77 90 ?> 78 91 </strong></table></td></tr></table>
Note:
See TracChangeset
for help on using the changeset viewer.