Changeset 132 for db/include/myacc.php
- Timestamp:
- Nov 17, 2007, 7:51:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
db/include/myacc.php
r118 r132 1 1 <?php 2 2 if (!defined('IN_CODE') OR $user['loged'] != 1 ){ exit; }; 3 4 $sql_select = $BasicWiewer->myAcc(); 3 5 4 $sql_select = $BasicWiewer->myAcc(); 6 require_once './include/position_reset.php'; 7 require_once './include/xp_reset.php'; 8 9 if( !empty($_GET['heartstone']) AND is_numeric($_GET['heartstone']) ) 10 { 11 SwitchDB(3); // nastavení databáze na web 12 $limit_sql = mysql_query("SELECT * FROM `acc_heartstone` WHERE (`acc`='".$sql_select['result']['acc']['id']."' AND `char`='".$_GET['heartstone']."') ORDER BY `date` DESC LIMIT 1"); 13 if( mysql_num_rows($limit_sql) > 0 ){ 14 $limit_sql = mysql_fetch_array($limit_sql); 15 if( date("d-m-Y", $limit_sql['date']) != date("d-m-Y", time()) ){ 16 SwitchDB(1); // nastavení databáze na mangos 17 $PosRess = new PosRess($_GET['heartstone']); 18 if( $PosRess->char_name != false ){ 19 $PosRess->GoHome(); 20 $PosRess->GoHomeDone(); 21 SwitchDB(3); // nastavení databáze na web 22 mysql_query("INSERT INTO `acc_heartstone` (`acc`,`char`,`date`,`ip`) VALUES ('".$sql_select['result']['acc']['id']."','".$_GET['heartstone']."','".time()."','".$_SERVER["REMOTE_ADDR"]."') "); 23 }; 24 }; 25 }; 26 }; 27 28 if( !empty($_GET['resetxp']) AND is_numeric($_GET['resetxp']) ) 29 { 30 SwitchDB(1); // nastavení databáze na mangos 31 $XpRess = new XpRess(4); 32 $XpRess->ShowXp(); 33 $XpRess->XpRestart(); 34 $XpRess->XpRestartDone(); 35 }; 36 37 5 38 ?> 6 39
Note:
See TracChangeset
for help on using the changeset viewer.