当前位置: 首页>>代码示例>>PHP>>正文


PHP UrlEncode函数代码示例

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


在下文中一共展示了UrlEncode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_code

 public function get_code()
 {
     $codeurl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" . $this->wxappid . "&redirect_uri=" . urlencode($this->redirect_uri) . "&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
     $redirect_uri = UrlEncode("http://www.renrenlie.com/Home/Sunyuetest/code_return");
     $url = "https://open.weixin.qq.com/connect/qrconnect?appid={$this->appid}&redirect_uri={$redirect_uri}&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect";
     header("location:" . $url);
 }
开发者ID:xiaoyueer98,项目名称:pc.rrl.com,代码行数:7,代码来源:del______________SunyuetestController.class.php

示例2: GetIpLocation

 function GetIpLocation($ip, &$location)
 {
     $location = array();
     if (!strcmp($ip, "127.0.0.1")) {
         $this->error = "{$ip} is not a valid public Internet address!";
         return 0;
     }
     $domain = "ip2country.esymbian.info";
     if (!($connection = $this->timeout ? @fsockopen($domain, 80, $errno, $error, $this->timeout) : @fsockopen($domain, 80))) {
         switch ($error = $this->timeout ? strval($errno) : "??") {
             case "-3":
                 $this->error = "-3 socket could not be created";
                 break;
             case "-4":
                 $this->error = "-4 dns lookup on hostname \"" . $host_name . "\" failed";
                 break;
             case "-5":
                 $this->error = "-5 connection refused or timed out";
                 break;
             case "-6":
                 $this->error = "-6 fdopen() call failed";
                 break;
             case "-7":
                 $this->error = "-7 setvbuf() call failed";
                 break;
             default:
                 $this->error = $error . " could not connect to the host \"" . $domain . "\"";
                 break;
         }
         return 0;
     }
     if ($this->timeout && (function_exists($function = "stream_set_timeout") || function_exists($function = "socket_set_timeout") || function_exists($function = "set_socket_timeout"))) {
         $function($connection, $this->timeout);
     }
     $uri = "/host/" . UrlEncode($ip) . ".html";
     if (!fputs($connection, "GET {$uri} HTTP/1.0\r\n" . "Host: {$domain}\r\n" . "User-Agent: " . $this->http_user_agent . "\r\n" . "\r\n")) {
         $this->error = "could not retrieve the hostipinfo site request response";
         fclose($connection);
         return 0;
     }
     $entrada = "";
     while (!feof($connection)) {
         $entrada = $entrada . fgets($connection, 1024);
     }
     fclose($connection);
     //$entrada = str_replace(" ","",$entrada);
     $location['LAT'] = "";
     $location['LONG'] = "";
     $location['CITY'] = "";
     $location['STATE'] = "";
     if ($posicion1 = strpos($entrada, "<td class=\"rqhost\" width=\"35%\"><b>")) {
         $posicion1 += 34;
         $posicion2 = strpos($entrada, "</b>", $posicion1);
         $location['COUNTRY'] = trim(substr($entrada, $posicion1, $posicion2 - $posicion1));
     } else {
         $location['COUNTRY'] = "";
     }
     return 1;
 }
开发者ID:maximofernandez,项目名称:ciberchess,代码行数:59,代码来源:ip2country.php

示例3: __construct

 function __construct($username, $password, $debug = 0, $httpClientDebug = 0)
 {
     $this->client->debug = $httpClientDebug;
     // prepare the login url
     $authentication = strlen($username) ? UrlEncode($username) . ":" . UrlEncode($password) . "@" : "";
     $this->SWS_URL = $this->PROTOCOL . $authentication . $this->SERVER_NAME . $this->SWS_PATH . $this->SWS_BUTLER_NAME;
     if ($debug >= 1) {
         echo "SWS_URL=" . $this->SWS_URL . "\n";
     }
     $this->client = new http_class();
     $this->client->prefer_curl = 1;
     $this->client->user_agent = 'SWS PHP Client - (httpclient - http://www.phpclasses.org/httpclient $Revision: 1.76 $';
     $this->client->follow_redirect = 1;
     $this->client->authentication_mechanism = 'Basic';
 }
