-
Notifications
You must be signed in to change notification settings - Fork 1
/
player_saved_formations.php
34 lines (32 loc) · 1.63 KB
/
player_saved_formations.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
include_once "navigation.php";
$game_defines = new GameDefines();
$game_json = $game_defines->game_json;
if (!empty($_POST['user_id']) && !empty($_POST['user_hash']) || !empty($_POST['raw_user_data'])) {
$user_info = new UserDefines('', $_POST['user_id'], $_POST['user_hash'], $_POST['raw_user_data']);
$saved_form_html = generate_saved_forms($user_info->formation_saves['campaigns'], $game_defines);
$saved_form_html .= generate_saved_forms($user_info->formation_saves['challenges'], $game_defines);
}
if (!empty($_POST['show_taskmaster_location'])) {
$checked = 'checked';
} else {
$checked = 'not-checked';
}
?>
<form action="<?php $_SERVER['PHP_SELF'];?>" method="post">
<div style="float: left;padding-right: 5px; clear: left;">
User Id: <input type="text" name="user_id" size="1" value="<?php echo (isset($_POST['user_id']) ? htmlspecialchars($_POST['user_id']) : ''); ?>"><br>
User Hash: <input type="password" name="user_hash" value="<?php echo (isset($_POST['user_hash']) ? htmlspecialchars($_POST['user_hash']) : ''); ?>"><br>
<div>Fill out the above two, or the one below, not both</div>
Raw User Data: <input autocomplete="off" type="text" name="raw_user_data" value="<?php echo (isset($_POST['raw_user_data']) ? htmlspecialchars($_POST['raw_user_data']) : ''); ?>"><br>
Show Taskmaster Location?: <input type="checkbox" name="show_taskmaster_location" value="1" <?php echo $checked;?>><br>
</div>
<input style="clear:both; float: left;" type="submit">
</form>
<a style="float: left; clear: left;" href="#Playing it Old School">Jump to Dungeon Forms</a>
<?php
if (!empty($saved_form_html)) {
echo $saved_form_html;
}
?>
</html>