summaryrefslogtreecommitdiff
path: root/modules/polar_rose/helpers/polar_rose_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-18 00:16:03 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-18 00:16:03 +0000
commitd4f1f6400fe6749f3773d6b317a5f19bb908b710 (patch)
tree31a2b7154e5df9a963e915102ad9aab477c5da54 /modules/polar_rose/helpers/polar_rose_installer.php
parent55f63f6c9fb0f206ba7b8fde4310edbfc8c75eb5 (diff)
Polar Rose facial recognition module. Currently in a non-working
state because their server is not RFC2109 compliant. Filing a bug.
Diffstat (limited to 'modules/polar_rose/helpers/polar_rose_installer.php')
-rw-r--r--modules/polar_rose/helpers/polar_rose_installer.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/polar_rose/helpers/polar_rose_installer.php b/modules/polar_rose/helpers/polar_rose_installer.php
new file mode 100644
index 00000000..8e565a61
--- /dev/null
+++ b/modules/polar_rose/helpers/polar_rose_installer.php
@@ -0,0 +1,32 @@
+<?php defined("SYSPATH") or die("No direct script access.");
+/**
+ * Gallery - a web based photo album viewer and editor
+ * Copyright (C) 2000-2008 Bharat Mediratta
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or (at
+ * your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+class polar_rose_installer {
+ public static function install() {
+ $db = Database::instance();
+ $version = module::get_version("polar_rose");
+ if ($version == 0) {
+ module::set_version("polar_rose", 1);
+ }
+ }
+
+ public static function uninstall() {
+ module::delete("polar_rose");
+ }
+}