コード例 #1
0
function popup()
{
    $page = CurrentPageName();
    $html = "\n<div style='float:right;text-align:right;'>" . imgtootltip("48-refresh.png", "{refresh}", "RefreshOpenVPNMasterList();") . "</div>\n<div style='padding:5px'>\t\n<p class=caption style='font-size:14px'>{OPENVPN_SERVER_CONNECT_TEXT}</p>\n\n</div>\n<div style='width:100%;height:220px;overflow:auto' id='master-list'>" . masters_list() . "</div>\n<iframe src='{$page}?iframe=yes' style='width:100%;height:180px;border:0px'></iframe>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, "index.openvpn.php");
}
コード例 #2
0
    die("alert('no access');");
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["iframe"])) {
    echo up_iframe();
    exit;
}
if (isset($_POST['upload'])) {
    Configloaded();
    exit;
}
if (isset($_GET["master-list"])) {
    echo masters_list();
    exit;
}
if (isset($_GET["enable-row"])) {
    echo masters_list_enable();
    exit;
}
if (isset($_GET["view-id"])) {
    echo master_edit();
    exit;
}
if (isset($_POST["save-row"])) {
    master_save();
    exit;
}
if (isset($_GET["OPenVPNReconnectClients"])) {