Changeset 546


Ignore:
Timestamp:
Mar 25, 2009, 10:34:03 PM (16 years ago)
Author:
barny
Message:

Takže opravil jsem register system , a pridelal grafiku k register.php.
Dále jsem do menu přidal Nahlaš Bug

Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r532 r546  
    4141  echo "<a href=\"?page=gmteam\">GM Tým</a><br />";
    4242  echo "<a href=\"?page=acc\">Správa účtu</a><br />";
     43    echo "<a href=\"/bug_tracker\">Nahlaš Bug</a><br />";
    4344  //echo "<a href=\"http://wow.zdechov.net/databaze/\" target=\"_blank\">Databáze</a><br />";
    4445  echo "<a href=\"?page=download\">Stahování</a><br />";
  • trunk/pages/register.php

    r545 r546  
    11<?
    2    include('../inc/db.php');
     2   include('./inc/db.php');
    33?>
    44
    5 <table align="center" width="460">
    6           <tr><th align="center"><h1>&nbsp;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>
    99         
    1010<table align="center" width="230">
     
    2121<tr><td></td><td><input type="submit" Value="Registrovat"></td></tr>
    2222</form>
     23<style type="text/css">
     24h10 {color: red; font-style: arial}
     25h11 {color: blue; font-style: arial}
     26</style>
     27<tr><td colspan="2" align="center"><strong>
     28<?php
     29mysql_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`"));
     31if($p >= 15000) {
     32echo "<h10>Registrace jsou uzavřeny</h10>";
     33echo "<h11>Limit vyčerpán</h11>";
     34} else {
    2335
    24 <tr><td colspan="2" align="center"><strong>
    25 
    26 <?php
    2736$account = addslashes($_POST['account']);
    2837$password1 = addslashes($_POST['heslo1']);
     
    3847}
    3948
     49echo "<br>";
     50
    4051if ($account == "" || $password1 == "" || $password2 == "" || $email="" || $expansion=""):
    41 echo "Je nutno vyplnit všechny údaje";
     52echo "<h10>Je nutno vyplnit všechny údaje</h10>";
     53echo "<p>";
     54echo "<h11>Registrace otevřeny</h11>";
    4255  else:
    4356 
     
    7487      endif;
    7588
    76 
     89}
    7790?>
    7891</strong></table></td></tr></table>
Note: See TracChangeset for help on using the changeset viewer.