Example #1
0
     rmdirr("wikiedit2");
     rmdirr("xml");
 case "1.1.6.0":
 case "1.1.6.1":
     test(sprintf(ADDING_CONFIG_ENTRY, 'grabcode_button'), 1);
     $config["grabcode_button"] = '1';
     test(sprintf(ADDING_CONFIG_ENTRY, 'wiki_suffix'), 1);
     $config["wiki_suffix"] = '_wikka';
     test(sprintf(ADDING_CONFIG_ENTRY, 'require_edit_note'), 1);
     $config["require_edit_note"] = '0';
     test(sprintf(ADDING_CONFIG_ENTRY, 'public_sysinfo'), 1);
     $config["public_sysinfo"] = '0';
     // cookie names have changed -- logout user and delete the old cookies
     test(DELETING_COOKIES, 1);
     DeleteCookie("wikka_user_name");
     DeleteCookie("wikka_pass");
 case "1.1.6.2-alpha":
 case "1.1.6.2-beta":
 case "1.1.6.2":
 case "1.1.6.3":
     test(sprintf(ADDING_CONFIG_ENTRY, 'allow_user_registration'), 1);
     $config['allow_user_registration'] = '1';
     test(sprintf(ADDING_CONFIG_ENTRY, 'wikka_template_path'), 1);
     $config["wikka_template_path"] = 'templates';
     update_default_page(array('HighScores', 'CategoryAdmin', 'AdminUsers', 'AdminPages', 'DatabaseInfo', 'WikiCategory'), $dblink, $config, $lang_defaults_path, $lang_defaults_fallback_path, $upgrade_note);
     test("Adding status field to users table...", mysql_query("alter table " . $config['table_prefix'] . "users add column status enum ('invited','signed-up','pending','active','suspended','banned','deleted')"), "Already done? OK!", 0);
     test("Adding sessions tracking table...", mysql_query("create table " . $config['table_prefix'] . "sessions (sessionid char(32) NOT NULL, userid varchar(75) NOT NULL, PRIMARY KEY (sessionid, userid), session_start datetime NOT NULL)"), "Already done? OK!", 0);
     test('Dropping obsolete index `from_tag`...', mysql_query('alter table ' . $config['table_prefix'] . 'links drop index `idx_from`'), 'Already done?  OK!', 0);
 case "1.1.6.4":
 case "1.1.6.5":
 case "1.1.6.6":
Example #2
0
 function ClearRead()
 {
     DeleteCookie('topic_visits');
     $this->Visited = array();
 }