Пример #1
0
    exit;
}
if (isset($_GET["add-js"])) {
    add_js();
    exit;
}
if (isset($_GET["add-form"])) {
    add_form();
    exit;
}
if (isset($_POST["ipaddr"])) {
    Save();
    exit;
}
if (isset($_POST["vde-del"])) {
    Del();
    exit;
}
page();
//vde_tunctl -t virt1
//vde_switch -s /var/run/switch1 -t virt1 -daemon -p /var/run/switch1.pid
//vde_pcapplug -s /var/run/switch1 -d -P /var/run/switch1p.pid eth0
//vde_switch -tap virt1 -sock /var/run/switch1/ctl -daemon -p /var/run/switch1.pid
function page()
{
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $date = $tpl->_ENGINE_parse_body("{zDate}");
    $organization = $tpl->_ENGINE_parse_body("{organization}");
    $context = $tpl->_ENGINE_parse_body("{context}");
Пример #2
0
if (isset($hide)) {
    if (isset($aword)) {
        if (isset($trans)) {
            AddFunc($hide, $aword, $trans);
        } else {
            echo "<h3 style='color:#778899'>Введите значение слова!</h3>";
        }
    } else {
        echo "<h3 style='color:#778899'>Введите слово!</h3>";
    }
}
if (isset($del)) {
    Delform();
}
if (isset($word)) {
    Del($word);
}
if (isset($transmis)) {
    AddMean($aword, $trans, $lang);
}
if (isset($otransmis)) {
    AddWord($aword, $trans, $lang);
}
function Addform()
{
    ?>
<h2 align="center" style="color:#778899">Добавить:</h2>
<form action="vocab3.php" method="post">
<table align="center">
<tr>
	<td align="right"><input type="radio" name="plus" value="nw" checked></input></td>
Пример #3
0
	header("Cache-Control: no-cache, must-revalidate");	
	if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.system.nics.inc');
	include_once('ressources/class.maincf.multi.inc');
	include_once('ressources/class.tcpip.inc');
	$usersmenus=new usersMenus();
	if($usersmenus->AsSystemAdministrator==false){exit();}
	if(isset($_GET["virtual-list"])){nics_list();exit;}
	if(isset($_GET["add-js"])){add_js();exit;}
	if(isset($_GET["add-form"])){add_form();exit;}
	if(isset($_POST["ipaddr"])){Save();exit;}
	if(isset($_POST["vde-del"])){Del();exit;}
	page();
	
	//vde_tunctl -t virt1
	//vde_switch -s /var/run/switch1 -t virt1 -daemon -p /var/run/switch1.pid
	//vde_pcapplug -s /var/run/switch1 -d -P /var/run/switch1p.pid eth0
	//vde_switch -tap virt1 -sock /var/run/switch1/ctl -daemon -p /var/run/switch1.pid	
	
function page(){
	$page=CurrentPageName();
	$t=time();
	$tpl=new templates();
	$date=$tpl->_ENGINE_parse_body("{zDate}");
	$organization=$tpl->_ENGINE_parse_body("{organization}");
	$context=$tpl->_ENGINE_parse_body("{context}");	
	$events=$tpl->_ENGINE_parse_body("{events}");	
Пример #4
0
<?php

include 'inc/config.php';
Header("Cache-Control: no-cache, must-revalidate");
Header("Pragma: no-cache");
Header("Content-Type: text/javascript; charset=utf-8");
if (isset($_SESSION['user_id'])) {
    if (isset($_POST['act'])) {
        switch ($_POST['act']) {
            case "add":
                Add($_SESSION['user_id'], $_SERVER['REMOTE_ADDR'], $privat9, $srch, $rpls, $user_p_mod);
                break;
            case "del":
                Del($_SESSION['user_id'], $_SERVER['REMOTE_ADDR'], $privat8, $user_p_mod);
                break;
            case "load":
                Load($_SESSION['user_year'], $privat8, $c_lmt);
                break;
            case "loadhelp":
                LoadHelp($_SESSION['user_year'], $privat8, $privat9, $srch, $rpls);
                break;
            default:
                echo time();
        }
    }
} else {
    echo "Помилка авторизації, поверніться до головної сторінки.";
}
function Del($user_id, $user_ip, $privat8, $user_p_mod)
{
    if (preg_match("/^[1-9][0-9]*\$/", $_POST['del_id'])) {