2 require_once("boot.php");
4 function directory_run($argv, $argc){
12 @include(".htconfig.php");
13 require_once("dba.php");
14 $db = new dba($db_host, $db_user, $db_pass, $db_data);
15 unset($db_host, $db_user, $db_pass, $db_data);
18 load_config('config');
19 load_config('system');
25 load_config('system');
27 $a->set_baseurl(get_config('system','url'));
29 $dir = get_config('system','directory_submit_url');
34 fetch_url($dir . '?url=' . bin2hex($argv[1]));
39 if (array_search(__file__,get_included_files())===0){
40 directory_run($argv,$argc);