100+ results for 'php urldecode'
Not the results you expected?
AbstractPaginator.php (https://gitlab.com/judielsm/Handora) PHP · 487 lines
UrlMatcher.php (https://gitlab.com/ealexis.t/trends) PHP · 251 lines
1 <?php
3 /*
90 $this->allow = array();
92 if ($ret = $this->matchCollection(rawurldecode($pathinfo), $this->routes)) {
93 return $ret;
94 }
181 * As this method requires the Route object, it is not available
182 * in matchers that do not have access to the matched Route instance
183 * (like the PHP and Apache matcher dumpers).
184 *
185 * @param Route $route The route we are matching against
relation_cleanup.lib.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 141 lines
1 <?php
2 /* $Id: relation_cleanup.lib.php 8214 2005-12-17 17:36:58Z cybot_tm $ */
5 /**
6 * Set of functions used for cleaning up phpMyAdmin tables
7 */
10 require_once('./libraries/relation.lib.php');
11 $cfgRelation = PMA_getRelationsParam();
17 . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''
18 . ' AND table_name = \'' . PMA_sqlAddslashes($table) . '\''
19 . ' AND column_name = \'' . PMA_sqlAddslashes(urldecode($column)) . '\'';
20 $rmv_rs = PMA_query_as_cu($remove_query);
21 unset($remove_query);
system.php (https://github.com/CoolCold/pnp4nagios.git) PHP · 219 lines
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * system controller.
35 if($this->host != NULL){
36 $this->host = urldecode($this->host);
37 }
39 if($this->service != NULL){
40 $this->service = urldecode($this->service);
41 }
134 public function check_mod_rewrite(){
135 if(!function_exists('apache_get_modules')){
136 // Add index.php to every URL while not running withn apache mod_php
137 Kohana::config_set('core.index_page','index.php');
category.php (https://gitlab.com/Gashler/sg) PHP · 340 lines
1 <?php
2 /**
3 * WordPress Category API
103 */
104 function get_category_by_path( $category_path, $full_match = true, $output = OBJECT ) {
105 $category_path = rawurlencode( urldecode( $category_path ) );
106 $category_path = str_replace( '%2F', '/', $category_path );
107 $category_path = str_replace( '%20', ' ', $category_path );
312 * The parameter should only be passed a variable and not create the array or
313 * object inline to the parameter. The reason for this is that parameter is
314 * passed by reference and PHP will fail unless it has the variable.
315 *
316 * There is no return value, because everything is updated on the variable you
317 * pass to it. This is one of the features with using pass by reference in PHP.
318 *
319 * @since 2.3.0
QueryString.php (https://gitlab.com/treighton/wpgit) PHP · 297 lines
1 <?php
3 namespace Guzzle\Http;
7 use Guzzle\Http\QueryAggregator\DuplicateAggregator;
8 use Guzzle\Http\QueryAggregator\QueryAggregatorInterface;
9 use Guzzle\Http\QueryAggregator\PhpAggregator;
11 /**
35 protected $aggregator;
37 /** @var array Cached PHP aggregator */
38 private static $defaultAggregator = null;
52 }
54 $foundDuplicates = $foundPhpStyle = false;
56 foreach (explode('&', $query) as $kvp) {
sort.class.php (https://github.com/enigmatic-user/revolution.git) PHP · 203 lines
appdevUrlMatcher.php (https://github.com/fabiorestrepo/PGE.git) PHP · 153 lines
Mapper.php (https://github.com/anderson631/spaghettiphp.git) PHP · 218 lines
1 <?php
3 class Mapper {
12 public function __construct() {
13 $this->base = dirname($_SERVER['PHP_SELF']);
14 if(basename($this->base) == 'public'):
15 $this->base = dirname($this->base);
138 foreach(explode('/', $reg[5]) as $param):
139 if(preg_match('/([^:]*):([^:]*)/', $param, $reg)):
140 $path['named'][$reg[1]] = urldecode($reg[2]);
141 elseif($param != ''):
142 $path['params'] []= urldecode($param);
default_params.php (https://gitlab.com/rubengrb/ws.vidrialum) PHP · 375 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( '-1' );
258 . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textarea_raw_html '
259 . $settings['param_name'] . ' ' . $settings['type'] . '" rows="16">'
260 . htmlentities( rawurldecode( base64_decode( $value ) ), ENT_COMPAT, 'UTF-8' ) . '</textarea>';
261 }
CookieTest.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 179 lines
1 <?php
3 /*
14 use Symfony\Component\BrowserKit\Cookie;
16 class CookieTest extends \PHPUnit_Framework_TestCase
17 {
18 /**
114 $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true); // raw value
115 $this->assertEquals('bar=baz', $cookie->getValue(), '->getValue() returns the urldecoded cookie value');
116 }
121 $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the urlencoded cookie value');
122 $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true); // raw value
123 $this->assertEquals('bar%3Dbaz', $cookie->getRawValue(), '->getRawValue() returns the non-urldecoded cookie value');
124 }
Cookie.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 324 lines
ArchiveClassLoader.class.php (https://github.com/ghiata/xp-framework.git) PHP · 226 lines
1 <?php
2 /* This class is part of the XP framework
3 *
75 if (0 !== substr_compare($uri, xp::CLASS_FILE_EXT, -strlen(xp::CLASS_FILE_EXT))) return NULL;
77 // Absolute URIs have the form "xar://containing.xar?the/classes/Name.class.php"
78 if ((DIRECTORY_SEPARATOR === $uri{0} || (':' === $uri{1} && '\\' === $uri{2}))) {
79 return NULL;
159 */
160 public function providesPackage($package) {
161 $acquired= xarloader::acquire(urldecode(substr($this->archive, 6, -1)));
162 $cmps= strtr($package, '.', '/').'/';
163 $cmpl= strlen($cmps);
179 static $pool= array();
181 $path= $expand && 0 !== strncmp('xar://', urldecode($path), 6) ? realpath($path) : $path;
182 if (!isset($pool[$path])) {
183 $pool[$path]= new self($path);
class-wp-http-cookie.php (https://gitlab.com/morganestes/wordpress-develop) PHP · 251 lines
util_setdir.php (https://gitlab.com/billyprice1/QuickBox) PHP · 283 lines
1 <?php
3 require_once( "../../php/xmlrpc.php" );
4 require_once( "../../php/Torrent.php" );
5 require_once( "../../php/rtorrent.php" );
6 require_once( './util_rt.php' );
186 $session = $req->val[0];
187 $tied_to_file = $req->val[1];
188 $label = rawurldecode( $req->val[2] );
189 $addition = array();
190 if( !empty( $req->val[3] ) )
update.php (https://github.com/geenkaas/Wordpress.git) PHP · 254 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
12 /** WordPress Administration Bootstrap */
13 require_once('./admin.php');
15 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
17 if ( isset($_GET['action']) ) {
18 $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : '';
19 $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : '';
20 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
33 $plugins = array();
35 $plugins = array_map('urldecode', $plugins);
37 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
DB.php (https://github.com/GuriK/CodeIgniter.git) PHP · 174 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * NOTICE OF LICENSE
43 {
44 // Is the config file in the environment folder?
45 if ( ! defined('ENVIRONMENT') OR ! file_exists($file_path = APPPATH.'config/'.ENVIRONMENT.'/database.php'))
46 {
47 if ( ! file_exists($file_path = APPPATH.'config/database.php'))
48 {
49 show_error('The configuration file database.php does not exist.');
50 }
51 }
RegexTest.php (https://github.com/bhaumik25/zend-framework.git) PHP · 414 lines
1 <?php
2 /**
3 * @category Zend
8 /** Zend_Controller_Router_Route_Regex */
9 require_once 'Zend/Controller/Router/Route/Regex.php';
11 /** PHPUnit test case */
12 require_once 'PHPUnit/Framework/TestCase.php';
14 /**
17 * @subpackage UnitTests
18 */
19 class Zend_Controller_Router_Route_RegexTest extends PHPUnit_Framework_TestCase
20 {
Url.php (https://github.com/markn86/moodle.git) PHP · 302 lines
media.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 117 lines
1 <?php
2 /**
3 * @version $Id: file.php 14401 2010-01-26 14:10:00Z louis $
5 * @subpackage Content
6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
7 * @license GNU/GPL, see LICENSE.php
8 * Joomla! is free software. This version may have been modified pursuant to the
9 * GNU General Public License, and as distributed it includes or is derivative
10 * of works licensed under the GNU General Public License or other free or open
11 * source software licenses. See COPYRIGHT.php for copyright notices and
12 * details.
13 */
19 jimport('joomla.filesystem.folder');
21 require_once( EBLOG_ROOT . DIRECTORY_SEPARATOR . 'controller.php' );
23 require_once( EBLOG_CLASSES . DIRECTORY_SEPARATOR . 'mediamanager.php' );
sys.php (https://gitlab.com/srueegger/Social-Meal) PHP · 216 lines
1 <?PHP
2 /*
3 * This program is free software; you can redistribute it and/or modify
195 $splitter = explode('=', $param);
196 if(sizeOf($splitter) > 1){
197 $_GET[$splitter[0]] = urldecode($splitter[1]);
198 if(strpos($_GET[$splitter[0]], "&#") !== false){
199 $_GET[$splitter[0]] = urldecode($splitter[1]);
search.php (https://github.com/jfoucher/joind.in.git) PHP · 177 lines
1 <?php
2 /**
3 * Search pages controller.
4 *
5 * PHP version 5
6 *
7 * @category Joind.in
135 if (!empty($search_term)) {
136 $this->validation->search_term = urldecode($search_term);
138 if (null !== $start) {
152 //check to see if they entered a date and set that first
153 $search_term = urldecode($search_term);
154 $results = array(
155 'talks' => $this->talks_model
RequestMatcher.php (https://github.com/Exercise/symfony.git) PHP · 221 lines
1 <?php
3 /*
128 $path = str_replace('#', '\\#', $this->path);
130 if (!preg_match('#'.$path.'#', rawurldecode($request->getPathInfo()))) {
131 return false;
132 }
189 * Validates an IPv6 address.
190 *
191 * @author David Soria Parra <dsp at php dot net>
192 * @see https://github.com/dsp/v6tools
193 *
200 {
201 if (!defined('AF_INET6')) {
202 throw new \RuntimeException('Unable to check Ipv6. Check that PHP was not compiled with option "disable-ipv6".');
203 }
CookieJar.php (https://github.com/Exercise/symfony.git) PHP · 204 lines
paypal.php (https://github.com/calvinfroedge/CodeIgniter-Payments-Library.git) PHP · 283 lines
xml2txt.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 187 lines
1 <?php
3 /**
4 * This file contains the /element/ class needed by xml2tree.php
5 * to create a tree which is then converted into plain text
6 */
139 if ( $tag == "ARTICLE" && isset ( $this->attrs["TITLE"] ) ) {
140 $ret .= strtoupper ( urldecode ( $this->attrs["TITLE"] ) ) . "\n" ;
141 }
142 if ( $xmlg['text_hide_tables'] && ( substr ( $tag , 0 , 5 ) == 'TABLE' ||
168 }
170 require_once ( "xml2tree.php" ) ;
AuthSub.php (https://github.com/somefool/habari-extras.git) PHP · 224 lines
Translate.php (https://bitbucket.org/sader/domset.git) PHP · 208 lines
1 <?php
3 class Model_Logic_Export_Tablica_Translate {
85 $aReturn['param_price'] = $aData['price'];
86 $aReturn['title'] = self::translateTitle($aData['title']);
87 $aReturn['description'] = self::translateDescription(urldecode($aData['description']), $aData['id']);
89 return $aReturn;
113 $aReturn['param_price'] = $aData['price'];
114 $aReturn['title'] = self::translateTitle($aData['title']);
115 $aReturn['description'] = self::translateDescription(urldecode($aData['description']), $aData['id']);
117 return $aReturn;
198 $sFooter = PHP_EOL .PHP_EOL . 'Numer licencji pośrednika odpowiedzialnego zawodowo za wykonanie umowy pośrednictwa: 15295'. PHP_EOL . PHP_EOL .
199 'LINK DO STRONY' . PHP_EOL .
AuthSub.php (https://github.com/coder-int21h/noses.git) PHP · 243 lines
1 <?php
3 /**
23 * Zend_Gdata_HttpClient
24 */
25 require_once 'Zend/Gdata/HttpClient.php';
27 /**
28 * Zend_Version
29 */
30 require_once 'Zend/Version.php';
32 /**
78 {
79 $querystring = '?next=' . urlencode($next)
80 . '&scope=' . urldecode($scope)
81 . '&secure=' . urlencode($secure)
82 . '&session=' . urlencode($session);
Request.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 565 lines
service.gimages.php (https://github.com/DatumDroid/DatumDroid-API.git) PHP · 177 lines
1 <?php
3 /**
4 * Wrapper class around the Google Image API for PHP
5 *
6 * http://code.google.com/apis/imagesearch/v1/jsondevguide.html
7 * http://w-shadow.com/blog/2008/02/28/get-google-image-search-results-with-php/
8 *
9 * @package DatumDroid_API
126 foreach ( $m[1] as $item ) {
127 // Explode on each paramter (comma delimeter)
128 $item = urldecode( str_replace( '\x', '%', $item ) );
129 preg_match_all( '/\"(.*?)\"/', $item, $params );
appProdUrlMatcher.php (https://gitlab.com/mohamedchiheb.bida/workshopFOS) PHP · 232 lines
ajaxSearchCtrl.class.inc.php (https://github.com/gunf/novo-isaak.local.git) PHP · 197 lines
1 <?php
2 /* -----------------------------------------------------------------------------
3 * Snippet: AjaxSearch
87 if (isset($_POST['asid'])) $id = strip_tags($_POST['asid']);
88 else $id = strip_tags(urldecode($_GET['asid']));
89 }
90 $this->forThisAs = ($this->asCfg->cfg['asId'] != $id) ? false : true;
119 $asfConfig = 'asfConfig';
120 if ((isset($_POST['asf']) || isset($_GET['asf'])) && function_exists($asfConfig)) {
121 $this->asf = isset($_POST['asf']) ? strip_tags($_POST['asf']) : strip_tags(urldecode($_GET['asf']));
122 $this->fClause = $asfConfig($this->asf, $this->fParams);
123 if ($this->dbg) $this->asUtil->dbgRecord($this->fParams , "getEvents - fParams");
127 if ($this->dbg) $this->asUtil->dbgRecord($this->asf , "getEvents - asf");
129 $this->offset = (isset($_GET['aso'])) ? strip_tags(urldecode($_GET['aso'])) : '0,0';
130 if ($this->dbg) $this->asUtil->dbgRecord($this->offset , "getEvents - offset");
Data.php (https://github.com/gryzz/crystal_magento.git) PHP · 152 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Shipping
23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
45 public function decodeTrackingHash($hash)
46 {
47 $hash = explode(':', Mage::helper('core')->urlDecode($hash));
48 if (count($hash) === 3 && in_array($hash[0], $this->_allowedHashKeys)) {
49 return array('key' => $hash[0], 'id' => (int)$hash[1], 'hash' => $hash[2]);
CompiledUrlMatcherTrait.php (https://gitlab.com/nmhieucoder/laravel_tintuc) PHP · 187 lines
default_params.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 341 lines
1 <?php
2 /**
3 * WPBakery Visual Composer shortcode default attributes functions for rendering.
220 . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textarea_raw_html '
221 . $settings['param_name'] . ' ' . $settings['type'] . '" rows="16">'
222 . htmlentities( rawurldecode( base64_decode( $value ) ), ENT_COMPAT, 'UTF-8' ) . '</textarea>';
223 }
product_ListRows.php (https://gitlab.com/vanthanhhoh/devlovebook) PHP · 85 lines
1 <?php
2 if(!class_exists('product')) die('Stop here!');
3 $Search = array('sortby' => 'product_id',
28 $Search = array_merge($Search, G::$Registry['Params']);
29 $Search = array_merge($Search, $FromForm);
30 $Search['q'] = urldecode($Search['q']);
31 Router::BuildParamsString($Search, true);
32 $Search['re_order'] = ($Search['order'] == 'desc') ? 'asc' : 'desc';
bookmark.lib.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 222 lines
1 <?php
2 /* $Id: bookmark.lib.php 9763 2006-11-26 10:57:48Z lem9 $ */
176 $query = 'INSERT INTO ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table'])
177 . ' (id, dbase, user, query, label) VALUES (NULL, \'' . PMA_sqlAddslashes($fields['dbase']) . '\', \'' . ($all_users ? '' : PMA_sqlAddslashes($fields['user'])) . '\', \'' . PMA_sqlAddslashes(urldecode($fields['query'])) . '\', \'' . PMA_sqlAddslashes($fields['label']) . '\')';
178 $result = PMA_DBI_query($query, $controllink);
211 if (! isset($GLOBALS['cfgRelation'])) {
212 require_once './libraries/relation.lib.php';
213 $GLOBALS['cfgRelation'] = PMA_getRelationsParam();
214 }
Project.php (https://github.com/igorw-forks/marketplace.git) PHP · 245 lines
ViewfileTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 222 lines
39 /**
40 * @var \Magento\Framework\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
41 */
42 protected $objectManagerMock;
151 [
152 'context' => $this->contextMock,
153 'urlDecoder' => $this->urlDecoderMock,
154 'fileFactory' => $fileFactoryMock
155 ]
214 [
215 'context' => $this->contextMock,
216 'urlDecoder' => $this->urlDecoderMock,
217 'resultRawFactory' => $this->resultRawFactoryMock
218 ]
annuaire_recherche_result.php (https://github.com/yvesb/soothERP.git) PHP · 216 lines
1 <?php
2 // ******************************************************
3 // [ADMINISTRATEUR] RECHERCHE D'UNE FICHE DE CONTACT
7 require ("_dir.inc.php");
8 require ("_profil.inc.php");
9 require ($DIR."_session.inc.php");
51 $form['nom'] = "";
52 if (isset($_REQUEST['nom'])) {
53 $form['nom'] = trim(urldecode($_REQUEST['nom']));
54 $search['nom'] = trim(urldecode($_REQUEST['nom']));
log.php (https://gitlab.com/iamgraeme/royalmile) PHP · 244 lines
1 <?php
3 class RE_Log {
33 $insert = array(
34 'url' => urldecode( $url ),
35 'created' => current_time( 'mysql' ),
36 'ip' => $ip,
103 header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
105 $stdout = fopen( 'php://output', 'w' );
107 fputcsv( $stdout, array( 'date', 'source', 'target', 'ip', 'referrer', 'agent' ) );
168 $insert = array(
169 'url' => urldecode( $url ),
170 'created' => current_time( 'mysql' ),
171 'ip' => ip2long( $ip ),
HttpUtils.php (https://bitbucket.org/AdriVanHoudt/school.git) PHP · 145 lines
BenchmarkTest01030.java (https://gitlab.com/disextr/BenchmarkJava) Java · 122 lines
homepage2.php (https://gitlab.com/anurat/earththailand) PHP · 404 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 include_once APPPATH .'controllers/admin/admin_ci.php';
309 public function tags( $query=null ) {
311 $search = urldecode( $query );
312 $cms_tag = $this->cms_model->get_cms_tag();
313 if( !empty( $query ) ) {
379 public function footer() {
381 $filepath = APPPATH .'views/footer.php';
383 $editor1 = $this->input->post( 'editor1' );
401 }
403 /* End of file homepage.php */
404 /* Location: ./application/controllers/admin/homepage.php */
PRJ-RS-Someapp-remoting-server-RS0_Somebo.cs.aspx (https://github.com/ogen-project/ogen.git) ASP.NET · 107 lines
17 <%@ import namespace="OGen.NTier.Libraries.Metadata.MetadataBusiness" %><%
18 #region arguments...
19 string _arg_MetadataFilePath = System.Web.HttpUtility.UrlDecode(Request.QueryString["MetadataFilePath"]);
20 string _arg_ClassName = System.Web.HttpUtility.UrlDecode(Request.QueryString["ClassName"]);
21 bool _arg_Client = bool.Parse(System.Web.HttpUtility.UrlDecode(Request.QueryString["Client"]));
22 #endregion
config_files.php (https://github.com/krisxoofoo/XooFoo.git) PHP · 206 lines
1 <?php
2 /**
3 * This file is part of MySQLDumper released under the GNU/GPL 2 license
38 if (isset($_GET['config_delete'])) {
39 $deleteConfig = urldecode($_GET['config_delete']);
40 if ($deleteConfig == $config['config_file']) {
41 //actaul configuration was deleted, fall back to mysqldumper-conf
44 getConfig($config['config_file']);
45 }
46 $del = @unlink('./' . $config['paths']['config'] . $deleteConfig . '.php');
47 if ($del) {
48 // delete Perl config file
49 $delFile = $config['paths']['config'] . $deleteConfig . '.conf.php';
50 $del = @unlink('./' . $delFile);
51 }
attributes.php (https://gitlab.com/ezgonzalez/integral) PHP · 426 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( '-1' );
64 ), $data ) );
66 return vc_include_template( 'params/vc_grid_item/attributes/featured_image.php', array(
67 'post' => $post,
68 'data' => $data,
90 ), $data ) );
92 return vc_include_template( 'params/vc_grid_item/attributes/vc_btn.php', array(
93 'post' => $post,
94 'data' => $data,
120 }
121 if ( empty( $src ) && ! empty( $data ) ) {
122 $output = esc_attr( rawurldecode( $data ) );
123 } elseif ( ! empty( $src ) ) {
124 $output = $src[0];
update.php (https://github.com/chrisguan/Olympia_on_Desktop.git) PHP · 193 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
12 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
14 if ( isset($_GET['action']) ) {
15 $plugin = isset($_REQUEST['plugin']) ? trim($_REQUEST['plugin']) : '';
16 $theme = isset($_REQUEST['theme']) ? urldecode($_REQUEST['theme']) : '';
17 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
25 $title = __('Upgrade Plugin');
26 $parent_file = 'plugins.php';
27 $submenu_file = 'plugins.php';
Router.php (https://github.com/arsakiyo/apify-library.git) PHP · 418 lines
1 <?php
2 /**
3 * Zend Framework
163 foreach(array_chunk($parts, 2) as $part) {
164 list($var, $value) = $part;
165 $var = urldecode($var);
166 if (!array_key_exists($var, $unique)) {
167 $this->params[$var] = urldecode($value);
209 $part = $this->parts[$pos];
210 $name = isset($part['name']) ? $part['name'] : null;
211 $pathPart = urldecode($pathPart);
213 if ($name === null) {
class.jetpack-json-api-plugins-endpoint.php (https://gitlab.com/Gashler/sg) PHP · 197 lines
1 <?php
3 /**
66 } else {
67 $this->bulk = false;
68 $this->plugins[] = urldecode( $plugin );
69 }
85 }
86 foreach( $this->plugins as $index => $plugin ) {
87 if ( ! preg_match( "/\.php$/", $plugin ) ) {
88 $plugin = $plugin . '.php';
98 protected function format_plugin( $plugin_file, $plugin_data ) {
99 $plugin = array();
100 $plugin['id'] = preg_replace("/(.+)\.php$/", "$1", $plugin_file );
101 $plugin['slug'] = $this->get_plugin_slug( $plugin_file );
102 $plugin['active'] = Jetpack::is_plugin_active( $plugin_file );
class-wp-http-cookie.php (https://github.com/livinglab/openlab.git) PHP · 261 lines
1 <?php
2 /**
3 * HTTP API: WP_Http_Cookie class
112 $value = substr( $pairs[0], strpos( $pairs[0], '=' ) + 1 );
113 $this->name = $name;
114 $this->value = urldecode( $value );
116 // Removes name=value from items.
212 * @return string Header encoded cookie name and value.
213 */
214 public function getHeaderValue() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
215 if ( ! isset( $this->name ) || ! isset( $this->value ) ) {
216 return '';
235 * @return string
236 */
237 public function getFullHeader() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
238 return 'Cookie: ' . $this->getHeaderValue();
239 }
BaiduUtils.class.php (https://github.com/guoxiangke/Vp.git) PHP · 220 lines
1 <?php
2 /***************************************************************************
3 *
80 /**
81 * @brief urldecode a variable recursively, array keys and object property names will not be
82 * decoded, so you would better use ASCII to define the array key name or object property name.
83 *
85 * @return mixed, with the same variable type
86 **/
87 public static function urldecode_recursive($var)
88 {
89 if (is_array($var)) {
189 * @return mix The array with all of the values in it noslashed
190 * @retval The array with all of the values in it noslashed
191 * @see http://cn2.php.net/manual/en/function.iconv.php
192 * @note
193 * @author zhujt
ziddu_com.php (https://gitlab.com/dkiller1/rapidleech) PHP · 76 lines
1 <?php
2 if(!defined('RAPIDLEECH')) {
3 require_once ('index.html');
16 $post['Keyword'] = 'Ok';
17 $post['submit'] = $_POST['submit'];
18 $dlink = urldecode($_POST['link']);
19 $cookie = urldecode($_POST['cookie']);
20 $Referer = urldecode($_POST['referer']);
21 $filename = $_POST['fname'];
22 $this->RedirectDownload($dlink, $filename, $cookie, $post, $Referer);
24 } else {
25 $page = $this->GetPage($link);
26 is_present($page, "/errortracking.php?msg=File not found", "File not found");
27 if (preg_match('@Location: (http:\/\/[^\r\n]+)@i', $page, $redir)) {
28 $link = trim($redir[1]);
adodb-session.php (https://github.com/kennethjiang/Wolke.git) PHP · 259 lines
Request.php (https://github.com/AJenbo/ubuntudanmark.dk.git) PHP · 95 lines
1 <?php
3 namespace WP_Piwik;
75 }
77 protected function buildURL($config, $urlDecode = false) {
78 $url = 'method='.($config['method']).'&idSite='.self::$settings->getOption('site_id');
79 foreach ($config['parameter'] as $key => $value)
80 $url .= '&'.$key.'='.($urlDecode?urldecode($value):$value);
81 return $url;
82 }
spipbb_action.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 138 lines
add.tpl.htm (https://gitlab.com/Ltaimao/wecenter) HTML · 198 lines
62 <?php if ($group == 1 AND !$this->user_info['permission']['is_administortar']) { continue; } ?>
63 <option value="<?php echo $group['group_id']; ?>"<?php if ($group['group_id'] == 4) { ?> selected="selected"<?php } ?>><?php echo $group['group_name']; ?></option>
64 <?php } ?>
91 <div class="col-sm-5 col-xs-8">
92 <input class="form-control" type="text" value="<?php echo rawurldecode($_GET['user_name']); ?>" name="user_name" />
93 </div>
94 </div>
99 <div class="col-sm-5 col-xs-8">
100 <input class="form-control" type="text" value="<?php echo rawurldecode($_GET['email']); ?>" name="email" />
101 </div>
102 </div>
110 <?php foreach($this->system_group as $skey => $sval) { ?>
111 <option value="<?php echo $sval['group_id']; ?>"<?php if ($_GET['group_id'] == $sval['group_id']) { ?> selected="selected"<?php } ?>><?php echo $sval['group_name']; ?></option>
112 <?php } ?>
169 <?php if ($this->job_list) { foreach ($this->job_list as $job_id => $job_name) { ?>
170 <option value="<?php echo $job_id; ?>"<?php if ($_GET['job_id'] == $job_id) { ?> selected="selected"<?php } ?>><?php echo $job_name; ?></option>
171 <?php } } ?>
editer_mots.php (https://github.com/genova/ugb.git) PHP · 96 lines
profile_class.php (https://github.com/brownjohnf/Peace-Corps-App.git) PHP · 166 lines
1 <?php
2 # Copyright (c) 2011, John F. Brown This file is
3 # licensed under the Affero General Public License version 3 or later. See
23 $names = $this->ci->uri->segment(3);
24 $names_array = explode('-', trim($names));
25 $query = array('where' => array('lname like' => urldecode($names_array[0]), 'fname like' => '%'.urldecode($names_array[1]).'%'), 'limit' => 1);
26 }
27 else
62 if (isset($result['fb_id']) && is_numeric($result['fb_id'])) {
63 $return['social'][] = anchor('http://facebook.com/profile.php?id='.$result['fb_id'], 'Facebook', array('target' => '_blank'));
64 $return['profile_photo'] = 'http://graph.facebook.com/'.$result['fb_id'].'/picture?type=large';
65 } elseif (isset($result['fb_id']) && is_string($result['fb_id'])) {
Material.php (https://github.com/VivekVish/Veda-Project-API.git) PHP · 243 lines
appdevUrlMatcher.php (https://github.com/castillojorge/SemdropsMobile.git) PHP · 268 lines
CompareController.php (https://github.com/rgranadino/magento-mirror.git) PHP · 179 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Catalog
23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
55 if ($beforeUrl = $this->getRequest()->getParam(self::PARAM_NAME_URL_ENCODED)) {
56 Mage::getSingleton('catalog/session')
57 ->setBeforeCompareUrl(Mage::helper('core')->urlDecode($beforeUrl));
58 }
bookmark.lib.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 222 lines
1 <?php
2 /* $Id: bookmark.lib.php 9762 2006-11-26 10:51:59Z lem9 $ */
176 $query = 'INSERT INTO ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table'])
177 . ' (id, dbase, user, query, label) VALUES (NULL, \'' . PMA_sqlAddslashes($fields['dbase']) . '\', \'' . ($all_users ? '' : PMA_sqlAddslashes($fields['user'])) . '\', \'' . PMA_sqlAddslashes(urldecode($fields['query'])) . '\', \'' . PMA_sqlAddslashes($fields['label']) . '\')';
178 $result = PMA_DBI_query($query, $controllink);
211 if (! isset($GLOBALS['cfgRelation'])) {
212 require_once './libraries/relation.lib.php';
213 $GLOBALS['cfgRelation'] = PMA_getRelationsParam();
214 }
bookmark.lib.php (https://gitlab.com/luyxtran264/myproject) PHP · 289 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Set of functions used with the bookmark feature
5 *
6 * @package PhpMyAdmin
7 */
205 . '\', '
206 . '\''
207 . PMA\libraries\Util::sqlAddSlashes(urldecode($bkm_fields['bkm_sql_query']))
208 . '\', '
209 . '\'' . PMA\libraries\Util::sqlAddSlashes($bkm_fields['bkm_label']) . '\')';
class-wc-shortcode-checkout.php (https://bitbucket.org/pless84/woocommerce.git) PHP · 231 lines
1 <?php
2 /**
3 * Checkout Shortcode
82 // Pay for existing order
83 $order_key = urldecode( $_GET[ 'key' ] );
84 $order_id = absint( $order_id );
85 $order = new WC_Order( $order_id );
98 // Show form
99 woocommerce_get_template( 'checkout/form-pay.php', array( 'order' => $order ) );
101 } elseif ( ! in_array( $order->status, $valid_order_statuses ) ) {
123 <ul class="order_details">
124 <li class="order">
125 <?php _e( 'Order:', 'woocommerce' ); ?>
126 <strong><?php echo $order->get_order_number(); ?></strong>
Module.php (https://github.com/adaykin/zf2.git) PHP · 297 lines
CompareController.php (https://github.com/gryzz/crystal_magento.git) PHP · 153 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Catalog
23 * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
48 if ($beforeUrl = $this->getRequest()->getParam(self::PARAM_NAME_URL_ENCODED)) {
49 Mage::getSingleton('catalog/session')
50 ->setBeforeCompareUrl(Mage::helper('core')->urlDecode($beforeUrl));
51 }
OAuthSignatureMethod_HMAC_SHA1.php (https://github.com/wangaiying/elgg4ysu.git) PHP · 115 lines
1 <?php
3 /**
34 require_once dirname(__FILE__).'/OAuthSignatureMethod.class.php';
98 public function verify ( $request, $base_string, $consumer_secret, $token_secret, $signature )
99 {
100 $a = $request->urldecode($signature);
101 $b = $request->urldecode($this->signature($request, $base_string, $consumer_secret, $token_secret));
faqs.php (https://gitlab.com/webkod3r/tripolis) PHP · 141 lines
53 // If the "All" filter is disabled, set the first real filter as active
54 if ( $first_filter ) {
55 echo sprintf( '<li class="fusion-filter fusion-active"><a data-filter=".%s" href="#">%s</a></li>', urldecode( $faq_term->slug ), $faq_term->name );
57 $first_filter = FALSE;
89 <div class="fusion-panel panel-default fusion-faq-post <?php echo $post_classes; ?>">
90 <?php // get the rich snippets for the post
91 echo avada_render_rich_snippets_for_pages(); ?>
92 <div class="panel-heading">
93 <h4 class="panel-title toggle">
94 <a data-toggle="collapse" class="collapsed" data-parent="#accordian-one" data-target="#collapse-<?php echo get_the_ID(); ?>" href="#collapse-<?php echo get_the_ID(); ?>">
95 <div class="fusion-toggle-icon-wrapper">
96 <i class="fa-fusion-box"></i>
100 </h4>
101 </div>
102 <?php
103 echo sprintf( '<div id="collapse-%s" class="panel-collapse collapse">', get_the_ID() );
104 echo '<div class="panel-body toggle-content post-content">';
book.url.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 50 lines
10 <div class="next" style="text-align: right; float: right;"><a href="intro.url.html">導入</a></div>
11 <div class="up"><a href="refs.basic.other.html">その他の基本モジュール</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="book.url" class="book">
14 <h1 class="title">URLs</h1>
44 <ul class="chunklist chunklist_book"><li><a href="intro.url.html">導入</a></li><li><a href="url.setup.html">インストール/設定</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="url.requirements.html">要件</a></li><li><a href="url.installation.html">インストール手順</a></li><li><a href="url.configuration.html">実行時設定</a></li><li><a href="url.resources.html">リソース型</a></li></ul></li><li><a href="url.constants.html">定義済み定数</a></li><li><a href="ref.url.html">URL 関数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.base64-decode.html">base64_decode</a> — MIME base64 方式によりエンコードされたデータをデコードする</li><li><a href="function.base64-encode.html">base64_encode</a> — MIME base64 方式でデータをエンコードする</li><li><a href="function.get-headers.html">get_headers</a> — HTTP リクエストに対するレスポンス内で
45 サーバによって送出された全てのヘッダを取得する</li><li><a href="function.get-meta-tags.html">get_meta_tags</a> — ファイル上のすべてのメタタグ情報を配列に展開する</li><li><a href="function.http-build-query.html">http_build_query</a> — URL エンコードされたクエリ文字列を生成する</li><li><a href="function.parse-url.html">parse_url</a> — URL を解釈し、その構成要素を返す</li><li><a href="function.rawurldecode.html">rawurldecode</a> — URL エンコードされた文字列をデコードする</li><li><a href="function.rawurlencode.html">rawurlencode</a> — RFC 3986 に基づき URL エンコードを行う</li><li><a href="function.urldecode.html">urldecode</a> — URL エンコードされた文字列をデコードする</li><li><a href="function.urlencode.html">urlencode</a> — 文字列を URL エンコードする</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
46 <div class="prev" style="text-align: left; float: left;"><a href="function.token-name.html">token_name</a></div>
47 <div class="next" style="text-align: right; float: right;"><a href="intro.url.html">導入</a></div>
48 <div class="up"><a href="refs.basic.other.html">その他の基本モジュール</a></div>
49 <div class="home"><a href="index.html">PHP Manual</a></div>
50 </div></body></html>
Base.php (https://github.com/wheatbin/wheatbin.git) PHP · 311 lines
DokuPDF.class.php (https://github.com/Lemelisk/examPlugin.git) PHP · 93 lines
1 <?php
2 /**
3 * Wrapper around the mpdf library class
11 if(!defined('_MPDF_TEMP_PATH')) define('_MPDF_TEMP_PATH', $conf['tmpdir']);
12 if(!defined('_MPDF_TTFONTDATAPATH')) define('_MPDF_TTFONTDATAPATH',$conf['cachedir'].'/mpdf_ttf/');
13 require_once(dirname(__FILE__)."/mpdf/mpdf.php");
15 class DokuPDF extends mpdf {
53 if(preg_match("/$re/",$file,$m) ||
54 preg_match('/[&\?]media=([^&\?]*)/',$file,$m)){
55 $media = rawurldecode($m[1]);
57 if(preg_match('/[\?&]w=(\d+)/',$file, $m)) $w = $m[1];
url_matcher6.php (https://github.com/deviantintegral/symfony.git) PHP · 128 lines
tbl_addfield.php (https://gitlab.com/a.loskutnikov/sitimobile) PHP · 211 lines
1 <?php
2 /* $Id: tbl_addfield.php,v 1.25.2.1 2002/04/28 11:46:58 loic1 Exp $ */
6 * Get some core libraries
7 */
8 require('./libraries/grab_globals.lib.php');
9 if (isset($submit)) {
10 $js_to_run = 'functions.js';
11 }
12 require('./header.inc.php');
16 * Defines the url to return to in case of error in a sql statement
17 */
18 $err_url = 'tbl_properties.php'
19 . '?lang=' . $lang
20 . '&server=' . $server
index.php (https://gitlab.com/alidzapp/gamerz-file-explorer) PHP · 194 lines
116 }
117 ?>
118 <?php template_header( ! empty( $current_directory_name ) ? ' - Viewing Directory - ' . $current_directory_name : '' ); ?>
120 <!-- List Directories/Files -->
125 <th style="width: 50%;" onclick="parent.location.href='<?php echo create_sort_url( 'name' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Name">Name <?php echo create_sort_image( 'name' ); ?></th>
126 <th style="width: 10%;" onclick="parent.location.href='<?php echo create_sort_url( 'size' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Size">Size <?php echo create_sort_image( 'size' ); ?></th>
127 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'type' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Type">Type <?php echo create_sort_image( 'type' ); ?></th>
128 <th style="width: 20%;" onclick="parent.location.href='<?php echo create_sort_url( 'date' ); ?>';" onmouseover="this.style.cursor = 'pointer';" title="Sort By Date">Date <?php echo create_sort_image( 'date' ); ?></th>
129 </tr>
130 </thead>
186 <td><strong><?php echo $total_folders_files; ?></strong></td>
187 <td><strong><?php echo $total_size; ?></strong></td>
188 <td>-</td>
189 <td>-</td>
bashserver.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 118 lines
1 <?php
2 //
3 // Serveur d'images Lilypond developpe pour SPIP par
81 if (!file_exists($fichier_image) OR (filemtime($fichier_image)<filemtime("bashserver.php"))) {
82 $cmd = "$script $fichier $fichier_source";
83 system($cmd);
115 header("Content-Type: ".$type_header);
116 readfile(lilypond_(rawurldecode($code),$format));
118 ?>
Regex.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 173 lines
rfc2231_implementation.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 192 lines
1 <?php
2 /**
3 * File containing the ezcMailRfc2231Implementation class
88 $charset = $matches[1];
89 $language = $matches[2];
90 $parts[0]['value'] = urldecode( $matches[3] ); // rewrite value: todo: decoding
91 $result[1][$paramName] = array( 'value' => $parts[0]['value'] );
92 }
107 {
108 $result[1][$paramName]['value'] .= $parts[$i]['encoding'] ?
109 urldecode( $parts[$i]['value'] ) : $parts[$i]['value'];
110 }
111 }
search.php (https://github.com/dextercowley/joomla-cms.git) PHP · 218 lines
appdevUrlMatcher.php (https://bitbucket.org/AdriVanHoudt/school.git) PHP · 198 lines
1 <?php
3 use Symfony\Component\Routing\Exception\MethodNotAllowedException;
24 {
25 $allow = array();
26 $pathinfo = rawurldecode($pathinfo);
28 if (0 === strpos($pathinfo, '/_')) {
78 }
80 // _profiler_phpinfo
81 if ($pathinfo === '/_profiler/phpinfo') {
82 return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
83 }
Serialize.php (https://github.com/imr/horde.git) PHP · 363 lines
VirtualFileSystem.php (https://bitbucket.org/ndj/piecrust.git) PHP · 233 lines
1 <?php
138 $headers = array();
140 $contents = '<ul>' . PHP_EOL;
141 foreach (new DirectoryIterator($documentPath) as $entry)
142 {
143 $contents .= '<li>' . $entry->getFilename() . '</li>' . PHP_EOL;
144 }
145 $contents .= '</ul>' . PHP_EOL;
161 $root = $this->documentRoot;
162 $uri = rawurldecode($uri);
163 $secondSlash = strpos($uri, '/', 1);
164 if ($secondSlash !== false)
CommonModel.php (https://gitlab.com/e0/mautic) PHP · 279 lines
token.php (https://github.com/wmmarket/kohana-oauthy.git) PHP · 216 lines
1 <?php
2 /**
3 * Response type is token
55 $name = $matches[2][0];
56 $offset = $match[1] + strlen($match[0]);
57 if($value = Oauthz::urldecode(isset($matches[5]) ? $matches[5][0] : $matches[4][0]))
58 {
59 $params[$name] = $value;
98 {
99 // TODO move this request data detect into authorization handler
100 if(isset($_SERVER['PHP_AUTH_USER']) AND isset($_SERVER['PHP_AUTH_PW']))
101 {
102 $_POST += array('client_id' => $_SERVER['PHP_AUTH_USER'], 'client_secret' => $_SERVER['PHP_AUTH_PW']);
103 }
104 // TODO Digest HTTP authentication
105 //else if( ! empty($_SERVER['PHP_AUTH_DIGEST']) AND $digest = parent::parse_digest($_SERVER['PHP_AUTH_DIGEST']))
106 //{
107 // $_POST += array('client_id' => $digest['username'], 'client_secret' => $digest['']);
Token.php (https://github.com/Riges/KawaiViewModel.git) PHP · 285 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Token.php 24593 2012-01-05 20:35:02Z matthew $
20 */
22 /** Zend_Oauth_Http_Utility */
23 require_once 'Zend/Oauth/Http/Utility.php';
25 /**
261 foreach ($parts as $kvpair) {
262 $pair = explode('=', $kvpair);
263 $params[rawurldecode($pair[0])] = rawurldecode($pair[1]);
264 }
265 return $params;
quicksearchQuery.php (https://gitlab.com/tjaafar/SuiteCRM) PHP · 68 lines
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
42 $filePath = 'modules/Home/QuickSearch.php';
43 if (file_exists('custom/' . $filePath))
44 {
58 if (empty($data['conditions'][$k]['value']) && ($data['conditions'][$k]['op'] != quicksearchQuery::CONDITION_EQUAL))
59 {
60 $data['conditions'][$k]['value']=urldecode($_REQUEST['query']);
61 }
62 }
search.php (https://github.com/jongleur/oscommerce.git) PHP · 133 lines
1 <?php
2 /*
3 $Id: password.php 64 2005-03-12 16:36:16Z hpdl $
13 */
15 require('includes/classes/search.php');
17 class osC_Search_Search extends osC_Template {
44 $this->_process();
45 } else {
46 $this->addJavascriptPhpFilename('templates/' . $this->getCode() . '/javascript/search/search.php');
47 }
48 }
126 $this->_page_contents = 'search.php';
127 $this->addJavascriptPhpFilename('templates/' . $this->getCode() . '/javascript/search/search.php');
128 } else {
129 $Qlisting = $osC_Search->execute();
appDevUrlMatcher.php (https://gitlab.com/jeisoncg/personal_collection_mv) PHP · 185 lines
1 <?php
3 use Symfony\Component\Routing\Exception\MethodNotAllowedException;
24 {
25 $allow = array();
26 $pathinfo = rawurldecode($pathinfo);
27 $context = $this->context;
28 $request = $this->request;
62 }
64 // _profiler_phpinfo
65 if ($pathinfo === '/_profiler/phpinfo') {
66 return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
67 }
tbl_row_action.php (https://github.com/cabenitez/factuweb.git) PHP · 165 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * handle row specifc actions like edit, delete, export
5 *
6 * @version $Id: tbl_row_action.php 10714 2007-10-04 09:22:50Z cybot_tm $
7 */
18 *
19 */
20 require_once './libraries/common.inc.php';
21 require_once './libraries/mysql_charsets.lib.php';
28 $disp_message = $strNoRowsSelected;
29 $disp_query = '';
30 require './sql.php';
31 require_once './libraries/footer.inc.php';
EscapeHTMLTest.php (https://github.com/GunioRobot/CakePHP-TALTAL.git) PHP · 200 lines
40 function testEntityDecodingBeforePHP()
41 {
42 /* PHP block in attributes gets raw input (that's not XML style, but PHP style) */
43 $res = $this->executeString('<div title="${php:strlen(\'"&\')}" class="<?php echo strlen(\'"&\')?>">'.
44 '<tal:block tal:content="php:strlen(\'"&\')" />,${php:strlen(\'"&\')}</div>');
45 $this->assertEquals('<div title="2" class="11">2,2</div>', $res);
46 }
48 function testEntityEncodingAfterPHP()
49 {
50 $res = $this->executeString('<div title="${php:urldecode(\'%26%22%3C\')}"><tal:block tal:content="php:urldecode(\'%26%22%3C\')" />,${php:urldecode(\'%26%22%3C\')}</div>');
51 $this->assertEquals('<div title="&"<">&"<,&"<</div>', $res);
52 }
56 $res = $this->executeString('<div title="${structure php:urldecode(\'%26%20%3E%27\')}" class="<?php echo urldecode(\'%26%20%3E%27\')?>">'.
57 '<tal:block tal:content="structure php:urldecode(\'%26%20%3E%22\')" />,${structure php:urldecode(\'%26%20%3E%22\')},<?php echo urldecode(\'%26%20%3E%22\')?></div>');
58 $this->assertEquals('<div title="& >\'" class="& >\'">& >",& >",& >"</div>', $res);
59 }
RequestMatcher.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 152 lines
oauth_helper.php (https://gitlab.com/joelopezcuenca/proyectocoin) PHP · 226 lines
1 <?php
2 /**
3 * Helper functions for OAuth
178 {
179 // Decompose and pull query params out of the url
180 $query_str = parse_url($url, PHP_URL_QUERY);
181 if ($query_str) {
182 $parsed_query = oauth_parse_str($query_str);
220 function rfc3986_decode($raw_input)
221 {
222 return rawurldecode($raw_input);
223 }
wizzflux.plugin.php (https://github.com/soif/OpenJabNab.git) PHP · 139 lines
61 <?php if(!empty($FList))
62 foreach($FList as $item) { ?>
63 <option value="<?php echo $item; ?>" <?php echo $default == $item ? 'selected="selected"' : ''; ?>><?php echo ucfirst($item); ?></option>
64 <?php } ?>
70 <?php if(!empty($FList))
71 foreach($FList as $item) { ?>
72 <option value="<?php echo $item; ?>"><?php echo ucfirst($item); ?></option>
73 <?php } ?>
89 <?php foreach($Ztamps as $k=>$v): ?>
90 <option value="<?php echo $k; ?>"><?php echo $v; ?> (<?php echo $k; ?>)</option>
91 <?php endforeach; ?>
98 <?php foreach($Ztamps as $k=>$v): ?>
99 <option value="<?php echo $k; ?>"><?php echo $v; ?> (<?php echo $k; ?>)</option>
100 <?php endforeach; ?>
134 <td><?php echo $item->value ?></td>
135 <td width="15%" class="remove"><a href="bunny_plugin.php?p=wizzflux&rw=<?php echo $item->key ?>">Remove</a></td>
136 </tr>
137 <?php } ?>
log.php (https://gitlab.com/VTTE/sitios-vtte) PHP · 388 lines
1 <?php
3 class RE_Log {
35 $insert = array(
36 'url' => urldecode( $url ),
37 'created' => current_time( 'mysql' ),
38 'ip' => substr( $ip, 0, 45 ),
109 header( 'Content-Disposition: attachment; filename="' . $filename . '"' );
111 $stdout = fopen( 'php://output', 'w' );
113 fputcsv( $stdout, array( 'date', 'source', 'target', 'ip', 'referrer', 'agent' ) );
179 $insert = array(
180 'url' => substr( urldecode( $url ), 0, 255 ),
181 'created' => current_time( 'mysql' ),
182 'ip' => substr( $ip, 0, 45 ),
megavideo_com.php (https://github.com/gartz/RapidLeetch.git) PHP · 183 lines
1 <?php
2 if (! defined ( 'RAPIDLEECH' )) {
3 require_once ("index.html");
7 $src = $_GET ['link'];
8 $clean_up = str_replace ( 'http://www.megavideo.com/?v=', '', $src );
9 $dorm = "http://www.megavideo.com/xml/player_login.php?u={$mu_cookie_user_value}&v=" . $clean_up;
10 $Url = parse_url ( $dorm );
11 $page = geturl ( $Url ["host"], $Url ["port"] ? $Url ["port"] : 80, $Url ["path"] . ($Url ["query"] ? "?" . $Url ["query"] : ""), 0, 0, 0, 0, $_GET ["proxy"], $pauth );
12 if (preg_match ( '|downloadurl="(http.*)" />|U', $scrape, $result )) {
13 $insert = urldecode ( $result [1] );
14 $Url = parse_url ( $insert );
15 $FileName = ! $FileName ? basename ( $Url ["path"] ) : $FileName;
17 insert_location ( "$PHP_SELF?filename=" . urlencode ( $FileName ) . "&host=" . $Url ["host"] . "&path=" . urlencode ( $Url ["path"] . ($Url ["query"] ? "?" . $Url ["query"] : "") ) . "&referer=" . urlencode ( $Referer ) . "&email=" . ($_GET ["domail"] ? $_GET ["email"] : "") . "&partSize=" . ($_GET ["split"] ? $_GET ["partSize"] : "") . "&method=" . $_GET ["method"] . "&proxy=" . ($_GET ["useproxy"] ? $_GET ["proxy"] : "") . "&saveto=" . $_GET ["path"] . "&link=" . urlencode ( $LINK ) . ($_GET ["add_comment"] == "on" ? "&comment=" . urlencode ( $_GET ["comment"] ) : "") . "&auth=" . $auth . ($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : "") );
19 }
PayPal.php (https://github.com/ad2joe/php-merchant-1.git) PHP · 267 lines
23 * @access public
24 */
25 class PHPMerchant_Billing_Gateway_PayPal extends PHPMerchant_Billing_Gateway {
27 const TEST_URL = 'https://api-3t.sandbox.paypal.com/nvp';
77 /**
78 * PHPMerchant_Billing_Gateway_PayPal::credit()
79 *
80 * @param integer $money
89 /**
90 * PHPMerchant_Billing_Gateway_PayPal::_commit()
91 *
92 * @param mixed $action
FilesystemAdapter.php (https://gitlab.com/pr0055/symfonypizza) PHP · 158 lines
URLUtil.php (https://github.com/lkneschke/SabreDAV.git) PHP · 125 lines
1 <?php
3 /**
6 * This class provides methods to deal with encoding and decoding url (percent encoded) strings.
7 *
8 * It was not possible to use PHP's built-in methods for this, because some clients don't like
9 * encoding of certain characters.
10 *
80 static function decodePathSegment($path) {
82 $path = urldecode($path);
83 $encoding = mb_detect_encoding($path, array('UTF-8','ISO-8859-1'));
class-projects-integrations.php (https://gitlab.com/mostafame/team_website) PHP · 341 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
71 check_ajax_referer( 'projects_ajax_get_testimonials', 'security' );
73 $term = urldecode( stripslashes( strip_tags( $_GET['term'] ) ) );
75 if ( !empty( $term ) ) {
114 global $pagenow, $post_type;
116 if ( ( $pagenow == 'post.php' || $pagenow == 'post-new.php' ) && isset( $post_type ) && esc_attr( $post_type ) == $this->post_type ) {
118 $ajax_nonce = wp_create_nonce( 'projects_ajax_get_testimonials' );
269 global $pagenow, $post_type;
271 if ( ( $pagenow == 'post.php' || $pagenow == 'post-new.php' ) && isset( $post_type ) && esc_attr( $post_type ) == $this->post_type ) {
273 $ajax_nonce = wp_create_nonce( 'projects_ajax_get_products' );
search.php (https://github.com/chalosalvador/GDS.git) PHP · 214 lines
show_list_stat.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 153 lines
1 <?php
3 /**
52 $query = "SELECT COUNT(*) FROM `" . $table . "` WHERE `bid`=" . $bid . "";
54 $base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=show_list_stat&bid=" . $bid . "&month=" . $data_month;
55 $caption = sprintf ( $lang_module ['show_list_stat1'], nv_monthname ( $data_month ), $current_year );
59 $countries = array ();
60 include (NV_ROOTDIR . "/includes/ip_files/countries.php");
62 if (in_array ( $nv_Request->get_string ( 'ext', 'get', 'no' ), array ('day', 'country', 'browse', 'os' ) )) {
143 $contents ['caption'] = $caption;
144 $contents ['thead'] = array ($lang_module ['click_date'], $lang_module ['click_ip'], $lang_module ['click_country'], $lang_module ['click_browse'], $lang_module ['click_os'], $lang_module ['click_ref'] );
145 $contents ['generate_page'] = nv_generate_page ( $base_url, $all_page, $per_page, $page, true, true, 'nv_urldecode_ajax', 'statistic' );
147 $contents = call_user_func ( "nv_show_list_stat_theme", $contents );
HttpServerUtilityCas.cs (https://github.com/t-ashula/mono.git) C# · 279 lines
AbstractToken.php (https://github.com/Exercise/zf2.git) PHP · 293 lines
db_export.php (https://gitlab.com/trungthao379/phpmyadmin) PHP · 158 lines
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * dumps a database
5 *
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\config\PageSettings;
12 * Gets some core libraries
13 */
14 require_once 'libraries/common.inc.php';
15 require_once 'libraries/config/user_preferences.forms.php';
16 require_once 'libraries/config/page_settings.forms.php';
17 require_once 'libraries/export.lib.php';
Blog.php (https://bitbucket.org/acidel/buykoala.git) PHP · 137 lines
1 <?php
2 /**
3 * aheadWorks Co.
36 if ($tag = $this->getRequest()->getParam('tag')) {
37 $collection->addTagFilter(urldecode($tag));
38 }
100 $breadcrumbs->addCrumb('home', array('label' => Mage::helper('blog')->__('Home'), 'title' => Mage::helper('blog')->__('Go to Home Page'), 'link' => Mage::getBaseUrl()));
101 ;
102 if ($tag = @urldecode($this->getRequest()->getParam('tag'))) {
103 $breadcrumbs->addCrumb('blog', array('label' => Mage::getStoreConfig('blog/blog/title'), 'title' => Mage::helper('blog')->__('Return to ' . Mage::getStoreConfig('blog/blog/title')), 'link' => Mage::getUrl($route)));
104 $breadcrumbs->addCrumb('blog_tag', array('label' => Mage::helper('blog')->__('Tagged with "%s"', Mage::helper('blog')->convertSlashes($tag)), 'title' => Mage::helper('blog')->__('Tagged with "%s"', $tag)));
FormFieldHelper.php (https://gitlab.com/mautic-master/mautic) PHP · 212 lines
1 <?php
2 /**
3 * @package Mautic
173 case 'hidden':
174 if (preg_match('/<input(.*?)id="mauticform_input_' . $formName . '_' . $alias . '"(.*?)value="(.*?)"(.*?)\/>/i', $formHtml, $match)) {
175 $replace = '<input' . $match[1] . 'id="mauticform_input_' . $formName . '_' . $alias . '"' . $match[2] . 'value="' . urldecode($value) . '"' . $match[4] . '/>';
176 $formHtml = str_replace($match[0], $replace, $formHtml);
177 }
179 case 'textarea':
180 if (preg_match('/<textarea(.*?)id="mauticform_input_' . $formName . '_' . $alias . '"(.*?)>(.*?)<\/textarea>/i', $formHtml, $match)) {
181 $replace = '<textarea' . $match[1] . 'id="mauticform_input_' . $formName . '_' . $alias . '"' . $match[2] . '>' . urldecode($value) . '</textarea>';
182 $formHtml = str_replace($match[0], $replace, $formHtml);
183 }
188 }
189 foreach ($value as $val) {
190 $val = urldecode($val);
191 if (preg_match(
192 '/<input(.*?)id="mauticform_checkboxgrp_checkbox(.*?)"(.*?)value="' . $val . '"(.*?)\/>/i',
Util.php (https://github.com/friendica/friendica-addons.git) PHP · 122 lines
1 <?php
3 /**
36 * @return string
37 */
38 public static function urldecodeRfc3986($string): string
39 {
40 return urldecode($string);
61 foreach ($pairs as $pair) {
62 $split = explode('=', $pair, 2);
63 $parameter = Util::urldecodeRfc3986($split[0]);
64 $value = isset($split[1]) ? Util::urldecodeRfc3986($split[1]) : '';
youtubequery.cs
(http://google-gdata.googlecode.com/svn/trunk/)
C# · 802 lines
✨ Summary
This C# code defines a class YouTubeQuery
that provides methods for constructing queries to retrieve data from YouTube’s API. It includes classes for activities and user activity feeds, allowing users to search for specific events or authors in their friends’ recent actions on the site. The code generates URLs and query strings based on the provided parameters.
This C# code defines a class YouTubeQuery
that provides methods for constructing queries to retrieve data from YouTube’s API. It includes classes for activities and user activity feeds, allowing users to search for specific events or authors in their friends’ recent actions on the site. The code generates URLs and query strings based on the provided parameters.