git.cweiske.de
/
stouyapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"Push to my OUYA" support
[stouyapi.git]
/
bin
/
build-html.php
diff --git
a/bin/build-html.php
b/bin/build-html.php
index b4561e696c8305919eaca2b16d2fd9509d7f0ea7..f7f915438d8bcff9b1fdc7b9a2c550277d2718f6 100755
(executable)
--- a/
bin/build-html.php
+++ b/
bin/build-html.php
@@
-7,6
+7,13
@@
*/
require_once __DIR__ . '/functions.php';
*/
require_once __DIR__ . '/functions.php';
+//default configuration values
+$GLOBALS['pushToMyOuyaUrl'] = '../push-to-my-ouya.php';
+$cfgFile = __DIR__ . '/../config.php';
+if (file_exists($cfgFile)) {
+ include $cfgFile;
+}
+
$wwwDir = __DIR__ . '/../www/';
$discoverDir = __DIR__ . '/../www/api/v1/discover-data/';
$wwwDiscoverDir = $wwwDir . 'discover/';
$wwwDir = __DIR__ . '/../www/';
$discoverDir = __DIR__ . '/../www/api/v1/discover-data/';
$wwwDiscoverDir = $wwwDir . 'discover/';
@@
-111,6
+118,8
@@
function renderGameFile($gameDataFile)
)
);
$apkDownloadUrl = $downloadJson->app->downloadLink;
)
);
$apkDownloadUrl = $downloadJson->app->downloadLink;
+ $pushUrl = $GLOBALS['pushToMyOuyaUrl']
+ . '?game=' . urlencode($json->apk->package);
$navLinks = [];
foreach ($json->genres as $genreTitle) {
$navLinks = [];
foreach ($json->genres as $genreTitle) {