aboutsummaryrefslogtreecommitdiffstats
path: root/include/directory.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-19 04:59:31 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-19 04:59:31 -0700
commite0045a43e22082e0a47fd57288105a21311e911a (patch)
treed20f36060be22a5c83526ca2a3654f1e4a31ace0 /include/directory.php
parent6ed5b642a437a86077093391f3f2ec9889068d8d (diff)
downloadvolse-hubzilla-e0045a43e22082e0a47fd57288105a21311e911a.tar.gz
volse-hubzilla-e0045a43e22082e0a47fd57288105a21311e911a.tar.bz2
volse-hubzilla-e0045a43e22082e0a47fd57288105a21311e911a.zip
mongo checkin, global directory, redir rework, location basics
Diffstat (limited to 'include/directory.php')
-rw-r--r--include/directory.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/directory.php b/include/directory.php
new file mode 100644
index 000000000..5f835dc4b
--- /dev/null
+++ b/include/directory.php
@@ -0,0 +1,28 @@
+<?php
+
+ require_once("boot.php");
+
+ $a = new App;
+
+ @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);
+
+
+ if($argc != 2)
+ exit;
+
+ load_config('system');
+
+ $a->set_baseurl(get_config('system','url'));
+
+ $dir = get_config('system','directory_submit_url');
+
+ if(! strlen($dir))
+ exit;
+
+ fetch_url($dir . '?url=' . bin2hex($argv[1]));
+
+ exit;
+