• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP url_decode_special_tool函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中url_decode_special_tool函数的典型用法代码示例。如果您正苦于以下问题:PHP url_decode_special_tool函数的具体用法?PHP url_decode_special_tool怎么用?PHP url_decode_special_tool使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了url_decode_special_tool函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:squid.nas.storage.php


示例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}"));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:fetchmailrc.php


示例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");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:zarafa.import-ad-contacts.php


示例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;
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:freeweb.splashsquid.php


示例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;
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:postfix.routing.relayhost.php


示例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}"));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:pdns.import.php


示例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"]));
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:34,代码来源:cyrus.password.php


示例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}"));
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:certificates.center.wizard.php


示例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");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:ocs.import.php


示例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");
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:domains.edit.group.login.script.php


示例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");
}
开发者ID:articatech,项目名称:artica,代码行数:7,代码来源:spamassassin.template.php


示例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}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:postfix.smtp-tests.php


示例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");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:8,代码来源:squid.syslog.php


示例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);
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:webauth.rules.text.php


示例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");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:squidguardweb.unblock.php


示例16: Save

function Save()
{
    $_POST["rulename"] = mysql_escape_string2(url_decode_special_tool($_POST["rulename"]));
    $sql = "UPDATE haproxy_acls_rules SET \n\t\trulename='{$_POST["rulename"]}',\n\t\trule_action='{$_POST["rule_action"]}',\n\t\trule_action_data='{$_POST["rule_action_data"]}',\n\t\tzorder='{$_POST["zorder"]}'\n\t\tWHERE ID={$_POST["ruleid"]}";
    $q = new mysql();
    $q->QUERY_SQL($sql, "artica_backup");
    if (!$q->ok) {
        echo $q->mysql_error;
    }
}
开发者ID:articatech,项目名称:artica,代码行数:10,代码来源:haproxy.acls.settings.php


示例17: Save

function Save()
{
    $sock = new sockets();
    $_POST["ZarafaRemoteMySQLServerPassword"] = url_decode_special_tool($_POST["ZarafaRemoteMySQLServerPassword"]);
    $sock->SET_INFO("ZarafaMySQLServiceType", $_POST["ZarafaMySQLServiceType"]);
    $sock->SET_INFO("ZarafaRemoteMySQLServer", $_POST["ZarafaRemoteMySQLServer"]);
    $sock->SET_INFO("ZarafaRemoteMySQLServerPort", $_POST["ZarafaRemoteMySQLServerPort"]);
    $sock->SET_INFO("ZarafaRemoteMySQLServerAdmin", $_POST["ZarafaRemoteMySQLServerAdmin"]);
    $sock->SET_INFO("ZarafaRemoteMySQLServerPassword", $_POST["ZarafaRemoteMySQLServerPassword"]);
    $sock->getFrameWork("zarafa.php?reload=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:11,代码来源:zarafa.mysqlparams.php


示例18: 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);
    }
    $sock = new sockets();
    $sock->getFrameWork("hotspot.php?remove-cache=yes");
}
开发者ID:articatech,项目名称:artica,代码行数:11,代码来源:webauth.rules.skin.php


示例19: Save

function Save()
{
    $acl = new squid_acls_groups();
    $DATAS = url_decode_special_tool($_POST["Save"]);
    $MAIN = explode("\n", $DATAS);
    while (list($index, $ligne) = each($MAIN)) {
        if (strpos($ligne, ";") == 0) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        $tr = explode(";", $ligne);
        if (count($tr) < 2) {
            echo "{$ligne} -> FALSE\n";
            continue;
        }
        $GroupName = $tr[0];
        $Categories = explode(",", $tr[1]);
        if ($Categories[0] == null) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        $gpid = GetADGroupID($GroupName);
        echo "{$GroupName} ID {$gpid}\n";
        if ($gpid == 0) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        $Category_groupnane = "{$GroupName} - categories";
        $CategoryID = GetCategoryGroupID($GroupName);
        if ($CategoryID == 0) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        FillCategoryItems($CategoryID, $Categories);
        $RuleName = "{$GroupName} - categories";
        $RuleID = GetRuleID($RuleName);
        if ($RuleID == 0) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        AssociatesG($RuleID, $gpid, 0);
        AssociatesG($RuleID, $CategoryID, 1);
        if (!$acl->aclrule_edittype($RuleID, "url_rewrite_access_allow", 1)) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        if (!$acl->aclrule_edittype($RuleID, "url_rewrite_access_deny", 1)) {
            echo "{$ligne} -> FALSE ERR." . __LINE__ . "\n";
            continue;
        }
        echo "Associates {$RuleName}[{$RuleID}] to {$CategoryID},{$gpid} ({$Category_groupnane},{$GroupName}) [OK]\n";
    }
}
开发者ID:articatech,项目名称:artica,代码行数:53,代码来源:squid.acls.artica-catz.php


示例20: js

function js()
{
    header("content-type: application/x-javascript");
    $page = CurrentPageName();
    $tpl = new templates();
    $size = 850;
    $_GET["search-js"] = url_decode_special_tool($_GET["search-js"]);
    $search = urlencode($_GET["search-js"]);
    $title = $tpl->_ENGINE_parse_body("{search}");
    $html = "YahooWinBrowse('{$size}','{$page}?search=yes&word={$search}','{$title}')";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:squid.UserAuthDaysGrouped.php



注:本文中的url_decode_special_tool函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP url_domain函数代码示例发布时间:2022-05-23
下一篇:
PHP url_de_base函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap