Exemplo n.º 1
0
<?php

Updater::getDbo()->query("CREATE TABLE IF NOT EXISTS `" . OW_DB_PREFIX . "toplink_children` (\n\t\t`id` int(11) NOT NULL auto_increment,\n\t\t`childof` int(11) NOT NULL,\n\t\t`name` varchar(255) NOT NULL,\n\t\t`url` tinytext NOT NULL,\n\t\tPRIMARY KEY(`id`)\n\t) ENGINE=MyISAM  DEFAULT CHARSET=utf8;");
UTIL_File::removeDir(BOL_LanguageService::getImportDirPath() . 'toplink');
Updater::getLanguageService()->importPrefixFromZip(dirname(__FILE__) . DS . 'langs.zip', 'toplink');