开发者ID:andreassolemkjaer,项目名称:sws-client-java,代码行数:15,代码来源:SendRegningLogic.php

示例4: setValues

    public function setValues($id, $pw, $dnr, $snr, $msg, $customer_id, $campaign_id, $delivery_receipt, $unique_msg_id)
    {
        $ActionResult = false;
        if (160 < strlen($msg)) {
            $NearestSpace = strpos($msg, ' ', 160);
            $Message = substr($msg, 0, $NearestSpace);
            $SecondMessage = substr($msg, $NearestSpace, strlen($msg));
        } else {
            $Message = $msg;
            $SecondMessage = "";
        }
        $url = "http://smsgw1.a2p.mme.syniverse.com/sms.php?" . "id={$id}" . "&pw=" . UrlEncode($pw) . "&drep=" . $delivery_receipt . "&dnr=" . UrlEncode($dnr) . "&snr=" . UrlEncode($snr) . "&dtag=" . $unique_msg_id . "&msg=" . UrlEncode($Message);
        if ($f = @fopen($url, "r")) {
            $answer = fgets($f, 255);
            if (substr($answer, 0, 1) == "+") {
                $res = "success: {$answer}";
                $ActionResult = true;
            } else {
                $res = "failure: {$answer}";
                $ActionResult = $res;
            }
        } else {
            $res = "failure: error opening URL";
        }
        if ($SecondMessage != "") {
            $url = "http://smsgw1.a2p.mme.syniverse.com/sms.php?" . "id={$id}" . "&pw=" . UrlEncode($pw) . "&drep=" . $delivery_receipt . "&dnr=" . UrlEncode($dnr) . "&snr=" . UrlEncode($snr) . "&dtag=" . $unique_msg_id . "&msg=" . UrlEncode($SecondMessage);
            if ($f = @fopen($url, "r")) {
                $answer = fgets($f, 255);
                if (substr($answer, 0, 1) == "+") {
                    $res = "success: {$answer}";
                    $ActionResult = true;
                } else {
                    $res = "failure: {$answer}";
                    $ActionResult = $res;
                }
            } else {
                $res = "failure: error opening URL";
            }
        }
        $db = new DatabaseManager(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
        $SQL = 'INSERT INTO MessagingOutGoingLog(AdminCustomerID,CampaignCampaignID,MessagingMessageTypeID,DeliveryReceipt,Destination,Message,MessageKey,Result) 
VALUES(' . $customer_id . ', ' . $campaign_id . ', 4, "' . $delivery_receipt . '", "' . $dnr . '", "' . mysql_real_escape_string($msg) . '", "' . $unique_msg_id . '", "' . mysql_real_escape_string($res) . '")';
        $db->setQuery($SQL);
        $db->Query();
        return $ActionResult;
    }
开发者ID:rooswill,项目名称:CommanderHQ,代码行数:46,代码来源:SendSmsComponent.php

示例5: GenerateSignatureBase

 private function GenerateSignatureBase($url, $consumerKey, $token, $httpMethod, $timeStamp, $nonce, $signatureType, &$normalizedUrl, &$normalizedRequestParameters)
 {
     $parameters = array();
     $elements = explode('?', $url);
     $parameters = $this->GetQueryParameters($elements[1]);
     $parameters[OAuthBase::$OAUTH_VERSION] = OAuthBase::$OAUTH_VERSION_NUMBER;
     $parameters[OAuthBase::$OAUTH_NONCE] = $nonce;
     $parameters[OAuthBase::$OAUTH_TIMESTAMP] = $timeStamp;
     $parameters[OAuthBase::$OAUTH_SIGNATURE_METHOD] = $signatureType;
     $parameters[OAuthBase::$OAUTH_CONSUMER_KEY] = $consumerKey;
     if (!empty($token)) {
         $parameters[OAuthBase::$OAUTH_TOKEN] = $token;
     }
     $normalizedUrl = $elements[0];
     $normalizedRequestParameters = $this->NormalizeRequestParameters($parameters);
     return $httpMethod . '&' . UrlEncode($normalizedUrl) . '&' . UrlEncode($normalizedRequestParameters);
 }
开发者ID:adcuz,项目名称:fat-secret-php,代码行数:17,代码来源:OAuthBase.php

示例6: send_ewm

 function send_ewm()
 {
     //-----获取access_token
     $access_token = get_access_token();
     //----生成二维码
     $ewmid = I('ewmid');
     $postUrl = 'https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=' . $access_token;
     $postJson = '{"action_name": "QR_LIMIT_SCENE", "action_info": {"scene": {"scene_id": ' . $ewmid . '}}}';
     $return = json_decode(http_post($postUrl, $postJson), true);
     if ($return['errcode'] == 0) {
         $ticket = $return['ticket'];
         $qr_code = 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=' . UrlEncode($ticket);
         $this->qr_code_save($qr_code, $ewmid);
         $this->success('生成二维码成功');
     } else {
         $this->error('生成二维码失败,错误的返回码是:' . $res['errcode'] . ', 错误的提示是:' . $res['errmsg']);
     }
 }
开发者ID:strivi,项目名称:siples,代码行数:18,代码来源:QrcodeController.class.php

示例7: LocalRedirect

							"' . CUtil::JSEscape($arFields['PROPERTY_TYPE']) . '",
							"' . CUtil::JSEscape($arFields['USER_TYPE']) . '"
						);
						top.BX.closeWait();
						top.BX.WindowManager.Get().AllowClose();
						top.BX.WindowManager.Get().Close();
					</script>';
                die;
            }
            if (strlen($return_url) > 0) {
                LocalRedirect($return_url);
            } else {
                LocalRedirect('iblock_property_admin.php?lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $intIBlockID . ($_REQUEST["admin"] == "Y" ? "&admin=Y" : "&admin=N"));
            }
        }
        LocalRedirect("iblock_edit_property.php?lang=" . LANGUAGE_ID . "&IBLOCK_ID=" . $IBLOCK_ID . "&find_section_section=" . intval($find_section_section) . '&ID=' . intval($str_PROPERTY_ID) . (strlen($return_url) > 0 ? "&return_url=" . UrlEncode($return_url) : "") . ($_REQUEST["admin"] == "Y" ? "&admin=Y" : "&admin=N"));
    }
}
$strReceiver = '';
if (isset($_REQUEST["PARAMS"]['RECEIVER'])) {
    $strReceiver = preg_replace("/[^a-zA-Z0-9_:]/", "", htmlspecialcharsbx($_REQUEST["PARAMS"]['RECEIVER']));
}
if (isset($_REQUEST['saveresult'])) {
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_js.php";
    unset($_POST['saveresult']);
    $PARAMS = $_POST['PARAMS'];
    unset($_POST['PARAMS']);
    $arProperty = array();
    $arFieldsList = $DB->GetTableFieldsList("b_iblock_property");
    foreach ($arFieldsList as $strFieldName) {
        if (!in_array($strFieldName, $arDisabledPropFields)) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:iblock_edit_property.php

示例8: SendRequest


//.........这里部分代码省略.........
             Reset($files);
             $end = GetType($input = Key($files)) != "string";
             for (; !$end;) {
                 if (strlen($error = $this->GetFileDefinition($files[$input], $definition))) {
                     return "3 " . $error;
                 }
                 $headers = "--" . $boundary . "\r\nContent-Disposition: form-data; name=\"" . $input . "\"; filename=\"" . $definition["NAME"] . "\"\r\nContent-Type: " . $definition["Content-Type"] . "\r\n\r\n";
                 $part = count($post_parts);
                 $post_parts[$part] = array("HEADERS" => $headers);
                 if (isset($definition["FILENAME"])) {
                     $post_parts[$part]["FILENAME"] = $definition["FILENAME"];
                     $data = "";
                 } else {
                     $data = $definition["DATA"];
                 }
                 $post_parts[$part]["DATA"] = $data;
                 $body_length += strlen($headers) + $definition["Content-Length"] + strlen("\r\n");
                 Next($files);
                 $end = GetType($input = Key($files)) != "string";
             }
             $get_body = 0;
         } elseif (isset($arguments["PostValues"])) {
             $values = $arguments["PostValues"];
             if (GetType($values) != "array") {
                 return $this->SetError("5 it was not specified a valid POST method values array");
             }
             for (Reset($values), $value = 0; $value < count($values); Next($values), $value++) {
                 $k = Key($values);
                 if (GetType($values[$k]) == "array") {
                     for ($v = 0; $v < count($values[$k]); $v++) {
                         if ($value + $v > 0) {
                             $this->request_body .= "&";
                         }
                         $this->request_body .= UrlEncode($k) . "=" . UrlEncode($values[$k][$v]);
                     }
                 } else {
                     if ($value > 0) {
                         $this->request_body .= "&";
                     }
                     $this->request_body .= UrlEncode($k) . "=" . UrlEncode($values[$k]);
                 }
             }
             $this->request_headers["Content-Type"] = "application/x-www-form-urlencoded" . (isset($arguments["CharSet"]) ? "; charset=" . $arguments["CharSet"] : "");
             $get_body = 0;
         }
     }
     if ($get_body && (isset($arguments["Body"]) || isset($arguments["BodyStream"]))) {
         if (isset($arguments["Body"])) {
             $this->request_body = $arguments["Body"];
         } else {
             $stream = $arguments["BodyStream"];
             $this->request_body = "";
             for ($part = 0; $part < count($stream); $part++) {
                 if (isset($stream[$part]["Data"])) {
                     $this->request_body .= $stream[$part]["Data"];
                 } elseif (isset($stream[$part]["File"])) {
                     if (!($file = @fopen($stream[$part]["File"], "rb"))) {
                         return $this->SetPHPError("could not open upload file " . $stream[$part]["File"], $php_errormsg);
                     }
                     while (!feof($file)) {
                         if (GetType($block = @fread($file, $this->file_buffer_length)) != "string") {
                             $error = $this->SetPHPError("could not read body stream file " . $stream[$part]["File"], $php_errormsg);
                             fclose($file);
                             return $error;
                         }
                         $this->request_body .= $block;
开发者ID:egregor-dev,项目名称:SatCMS,代码行数:67,代码来源:http.php

示例9: FormatDate

                     $val = $arImage["IMG"];
                 }
                 break;
             case 'TIME_ZONE':
                 if ($arResult["User"]["AUTO_TIME_ZONE"] != "N") {
                     continue 2;
                 }
                 break;
             case 'LAST_LOGIN':
                 if (StrLen($val) > 0) {
                     $val = FormatDate($DB->DateFormatToPHP(FORMAT_DATETIME), MakeTimeStamp($val, FORMAT_DATETIME));
                 }
                 break;
             default:
                 if (in_array($userFieldName, $arParams["SONET_USER_FIELDS_SEARCHABLE"])) {
                     $strSearch = $arParams["PATH_TO_SEARCH_INNER"] . (StrPos($arParams["PATH_TO_SEARCH_INNER"], "?") !== false ? "&" : "?") . "flt_" . StrToLower($userFieldName) . "=" . UrlEncode($val);
                 }
                 break;
         }
         if (in_array($userFieldName, $arParams["USER_FIELDS_MAIN"])) {
             $arResult["UserFieldsMain"]["DATA"][$userFieldName] = array("NAME" => GetMessage("SONET_UP1_" . $userFieldName), "VALUE" => $val, "SEARCH" => $strSearch);
         }
         if (in_array($userFieldName, $arParams["USER_FIELDS_CONTACT"])) {
             $arResult["UserFieldsContact"]["DATA"][$userFieldName] = array("NAME" => GetMessage("SONET_UP1_" . $userFieldName), "VALUE" => $val, "SEARCH" => $strSearch);
         }
         if (in_array($userFieldName, $arParams["USER_FIELDS_PERSONAL"])) {
             $arResult["UserFieldsPersonal"]["DATA"][$userFieldName] = array("NAME" => GetMessage("SONET_UP1_" . $userFieldName), "VALUE" => $val, "SEARCH" => $strSearch);
         }
     }
 }
 if (count($arResult["UserFieldsMain"]["DATA"]) > 0) {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例10: ActivateCoupon

 function ActivateCoupon($_283989430, &$_2132833962, $_570174288 = false, $_1009125337 = "Y")
 {
     $_1272261578 = ___1498308727(155);
     CUpdateClient::AddMessage2Log(___1498308727(156));
     $_2050725472 = CUpdateClient::CollectRequestData($_1272261578, $_570174288, $_1009125337, array(), array(), array());
     if ($_2050725472 === False || StrLen($_2050725472) <= 1352 / 2 - 676 || StrLen($_1272261578) > min(156, 0, 52)) {
         if (StrLen($_1272261578) <= min(40, 0, 13.333333333333)) {
             $_1272261578 = ___1498308727(157) . GetMessage(___1498308727(158)) . ___1498308727(159);
         }
     }
     if (StrLen($_1272261578) <= 190 * 2 - 380) {
         $_2050725472 .= ___1498308727(160) . UrlEncode($_283989430) . ___1498308727(161);
         CUpdateClient::AddMessage2Log($GLOBALS['____467353288'][39](___1498308727(162), ___1498308727(163), $_2050725472));
         $_145565738 = CUpdateClient::getmicrotime();
         $_1501652390 = CUpdateClient::GetHTTPPage(___1498308727(164), $_2050725472, $_1272261578);
         if ($GLOBALS['____467353288'][40]($_1501652390) <= min(48, 0, 16)) {
             if (StrLen($_1272261578) <= min(242, 0, 80.666666666667)) {
                 $_1272261578 = ___1498308727(165) . GetMessage(___1498308727(166)) . ___1498308727(167);
             }
         }
         CUpdateClient::AddMessage2Log(___1498308727(168) . Round(CUpdateClient::getmicrotime() - $_145565738, round(0 + 1.5 + 1.5)) . ___1498308727(169));
     }
     if ($GLOBALS['____467353288'][41]($_1272261578) <= 1100 / 2 - 550) {
         $_1322185471 = array();
         CUpdateClient::ParseServerData($_1501652390, $_1322185471, $_1272261578);
     }
     if ($GLOBALS['____467353288'][42]($_1272261578) <= 183 * 2 - 366) {
         if (isset($_1322185471[___1498308727(170)][___1498308727(171)][___1498308727(172)]) && $GLOBALS['____467353288'][43]($_1322185471[___1498308727(173)][___1498308727(174)][___1498308727(175)]) && $GLOBALS['____467353288'][44]($_1322185471[___1498308727(176)][___1498308727(177)][___1498308727(178)]) > 142 * 2 - 284) {
             for ($_774284784 = min(66, 0, 22), $_1749022688 = $GLOBALS['____467353288'][45]($_1322185471[___1498308727(179)][___1498308727(180)][___1498308727(181)]); $_774284784 < $_1749022688; $_774284784++) {
                 if ($GLOBALS['____467353288'][46]($_1322185471[___1498308727(182)][___1498308727(183)][___1498308727(184)][$_774284784][___1498308727(185)][___1498308727(186)]) > 1168 / 2 - 584) {
                     $_1272261578 .= ___1498308727(187) . $_1322185471[___1498308727(188)][___1498308727(189)][___1498308727(190)][$_774284784][___1498308727(191)][___1498308727(192)] . ___1498308727(193);
                 }
                 $_1272261578 .= $_1322185471[___1498308727(194)][___1498308727(195)][___1498308727(196)][$_774284784][___1498308727(197)] . ___1498308727(198);
             }
         }
     }
     if ($GLOBALS['____467353288'][47]($_1272261578) <= 772 - 2 * 386) {
         if (isset($_1322185471[___1498308727(199)][___1498308727(200)][___1498308727(201)]) && $GLOBALS['____467353288'][48]($_1322185471[___1498308727(202)][___1498308727(203)][___1498308727(204)])) {
             COption::$GLOBALS['_____1306963051'][5](___1498308727(205), ___1498308727(206), ___1498308727(207));
             CUpdateClient::__944347844($_1322185471[___1498308727(208)][___1498308727(209)][___1498308727(210)][min(92, 0, 30.666666666667)][___1498308727(211)]);
         }
     }
     if ($GLOBALS['____467353288'][49]($_1272261578) > 160 * 2 - 320) {
         CUpdateClient::AddMessage2Log($_1272261578, ___1498308727(212));
         $_2132833962 .= $_1272261578;
         return False;
     } else {
         return True;
     }
 }
开发者ID:webgksupport,项目名称:alpina,代码行数:50,代码来源:update_client.php

示例11: bitrix_sessid_get

        ?>
&<?php 
        echo bitrix_sessid_get();
        ?>
&ts=" + ts + "&completed=" + completed + "&startpoint=" + startPoint + "&updRand=" + updRand;
			<?php 
    } elseif ($action == "collect") {
        ?>
				data = "fcajax=cl&region=<?php 
        echo IntVal($region);
        ?>
&exts=<?php 
        echo UrlEncode($_REQUEST['checker_exts']);
        ?>
&pwd=<?php 
        echo UrlEncode($_REQUEST['checker_pwd']);
        ?>
&tm=<?php 
        echo IntVal($_REQUEST['checker_time']);
        ?>
&<?php 
        echo bitrix_sessid_get();
        ?>
&ts=" + ts + "&completed=" + completed + "&startpoint=" + startPoint + "&updRand=" + updRand;
			<?php 
    }
    ?>
			BX.ajax.post("/bitrix/admin/security_file_verifier.php", data, callback);
		}

		function __FCLoadCollectDataResult(result)
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:security_file_verifier.php

