示例#1
0
文件: YASE.php 项目: vichingo/yase
function search($domain, $query)
{
    $y = new YASE();
    return $y->search($domain, $query);
}
示例#2
0
文件: search.php 项目: vichingo/yase
<?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]));
示例#3
0
文件: crawl.php 项目: vichingo/yase
<?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]);
示例#4
0
文件: index.php 项目: vichingo/yase
<?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]);
示例#5
0
文件: setup.php 项目: vichingo/yase
<?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);