[geeklog-cvs] geeklog: Re-introduced function get_SPX_Ver in the install scrip...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Apr 13 12:05:18 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/0bea4f397e63
changeset: 6940:0bea4f397e63
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Apr 12 09:30:19 2009 +0200
description:
Re-introduced function get_SPX_Ver in the install script, which is still needed when upgrading from old Geeklog releases (reported by Sheila)

diffstat:

1 file changed, 22 insertions(+)
public_html/admin/install/index.php |   22 ++++++++++++++++++++++

diffs (32 lines):

diff -r cb03b069c0f4 -r 0bea4f397e63 public_html/admin/install/index.php
--- a/public_html/admin/install/index.php	Sat Apr 04 16:26:52 2009 +0200
+++ b/public_html/admin/install/index.php	Sun Apr 12 09:30:19 2009 +0200
@@ -136,6 +136,28 @@
                 break;
             }
         }
+    }
+
+    return $retval;
+}
+
+
+/**
+* Check if the Spam-X plugin is already installed
+*
+* Note: Needed for upgrades from old versions - don't remove.
+*
+* @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;



More information about the geeklog-cvs mailing list