示例12: GetIpLocation

 function GetIpLocation($ip, &$location)
 {
     $location = array();
     if (!strcmp($ip, "127.0.0.1")) {
         $this->error = "{$ip} is not a valid public Internet address!";
         return 0;
     }
     $domain = "freeipservices.com";
     if (!($connection = $this->timeout ? @fsockopen($domain, 80, $errno, $error, $this->timeout) : @fsockopen($domain, 80))) {
         switch ($error = $this->timeout ? strval($errno) : "??") {
             case "-3":
                 $this->error = "-3 socket could not be created";
                 break;
             case "-4":
                 $this->error = "-4 dns lookup on hostname \"" . $host_name . "\" failed";
                 break;
             case "-5":
                 $this->error = "-5 connection refused or timed out";
                 break;
             case "-6":
                 $this->error = "-6 fdopen() call failed";
                 break;
             case "-7":
                 $this->error = "-7 setvbuf() call failed";
                 break;
             default:
                 $this->error = $error . " could not connect to the host \"" . $domain . "\"";
                 break;
         }
         return 0;
     }
     if ($this->timeout && (function_exists($function = "stream_set_timeout") || function_exists($function = "socket_set_timeout") || function_exists($function = "set_socket_timeout"))) {
         $function($connection, $this->timeout);
     }
     $uri = "/ip2geo?url=" . UrlEncode($ip);
     if (!fputs($connection, "GET {$uri} HTTP/1.0\r\n" . "Host: {$domain}\r\n" . "User-Agent: " . $this->http_user_agent . "\r\n" . "\r\n")) {
         $this->error = "could not retrieve the freeipservices site request response";
         fclose($connection);
         return 0;
     }
     $entrada = "";
     while (!feof($connection)) {
         $entrada = $entrada . fgets($connection, 1024);
     }
     fclose($connection);
     $entrada = str_replace(" ", "", $entrada);
     if ($posicion1 = strpos($entrada, "functiongetLat(){return'")) {
         $posicion1 += 24;
         $posicion2 = strpos($entrada, "';}", $posicion1);
         $location['LAT'] = substr($entrada, $posicion1, $posicion2 - $posicion1);
     } else {
         return 0;
     }
     if ($posicion1 = strpos($entrada, "functiongetLng(){return'")) {
         $posicion1 += 24;
         $posicion2 = strpos($entrada, "';}", $posicion1);
         $location['LONG'] = substr($entrada, $posicion1, $posicion2 - $posicion1);
     } else {
         return 0;
     }
     if ($posicion1 = strpos($entrada, "functiongetCity(){return'")) {
         $posicion1 += 25;
         $posicion2 = strpos($entrada, "';}", $posicion1);
         $location['CITY'] = substr($entrada, $posicion1, $posicion2 - $posicion1);
     } else {
         $location['CITY'] = "";
     }
     if ($posicion1 = strpos($entrada, "functiongetState(){return'")) {
         $posicion1 += 26;
         $posicion2 = strpos($entrada, "';}", $posicion1);
         $location['STATE'] = substr($entrada, $posicion1, $posicion2 - $posicion1);
     } else {
         $location['STATE'] = "";
     }
     if ($posicion1 = strpos($entrada, "functiongetCountry(){return'")) {
         $posicion1 += 28;
         $posicion2 = strpos($entrada, "';}", $posicion1);
         $location['COUNTRY'] = substr($entrada, $posicion1, $posicion2 - $posicion1);
     } else {
         $location['COUNTRY'] = "";
     }
     return 1;
 }
