Changeset 430 for beta/pages/chmeil.php
- Timestamp:
- Feb 10, 2009, 5:48:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
beta/pages/chmeil.php
r428 r430 1 1 <?php 2 2 $html -> PrgStart(); 3 $user = $_POST['user']; 4 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a> 3 4 if($zmenit==1): 5 $account = $_POST['acc1']; 6 $email1 = $_POST['email1']; 7 $email2 = $_POST['email2']; 8 9 mysql_connect($db_server, $db_user, $db_pass); 10 mysql_select_db($db_realmd); 11 $email_check = mysql_num_rows(mysql_query("select id from account where username='$account' and email='$email1'")); 12 if($email_check!=0): 13 $email_update = mysql_query("update account set email='$email2' where username='$account'"); 14 if($email_update): 15 $info = "<font color=green><strong>Email byl vpořádku změněn!</strong></font>"; 16 else: 17 $info = "<font color=red><strong>Email se nepodařilo změnit!</strong></font>"; 18 endif; 19 else: 20 $info = "<font color=red><b>Zadali jste špatný stávající email!</b></font>"; 21 endif; 22 endif; 23 24 25 echo " <a href=\"?page=acc\"><- Zpět do správy účtu</a>" 26 27 if(!empty($info)): 28 echo"<b>$info</b>"; 29 endif; 30 31 echo" 32 <form method=post> 5 33 <center><h3>Změna e-mailu</h3></center> 6 34 … … 10 38 Jméno vašeho účtu : </td> 11 39 <td> 12 <input type=\"text\" name=\"acc1\" value=\"$user\"></td>40 <input type=\"text\" name=\"acc1\"></td> 13 41 </tr> 14 42 <tr> … … 26 54 <tr> 27 55 <td colspan=\"2\" align=\"right\"> 56 <input type=hidden name=zmenit value='1'> 28 57 <input type=\"submit\" value=\"Změnit\" name=\"change\"></td> 29 58 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.