本文整理汇总了PHP中Save函数的典型用法代码示例。如果您正苦于以下问题:PHP Save函数的具体用法?PHP Save怎么用?PHP Save使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Save函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: usersMenus
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.squid.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(isset($_GET["tab"])){tabs();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_POST["SquidBoosterMem"])){Save();exit;}
if(isset($_GET["status"])){status();exit;}
if(isset($_GET["cache-mem"])){cache_mem();exit;}
if(isset($_GET["cache-rock"])){cache_rock();exit;}
js();
function js() {
header("content-type: application/x-javascript");
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{squid_booster}");
$page=CurrentPageName();
echo "
AnimateDiv('BodyContent');
LoadAjax('BodyContent','$page?tabs=yes');";
示例2: Script
function Script($n)
{
if ($n->hasChildNodes()) {
$i = 0;
while ($i < $n->childNodes->length) {
$cur = $n->childNodes->item($i);
if ($cur->nodeType == XML_DOCUMENT_NODE || $cur->nodeType == XML_ELEMENT_NODE) {
$curname = $cur->nodeName;
if (substr($curname, 0, 4) == "txs:") {
$xpath = new DOMXPath($n->ownerDocument);
$xpath->registerNameSpace("txs", "http://www.agencexml.com/txs");
$xpath->registerNameSpace("xsl", "http://www.w3.org/1999/XSL/Transform");
if ($cur->getAttribute("node") != '') {
if ($xpath->query($cur->getAttribute("node"), $cur)->length == 0) {
$curname = "dummy";
}
} else {
if ($xpath->query("ancestor::xsl:stylesheet", $cur)->length != 0 || $xpath->query("ancestor::txs:model", $cur)->length != 0) {
$curname = "dummy";
}
}
}
switch ($curname) {
case "txs:load":
Load($cur);
break;
case "txs:save":
Script($cur);
Save($cur);
break;
case "txs:transform":
Script($cur);
Transform($cur);
continue 2;
case "txs:httprequest":
Httprequest($cur);
break;
case "txs:call":
Call($cur);
continue 2;
case "txs:fileexists":
FileExists($cur);
break;
case "txs:folderexists":
FolderExists($cur);
break;
case "txs:from-model":
Script($cur);
FromModel($cur, $cur);
break;
case "txs:process":
Process($cur);
break;
default:
Script($cur);
}
}
$i++;
}
}
}
示例3: usersMenus
include_once('ressources/class.system.network.inc');
include_once('ressources/class.squid.inc');
include_once('ressources/class.ccurl.inc');
include_once("ressources/class.compile.ufdbguard.expressions.inc");
$user=new usersMenus();
if($user->AsDansGuardianAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if(isset($_GET["page"])){page();exit;}
if(isset($_GET["parameters"])){parameters();exit;}
if(isset($_GET["status"])){status();exit;}
if(isset($_POST["ufdbCatInterface"])){Save();exit;}
tabs();
function tabs(){
$tpl=new templates();
$page=CurrentPageName();
$users=new usersMenus();
$sock=new sockets();
$fontsize=18;
$array["page"]='{APP_UFDBCAT}';
$array["verify"]='{databases_status}';
$AsCategoriesAppliance=intval($sock->GET_INFO("AsCategoriesAppliance"));
if($AsCategoriesAppliance==1){
示例4: usersMenus
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.backuppc.inc');
if(posix_getuid()==0){die();}
$user=new usersMenus();
if($user->AsSystemAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["popup-status"])){popup_status();exit;}
if(isset($_GET["popup-settings"])){popup_settings();exit;}
if(isset($_GET["EnableBackupPc"])){Save();exit;}
js();
function js() {
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{APP_BACKUPPC}");
$page=CurrentPageName();
$start="BACKUPPC_START()";
if(isset($_GET["in-front-ajax"])){$start="BACKUPPC_START2()";}
$html="
function BACKUPPC_START(){YahooWin2('650','$page?popup=yes','$title');}
示例5: usersMenus
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.groups.inc');
include_once('ressources/class.artica.inc');
include_once('ressources/class.ini.inc');
include_once('ressources/class.squid.inc');
include_once('ressources/class.system.network.inc');
$user=new usersMenus();
if($user->AsDansGuardianAdministrator==false){
$tpl=new templates();
echo "<script>alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');</script>";
die();exit();
}
if(isset($_POST["AllowSquidDropBox"])){Save();exit;}
page();
function page(){
$tpl=new templates();
$page=CurrentPageName();
$sock=new sockets();
$t=time();
$AllowSquidDropBox=intval($sock->GET_INFO("AllowSquidDropBox"));
$AllowSquidSkype=intval($sock->GET_INFO("AllowSquidSkype"));
$AllowSquidOffice365=intval($sock->GET_INFO("AllowSquidOffice365"));
$AllowSquidGoogle=intval($sock->GET_INFO("AllowSquidGoogle"));
$DropBox=Paragraphe_switch_img("{AllowSquidDropBox}", "{AllowSquidDropBox_explain}","AllowSquidDropBox",
$AllowSquidDropBox,null,650);
示例6: templates
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.ini.inc');
include_once('ressources/class.samba.inc');
if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;}
$tpl=new templates();
$ERROR_NO_PRIVS=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
$users=new usersMenus();
if(!$users->AsSambaAdministrator){echo "alert('$ERROR_NO_PRIVS');";die();}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["admin-users"])){admin_users();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_POST["mask_lock_options"])){Save();exit;}
if(isset($_POST["SambaAdminUserAdd"])){admin_users_add();exit;}
if(isset($_POST["SambaAdminUserDel"])){admin_users_del();exit;}
js();
function js(){
$page=CurrentPageName();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{shared_folders}::{default_settings}");
$html="YahooWin5('600','$page?tabs=yes','$title')";
echo $html;
示例7: usersMenus
include_once('ressources/class.squid.inc');
include_once('ressources/class.mysql.inc');
if(!isset($_GET["t"])){$_GET["t"]=time();}
if(!is_numeric($_GET["t"])){$_GET["t"]=time();}
$user=new usersMenus();
if(($user->AsSquidAdministrator==false)) {
$tpl=new templates();
$text=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
$text=replace_accents(html_entity_decode($text));
echo "<script>alert('$text');</script>";
exit;
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_POST["SSL_BUMP_WHITE_LIST"])){Save();exit;}
if(isset($_GET["SSL_CERTIF_DOWN"])){SSL_CERTIF_DOWN();exit;}
tabs();
function tabs(){
$tpl=new templates();
$users=new usersMenus();
$page=CurrentPageName();
$squid=new squidbee();
$fontsize=20;
$sock=new sockets();
$compilefile="ressources/logs/squid.compilation.params";
if(!is_file($compilefile)){$sock->getFrameWork("squid.php?compil-params=yes");}
示例8: js
<?php
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.squid.inc');
include_once('ressources/class.ActiveDirectory.inc');
include_once('ressources/class.compile.ufdbguard.inc');
if(isset($_POST["servername_squidguard"])){Save();exit;}
if(isset($_GET["popup"])){popup();exit;}
js();
function js(){
$tpl=new templates();
$page=CurrentPageName();
$title=$tpl->_ENGINE_parse_body("{webpage_deny_url}");
header("content-type: application/x-javascript");
$html="YahooWin5('650','$page?popup=yes','$title');";
echo $html;
}
function popup(){
$page=CurrentPageName();
$sock=new sockets();
$users=new usersMenus();
示例9: usersMenus
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');
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
$tpl=new templates();
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
echo "alert('$alert');";
die();
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_POST["watchdog"])){Save();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["events"])){events_table();exit;}
if(isset($_GET["rows-table"])){rows_table();exit;}
if(isset($_GET["notifs"])){smtp_notifs();exit;}
if(isset($_POST["ENABLED_SQUID_WATCHDOG"])){save_watchdog_notif();exit;}
js();
function Save(){
$sock=new sockets();
$final=base64_encode(serialize($_POST));
$sock->SaveConfigFile($final, "SquidWatchdogMonitConfig");
$sock->SET_INFO("SquidCacheReloadTTL", $_POST["SquidCacheReloadTTL"]);
$sock->getFrameWork("squid.php?watchdog-config=yes");
示例10: include_once
if(!isset($_SESSION["uid"])){die();}
include_once(dirname(__FILE__)."/ressources/class.templates.inc");
include_once(dirname(__FILE__)."/ressources/class.users.menus.inc");
include_once(dirname(__FILE__)."/ressources/class.mysql.archive.builder.inc");
include_once(dirname(__FILE__)."/ressources/class.user.inc");
include_once(dirname(__FILE__).'/ressources/smtp/smtp.php');
$users=new usersMenus();
if(!$users->AsHotSpotManager){die();}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["smtp-params"])){smtp_notifs();exit;}
if(isset($_POST["ENABLED_AUTO_LOGIN"])){Save();exit;}
if(isset($_POST["tls_enabled"])){Save();exit;}
if(isset($_GET["test-smtp-js"])){tests_smtp();exit;}
js();
function tabs(){
$page=CurrentPageName();
$tpl=new templates();
$users=new usersMenus();
if(!$users->WIFIDOG_INSTALLED){
echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>");
return;
}
示例11: usersMenus
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.artica.inc');
include_once('ressources/class.ini.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.squid.inc');
$user=new usersMenus();
if($user->AsDansGuardianAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if(isset($_POST["ENABLED"])){Save();exit;}
if(isset($_GET["js"])){js();exit;}
page();
function js(){
header("content-type: application/x-javascript");
$t=$_GET["t"];
$page=CurrentPageName();
$tpl=new templates();
$title=$tpl->javascript_parse_text("{smtp_notifications}");
echo "LoadWinORG2('705','$page','$title')";
}
function page(){
示例12: usersMenus
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');
$user=new usersMenus();
if($user->AsSquidAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["AOL"])){Save();exit;}
js();
function js(){
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{instant_messengers}");
$page=CurrentPageName();
echo "YahooWin3('330','$page?popup=yes','$title');";
}
function popup(){
示例13: usersMenus
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
$tpl=new templates();
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
echo "alert('$alert');";
die();
}
if(isset($_GET["step0"])){step0();exit;}
if(isset($_GET["step1"])){step1();exit;}
if(isset($_GET["step2"])){step2();exit;}
if(isset($_GET["step3"])){step3();exit;}
if(isset($_GET["step4"])){step4();exit;}
if(isset($_POST["DOMAIN"])){Save();exit;}
if(isset($_POST["LOCALNET"])){Save();exit;}
if(isset($_POST["PROXY"])){Save();exit;}
if(isset($_POST["agree"])){agree();exit;}
start_js();
function start_js(){
header("content-type: application/x-javascript");
$tpl=new templates();
$page=CurrentPageName();
$title=$tpl->javascript_parse_text("{autoconfiguration_wizard}");
echo "YahooWin2(900,'$page?step0=yes','$title',true)";
}
示例14: usersMenus
include_once('ressources/class.groups.inc');
include_once('ressources/class.squid.inc');
$usersmenus=new usersMenus();
if(!$usersmenus->AsDansGuardianAdministrator){
$tpl=new templates();
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
echo "alert('$alert');";
die();
}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_POST["EnablePagePeeker"])){Save();exit;}
js();
function js(){
$page=CurrentPageName();
$tpl=new templates();
$html="YahooWin4('550','$page?popup=yes','PagePeeker')";
echo $html;
}
示例15: Add
$row[] = '<div class="callapp_checkbox">
<input type="checkbox" id="callapp_checkbox_detail_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" />
<label for="callapp_checkbox_detail_' . $aRow[$hidden] . '"></label>
</div>';
}
}
$data['aaData'][] = $row;
}
break;
case 'save':
if ($name != '') {
if (!CheckExist($name)) {
if ($new_str == 1) {
Add($id, $name);
} else {
Save($id, $name);
}
} else {
$error = '"' . $name . '" უკვე არის სიაში!';
}
}
break;
case 'save_detail':
if ($value != '') {
if (!CheckDetailExist($value)) {
if ($id_detail == '') {
AddDetail($id_original, $value);
} else {
SaveDetail($id_detail, $value);
}
} else {