18 lines
842 B
PHP
18 lines
842 B
PHP
|
<?php
|
|||
|
if(!defined('GAME')) { die(); }
|
|||
|
|
|||
|
if(isset($file) && $file[0] == 'dungeons/trap_portal.php') {
|
|||
|
echo '<input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="location =\''.$_SERVER['REQUEST_URI'].'\';" /> <3B><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. ';
|
|||
|
$actions = array();
|
|||
|
$action = explode('|', $file[1]);
|
|||
|
foreach($action as $value) {
|
|||
|
$temp = explode(':', $value);
|
|||
|
$actions[$temp[0]] = $temp[1];
|
|||
|
}
|
|||
|
if(isset($actions['x'], $actions['y'])) {
|
|||
|
if(!isset($actions['s'])) { $actions['s'] = 1; }
|
|||
|
if(isset($actions['save_port'])) { $save = ", `res_x` = $actions[x], `res_y` = $actions[y]"; } else { $save = ""; }
|
|||
|
mysql_query('UPDATE `stats` SET `x` = "'.$actions['x'].'", `y` = "'.$actions['y'].'", `s` = "'.$actions['s'].'" '.$save.' WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
header('location: main.php');
|
|||
|
}
|
|||
|
}
|