debug = true; if (isset($_GET['do'])) { if ($_GET['do'] == 'insertsql') { $tc_db->Execute("ALTER DATABASE `" . KU_DBDATABASE . "` CHARACTER SET utf8 COLLATE utf8_general_ci"); $tc_db->Execute("ALTER TABLE `" . KU_DBPREFIX . "boards` CHARACTER SET utf8 COLLATE utf8_general_ci"); $results = $tc_db->GetAll("SELECT `name` FROM `" . KU_DBPREFIX . "boards`"); if (count($results) > 0) { $tc_db->Execute("ALTER TABLE `" . KU_DBPREFIX . "posts_" . $line['name'] . "` CHARACTER SET utf8 COLLATE utf8_general_ci"); } $tc_db->Execute("ALTER TABLE `" . KU_DBPREFIX . "boards` ADD `anonymous` VARCHAR( 255 ) NOT NULL DEFAULT 'Anonymous' AFTER `redirecttothread` ;"); $tc_db->Execute("ALTER TABLE `" . KU_DBPREFIX . "passcache` CHANGE `md5` `md5` CHAR( 32 ) NOT NULL"); echo 'SQL inserted.