version-multiple-update/vmu.php

23 lines
652 B
PHP

<?php
include_once("config.php");
include_once("version.php");
include_once("ISO19115-en.php");
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
$v->update_by_source($sourceid);
$uuid='d6584b27-1e02-4bc7-90d1-8b360d9c69ab';
// for test
//$v->update_by_uuid($uuid);
$v->error();