示例#1
0
<?php

$theSettings->registerPlugin($plugin["name"], $pInfo["perms"]);
require_once "accounts.php";
$em = accountManager::load();
if ($em === false) {
    $em = new accountManager();
}
$em->obtain();
$jResult .= $em->get();
示例#2
0
<?php

$path = dirname(realpath($argv[0]));
if (chdir($path)) {
    if (count($argv) > 1) {
        $_SERVER['REMOTE_USER'] = $argv[1];
    }
    require_once './accounts.php';
    $acc = accountManager::load();
    $acc->checkAuto();
}
示例#3
0
<?php

require_once "accounts.php";
$em = accountManager::load();
if ($em === false) {
    $em = new accountManager();
    $em->obtain("./accounts");
}
if (isset($_REQUEST['mode'])) {
    $cmd = $_REQUEST['mode'];
    switch ($cmd) {
        case "set":
            $em->set();
            cachedEcho($em->get(), "application/javascript");
            break;
        case "info":
            cachedEcho(safe_json_encode($em->getInfo()), "application/json");
            break;
    }
}