22 $sql =
"SHOW COLUMNS FROM " . $xoopsDB->prefix(
"xoopscomments");
25 $sql =
"SELECT * FROM " . $xoopsDB->prefix(
"xoopscomments");
27 while ($myrow = $xoopsDB->fetchArray(
$result)) {
28 $sql =
"INSERT INTO `" . $xoopsDB->prefix(
"comments") .
"` (`id`, `pid`, `rootid`, `modid`, `itemid`, `icon`, `created`, `modified`, `uid`, `ip`, `title`, `text`, `sig`, `status`, `exparams`, `dohtml`, `domsiley`, `doxcode`, `doimage`, `dobr`) VALUES (" . $myrow[
'com_id'] .
", " . $myrow[
'com_pid'] .
", " . $myrow[
'com_rootid'] .
", " . $myrow[
'com_modid'] .
", " . $myrow[
'com_itemid'] .
", " . $myrow[
'com_icon'] .
", " . $myrow[
'com_created'] .
", " . $myrow[
'com_modified'] .
", " . $myrow[
'com_uid'] .
", " . $myrow[
'com_ip'] .
", " . $myrow[
'com_title'] .
", " . $myrow[
'com_text'] .
", " . $myrow[
'com_sig'] .
", " . $myrow[
'com_status'] .
", " . $myrow[
'com_exparams'] .
", " . $myrow[
'dohtml'] .
", " . $myrow[
'dosmiley'] .
", " . $myrow[
'doxcode'] .
", " . $myrow[
'doimage'] .
", " . $myrow[
'dobr'] .
")";
29 $xoopsDB->queryF(
$sql);
38 $plugins = \Xoops\Module\Plugin::getPlugins(
'comments');
40 foreach (array_keys($plugins) as
$dirname) {
41 $helper->insertModuleRelations(
$xoops->getModuleByDirname($dirname));
52 $plugins = \Xoops\Module\Plugin::getPlugins(
'comments');
53 foreach (array_keys($plugins) as
$dirname) {
54 $helper->deleteModuleRelations(
$xoops->getModuleByDirname($dirname));
static loadFile($file, $once=true)