function saveConfig($where, $what, $sub = false)
 {
     $db = KSettings::connect();
     $db->settings['configuration'][$where] = $what;
     $db->save();
     return true;
 }
    define("KNIFE_PATH", dirname(__FILE__) . "/");
    # Absolute path to current script
}
include_once KNIFE_PATH . '/inc/class.articles.php';
include_once KNIFE_PATH . '/inc/class.comments.php';
include_once KNIFE_PATH . '/inc/class.users.php';
# load userclass - can't live without
include_once KNIFE_PATH . '/inc/class.settings.php';
include_once KNIFE_PATH . '/inc/class.parse.php';
include_once KNIFE_PATH . '/inc/functions.php';
include_once KNIFE_PATH . '/plugins/markdown.php';
$pathinfo_array = explode("/", $_SERVER[PATH_INFO]);
$ACDB = new KComments();
$UserDB = new KUsers();
$AADB = new KArticles();
$Settings = new KSettings();
$Parser = new Parser();
$Settings->getCats();
#
$Settings->getTemplates();
#	Initialize settings
$Settings->getConfig();
#
$settingsdatabase = new SettingsStorage('settings');
$alltemplates = $Settings->te;
$allcats = $Settings->ca;
$Config = $Settings->co;
$allusers = $UserDB->getusers();
#	$null = $UserDB->verify();
include_once KNIFE_PATH . '/config.php';
# load temporary config