Cleaned up conf.php to make it more obvious what a user should change and what they shouldnt.

Removed old code that isnt used anymore.

Changed the login screen to use config variables for AIRTIME_VERSION.
This commit is contained in:
Paul Baranowski 2011-03-03 18:08:51 -05:00
parent c9c47c7d5f
commit 7b58f3563f
13 changed files with 37 additions and 1131 deletions

View file

@ -406,37 +406,5 @@ class Prefs {
}
/* ==================================================== auxiliary methods */
/**
* Test method
*
*/
function test()
{
global $CC_CONFIG;
$sessid = Alib::Login('root', $CC_CONFIG['tmpRootPass']);
$testkey = 'testKey';
$testVal = 'abcDef 0123 ěščřžýáíé ĚŠČŘŽÝÁÍÉ';
$r = savePref($sessid, $testKey, $testVal);
if (PEAR::isError($r)) {
return $r;
}
$val = loadPref($sessid, $testKey);
if ($val != $testVal) {
echo "ERROR: preference storage test failed.\n ($testVal / $val)\n";
return FALSE;
}
$r = savePref($sessid, $testKey, '');
if (PEAR::isError($r)) {
return $r;
}
$val = loadPref($sessid, $testKey);
if ($val != $testVal) {
echo "ERROR: preference storage test failed.\n ('' / '$val')\n";
return FALSE;
}
return TRUE;
}
} // class Prefs