Skip to content

Commit

Permalink
V1.0.1 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaro2709 committed Apr 14, 2020
1 parent a3d064d commit aa39c41
Show file tree
Hide file tree
Showing 84 changed files with 424 additions and 23,043 deletions.
1 change: 1 addition & 0 deletions .htaccess
@@ -1,6 +1,7 @@
# ~
# ~ 2Moons
# ~ by Jan-Otto Kröpke 2009-2016
# ~
# ~ For the full copyright and license information, please view the LICENSE
# ~
# ~ @package 2Moons
Expand Down
1 change: 1 addition & 0 deletions cache/.htaccess
@@ -0,0 +1 @@
Deny from all
1 change: 1 addition & 0 deletions cache/sessions/.htaccess
@@ -0,0 +1 @@
Deny from all
1 change: 1 addition & 0 deletions cache/templates/.htaccess
@@ -0,0 +1 @@
Deny from all
281 changes: 0 additions & 281 deletions includes/classes/Database.class1.php

This file was deleted.

5 changes: 5 additions & 0 deletions includes/classes/cache/builder/VarsBuildCache.class.php
Expand Up @@ -39,6 +39,8 @@ function buildCache()
$reslist['missile'] = array();
$reslist['officier'] = array();
$reslist['dmfunc'] = array();

$reslist['race'] = array();

$db = Database::get();

Expand Down Expand Up @@ -160,6 +162,9 @@ function buildCache()
case 700:
$reslist['dmfunc'][] = $varsRow['elementID'];
break;
case 1500:
$reslist['race'][] = $varsRow['elementID'];
break;
}
}

Expand Down
6 changes: 4 additions & 2 deletions includes/common.php
Expand Up @@ -74,7 +74,8 @@
}

if(!file_exists('includes/config.php') || filesize('includes/config.php') === 0) {
HTTP::redirectTo('install/index.php');
//HTTP::redirectTo('install/index.php');
HTTP::redirectTo('install/index.html');
}

try {
Expand All @@ -88,7 +89,8 @@
}

if ($dbNeedsUpgrade) {
HTTP::redirectTo('install/index.php?mode=upgrade');
//HTTP::redirectTo('install/index.php?mode=upgrade');
HTTP::redirectTo('install/index.html');
}

if(defined('DATABASE_VERSION') && DATABASE_VERSION === 'OLD')
Expand Down

0 comments on commit aa39c41

Please sign in to comment.