mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- moved shared setup functions from FileGen to new CLISetup
- removed web-setup - new CLI parameters --account : create initial account(s) --siteconfig : edit php/aowow config values --dbconfig : set up db connection --sql : create db content from world/dbc-tables --firstrun : [NYI] step by step initial setup - some fixes by the wayside * display required arena bracket for extendedCost * achievement chains are searchable again * category trees for factions should now be correct * trainer tab on spell detail page reapeared * userMenu item 'Settings' no longer breaks the page * display abilities of shapeshift in tab on spell detail page * corrected reading ?_sourcestrings for titles * fixed error on race detail page * added simple descriptions to skill detail page * fixed tab "reward from" (achievement) on title detail page * fixed alphabetical order of some filter-dropdowns * fixed skill colors for spells * fixed power display for rune-based spells, that also cost mana * added more information to zones * also check mail_loot_template for achivements * fixed bug, where loot_template-ids would be reused for multiple templates * display sourcemore for pvp-sources
This commit is contained in:
22
index.php
22
index.php
@@ -28,14 +28,18 @@ if ($error)
|
||||
require_once 'includes/kernel.php';
|
||||
|
||||
|
||||
if (CLI || !file_exists('config/config.php'))
|
||||
if (CLI)
|
||||
{
|
||||
$cwDir = /*$_SERVER['DOCUMENT_ROOT']; //*/getcwd();
|
||||
require 'setup/setup.php';
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
// maybe add additional setup checks?
|
||||
if (!DB::isConnectable(DB_AOWOW) || !DB::isConnectable(DB_WORLD))
|
||||
(new GenericPage($pageCall))->maintenance();
|
||||
|
||||
|
||||
$altClass = '';
|
||||
switch ($pageCall)
|
||||
{
|
||||
@@ -142,20 +146,6 @@ switch ($pageCall)
|
||||
die((string)$_);
|
||||
}
|
||||
break;
|
||||
/* setup */
|
||||
case 'build':
|
||||
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
{
|
||||
define('TMP_BUILD', 1); // todo (med): needs better solution
|
||||
require 'setup/setup.php';
|
||||
break;
|
||||
}
|
||||
case 'sql':
|
||||
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
{
|
||||
require 'setup/tools/database/_'.$pageParam.'.php';
|
||||
break;
|
||||
}
|
||||
default: // unk parameter given -> ErrorPage
|
||||
if (isset($_GET['power']))
|
||||
die('$WowheadPower.register(0, '.User::$localeId.', {})');
|
||||
|
||||
Reference in New Issue
Block a user