aboutsummaryrefslogtreecommitdiffstats
path: root/include/directory.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2012-10-23 19:35:06 +1100
committerMike Macgirvin <mike@macgirvin.com>2012-10-23 19:35:06 +1100
commit76f7a4baf36d7e054c6f069c8828c5429ad199a8 (patch)
treed4acf616ec75afee7484ca7a935d54cd1d8e40a7 /include/directory.php
parent9d043d2db4b89e368fe7376aedb0514ed1239636 (diff)
downloadvolse-hubzilla-76f7a4baf36d7e054c6f069c8828c5429ad199a8.tar.gz
volse-hubzilla-76f7a4baf36d7e054c6f069c8828c5429ad199a8.tar.bz2
volse-hubzilla-76f7a4baf36d7e054c6f069c8828c5429ad199a8.zip
cli_startup() for directory updates
Diffstat (limited to 'include/directory.php')
-rw-r--r--include/directory.php26
1 files changed, 3 insertions, 23 deletions
diff --git a/include/directory.php b/include/directory.php
index 45386183c..732c0189b 100644
--- a/include/directory.php
+++ b/include/directory.php
@@ -1,34 +1,14 @@
<?php
-require_once("boot.php");
+require_once('boot.php');
+require_once('include/cli_startup.php');
function directory_run($argv, $argc){
- global $a, $db;
-
- if(is_null($a)) {
- $a = new App;
- }
-
- if(is_null($db)) {
- @include(".htconfig.php");
- require_once("dba.php");
- $db = new dba($db_host, $db_user, $db_pass, $db_data);
- unset($db_host, $db_user, $db_pass, $db_data);
- };
-
- load_config('config');
- load_config('system');
+ cli_startup();
if($argc != 2)
return;
- load_config('system');
-
- load_hooks();
-
-
- $a->set_baseurl(get_config('system','url'));
-
$dir = get_config('system','directory_submit_url');
if(! strlen($dir))