[geeklog-cvs] geeklog-1.3/public_html/admin/install install.php,1.68,1.69
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Fri Sep 17 06:52:40 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin/install
In directory www:/tmp/cvs-serv29400/public_html/admin/install
Modified Files:
install.php
Log Message:
Added missing bits and pieces for installing the SpamX plugin during database update.
Index: install.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/install/install.php,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** install.php 22 Aug 2004 17:53:22 -0000 1.68
--- install.php 17 Sep 2004 10:52:38 -0000 1.69
***************
*** 323,326 ****
--- 323,345 ----
}
+ /**
+ * Check if the SpamX plugin is already installed
+ *
+ * @return int 1 = is installed, 0 = not installed
+ *
+ */
+ function get_SPX_Ver()
+ {
+ global $_TABLES;
+
+ $retval = 0;
+
+ if (DB_count ($_TABLES['plugins'], 'pi_name', 'spamx') == 1) {
+ $retval = 1;
+ }
+
+ return $retval;
+ }
+
function INST_doDatabaseUpgrades($current_gl_version, $table_prefix)
{
***************
*** 640,643 ****
--- 659,666 ----
}
+ // install SpamX plugin
+ // (also handles updates from version 1.0)
+ install_spamx_plugin ();
+
$current_gl_version = '1.3.10';
break;
More information about the geeklog-cvs
mailing list