3 use \Friendica\Core\Config;
5 require_once("boot.php");
7 function dbupdate_run(&$argv, &$argc) {
15 @include(".htconfig.php");
16 require_once("include/dba.php");
17 $db = new dba($db_host, $db_user, $db_pass, $db_data);
18 unset($db_host, $db_user, $db_pass, $db_data);
23 // We are deleting the latest dbupdate entry.
24 // This is done to avoid endless loops because the update was interupted.
25 Config::delete('database','dbupdate_'.DB_UPDATE_VERSION);
30 if (array_search(__file__,get_included_files())===0){
31 dbupdate_run($_SERVER["argv"],$_SERVER["argc"]);