예제 #1
0
 function addTabs($source)
 {
     if (func_num_args() > 1) {
         if (func_get_args()[1] == false) {
             return $source . tabs($this->tabcount);
         }
     }
     return tabs($this->tabcount) . $source;
 }
예제 #2
0
<?php

require_once 'layout_tabs.php';
?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php 
echo $pageData->css;
?>
" />

<?php 
echo tabs($pageData->tabs);
?>
	  
<h1 class="settings">
	<fb:name uid="<?php 
echo $pageData->userid;
?>
" useyou="false" capitalize="true" possessive="true"/> Friends
</h1>

<fb:if-section-not-added section="profile"> 
	<div class="addmsg"><fb:add-section-button section="profile" />Your profile currently lacks a certain something</div>
</fb:if-section-not-added>

<form action="common.php" method="GET">
	<table cellpadding="0" cellspacing="1" class="table friends">
		<thead>
		<tr>
		<th>Compare</th>
		<th colspan="2">Friend</th>
		<th>Percent</th>
예제 #3
0
        }
    .ui-jqgrid tr.jqgrow td  { border: 0px none;}

    </style>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
	<script type="text/javascript">
	$.jgrid.no_legacy_api = true;
	$.jgrid.useJSON = true;
	</script>
    <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
  </head>
  <body>
      <div>
    <style type="text">
    .ui-jqgrid tr.jqgrow td  { border: 0px none;}

    </style>

          <?php 
include "treegrid.php";
?>
      </div>
      <br/>
      <?php 
tabs(array("treegrid.php"));
?>
   </body>
</html>
	include_once('ressources/class.squid.inc');
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_POST["ProxyPacCacheTime"])){settings_save();exit;}
if(isset($_GET["settings-js"])){settings_js();exit;}
if(isset($_GET["settings-popup"])){settings_popup();exit;}
if(isset($_POST["EmptyCache"])){EmptyCache();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["help"])){help();exit;}

if(isset($_GET["events"])){events();exit;}
if(isset($_GET["events-search"])){events_search();exit;}
if(isset($_GET["events-script"])){events_script_js();exit;}
if(isset($_GET["events-script-popup"])){events_script_popup();exit;}
if(isset($_GET["events-script-tester-js"])){events_script_tester_js();exit;}
if(isset($_GET["events-script-tester-popup"])){events_script_tester_popup();exit;}
if(isset($_POST["TESTER-URL"])){events_script_tester_perform();exit;}


if(isset($_POST["rebuild-tables"])){rebuild_tables();exit;}
if(isset($_GET["rules"])){rules();exit;}
if(isset($_GET["rules-search"])){rules_search();exit;}
if(isset($_GET["rule-js"])){rules_js();exit;}
예제 #5
0
<?php

require_once 'layout_tabs.php';
?>

<link rel="stylesheet" type="text/css" media="screen" href="<?php 
echo $pageData->css;
?>
" />

<?php 
echo tabs($pageData->tabs, $pageData->userid);
?>
	  
<h1 class="settings">
	<fb:name uid="<?php 
echo $pageData->userid;
?>
" useyou="false" capitalize="true" /> is <?php 
echo $pageData->percent;
?>
% addicted to film.
	<fb:pronoun useyou="false" capitalize="true" uid="<?php 
echo $pageData->userid;
?>
" /> 
	has seen <?php 
echo $pageData->moviecount;
?>
 out of <?php 
echo $pageData->totalcount;
예제 #6
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.tcpip.inc');
	include_once('ressources/class.system.nics.inc');
	include_once('ressources/class.maincf.multi.inc');
	
	
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["instances-tabs"])){tabs();exit;}
	
	if(isset($_GET["instances-list"])){instances_list();exit;}
	if(isset($_GET["instances-search"])){instances_search();exit;}
	
	if(isset($_GET["crossroads-list"])){crossroads_list();exit;}
	if(isset($_GET["crossroads-search"])){crossroads_search();exit;}
	if(isset($_GET["crossroads-delete"])){crossroads_delete();exit;}
	
	
	if(isset($_GET["instance-duplicate-form"])){instances_duplicate_form();exit;}
	if(isset($_GET["add-new-instance"])){instances_duplicate_perform();exit;}
	if(isset($_GET["status-instance"])){instance_status();exit;}
	if(isset($_GET["delete"])){instance_delete();exit;}
	if(isset($_GET["rebuild-instances"])){rebuild_instances();exit;}
	js();
