mirror of
https://github.com/friendica/friendica
synced 2025-12-07 10:07:11 +01:00
mongo checkin, global directory, redir rework, location basics
This commit is contained in:
parent
6ed5b642a4
commit
e0045a43e2
27 changed files with 266 additions and 144 deletions
28
include/directory.php
Normal file
28
include/directory.php
Normal file
|
|
@ -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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue