本文整理汇总了PHP中url_decode_special_tool函数的典型用法代码示例。如果您正苦于以下问题:PHP url_decode_special_tool函数的具体用法?PHP url_decode_special_tool怎么用?PHP url_decode_special_tool使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了url_decode_special_tool函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Save
function Save()
{
$sock = new sockets();
if (isset($_POST["SystemLogsPath"])) {
$_POST["SystemLogsPath"] = url_decode_special_tool($_POST["SystemLogsPath"]);
}
if (isset($_POST["BackupMaxDaysDir"])) {
$_POST["BackupMaxDaysDir"] = url_decode_special_tool($_POST["BackupMaxDaysDir"]);
}
if (isset($_POST["BackupSquidLogsNASFolder"])) {
$_POST["BackupSquidLogsNASFolder"] = url_decode_special_tool($_POST["BackupSquidLogsNASFolder"]);
}
if (isset($_POST["SystemLogsPath"])) {
$_POST["SystemLogsPath"] = url_decode_special_tool($_POST["SystemLogsPath"]);
}
if (isset($_POST["BackupSquidLogsNASPassword"])) {
$_POST["BackupSquidLogsNASPassword"] = url_decode_special_tool($_POST["BackupSquidLogsNASPassword"]);
}
if (isset($_POST["BackupSquidLogsNASFolder2"])) {
$_POST["BackupSquidLogsNASFolder2"] = url_decode_special_tool($_POST["BackupSquidLogsNASFolder2"]);
}
while (list($key, $value) = each($_POST)) {
$value = url_decode_special_tool($value);
$sock->SET_INFO($key, $value);
}
}
示例2: FETCHMAIL_CONTENT
function FETCHMAIL_CONTENT()
{
$_POST["FETCHMAIL_CONTENT"] = url_decode_special_tool($_POST["FETCHMAIL_CONTENT"]);
$content = urlencode(base64_encode($_POST["FETCHMAIL_CONTENT"]));
$sock = new sockets();
$datas = base64_decode($sock->getFrameWork("fetchmail.php?SaveFetchmailContent={$content}"));
}
示例3: Save
function Save()
{
$sock = new sockets();
$_POST["WINDOWS_SERVER_PASS"] = url_decode_special_tool($_POST["WINDOWS_SERVER_PASS"]);
$_POST["LDAP_SUFFIX"] = url_decode_special_tool($_POST["LDAP_SUFFIX"]);
$sock->SaveConfigFile(serialize($_POST), "ZarafaImportADSettings");
}
示例4: save
function save()
{
$servername = $_POST["servername"];
$q = new mysql();
if (!$q->TABLE_EXISTS("freeweb_slashsquid", "artica_backup")) {
$q->BuildTables();
}
$_POST["subtitle"] = url_decode_special_tool($_POST["subtitle"]);
$sql = "SELECT servername,params FROM freeweb_slashsquid WHERE servername='{$servername}'";
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
if ($ligne["servername"] != null) {
$params = unserialize(base64_decode($ligne["{$params}"]));
$params["title"] = url_decode_special_tool($_POST["title"]);
$params1 = base64_encode(serialize($params));
$sql = "UPDATE freeweb_slashsquid \n\t\tSET backgroundcolor='" . $_POST["backgroundcolor"] . "',\n\t\tsubtitle='" . mysql_escape_string2($_POST["subtitle"]) . "',\n\t\tdebug_auth='" . mysql_escape_string2($_POST["debug_auth"]) . "',\n\t\tparams='" . mysql_escape_string2($params1) . "' \n\t\tWHERE servername='{$servername}'";
} else {
$params["title"] = url_decode_special_tool($_POST["title"]);
$params1 = base64_encode(serialize($params));
$sql = "INSERT INTO freeweb_slashsquid (backgroundcolor,subtitle,debug_auth,params,servername)\n\t\tVALUES ('{$_POST["backgroundcolor"]}',\n\t\t'" . mysql_escape_string2($_POST["subtitle"]) . "',\n\t\t'" . mysql_escape_string2($_POST["debug_auth"]) . "',\n\t\t'" . mysql_escape_string2($params1) . "', '{$servername}');";
}
$q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo $q->mysql_error;
}
}
示例5: save
function save()
{
$_POST["relay_password"] = url_decode_special_tool($_POST["relay_password"]);
$q = new mysql();
if (!$q->FIELD_EXISTS("relay_host", "enabledauth", "artica_backup")) {
$sql = "ALTER TABLE `relay_host` ADD `enabledauth` smallint( 1 ) NOT NULL ";
$q->QUERY_SQL($sql, "artica_backup");
}
if (!$q->FIELD_EXISTS("relay_host", "username", "artica_backup")) {
$sql = "ALTER TABLE `relay_host` ADD `username` VARCHAR( 128 ) NOT NULL ";
$q->QUERY_SQL($sql, "artica_backup");
}
if (!$q->FIELD_EXISTS("relay_host", "password", "artica_backup")) {
$sql = "ALTER TABLE `relay_host` ADD `password` VARCHAR( 128 ) NOT NULL ";
$q->QUERY_SQL($sql, "artica_backup");
}
if (!$q->FIELD_EXISTS("relay_host", "lookups", "artica_backup")) {
$sql = "ALTER TABLE `relay_host` ADD `lookups` smallint(1) NOT NULL ";
$q->QUERY_SQL($sql, "artica_backup");
}
if ($_POST["relay_address"] == null) {
echo "relay address: not set...\n";
return;
}
if ($_POST["relay_port"] == 0) {
$_POST["relay_port"] = 25;
}
$q->QUERY_SQL("DELETE FROM `relay_host` WHERE hostname='{$_POST["hostname"]}'", "artica_backup");
$sql = "INSERT IGNORE INTO relay_host\n\t(`hostname`,`enabled`,`enabledauth`,`relay`,`relay_port`,`username`,`password`,`lookups`)\n\tVALUES('{$_POST["hostname"]}','{$_POST["enabled"]}','{$_POST["enabledauth"]}','{$_POST["relay_address"]}',\n\t'{$_POST["relay_port"]}','{$_POST["relay_username"]}','{$_POST["relay_password"]}','{$_POST["lookups"]}')";
$q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo $q->mysql_error;
}
}
示例6: import
function import()
{
$sock = new sockets();
$defaultdomain = $_POST["default-domain"];
$path = base64_encode(url_decode_special_tool($_POST["import-path"]));
echo base64_decode($sock->getFrameWork("pdns.php?import-file={$path}&domain={$defaultdomain}"));
}
示例7: SaveCyrusPassword
function SaveCyrusPassword()
{
$ldap = new clladp();
$_POST["SaveCyrusPassword"] = url_decode_special_tool(trim($_POST["SaveCyrusPassword"]));
if ($_POST["SaveCyrusPassword"] == null) {
echo "Error: No password defined\n";
return;
}
if (strpos($_POST["SaveCyrusPassword"], '@') > 0) {
echo "@,: denied character\n";
return;
}
if (strpos($_POST["SaveCyrusPassword"], ':') > 0) {
echo "@,: denied character\n";
return;
}
$attrs["userPassword"][0] = $_POST["SaveCyrusPassword"];
$dn = "cn=cyrus,dc=organizations,{$ldap->suffix}";
if ($ldap->ExistsDN($dn)) {
if (!$ldap->Ldap_modify($dn, $attrs)) {
echo $ldap->ldap_last_error;
return;
}
}
$dn = "cn=cyrus,{$ldap->suffix}";
if ($ldap->ExistsDN($dn)) {
if (!$ldap->Ldap_modify($dn, $attrs)) {
echo $ldap->ldap_last_error;
return;
}
}
$sock = new sockets();
$sock->getFrameWork("cmd.php?cyrus-change-password=" . base64_encode($_POST["SaveCyrusPassword"]));
}
示例8: wizard_certificate_save
function wizard_certificate_save()
{
$password = url_decode_special_tool($_POST["wizard-certificate-password"]);
$password = mysql_escape_string2($password);
$CommonName = url_decode_special_tool($_POST["wizard-certificate-commonname"]);
$CommonName = strtolower(trim($CommonName));
if ($CommonName == null) {
echo "CommonName, no such data";
return;
}
$q = new mysql();
$sql = "SELECT CommonName FROM sslcertificates WHERE CommonName='{$CommonName}'";
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
if ($ligne["CommonName"] != null) {
echo "{$CommonName} Already exists...\n";
return;
}
$sql = "INSERT IGNORE INTO sslcertificates (CommonName,keyPassword,password) VALUES ('{$CommonName}','{$password}','{$password}')";
$q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo "MySQL Error:\n" . $q->mysq_error . "\n{$sql}";
return;
}
$sock = new sockets();
$CommonName = urlencode($CommonName);
echo base64_decode($sock->getFrameWork("system.php?BuildCSR={$CommonName}"));
}
示例9: popup_import_list
function popup_import_list()
{
$datas = url_decode_special_tool($_POST["popup_import_list"]);
$sock = new sockets();
$sock->SaveConfigFile($datas, "ComputerListToImport");
$sock->getFrameWork("cmd.php?browse-computers-import-list=yes");
}
示例10: SAVE_SCRIPT
function SAVE_SCRIPT()
{
$gpid = $_POST["gpid"];
$_POST["script_data"] = url_decode_special_tool($_POST["script_data"]);
$_POST["script_data"] = str_replace("\n\n", "\n", $_POST["script_data"]);
$datas = base64_encode($_POST["script_data"]);
$sql = "SELECT gpid FROM logon_scripts WHERE gpid={$gpid}";
$q = new mysql();
$ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
$sql_edit = "UPDATE logon_scripts SET script_code='{$datas}' WHERE gpid={$gpid}";
$sql_add = "INSERT INTO logon_scripts(gpid,script_code) VALUES({$gpid},'{$datas}');";
if ($ligne["gpid"] == null) {
$sql = $sql_add;
} else {
$sql = $sql_edit;
}
$q->QUERY_SQL($sql, "artica_backup");
if (!$q->ok) {
echo $q->mysql_error;
} else {
$tpl = new templates();
echo $tpl->javascript_parse_text("{success}");
$sock = new sockets();
$sock->getFrameWork("cmd.php?smb-logon-scripts=yes");
}
}
示例11: Save
function Save()
{
$sock = new sockets();
$content = url_decode_special_tool($_POST["SpamAssassinTemplate"]);
$sock->SaveConfigFile($content, "SpamAssassinTemplate");
$sock->getFrameWork("cmd.php?smtp-whitelist=yes");
}
示例12: save
function save()
{
$_POST["smtp_auth_passwd"] = url_decode_special_tool($_POST["smtp_auth_passwd"]);
$Key = md5("SMTPTESTS-{$_POST["servername"]}&ou={$_POST["ou"]}");
$sock = new sockets();
$sock->SaveConfigFile(base64_encode(serialize($_POST)), $Key);
$sock->getFrameWork("services.php?test-send-email={$Key}");
}
示例13: save
function save()
{
$squid = new squidbee();
$sock = new sockets();
$sock->SET_INFO("SquidNoAccessLogs", $_POST["SquidNoAccessLogs"]);
$_POST["PERSO_EVENT"] = url_decode_special_tool($_POST["PERSO_EVENT"]);
$sock->SaveConfigFile(base64_encode(serialize($_POST)), "SquidSyslogAdd");
}
示例14: Save
function Save()
{
$sock = new wifidog_settings($_POST["ruleid"]);
unset($_POST["ruleid"]);
while (list($key, $value) = each($_POST)) {
$value = url_decode_special_tool($value);
$sock->SET_INFO($key, $value);
}
}
示例15: SaveBlockSettings
function SaveBlockSettings()
{
$sock = new sockets();
$_POST["SquidGuardWebAllowUnblockSinglePassContent"] = url_decode_special_tool($_POST["SquidGuardWebAllowUnblockSinglePassContent"]);
$sock->SET_INFO("SquidGuardWebAllowUnblockSinglePass", $_POST["SquidGuardWebAllowUnblockSinglePass"]);
$sock->SET_INFO("SquidGuardWebAllowUnblockSinglePassContent", $_POST["SquidGuardWebAllowUnblockSinglePassContent"]);
$sock->SET_INFO("SquidGuardWebUseLocalDatabase", $_POST["SquidGuardWebUseLocalDatabase"]);
$sock->getFrameWork("squid.php?weberror-cache-remove=yes");
}