Skip to content

Commit

Permalink
Homepage: More minor fixes
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Sep 2, 2017
1 parent 9da9700 commit 8d8541d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 1 addition & 2 deletions web2/include/config.inc.php
Expand Up @@ -12,7 +12,6 @@
define('DENG_MANUAL_URL', 'https://manual.dengine.net');
define('DENG_BLOG_URL', 'http://blog.dengine.net');

//define('DENG_LIB_DIR', '/home/skyjake/public_html/lib');
define('DENG_LIB_DIR', '/home/skyjake/public_html/web2/lib');
define('DENG_LIB_DIR', '/home/skyjake/public_html/lib');
define('DENG_CACHE_PATH', '/home/skyjake/public_html/cache/api');
define('DENG_CACHE_MAX_AGE', 14*60);
22 changes: 12 additions & 10 deletions web2/latestbuild.php
Expand Up @@ -2,15 +2,17 @@
// Backwards compatibility for older versions of Doomsday
// TODO: read from sitedata.json

require_once('include/config.inc.php');
require_once(DENG_API_DIR.'/include/builds.inc.php');
#require_once('include/config.inc.php');
#require_once(DENG_API_DIR.'/include/builds.inc.php');

$platform = $_GET['platform'];
if (key_exists('unstable', $_GET)) {
$type = 'unstable';
}
else {
$type = 'stable';
}
// $platform = $_GET['platform'];
// if (key_exists('unstable', $_GET)) {
// $type = 'unstable';
// }
// else {
// $type = 'stable';
// }
//
// generate_platform_latest_json($platform, $type);

generate_platform_latest_json($platform, $type);
echo("{}\n");
2 changes: 2 additions & 0 deletions web2/recent_posts.php
@@ -1,5 +1,7 @@
<?php
require_once('include/config.inc.php');
require_once('include/template.inc.php');

setlocale(LC_ALL, 'en_US.UTF-8');
$page_title = 'Recent Blog Posts';

Expand Down

0 comments on commit 8d8541d

Please sign in to comment.