version-multiple-update/vmu.php

23 lines
652 B
PHP
Raw Normal View History

2015-06-18 13:52:24 +00:00
<?php
include_once("config.php");
include_once("version.php");
include_once("ISO19115-en.php");
2015-06-25 03:46:21 +00:00
set_include_path('.' . PATH_SEPARATOR . '/var/www/westdc.westgis.ac.cn/include/'. PATH_SEPARATOR . get_include_path());
require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
$c=new Config();
$v=new Version($c);
//avoid params error
$c->db['username']=$c->db['user'];
$v->zend_db=Zend_Db::factory('PDO_PGSQL',$c->db);
$sourceid=4;//hiwater
2015-06-18 13:52:24 +00:00
$v->update_by_source($sourceid);
2015-06-25 03:46:21 +00:00
$uuid='d6584b27-1e02-4bc7-90d1-8b360d9c69ab';
// for test
//$v->update_by_uuid($uuid);
2015-06-18 13:52:24 +00:00
$v->error();