Settings.' . $nl; $out .= ' */' . $nl . $nl; $out .= '$config[\'sqlHost\'] = ' . $quote((string)install_get('sqlHost')) . ';' . $nl; $out .= '$config[\'sqlUser\'] = ' . $quote((string)install_get('sqlUser')) . ';' . $nl; $out .= '$config[\'sqlPassword\'] = ' . $quote((string)install_get('sqlPassword')) . ';' . $nl; $out .= '$config[\'sqlDatabase\'] = ' . $quote((string)install_get('sqlDatabase')) . ';' . $nl . $nl; $out .= '$config[\'ServerEngine\'] = ' . $quote((string)install_get('ServerEngine', 'TFS_10')) . ';' . $nl; $out .= '$config[\'site_title\'] = ' . $quote((string)install_get('site_title')) . ';' . $nl; $out .= '$config[\'site_url\'] = ' . $quote((string)install_get('site_url')) . ';' . $nl; $path = (string)install_get('server_path'); if ($path !== '') { $out .= '$config[\'server_path\'] = ' . $quote($path) . ';' . $nl; } $out .= $nl . '// Admin access is granted by account name.' . $nl; $out .= '$config[\'page_admin_access\'] = array(' . $nl; $out .= "\t" . $quote($admin) . ',' . $nl; $out .= ');' . $nl; return $out; } $written = false; $writeErr = ''; $contents = install_config_contents(); if ($_SERVER['REQUEST_METHOD'] === 'POST') { $target = install_config_file(); if (@file_put_contents($target, $contents) === false) { $writeErr = 'Could not write ' . $target . '. Create it by hand with the contents below.'; } else { $written = true; // The lock. Written last, so a failed write above does not lock a site // that is not actually configured. @file_put_contents(install_lock_file(), "Installed on " . date('Y-m-d H:i:s') . "\n" . "Delete this file only if you mean to run the installer again.\n"); install_reset(); } } ?>

ZnoteX is installed. config.local.php is written and the installer is locked.

Before you open the site

Vocations, starting towns and starting skills come pre-filled with generic defaults. Most servers change at least some of this before letting anyone create a character - it is much less painful to set it now than after players have already made characters.

Configure vocations & towns Admin panel Open the site

Review what will be written, then finish.

SettingValue
Database@ /
Server engine
Site name
Site URL
Administrator (account name — this is what grants panel access)
Character

Create config.local.php yourself

Put this in the ZnoteX root, next to config.php:

These go to config.local.php. Your config.php is left untouched, so a future ZnoteX update can replace it without losing anything.
Back