function mokpag_add_serv_form()
{
    echo '<h1>Prideti Paslauga</h1>';
    echo '<form action="' . get_admin_url() . 'admin.php?page=add_service" method="POST">';
    echo 'Pavadinimas (Bus rodomas kaip pagrindinis):<br>';
    echo '<input type="text" name="name" value=""><br><br>';
    echo 'PEx Pavadinimas (Bus naudojamas ieskoti privilegiju):<br>';
    echo '<input type="text" name="pex_name" value=""><br><br>';
    echo 'Aprasimas:<br>';
    echo '<input type="text" name="desc" value=""><br><br>';
    echo 'Kaina Eurais:<br>';
    echo '<input type="text" name="price_eu" value="0.0"><br><br>';
    echo 'Kaina Litais:<br>';
    echo '<input type="text" name="price_lt" value="0.0"><br><br>';
    echo '<input type="hidden" name="save" value="1">';
    echo '<input type="submit" value="Prideti">';
    echo '</form>';
    echo '<br><br>';
    if (isset($_POST['save']) && $_POST['save'] == 1) {
        save_service($_POST['name'], $_POST['pex_name'], $_POST['desc'], $_POST['price_eu'], $_POST['price_lt']);
    }
}
include_once 'ressources/class.main_cf.inc';
$usersmenus = new usersMenus();
if ($usersmenus->AsPostfixAdministrator == true) {
} else {
    die("wrong privileges");
}
if (isset($_POST["DELETEALL"])) {
    DELETEALL();
    exit;
}
if (isset($_POST["COMMAND"])) {
    COMMANDS_SAVE();
    exit;
}
if (isset($_POST["zmd5"])) {
    save_service();
    exit;
}
if (isset($_GET["script"])) {
    echo echo_js();
    exit;
}
if (isset($_GET["main_page"])) {
    echo main_page();
    exit;
}
if (isset($_GET["service-info"])) {
    echo service_info();
    exit;
}
if (isset($_GET["add_option_service"])) {
Exemple #3
0
<?php

include_once('ressources/class.main_cf.inc');

$usersmenus=new usersMenus();
if($usersmenus->AsPostfixAdministrator==true){}else{die("wrong privileges");}	


if(isset($_GET["service_key"])){save_service();exit;}
if(isset($_GET["main"])){main_switch();exit;}
if(isset($_GET["script"])){echo echo_js();exit;}
if(isset($_GET["main_page"])){echo main_page();exit;}
if(isset($_GET["service-info"])){echo service_info();exit;}
if(isset($_GET["add_option_service"])){add_option_service();exit;}
if(isset($_GET["del_option_service"])){del_option_service();exit;}
if(isset($_GET["del_service"])){del_service();exit;}
if(isset($_GET["service-ssl"])){main_ssl();exit;}
if(isset($_GET["enable_smtps"])){enable_smtps();exit;}
if(isset($_GET["RebuildMaster"])){rebuild_master();exit;}




die();




function script_ssl(){
	$page=CurrentPageName();
	$tpl=new templates();