[Mapbender-commits] r2638 - branches/spsneo_dev/mapbender/update

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 10 03:37:43 EDT 2008


Author: spsneo
Date: 2008-07-10 03:37:43 -0400 (Thu, 10 Jul 2008)
New Revision: 2638

Added:
   branches/spsneo_dev/mapbender/update/update.php
Log:
Database Update Routine ready

Added: branches/spsneo_dev/mapbender/update/update.php
===================================================================
--- branches/spsneo_dev/mapbender/update/update.php	                        (rev 0)
+++ branches/spsneo_dev/mapbender/update/update.php	2008-07-10 07:37:43 UTC (rev 2638)
@@ -0,0 +1,49 @@
+<?php
+#update.php 
+#@author Siddharth Prakash Singh (spsneo)
+#Google SoC 2008 Project
+# 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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Update Script
+# To be executed from command line only.
+
+require_once("commandLine.inc");
+require_once("update-utils.inc");
+require_once("updaters.inc");
+include_once(dirname(__FILE__)."/../conf/mapbender.conf");
+echo "Mapbender Updater\n\n--------------------------\n\n";
+do_version_check();
+
+echo "\n---------------------------\nGoing to run database updates for mapbender\n";
+echo "Depending upon the size of your database this may take a while\n\n";
+echo "If you wish to abort press control ctrl+c within next 5 seconds...";
+require_once("counter.php");
+for ($i = 6; $i >= 1;) {
+	print_count($i, --$i);
+	sleep(1);
+}
+echo "\n";
+echo "Updating Database...\n";
+
+do_db_updates();
+
+echo "\nAll Database Updates Done\n";
+
+?>
+
+
+
+
+



More information about the Mapbender_commits mailing list