コード例 #1
0
ファイル: admin.php プロジェクト: BackupTheBerlios/sotf-svn
    $localNode->update();
    $page->redirect("admin.php#network");
    $page->logRequest();
    exit;
}
// sync
if (sotf_Utils::getParameter('sync')) {
    checkPerm('node', 'change');
    // this can be long duty!
    set_time_limit(18000);
    // get neighbour object
    $nid = sotf_Utils::getParameter('nodeid');
    $neighbour = sotf_Neighbour::getById($nid);
    // full sync?
    if (sotf_Utils::getParameter('full')) {
        sotf_NodeObject::newNodeInNetwork($nid);
    }
    // sync
    $neighbour->sync(true);
    if ($config['debug']) {
        echo "<h3>Sync completed.</h3>";
    } else {
        $page->redirect("admin.php#network");
    }
    $page->logRequest();
}
// delete neighbour
if (sotf_Utils::getParameter('delneighbour')) {
    checkPerm('node', 'change');
    debug("delete neighbour", "!!");
    $nid = sotf_Utils::getParameter('nodeid');