function search($domain, $query) { $y = new YASE(); return $y->search($domain, $query); }
<?php require_once "../classes/YASE.php"; if (!isset($argv[1])) { $argv[1] = ""; } if (!isset($argv[2])) { $argv[2] = ""; } $account = $argv[1]; if ($argv[1] == "" || $argv[2] == "") { print "YASE searcher \r\n"; print " usage:\r\n"; print " search.php [account] [query]\r\n"; exit - 1; } $y = new YASE(); print_r($y->search($argv[1], $argv[2]));
<?php require_once '../classes/YASE.php'; if (!isset($argv[1])) { $argv[1] = ""; } $account = $argv[1]; if ($argv[1] == "") { print "YASE crawler\r\n"; print "usage:\r\n"; print " crawl.php [account name] \r\n"; exit - 1; } $s = new YASE(); $s->crawl($argv[1]);
<?php require_once '../classes/YASE.php'; if (!isset($argv[1])) { $argv[1] = ""; } $account = $argv[1]; if ($argv[1] == "") { print "YASE indexer\r\n"; print "usage:\r\n"; print " index.php [account name] \r\n"; exit - 1; } $s = new YASE(); $s->index($argv[1]);
<?php require_once "../classes/YASE.php"; if (!isset($argv[1])) { $argv[1] = ""; } if (!isset($argv[2])) { $argv[2] = ""; } if ($argv[1] == "" || $argv[2] == "") { print "YASE setup \r\n"; print " usage:\r\n"; print " setup.php [user] [account]\r\n"; exit - 1; } $user = $argv[1]; $domain = $argv[2]; $y = new YASE(); $y->addUser($user, "test"); $y->addAccount($user, $domain);