Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change generation so that randomness is decided on the front end. The…
… back end determines all eligible Pokemon and can be cached.
- Loading branch information
Showing
10 changed files
with
191 additions
and
156 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,5 @@ | |||
/config.php | /config.php | ||
/analytics.js | /config.js | ||
/error_log | /error_log | ||
|
|
||
.ftpquota | .ftpquota | ||
|
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
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
<?php | |||
// This page reads in $_GET URL parameters, validates them, determines which | |||
// Pokemon fulfill the parameters, and outputs the result in JSON. | |||
|
|||
require_once 'config.php'; | |||
require_once 'utils.php'; | |||
|
|||
$params = validate_parameters($_GET); | |||
echo json_encode($params->get_list()); |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// This method is used for analytics. Leave its body blank otherwise. | |||
function logToAnalytics(url) { | |||
if (typeof url === "undefined") { | |||
// Log the current page | |||
} else { | |||
// Log the URL provided | |||
} | |||
} | |||
|
|||
// These directories should contain sprites named by PokéDex ID | |||
// without leading zeros (e.g. "25.gif"). | |||
define('PATH_TO_ANIMATED_SPRITES', '/sprites/animated/'); | |||
define('PATH_TO_SHINY_ANIMATED_SPRITES', '/sprites/animated/shiny/'); | |||
define('ANIMATED_SPRITE_EXTENTION', '.gif'); |
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
Oops, something went wrong.