XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
install.php
Go to the documentation of this file.
1
<?php
20
function
xoops_module_install_pm
(
$module
)
21
{
22
global
$xoopsDB
;
23
24
// Check pm table version
25
$sql
=
"SHOW COLUMNS FROM "
. $xoopsDB->prefix(
"priv_msgs"
);
26
if
(!
$result
= $xoopsDB->queryF(
$sql
)) {
27
return
false
;
28
}
29
// Migrate from existent pm module
30
if
( ($rows = $xoopsDB->getRowsNum(
$result
)) == 12) {
31
return
true
;
32
} elseif ($rows == 8) {
33
return
$xoopsDB->queryFromFile(XOOPS_ROOT_PATH .
"/modules/"
.
$module
->getVar(
'dirname'
,
'n'
) .
"/sql/mysql.upgrade.sql"
);
34
}
else
{
35
return
false
;
36
}
37
}
38
?>
L:
0xoops
xoops-2.5.6
htdocs
modules
pm
include
install.php
Generated on Fri May 10 2013 01:04:27 for XOOPS 2.5.6 by
1.8.3.1