-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bbdoc
committed
Dec 4, 2020
1 parent
b2f543e
commit be49189
Showing
17 changed files
with
1,510 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>POracle Configurator</title> | ||
<link rel="icon" type="image/x-icon" href="favicon.png"/> | ||
<link rel="stylesheet" type="text/css" href="style.css?v=<?=time();?>"> | ||
<link rel="stylesheet" type="text/css" href="add_style.css?v=<?=time();?>"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css"> | ||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script> | ||
</head> | ||
<body style="background-color:#FFFFFF; color: grey;"> | ||
<br> | ||
|
||
<?php | ||
|
||
include "./config.php"; | ||
include "./db_connect.php"; | ||
|
||
echo "<center>"; | ||
echo "<p><b><font color='darkblue' size=4>Welcome ".$_SESSION['username']."</font></b></p><br>"; | ||
echo "<font color='darkred'><b>ADD MONSTERS TO YOUR ALARMS</font></b><br><br>"; | ||
echo "<form action='./form_action.php' method='POST'>"; | ||
echo "<p>Set Parameters you want to use for those new alarms</p><br>"; | ||
|
||
echo " | ||
<table width=90% style='max-width: 500px;'> | ||
<tr><td> | ||
<label for='fname'>Distance:</label> | ||
</td><td> | ||
<input type='number' id='distance' name='distance' value='0' style='width:7em'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>IV</label> | ||
</td><td> | ||
<label for='fname'>Min</label> | ||
<input type='number' id='min_iv' name='min_iv' size=1 value='-1' min='-1' max='100'> | ||
<label for='fname'>Max</label> | ||
<input type='number' id='max_iv' name='max_iv' size=1 value='100' min='-1' max='100'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>CP</label> | ||
</td><td> | ||
<label for='fname'>Min</label> | ||
<input type='number' id='min_cp' name='min_cp' size=1 value='0' min='0' max='9000'> | ||
<label for='fname'>Max</label> | ||
<input type='number' id='max_cp' name='max_cp' size=1 value='9000' min='0' max='9000'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>Level</label> | ||
</td><td> | ||
<label for='fname'>Min</label> | ||
<input type='number' id='min_level' name='min_level' size=1 value='0' min='0' max='50' > | ||
<label for='fname'>Max</label> | ||
<input type='number' id='max_level' name='max_level' size=1 value='40' min='0' max='50'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>Weight</label> | ||
</td><td> | ||
<label for='fname'>Min</label> | ||
<input type='number' id='min_weight' name='min_weight' size=2 value='0' min='0' max='9000000'> | ||
<label for='fname'>Max</label> | ||
<input type='number' id='max_weight' name='max_weight' size=4 value='9000000' style='width:5em' min='0' max='9000000'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>Stats</label> | ||
</td><td> | ||
<label for='fname'>Min</label> | ||
<label for='fname'>Atk</label> | ||
<input type='number' id='atk' name='atk' size=1 value='0' style='width:2em' min='0' max='15'> | ||
<label for='fname'>Def</label> | ||
<input type='number' id='def' name='def' size=1 value='0' style='width:2em' min='0' max='15'> | ||
<label for='fname'>Sta</label> | ||
<input type='number' id='sta' name='sta' size=1 value='0' style='width:2em' min='0' max='15'><br> | ||
<label for='fname'>Max</label> | ||
<label for='fname'>Atk</label> | ||
<input type='number' id='max_atk' name='max_atk' size=1 value='15' style='width:2em' min='0' max='15'> | ||
<label for='fname'>Def</label> | ||
<input type='number' id='max_def' name='max_def' size=1 value='15' style='width:2em' min='0' max='15'> | ||
<label for='fname'>Sta</label> | ||
<input type='number' id='max_sta' name='max_sta' size=1 value='15' style='width:2em' min='0' max='15'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>PvP Great</label> | ||
</td><td> | ||
<label for='fname'>Rank</label> | ||
<input type='number' id=great_league_ranking'' name='great_league_ranking' size=1 value='4096' min='0' max='4096'> | ||
<label for='fname'>CP</label> | ||
<input type='number' id='great_league_ranking_min_cp' name='great_league_ranking_min_cp' size=1 value='0' min='0' max='4096'><br> | ||
</td></tr> | ||
<tr><td> | ||
<label for='fname'>PvP Ultra</label> | ||
</td><td> | ||
<label for='fname'>Rank</label> | ||
<input type='number' id=ultra_league_ranking'' name='ultra_league_ranking' size=1 value='4096' min='0' max='4096'> | ||
<label for='fname'>CP</label> | ||
<input type='number' id='ultra_league_ranking_min_cp' name='ultra_league_ranking_min_cp' size=1 value='0' min='0' max='4096'><br> | ||
</td></tr> | ||
</table> | ||
<br> | ||
"; | ||
|
||
echo "Select the monsters you want to add to your alarms"; | ||
|
||
echo "<ul>"; | ||
|
||
|
||
$sql = "SELECT * from seq_1_to_$max_pokemon WHERE seq not in (select pokemon_id FROM monsters WHERE id = '".$_SESSION['id']."' ORDER BY pokemon_id)"; | ||
$result = $conn->query($sql); | ||
|
||
while($row = $result->fetch_assoc()) { | ||
|
||
$i=$row['seq']; | ||
echo "<li><input type='checkbox' name='mon_$i' id='mon_$i' />"; | ||
echo "<label for='mon_$i'><img src='$imgUrl/pokemon_icon_".str_pad($i, 3, "0", STR_PAD_LEFT)."_00.png' />"; | ||
echo "<br>"; | ||
echo "<font size=2>".str_pad($i, 3, "0", STR_PAD_LEFT)."</font></label>"; | ||
echo "</li>"; | ||
|
||
} | ||
|
||
echo "</ul>"; | ||
|
||
echo "<input type='submit' name='add_mon' value='Submit' class='button_update' style='width:150px;'>"; | ||
|
||
echo "</form>"; | ||
|
||
echo "<a href='$redirect_url'><button class='button_other' style='width:150px;'>Cancel</button></a>"; | ||
|
||
echo "</center>"; | ||
echo "<br><br>"; | ||
|
||
?> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>POracle Configurator</title> | ||
<link rel="icon" type="image/x-icon" href="favicon.png"/> | ||
<link rel="stylesheet" type="text/css" href="style.css?v=<?=time();?>"> | ||
<link rel="stylesheet" type="text/css" href="add_style.css?v=<?=time();?>"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css"> | ||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script> | ||
</head> | ||
<body style="background-color:#FFFFFF; color: grey;"> | ||
<br> | ||
|
||
<?php | ||
|
||
include "./config.php"; | ||
include "./db_connect.php"; | ||
|
||
echo "<center>"; | ||
echo "<p><b><font color='darkblue' size=4>Welcome ".$_SESSION['username']."</font></b></p><br>"; | ||
echo "<font color='darkred'><b>ADD MONSTERS TO YOUR ALARMS</font></b><br><br>"; | ||
echo "<form action='./form_action.php' method='POST'>"; | ||
echo "<p>Set Parameters you want to use for those new alarms</p><br>"; | ||
|
||
echo " | ||
<table width=90% style='max-width: 500px;'> | ||
<tr><td> | ||
<label for='fname'>Distance:</label> | ||
</td><td> | ||
<input type='number' id='distance' name='distance' value='0' style='width:3em'><br> | ||
</td></tr> | ||
</table> | ||
<br> | ||
"; | ||
|
||
echo "Select Egg Levels you want to add to your alarms"; | ||
|
||
echo "<ul>"; | ||
|
||
$eggs = explode(',', "1,2,3,4,5,6"); | ||
foreach ($eggs as &$egg) { | ||
echo "<li><input type='checkbox' name='egg_$egg' id='egg_$egg' />"; | ||
echo "<label for='egg_$egg'><img src='$imgUrl/egg".$egg.".png' />"; | ||
echo "<br>"; | ||
echo "<font size=2>Eggs<br>Level ".$egg."</font></label>"; | ||
echo "</li>"; | ||
} | ||
|
||
echo "</ul>"; | ||
|
||
echo "Select Raid Levels you want to add to your alarms"; | ||
|
||
echo "<ul>"; | ||
|
||
$raids = explode(',', "1,2,3,4,5,6"); | ||
foreach ($raids as &$raid) { | ||
echo "<li><input type='checkbox' name='raid_$raid' id='raid_$raid' />"; | ||
echo "<label for='raid_$raid'><img src='$imgUrl/egg".$raid.".png' />"; | ||
echo "<br>"; | ||
echo "<font size=2>Raids<br>Level ".$raid."</font></label>"; | ||
echo "</li>"; | ||
} | ||
|
||
|
||
echo "</ul>"; | ||
|
||
echo "Select the Raid Bosses you want to add to your alarms"; | ||
|
||
echo "<ul>"; | ||
|
||
$bosses = explode(',', $raid_bosses); | ||
foreach ($bosses as &$boss) { | ||
echo "<li><input type='checkbox' name='mon_$boss' id='mon_$boss' />"; | ||
echo "<label for='mon_$boss'><img src='$imgUrl/pokemon_icon_".str_pad($boss, 3, "0", STR_PAD_LEFT)."_00.png' />"; | ||
echo "<br>"; | ||
echo "<font size=2>".str_pad($boss, 3, "0", STR_PAD_LEFT)."</font></label>"; | ||
echo "</li>"; | ||
} | ||
|
||
echo "</ul>"; | ||
|
||
echo "<input type='submit' name='add_raid' value='Submit' class='button_update' style='width:150px;'>"; | ||
|
||
echo "</form>"; | ||
|
||
echo "<a href='$redirect_url'><button class='button_other' style='width:150px;'>Cancel</button></a>"; | ||
|
||
echo "</center>"; | ||
echo "<br><br>"; | ||
|
||
?> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
|
||
/* Style for CheckBoxes Multi Selections */ | ||
|
||
ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
li { | ||
display: inline-block; | ||
} | ||
|
||
input[type="checkbox"][id^="mon"], input[type="checkbox"][id^="egg"], input[type="checkbox"][id^="raid"], input[type="checkbox"][id^="area"] { | ||
display: none; | ||
} | ||
|
||
label[for^="mon"], label[for^="egg"], label[for^="raid"], label[for^="area"] { | ||
border: 1px solid grey; | ||
background-color: lightgrey; | ||
border-radius: 5px; | ||
padding: 5px; | ||
display: block; | ||
position: relative; | ||
margin: 5px; | ||
cursor: pointer; | ||
-webkit-touch-callout: none; | ||
-webkit-user-select: none; | ||
-khtml-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
label::before { | ||
background-color: white; | ||
color: white; | ||
content: " "; | ||
display: block; | ||
border-radius: 50%; | ||
border: 1px solid grey; | ||
position: absolute; | ||
top: -5px; | ||
left: -5px; | ||
width: 25px; | ||
height: 25px; | ||
text-align: center; | ||
line-height: 28px; | ||
transition-duration: 0.4s; | ||
transform: scale(0); | ||
} | ||
|
||
label img { | ||
height: 50px; | ||
width: 50px; | ||
transition-duration: 0.2s; | ||
transform-origin: 50% 50%; | ||
} | ||
|
||
:checked+label { | ||
border-color: #ddd; | ||
} | ||
|
||
:checked+label::before { | ||
content: "✓"; | ||
background-color: grey; | ||
transform: scale(1); | ||
} | ||
|
||
:checked+label img { | ||
transform: scale(0.9); | ||
box-shadow: 0 0 5px #333; | ||
z-index: -1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
<?php | ||
|
||
// DB configuration | ||
// Note that you can set multiple values in dbname if using multiple DBs | ||
// $dbname should then be a comma separated list of values | ||
// Users should register to only one DB or tool will redirect them randomly | ||
|
||
$dbhost = "127.0.0.1"; | ||
$dbname = ""; | ||
$dbuser = ""; | ||
$dbpass = ""; | ||
$dbport = "3306"; | ||
|
||
// Discord Configuration | ||
|
||
$redirect_url=""; | ||
$discordBotClientId = ""; | ||
$discordBotClientSecret = ""; | ||
|
||
// Image Repository | ||
$imgUrl="https://raw.githubusercontent.com/whitewillem/PogoAssets/resized/no_border/"; | ||
|
||
// Provide a valid URL to your Tile Server for Displaying a location map | ||
$mapURL="http://mytileserver.com:9000/staticmap/pokemon?pokemon_id=150&form00&latitude=#LAT#&longitude=#LON#"; | ||
|
||
// Other Configuration Items | ||
|
||
$max_pokemon="721"; | ||
$raid_bosses="6,68,94,105,297,303,306,460,530,532,599,646,661,667,677"; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
session_start(); | ||
$conn = new mysqli($dbhost, $dbuser, $dbpass, $_SESSION['dbname']); | ||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.