From e0045a43e22082e0a47fd57288105a21311e911a Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 19 Aug 2010 04:59:31 -0700 Subject: mongo checkin, global directory, redir rework, location basics --- include/directory.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/directory.php (limited to 'include/directory.php') 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 @@ +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; + -- cgit v1.2.3