예제 #7
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.lvm.org.inc';
include_once 'ressources/class.os.system.inc';
include_once 'ressources/class.maincf.multi.inc';
if (!Isright()) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text('{ERROR_NO_PRIVS}') . "');";
    die;
}
if (isset($_GET["tabs"])) {
    echo tabs();
    exit;
}
if (isset($_GET["status"])) {
    echo status();
    exit;
}
if (isset($_GET["service-status"])) {
    echo status_service();
    exit;
}
if (isset($_GET["rules"])) {
    echo rules();
    exit;
}
if (isset($_GET["DeleteRuleMaster"])) {
    DeleteRuleMaster();
예제 #8
0
            switch ($type_modifier) {
                case "pointer":
                case "const_pointer":
                    $object_constants .= tabs(2) . "zval z_{$variable_name};\n";
                    $object_constants .= tabs(2) . "object_init_ex(&z_{$variable_name}, php_{$plain_type}_entry);\n";
                    $object_constants .= tabs(2) . "((zo_{$plain_type}*) zend_object_store_get_object(&z_{$variable_name} TSRMLS_CC))->native_object = ({$plain_type}_php*) {$variable_name};\n";
                    $object_constants .= tabs(2) . "wxPHP_REGISTER_OBJECT_CONSTANT(\"{$variable_name}\", z_{$variable_name}, CONST_CS | CONST_PERSISTENT);\n\n";
                    break;
                case "reference":
                case "const_reference":
                case "none":
                case "const_none":
                    $object_constants .= tabs(2) . "zval z_{$variable_name};\n";
                    $object_constants .= tabs(2) . "object_init_ex(&z_{$variable_name}, php_{$plain_type}_entry);\n";
                    $object_constants .= tabs(2) . "((zo_{$plain_type}*) zend_object_store_get_object(&z_{$variable_name} TSRMLS_CC))->native_object = ({$plain_type}_php*) &{$variable_name};\n";
                    $object_constants .= tabs(2) . "wxPHP_REGISTER_OBJECT_CONSTANT(\"{$variable_name}\", z_{$variable_name}, CONST_CS | CONST_PERSISTENT);\n\n";
                    break;
            }
            break;
        default:
            //Just skip unknown types
    }
}
$classes .= "\n";
$classes .= "\t//Class enumerations\n";
$classes .= "\n";
foreach ($defEnums[0] as $enumClassName => $classEnums) {
    //Only add enums of enabled classes
    if (isset($defIni[$enumClassName])) {
        foreach ($classEnums as $enumName => $enumList) {
            foreach ($enumList as $enumOption => $enumValue) {
예제 #9
0
		jQuery(document).ready(function(){
		  if(Modernizr.input.placeholder) {
			  jQuery("#supported").append("<div>Your browser support 'placeholder' input property!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support 'placeholder' input property!</div>").addClass('ui-state-error');
		  }			
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "html5placeholder.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("html5placeholder.php"));
?>
   </body>
</html>
예제 #10
0
    <script src="../../../js/jquery.js" type="text/javascript"></script>
	<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>	
    <script src="../../../js/jquery.form.js" type="text/javascript"></script>
    <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script>
	<script type="text/javascript">
		jQuery(document).ready(function(){
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "sqlsuccess.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("sqlsuccess.php"));
?>
   </body>
</html>
예제 #11
0
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
		  if(Modernizr.input.required) {
			  jQuery("#supported").append("<div>Your browser support 'required' input property!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support 'required' input property!</div>").addClass('ui-state-error');
		  }
		  
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "onecolumn.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("onecolumn.php"));
?>
   </body>
</html>
예제 #12
0
<?php
session_start();
include_once('ressources/class.templates.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.openvpn.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.tcpip.inc');
$users=new usersMenus();
if(!$users->AsSystemAdministrator){die("alert('no access');");}

	if(isset($_GET["popup"])){tabs();exit();}
	if(isset($_GET["server"])){server();exit();}
	if(isset($_GET["clients"])){clients();exit();}

	
	if(isset($_POST["ENABLE_SERVER"])){SAVE_SERVER();exit;}
	if(isset($_POST["IP_START"])){SAVE_SERVER();exit;}
	if(isset($_POST["EnableOpenVPNEndUserPage"])){EnableOpenVPNEndUserPageSave();exit;}
	
	
js();



function js(){
	
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{OPENVPN_SERVER_SETTINGS}");
	$html="YahooWin4('600','$page?popup=yes','$title')";
	echo $html;
예제 #13
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.artica.graphs.inc');
	if(posix_getuid()==0){die();}
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if($_GET["tabs"]){tabs();exit;}
	if(isset($_GET["title-caches-perf"])){title_caches_perf();exit;}
	if($_GET["period"]=="howto"){howto();exit;}
	if($_GET["period"]=="today"){today();exit;}
	if($_GET["period"]=="week"){week();exit;}
	if($_GET["period"]=="month"){month();exit;}
	
	js();
	
function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	if(isset($_GET["inline"])){echo "$('#BodyContent').load('$page?tabs=yes');";return;}
	$title=$tpl->_ENGINE_parse_body("{cache_performance}::{statistics}");	
	$html="YahooWin4('750','$page?tabs=yes','$title')";
	echo $html;
예제 #14
0
/**
 * @author Jefferson González
 *
 * @license
 * This file is part of wxPHP check the LICENSE file for information.
 *
 * @description
 * Functions to assist on the generation of the wxWidgets functions
 * to php functions code
 *
*/
function classes_get_property_code($class_name)
{
    global $defClassProperties;
    $code = "";
    if (isset($defClassProperties[$class_name])) {
        $property_index = 0;
        foreach ($defClassProperties[$class_name] as $property_name => $property_attributes) {
            $type_modifier = "";
            $standard_type = parameter_type($property_attributes["type"], false, "MINIT", $class_name, $type_modifier, true);
            $property_type = str_replace(array("const ", "&", "*"), "", $property_attributes["type"]);
            switch ($type_modifier) {
                //If constant skip
                case "const_pointer":
                case "const_pointer_pointer":
                case "const_reference":
                case "const_none":
                    continue;
                default:
                    //If not constant continue
                    break;
            }
            if (!$property_attributes["static"]) {
                $code .= "else if(strcmp(\"{$property_name}\", name) == 0)\n";
                $code .= tabs(1) . "{\n";
            } else {
                //Skip static properties (we should handle them differently?)
                continue;
            }
            switch ($standard_type) {
                case "bool":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_BOOL(*((bool*) *((void**) native_object->properties[{$property_index}])));\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_BOOL(*((bool*) native_object->properties[{$property_index}]));\n";
                            break;
                    }
                    break;
                case "integer":
                case "class_enum":
                case "global_enum":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_LONG(*(({$property_type}*) *((void**) native_object->properties[{$property_index}])));\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_LONG(*(({$property_type}*) native_object->properties[{$property_index}]));\n";
                            break;
                    }
                    break;
                case "float":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_DOUBLE(*(({$property_type}*) *((void**) native_object->properties[{$property_index}])));\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_DOUBLE(*(({$property_type}*) native_object->properties[{$property_index}]));\n";
                            break;
                    }
                    break;
                case "characters":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_STRING(((char*) *((void**) native_object->properties[{$property_index}])), 1);\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_LONG(*((char*) native_object->properties[{$property_index}]));\n";
                            break;
                    }
                    break;
                case "date":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_LONG(*((wxDateTime*) *((void**) native_object->properties[{$property_index}])).GetTicks());\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_LONG(*((wxDateTime*) native_object->properties[{$property_index}]).GetTicks());\n";
                            break;
                    }
                    break;
                case "string":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "RETVAL_STRING(*((wxString*) *((void**) native_object->properties[{$property_index}])).char_str(), 1);\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "RETVAL_STRING((const char*) *((wxString*) native_object->properties[{$property_index}])->char_str(), 1);\n";
                            break;
                    }
                    break;
                case "object":
                    switch ($type_modifier) {
                        case "pointer":
                        case "pointer_pointer":
                            $code .= tabs(2) . "object_init_ex(return_value, php_{$property_type}_entry);\n";
                            $code .= tabs(2) . "((zo_{$class_name}*) zend_object_store_get_object(return_value TSRMLS_CC))->native_object = (({$property_type}_php*) *((void**) native_object->properties[{$property_index}]));\n";
                            $code .= tabs(2) . "return;\n";
                            break;
                        case "reference":
                        case "none":
                            $code .= tabs(2) . "object_init_ex(return_value, php_{$property_type}_entry);\n";
                            $code .= tabs(2) . "((zo_{$class_name}*) zend_object_store_get_object(return_value TSRMLS_CC))->native_object = (({$property_type}_php*) native_object->properties[{$property_index}]);\n";
                            $code .= tabs(2) . "return;\n";
                            break;
                    }
                    break;
                default:
                    //Just skip unknown types
            }
            $code .= tabs(1) . "}\n";
            $code .= tabs(1);
            $property_index++;
        }
    }
    $code = rtrim($code, "\t");
    return $code;
}
예제 #15
0
		jQuery(document).ready(function(){
		  if(Modernizr.input.required) {
			  jQuery("#supported").append("<div>Your browser support 'required' input property!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support 'required' input property!</div>").addClass('ui-state-error');
		  }
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "defaultfooter.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("defaultfooter.php"));
?>
   </body>
</html>
예제 #16
0
<body>

	<div id="notifications"></div>

	<?php 
include 'html/templates/interior/timer.php';
?>

	<?php 
include 'html/templates/interior/idletimeout.php';
?>

	<div id = "nav_container">

		<?php 
$t = tabs($dbh, $_GET['i']);
echo $t;
?>

		<div id="menus">

			<?php 
include 'html/templates/Menus.php';
?>

		</div>

	</div>

	<div id="content">
예제 #17
0
    <style type="text">
        html, body {
			margin: 0;			/* Remove body margin/padding */
			padding: 0;
		    overflow: hidden;	/* Remove scroll bars on browser window */
	        font-size: 62.5%;
        }
		body {
			font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
		}
		#tags {z-index: 900}
    </style>
    <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" />
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/jquery.jqChart.min.js" type="text/javascript"></script>
     
    <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
  </head>
  <body>
      <div>
		<?php 
include "chart.php";
?>
      </div>
      <br/>
      <?php 
tabs(array("chart.php"));
?>
   </body>
</html>
예제 #18
0
		jQuery(document).ready(function(){
		  if(Modernizr.input.pattern) {
			  jQuery("#supported").append("<div>Your browser support 'pattern' input property!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support 'pattern' input property!</div>").addClass('ui-state-error');
		  }			
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "html5pattern.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("html5pattern.php"));
?>
   </body>
</html>
예제 #19
0
    <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" />
    <style type="text">
        html, body {
        margin: 0;			/* Remove body margin/padding */
    	padding: 0;
        overflow: hidden;	/* Remove scroll bars on browser window */
        font-size: 75%;
        }
    </style>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
	<script type="text/javascript">
	$.jgrid.no_legacy_api = true;
	$.jgrid.useJSON = true;
	</script>
    <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
  </head>
  <body>
      <div>
          <?php 
include "grid.php";
?>
      </div>
      <br/>
      <?php 
tabs(array("grid.php", "city.php"));
?>
   </body>
</html>
예제 #20
0
    <link rel="stylesheet" type="text/css" media="screen" href="../../../themes/ui.multiselect.css" />
    <style type="text">
        html, body {
        margin: 0;			/* Remove body margin/padding */
    	padding: 0;
        overflow: hidden;	/* Remove scroll bars on browser window */
        font-size: 75%;
        }
    </style>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
	<script type="text/javascript">
	$.jgrid.no_legacy_api = true;
	$.jgrid.useJSON = true;
	</script>
    <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
  </head>
  <body>
      <div>
          <?php 
include "grid.php";
?>
      </div>
      <br/>
      <?php 
tabs(array("grid.php", "details.php"));
?>
   </body>
</html>
예제 #21
0
if(isset($_GET["change-hostname-js"])){ChangeHostName_js();exit;}
if(isset($_GET["hostname"])){hostname();exit;}
if(isset($_GET["ChangeHostName"])){ChangeHostName();exit;}

if(isset($_GET["AddDNSServer"])){AddDNSServer();exit;}
if(isset($_GET["DeleteDNS"])){DeleteDNS();exit;}
if(isset($_GET["DNSServers"])){DNS_SERVERS_POPUP();}
if(isset($_GET["DNSServers-list"])){DNS_SERVERS_POPUP_LIST();}



if(isset($_GET["js"])){js();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["popup2"])){popup2();exit;}
if(isset($_GET["popup-tabs"])){tabs();exit;}
if(isset($_GET["popup-hostname"])){tabs_hostname();exit;}

if(isset($_GET["virtual-popup-add"])){virtual_add_form();exit;}
if(isset($_GET["virtual-popup-addv6"])){virtual_add_formv6();exit;}


if(isset($_GET["cdir-ipaddr"])){virtual_cdir();exit;}
if(isset($_GET["postfix-virtual"])){virtuals_js();exit;}
if(isset($_GET["js-add-nic"])){echo virtuals_js_datas();exit;}

if(isset($_GET["bridges-add-form"])){Bridges_form_add();exit;}
if(isset($_GET["bridges-list"])){Bridges_list();exit;}
if(isset($_GET["bridge-add"])){Bridges_add();exit;}
if(isset($_GET["bridge-del"])){Bridges_del();exit;}
if(isset($_GET["bridges-rules"])){Bridges_rules();exit;}
예제 #22
0
    <script src="../../../js/jquery.js" type="text/javascript"></script>
	<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>	
    <script src="../../../js/jquery.form.js" type="text/javascript"></script>
    <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script>
	<script type="text/javascript">
		jQuery(document).ready(function(){
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "jscode.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("jscode.php"));
?>
   </body>
</html>
예제 #23
0
    <style type="text">
        html, body {
        margin: 0;			/* Remove body margin/padding */
    	padding: 0;
        overflow: hidden;	/* Remove scroll bars on browser window */
        font-size: 75%;
        }
    </style>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
	<script type="text/javascript">
	$.jgrid.no_legacy_api = true;
	$.jgrid.useJSON = true;
	var lastSelection;
	</script>
    <script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
  </head>
  <body>
      <div>
          <?php 
include "grid.php";
?>
      </div>
      <br/>
      <?php 
tabs(array("grid.php"));
?>
   </body>
</html>
예제 #24
0
function mastercf()
{
    $master = new master_cf();
    if ($master->error != null) {
        ERROR_CLASS($master->error);
        exit;
    }
    $array = $master->master_array;
    $tabs = tabs();
    $html = "{$tabs}<table  class='table_master_cf'>\n\t<tr class=rowT>\n\t<td width=50>service</td>\n\t<td width=20>type</td>\n\t<td width=20>private</td>\n\t<td width=20>unpriv</td>\n\t<td width=20>chroot</td>\n\t<td width=20>wakeup</td>\n\t<td>command + parameters</td>\n\t</td>\n\t";
    while (list($num, $val) = each($array)) {
        $ligne = $val["LINE"];
        if ($class == "rowA") {
            $class = "rowB";
        } else {
            $class = "rowA";
        }
        $html = $html . "<tr class='{$class}'>\n\t\t<td>{$ligne["SERVICE"]}</TD>\n\t\t<td align='center'>{$ligne["TYPE"]}</TD>\n\t\t<td  align='center'>{$ligne["PRIVATE"]}</TD>\n\t\t<td  align='center'>{$ligne["UNPRIV"]}</TD>\n\t\t<td  align='center'>{$ligne["CHROOT"]}</TD>\n\t\t<td  align='center'>{$ligne["WAKEUP"]}</TD>\n\t\t<td  align='left'>{$ligne["COMMAND"]}" . table_options($val["OPTIONS"]) . "</TD>\n\t\t</tr>\n\t\t";
    }
    $html = $html . "</table>";
    $tpl = new templates("{title}", $html);
    echo $tpl->web_page;
}
예제 #25
0
function popup()
{
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body(tabs());
}
예제 #26
0
/**
 * Generates the code to correctly cast the references variable using
 * the parent_rsrc_type in order to correctly retrieve the references
 * object.
 */
function references_cast_code($class_name)
{
    $derivations = derivationsOfClass($class_name);
    //Instead of using elseif we have to break it in multiple if since
    //MS Visual C++ compiler doesnt supports a very deep elseif sequence.
    $code .= "bool reference_type_found = false;\n\n";
    $code .= tabs(3) . "if(current_object_type == PHP_" . strtoupper($class_name) . "_TYPE){\n";
    $code .= tabs(4) . "references = &(({$class_name}_php*)native_object)->references;\n";
    $code .= tabs(4) . "reference_type_found = true;\n";
    $code .= tabs(3) . "}\n";
    foreach ($derivations as $derivation_name => $derivation_value) {
        $code .= tabs(3) . "if((current_object_type == PHP_" . strtoupper($derivation_name) . "_TYPE) && (!reference_type_found)){\n";
        $code .= tabs(4) . "references = &(({$derivation_name}_php*)native_object)->references;\n";
        $code .= tabs(4) . "reference_type_found = true;\n";
        $code .= tabs(3) . "}\n";
    }
    return $code;
}
예제 #27
0
    <script src="../../../js/jquery.js" type="text/javascript"></script>
	<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>	
    <script src="../../../js/jquery.form.js" type="text/javascript"></script>
    <script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script>
	<script type="text/javascript">
		jQuery(document).ready(function(){
		  if(Modernizr.inputtypes.number) {
			  jQuery("#supported").append("<div>Your browser support input type: number!</div>");
		  } else {
			  jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
		  }
	  });
	</script>
	
  </head>
  <body>
      <div style="margin-left:20px;margin-right: 20px;">
          <?php 
include "fileupload.php";
?>
		  <div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
      </div>
      <br/>
	  <div id="supported"></div>
	  <div id="notsupported"></div>
      <?php 
tabs(array("fileupload.php"));
?>
   </body>
</html>
예제 #28
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once("ressources/class.os.system.inc");
	include_once("ressources/class.lvm.org.inc");
	
	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();}
	
	if(isset($_GET["display2"])){hd_index();exit;}
	if(isset($_GET["display"])){tabs();exit;}
	if(isset($_GET["hd-index-list"])){hd_index_list();exit;}
	if(isset($_GET["partinfos"])){hd_partinfos();exit;}
	if(isset($_GET["ChangeLabel"])){ChangeLabel();exit;}
	if(isset($_GET["BuildBigPartition"])){BuildBigPartition();exit;}
	if(isset($_GET["Lastlogs"])){Lastlogs();exit;}
	if(isset($_GET["SMARTDIndex"])){SMARTDIndex();exit;}
	if(isset($_GET["SMARTDStats"])){SMARTDStats();exit;}
	if(isset($_GET["SMARTDAttrs"])){SMARTDAttrs();exit;}
	if(isset($_GET["SMARTDInfo"])){SMARTDIndexInfos($_GET["SMARTDInfo"]);exit;}
	if(isset($_GET["SMARTDSlefttestShort"])){SMARTDTestShort();exit;}
	if(isset($_GET["EnableSmartctl"])){SMARTDEnable();exit;}
	if(isset($_GET["pvcreatedev"])){lvm_pvcreate_dev();exit;}
	if(isset($_GET["vgcreatedev"])){lvm_vgcreate_dev();exit;}
	if(isset($_GET["vglist"])){echo lv_groups_list($_GET["vglist"]);exit;}
	if(isset($_GET["lvcreate"])){lvm_lvcreate();exit;}
	if(isset($_GET["LVMS_SIZE"])){lvm_lvcreate_save();exit;}
	if(isset($_GET["switchtab"])){hd_partinfos_switch();exit;}
	if(isset($_GET["disk-toolbar-for"])){hd_partinfos_toolbar();exit;}
	if(isset($_GET["lvg"])){echo lv_groups_list($_GET["lvg"]);exit;}
예제 #29
0
include_once dirname(__FILE__) . "/ressources/class.sockets.inc";
include_once dirname(__FILE__) . "/ressources/class.pdns.inc";
include_once dirname(__FILE__) . '/ressources/class.system.network.inc';
$user = new usersMenus();
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["services-status"])) {
    services_status();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["parameters"])) {
    parameters();
    exit;
}
if (isset($_POST["EnableRDPProxy"])) {
    EnableRDPProxy();
    exit;
}
if (isset($_GET["members"])) {
    members();
    exit;
}
if (isset($_GET["members-search"])) {
예제 #30
0
function page_tab_path()
{
    $html = tabs() . "<br>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td width=50%' valign='top'>" . WebRoot() . "<br>" . MaxLogsFiles() . "</td>\n\t\t\t<td width=50%' valign='top'>" . queuePath() . "</td>\n\t\t</tr>\n\t\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}