コード例 #1
0
ファイル: Blocks.php プロジェクト: BieeeLC/OpenWeb
    require $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/Language/{$MainLanguage}/Manager.php";
    $db->Disconnect();
    exit("{$ManagerMessage01}");
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Manager/System/Blocks.class.php";
$bl = new Blocks($db);
switch ($_GET['action']) {
    default:
    case "list":
        echo $bl->BlocksList($db);
        break;
    case "block":
        echo $bl->BlockForm();
        break;
    case "archive":
        echo $bl->Archive($db);
        break;
    case "UnBlock":
        echo $bl->UnBlock($db, $_POST);
        break;
    case "BlockUser":
        echo $bl->BlockUser($db, $_POST);
        break;
    case "EditBlock":
        echo $bl->EditForm($db, $_GET['idx']);
        break;
    case "SaveBlock":
        echo $bl->SaveBlock($db, $_POST);
        break;
}
$db->Disconnect();