aboutsummaryrefslogtreecommitdiffstats
path: root/include/directory.php
diff options
context:
space:
mode:
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;
+