Example #1
0
function popup()
{
    $artica_wizard = Paragraphe("64-wizard.png", '{WIZARD_CONNECT_ARTICA}', '{WIZARD_CONNECT_ARTICA_TEXT}', "javascript:WIZARD_CONNECT_ARTICA();");
    if (!function_exists("curl_init")) {
        $warn1 = Paragraphe("64-red.png", '{ERROR_CURL_SO}', '{ERROR_CURL_SO_TEXT}');
    }
    $panel = "{$artica_wizard}<br>{$warn1}";
    $remotesites = connexions_list();
    $html = "<H1>{ARTICA_VPN_CONNECT}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t\n\t\t<td valign='top'>\n\t\t\t\t<p class=caption>{ARTICA_VPN_CONNECT_TEXT}</p>\n\t\t\t\t" . RoundedLightWhite("<div id='connexions_list' style='width:100%;height:220px;overflow:auto'>{$remotesites}</div>") . "\n\t\t</td>\n\t\t<td valign='top'><img src='img/2monitors-stars-128.png'><hr>{$panel}</td>\n\t</tr>\n\t</table>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.cron.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.ldap.ou.inc';
if (!VerifyRights()) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["connexions-list"])) {
    connexions_list();
    exit;
}
if (isset($_GET["connexion"])) {
    connexion_form();
    exit;
}
if (isset($_POST["connection_name"])) {
    connection_save();
    exit;
}
if (isset($_POST["DeleteID"])) {
    connection_delete();
    exit;
}
if (isset($_GET["connection-status"])) {
Example #3
0
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.cron.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.ldap.ou.inc');

	
	if(!VerifyRights()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["connexions-list"])){connexions_list();exit;}
	if(isset($_GET["connexion"])){connexion_form();exit;}
	if(isset($_POST["connection_name"])){connection_save();exit;}
	if(isset($_POST["DeleteID"])){connection_delete();exit;}
	if(isset($_GET["connection-status"])){connection_ldap_status();exit;}
	if(isset($_POST["ExecuteConnection"])){ExecuteConnection();exit;}
	
	js();
	
	
	
function js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{$_GET["ou"]}:{ldap_importation}");
Example #4
0
	if(isset($_GET["pptpd-status"])){pptpd_status();exit;}
	if(isset($_GET["pptpd-clients-status"])){clients_status();exit;}
	
	
	if(isset($_GET["server"])){server_config();exit;}
	if(isset($_GET["EnablePPTPDVPN"])){server_config_save();exit;}
	if(isset($_GET["members"])){members();exit;}
	if(isset($_GET["vpn-users"])){vpn_users();exit;}
	if(isset($_GET["local-users"])){local_users();exit;}
	if(isset($_GET["VPNAddMember"])){vpn_add_member();exit;}
	if(isset($_GET["VPNDelMember"])){vpn_del_member();exit;}
	if(isset($_GET["client"])){client_popup();exit;}
	
	if(isset($_GET["add-vpn-con-js"])){add_vpn_js();exit;}
	if(isset($_GET["add-vpn-con-popup"])){add_vpn_popup();exit;}
	if(isset($_GET["pptp-connexions"])){connexions_list();exit;}
	if(isset($_GET["CONNEXION_NAME"])){add_vpn_save();exit;}
	if(isset($_GET["VPNDelCon"])){add_vpn_del();exit;}
	
	if(isset($_GET["vpnUserAssign"])){vpn_add_member_ip();exit;}
	if(isset($_GET["route_ip"])){add_vpn_popup_cdir();exit;}
	if(isset($_GET["vpn-client-routes-list"])){addvpn_routes_popup_list();exit;}
	if(isset($_GET["vpn-client-routes-del"])){addvpn_routes_del();exit;}
	if(isset($_GET["route_real"])){add_vpn_routes();exit;}
	
	if(isset($_GET["server-routes-delete"])){server_routes_del();exit;}
	if(isset($_GET["server_route_real"])){server_routes_add();exit;}
	if(isset($_GET["server-routes"])){server_routes_list();exit;}