define('WEBMASTER', "you@some-hoster.tld.invalid");
// CFG: INSTALLED
-define('mxchange_installed', true);
+define('mxchange_installed', false);
// CFG: ADMIN-SETUP
-define('admin_registered', true);
+define('admin_registered', false);
// CFG: FRAMESET
define('frameset_active', false);
// CFG: MYSQL-HOST
'host' => "localhost",
// CFG: MYSQL-DBASE
- 'dbase' => "mxchange",
+ 'dbase' => "db",
// CFG: MYSQL-LOGIN
- 'login' => "root",
+ 'login' => "user",
// CFG: MYSQL-PASSWORD
- 'password' => "ab57dk90",
+ 'password' => "pass",
);
// CFG: MYSQL-PREIFX
// CFG: SMTP-HOSTNAME
define('SMTP_HOSTNAME', "");
// CFG: SMTP-USER
-define('SMTP_USER', "");
+define('SMTP_USER' , "");
// CFG: SMTP-PASSWORD
define('SMTP_PASSWORD', "");
}
//
-function TRANSLATE_YESNO($yn) {
+function TRANSLATE_YESNO ($yn) {
// Default
- $yn = "??? (".$yn.")";
+ $translated = "??? (".$yn.")";
switch ($yn) {
- case "Y": $yn = getMessage('YES'); break;
- case "N": $yn = getMessage('NO'); break;
+ case "Y": $translated = getMessage('YES'); break;
+ case "N": $translated = getMessage('NO'); break;
default:
// Log unknown value
DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Unknown value %s. Expected Y/N!", $yn));
}
// Return it
- return $yn;
+ return $translated;
}
//
if ($MODE == "admin") {
// Action value for admin area
- if (!empty($GLOBALS['action'])) {
+ if (REQUEST_ISSET_GET('action')) {
+ // Use from request!
+ return REQUEST_GET('action');
+ } elseif (!empty($GLOBALS['action'])) {
// Get it directly from URL
return $GLOBALS['action'];
} elseif (($wht == "overview") || (empty($GLOBALS['what']))) {
return $CFG_DUMMY;
}
// Gets the matching what name from module
-function GET_WHAT($modCheck) {
+function GET_WHAT ($modCheck) {
+ // Is the request element set?
+ if (REQUEST_ISSET_GET('what')) {
+ // Then return this!
+ return REQUEST_GET('what');
+ } // END - if
+
$wht = "";
//* DEBUG: */ echo __LINE__."!".$modCheck."!<br />\n";
switch ($modCheck)
// Additionally admin?
if (IS_ADMIN()) {
// Add it
- $username .= " ({!_ADMIN_SHORT!})";
+ $username .= " ({--_ADMIN_SHORT--})";
} // END - if
} else {
// Hmmm, logged in and no valid userid?
- $username = "<em>{!_UNKNOWN!}</em>";
+ $username = "<em>{--_UNKNOWN--}</em>";
// Destroy session
destroy_user_session();