added okapi update script

This commit is contained in:
following
2013-05-08 16:11:27 +02:00
parent 4e2e30f530
commit f71d9b6e55
3 changed files with 38 additions and 4 deletions

27
bin/okapi-update.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/***************************************************************************
* For license information see doc/license.txt
*
* Unicode Reminder メモ
***************************************************************************/
/*
* run okapi database update
* needs 'short_open_tag = Off' in php.ini
*
* You should normally NOT call this script directly, but via dbupdate.php
* (or something similar on a production system). This ensures that
* everything takes place in the right order.
*/
okapi_update();
function okapi_update()
{
$GLOBALS['rootpath'] = dirname(__FILE__) . '/../htdocs/';
require_once($GLOBALS['rootpath']."okapi/facade.php");
okapi\Facade::database_update();
}
?>