开发者ID:maximofernandez,项目名称:ciberchess,代码行数:83,代码来源:freeipservices.php

示例13: strpos

?>
">
		<input type="hidden" name="extended" value="Y">
		</table>
	<?endif//if($bSimple):?>

	</td>
	</tr>

	<?$tabControl->EndTab();?>

	<?
	$tabControl->Buttons(
		array(
			"disabled" => false,
			"back_url" => ((strlen($back_url)>0 && strpos($back_url, "/freetrix/admin/fileman_menu_edit.php")!==0) ? htmlspecialcharsex($back_url) : "/freetrix/admin/fileman_admin.php?".$addUrl."&site=".Urlencode($site)."&path=".UrlEncode($arParsedPath["FULL"]))
		)
	);
	?>

	<?$tabControl->End();?>

</form>

<?endif?>
<?php 
echo BeginNote();
?>
<span class="required"><sup>1</sup></span> - <?php 
echo GetMessage("MAIN_PERIOD_NOTE");
echo EndNote();
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:fileman_menu_edit.php

示例14: AddActionParameter

 function AddActionParameter(&$form, $parameter, $value)
 {
     $url = $form->ACTION . (GetType(strpos($form->ACTION, '?')) == 'integer' ? strlen($form->ACTION) > 1 ? '&' : '' : '?') . UrlEncode($parameter) . '=' . UrlEncode($value);
     $p = $this->custom_parameters;
     $tc = count($p);
     for (Reset($p), $c = 0; $c < $tc; Next($p), ++$c) {
         $k = Key($p);
         $url .= '&' . UrlEncode($k) . '=' . UrlEncode($p[$k]);
     }
     $p = $this->external_parameters;
     $tc = count($p);
     for (Reset($p), $c = 0; $c < $tc; Next($p), ++$c) {
         $k = Key($p);
         $this->external_parameters[$k] = $form->GetInputValue($k);
         $url .= '&' . UrlEncode($k) . '=' . UrlEncode($this->external_parameters[$k]);
     }
     return $url;
 }
开发者ID:wycus,项目名称:darmedic,代码行数:18,代码来源:form_scaffolding.php

示例15: get_img

 function get_img()
 {
     if ($this->tickets()) {
         return 'https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=' . UrlEncode($this->ticket);
     } else {
         return '';
     }
 }
开发者ID:snamper,项目名称:xiaoshuhaochi,代码行数:8,代码来源:wx_s.php


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