100+ results results for 'php parse_url' (519 ms)
1<?php 2 50 // If external image set preview 51 $file_path=parse_url($field['value']); 52 if ($file_path && isset($file_path['path'])) 105 window.wpcf_formfield = '#'+jQuery(this).attr('id')+'-holder'; 106 tb_show('<?php 107 _e('Upload file', 'wpcf'); 108 109 ?>', 'media-upload.php?post_id=<?php echo $post->ID; ?>&type=file&wpcf-fields-media-insert=1&TB_iframe=true'); 110 return false; 124 </script> 125 <?php 126} 142 </style> 143 <?php 144}PagePreviewTest.php https://gitlab.com/reasonat/test8 | PHP | 341 lines
1<?php 2 158 // Get the UUID. 159 $url = parse_url($this->getUrl()); 160 $paths = explode('/', $url['path']);text_wiki_mediawiki__php8fixes.patch https://gitlab.com/ElvisAns/tiki | Patch | 231 lines
13 if ($in_delim) { 14diff --git a/Text/Wiki/Parse/BBCode/Colortext.php b/Text/Wiki/Parse/BBCode/Colortext.php 15index 5840043..d107eb6 100755 78 } else { 79diff --git a/Text/Wiki/Parse/Default/Smiley.php b/Text/Wiki/Parse/Default/Smiley.php 80index ce295b4..2e1d10b 100644 192 return '<phrase role="' . $this->getConf('role', 'color') . '" ' . 193diff --git a/Text/Wiki/Render/Docbook/Url.php b/Text/Wiki/Render/Docbook/Url.php 194index 1c42f19..2e012c7 100644 205 // and mailto: links. 206diff --git a/Text/Wiki/Render/Xhtml/Colortext.php b/Text/Wiki/Render/Xhtml/Colortext.php 207index d0298ab..e93c4a0 100755 218 219diff --git a/Text/Wiki/Render/Xhtml/Url.php b/Text/Wiki/Render/Xhtml/Url.php 220index 794ba16..576fa51 100755Ftp.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 533 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 124 } 125 $data = @parse_url($string); 126 if(false === $data) { 455 /** 456 * Get directory contents in PHP array 457 *core.php https://gitlab.com/eita/agencia-consumo-responsavel | PHP | 339 lines
1<?php 2/* 10 global $json_api; 11 $php = ''; 12 if (!empty($json_api->query->controller)) { 16 if (file_exists("$dir/json-api.php")) { 17 $php = file_get_contents("$dir/json-api.php"); 18 } else { 18 } else { 19 // Check one directory up, in case json-api.php was moved 20 $dir = dirname($dir); 21 if (file_exists("$dir/json-api.php")) { 22 $php = file_get_contents("$dir/json-api.php"); 23 } 24 } 25 if (preg_match('/^\s*Version:\s*(.+)$/m', $php, $matches)) { 26 $version = $matches[1];RedirectAPITest.php https://gitlab.com/guillaumev/alkarama | PHP | 275 lines
1<?php 2 212 /** 213 * Test redirect_parse_url(). 214 */ 222 //foreach ($test_cases as $index => $test_case) { 223 // $output = redirect_parse_url($test_case['input']); 224 // $this->assertIdentical($output, $test_case['expected']);Url.php https://bitbucket.org/alessandro-aglietti/itis-leonardo-da-vinci.git | PHP | 548 lines
1<?php 2 36 37 if (false === ($parts = parse_url($url))) { 38 throw new InvalidArgumentException('Was unable to parse malformed url: ' . $url); 53 /** 54 * Build a URL from parse_url parts. The generated URL will be a relative URL if a scheme or host are not provided. 55 * 55 * 56 * @param array $parts Array of parse_url parts 57 *class.media-summary.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 270 lines
1<?php 2/** 88 $return['image'] = $poster_image; 89 $poster_url_parts = parse_url( $poster_image ); 90 $return['secure']['image'] = 'https://secure-a.vimeocdn.com' . $poster_url_parts['path']; 119 $return['image'] = $poster_image; 120 $poster_url_parts = parse_url( $poster_image ); 121 $return['secure']['image'] = 'https://secure-a.vimeocdn.com' . $poster_url_parts['path'];Image.php https://gitlab.com/rsilveira1987/Expresso | PHP | 272 lines
1<?php 2/** 106 $params = array(); 107 parse_str(parse_url($_imageURL, PHP_URL_QUERY), $params); 108 if (!empty($params['application']) && !empty($params['id'])) { 124 public static function getImageUrl($appName, $id, $location = '', $width = 90, $height = 90, $ratiomode = 0) { 125 return 'index.php?method=Tinebase.getImage&application=' . $appName . '&location=' . $location . '&id=' . $id . '&width=' . $width . '&height=' . $height . '&ratiomode='.$ratiomode; 126 }class.p3-profiler-reader.php https://gitlab.com/mattswann/launch-housing | PHP | 374 lines
1<?php 2if ( !defined('P3_PATH') ) 62 /** 63 * Number of plugin related function calls (does not include php internal 64 * calls due to a limitation of how the tick handler works) 197 $this->report_date = strtotime( $o->date ); 198 $scheme = parse_url( $o->url, PHP_URL_SCHEME ); 199 $host = parse_url( $o->url, PHP_URL_HOST ); 199 $host = parse_url( $o->url, PHP_URL_HOST ); 200 $path = parse_url( $o->url, PHP_URL_PATH ); 201 $this->report_url = sprintf( '%s://%s%s', $scheme, $host, $path ); 328 $possible_paths = array( 329 WP_PLUGIN_DIR . "/$plugin.php", 330 WP_PLUGIN_DIR . "/$plugin/$plugin.php", 330 WP_PLUGIN_DIR . "/$plugin/$plugin.php", 331 WPMU_PLUGIN_DIR . "/$plugin.php" 332 );autoptimizeBase.php https://gitlab.com/hop23typhu/list-theme | PHP | 317 lines
38 } 39 } else if ((strpos($url,'//')===false) && (strpos($url,parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST))===false)) { 40 $url = AUTOPTIMIZE_WP_SITE_URL.$url; 43 // first check; hostname wp site should be hostname of url 44 $thisHost=@parse_url($url,PHP_URL_HOST); 45 if ($thisHost!==parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST)) { 59 if (!empty($this->cdn_url)) { 60 $multidomains[]=parse_url($this->cdn_url,PHP_URL_HOST); 61 } 66 if (in_array($thisHost,$multidomains)) { 67 $url=str_replace($thisHost, parse_url(AUTOPTIMIZE_WP_SITE_URL,PHP_URL_HOST), $url); 68 } else { 98 // do the actual parse_url 99 $out = parse_url($in,PHP_URL_HOST); 100FileUrlGenerator.php https://gitlab.com/mohamed_hussein/prodt | PHP | 239 lines
1<?php 2 217 // Files may be accessible on a different port than the web request. 218 $file_url_port = parse_url($file_url, PHP_URL_PORT) ?? $port; 219 if ($file_url_port != $port) {WebBrowser.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 436 lines
11 */ 12 public static $phpQueryMethods = null; 13 /** 79 if (isset($self->document->WebBrowserCallback)) 80 phpQuery::callbackRun( 81 $self->document->WebBrowserCallback, 202 if ($xhr->getLastResponse()->isSuccessful()) { 203 phpQuery::callbackRun($callback, 204 array(self::browserReceive($xhr)->WebBrowser()), 214 protected static function authorizeHost($url) { 215 $host = parse_url($url, PHP_URL_HOST); 216 if ($host) 354 * @return unknown 355 * @link http://www.php.net/manual/en/function.parse-url.php 356 * @author stevenlewis at hotmail dot comsettings.php https://gitlab.com/endomorphosis/tactilevision | PHP | 258 lines
1<?php 2 48 * Note that the $db_url variable gets parsed using PHP's built-in 49 * URL parser (i.e. using the "parse_url()" function) so make sure 50 * not to confuse the parser. If your username, password 114/** 115 * Access control for update.php script 116 * 116 * 117 * If you are updating your Drupal installation using the update.php script 118 * being not logged in as administrator, you will need to modify the access 150 * be set at runtime (ie., when ini_set() occurs), read the PHP 151 * documentation at http://www.php.net/manual/en/ini.php#ini.list 152 * and take a look at the .htaccess file to see which non-runtime 174 * and increase the limits of these variables. For more information, see 175 * http://php.net/manual/en/pcre.configuration.php. 176 */theme-install.php https://gitlab.com/sihabudinahmad/asppi | PHP | 337 lines
18if ( is_multisite() && ! is_network_admin() ) { 19 wp_redirect( network_admin_url( 'theme-install.php' ) ); 20 exit(); 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ) 44 ), 183 </div> 184 <?php 185 $feature_list = get_theme_feature_list(); 255 <# if ( data.activate_url ) { #> 256 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 257 <# } #> 267 ?> 268 <a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a> 269 <button class="button-secondary preview install-theme-preview"><?php _e( 'Preview' ); ?></button>Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
1<?php 2 16use Symfony\Component\DomCrawler\Form; 17use Symfony\Component\Process\PhpProcess; 18use Symfony\Component\BrowserKit\Request; 226 227 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 228 } 236 * @param array $files The files 237 * @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) 238 * @param string $content The raw body data 252 } 253 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 254 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME); 464 if ('/' !== $uri[0]) { 465 $path = parse_url($currentUri, PHP_URL_PATH); 466bootstrap.php https://bitbucket.org/gencer/roundcubemail.git | PHP | 234 lines
1<?php 2 4 +-----------------------------------------------------------------------+ 5 | tests/Selenium/bootstrap.php | 6 | | 21 22if (php_sapi_name() != 'cli') 23 die("Not in shell mode (php-cli)"); 32 33require_once(INSTALL_PATH . 'program/include/iniset.php'); 34 48 49PHPUnit_Extensions_Selenium2TestCase::shareSession(true); 50 52/** 53 * satisfy PHPUnit 54 */fsockopen.php https://gitlab.com/x33n/ampache | PHP | 381 lines
1<?php 2/** 25 * 26 * @var array Associative array of properties, see {@see http://php.net/stream_get_meta_data} 27 */ 46 47 $url_parts = parse_url($url); 48 $host = $url_parts['host']; 300 * @param array $url_parts 301 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query} 302 * @return string URL with data 345 * 346 * Unfortunately, PHP doesn't check the certificate against the alternative 347 * names, leading things like 'https://www.github.com/' to be invalid.helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
1<?php 2use GutenPress\Forms; 15 if (strstr($url,'youtube')){ 16 $parse_url=parse_url($url); 17 parse_str($parse_url['query']); 64 if (strstr($url,'youtube')){ 65 $parse_url=parse_url($url); 66 parse_str($parse_url['query']); 78 $request = new WP_Http; 79 $result = $request->request( 'http://vimeo.com/api/v2/video/'.$id.'.php' , $args ); 80 //$iframe='<iframe src="http://player.vimeo.com/video/'.$id.'?title=0&byline=0&portrait=0" width="'.$width.'" height="'.$height.'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 227/* 228 Super PHP Plugin to add Full SVG Media support to WordPress 229 Author URI: http://www.lewiscowles.co.uk/ 235 236 add_action( 'load-post.php', [ $this, 'add_editor_styles' ] ); 237 add_action( 'load-post-new.php', [ $this, 'add_editor_styles' ] );Download.php https://github.com/leochaves/magento-pt_br.git | PHP | 297 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 100 */ 101 $urlProp = parse_url($this->_resourceFile); 102 if (!isset($urlProp['scheme']) || strtolower($urlProp['scheme'] != 'http')) {URI.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 654 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 89 // Is the request coming from the command line? 90 if (php_sapi_name() == 'cli' or defined('STDIN')) 91 { 218 219 $uri = parse_url($uri, PHP_URL_PATH); 220 254 { 255 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 256 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern 652 653/* End of file URI.php */ 654/* Location: ./system/core/URI.php */qode-export.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 368 lines
1<?php 2if (!function_exists ('add_action')) { 228 */ 229 $wp_dir_array = parse_url(home_url()); 230 $wp_dir_name = ltrim(end($wp_dir_array), '/'); 318 <tbody> 319 <tr><td scope="row" width="150"><h2><?php esc_html_e('Export', 'qode'); ?></h2></td></tr> 320 <tr valign="middle"> 364 365<?php } 366}component.php https://gitlab.com/alexprowars/bitrix | PHP | 322 lines
9$arParams["LESSON_ID"] = (isset($arParams["LESSON_ID"]) && intval($arParams["LESSON_ID"]) > 0 ? intval($arParams["LESSON_ID"]) : intval($_REQUEST["LESSON_ID"])); 10$arParams["SELF_TEST_TEMPLATE"] = ($arParams["SELF_TEST_TEMPLATE"] <> '' ? htmlspecialcharsbx($arParams["SELF_TEST_TEMPLATE"]) : "self.php?SELF_TEST_ID=#SELF_TEST_ID#"); 11$arParams["CHECK_PERMISSIONS"] = (isset($arParams["CHECK_PERMISSIONS"]) && $arParams["CHECK_PERMISSIONS"]=="N" ? "N" : "Y"); 200 $arLesson["SELF_TEST_EXISTS"] = (bool)($rsQuestion->Fetch()); 201 $urlInfo = parse_url($arLesson["LAUNCH"]); 202 $path = $_SERVER["DOCUMENT_ROOT"].$urlInfo["path"]; 293 array( 294 "URL" => "/bitrix/admin/learn_unilesson_edit.php?LESSON_ID=" . $arParams["LESSON_ID"] 295 . '&' . $strUrlencodedLessonPath 311 "TITLE" => GetMessage("LEARNING_COURSES_LESSON_DELETE"), 312 "URL" => "javascript:if(confirm('".GetMessage("LEARNING_COURSES_LESSON_DELETE_CONF")."'))jsUtils.Redirect([], '".CUtil::JSEscape("/bitrix/admin/learn_unilesson_admin.php?ID=".$arParams["LESSON_ID"]."&action=delete&lang=".LANGUAGE_ID."&".bitrix_sessid_get()."&COURSE_ID=".$arParams["COURSE_ID"]).($deleteReturnUrl <> ''? "&return_url=".urlencode($deleteReturnUrl) : "")."')", 313 "ICON" => "bx-context-toolbar-delete-icon",theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11require( ABSPATH . 'wp-admin/includes/theme-install.php' ); 18if ( is_multisite() && ! is_network_admin() ) { 19 wp_redirect( network_admin_url( 'theme-install.php' ) ); 20 exit(); 23$title = __( 'Add Themes' ); 24$parent_file = 'themes.php'; 25 26if ( ! is_network_admin() ) { 27 $submenu_file = 'themes.php'; 28} 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ) 44 ),http.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 393 lines
1<?php 2/** 235 if ( $url && !isset( $capabilities['ssl'] ) ) { 236 $scheme = parse_url( $url, PHP_URL_SCHEME ); 237 if ( 'https' == $scheme || 'ssl' == $scheme ) { 267function get_allowed_http_origins() { 268 $admin_origin = parse_url( admin_url() ); 269 $home_origin = parse_url( home_url() ); 345 346 $parsed_url = @parse_url( $url ); 347 if ( ! $parsed_url || empty( $parsed_url['host'] ) ) 355 356 $parsed_home = @parse_url( get_option( 'home' ) ); 357Form.php https://gitlab.com/reasonat/test8 | PHP | 471 lines
1<?php 2 132 /** 133 * Gets the field values as PHP. 134 * 135 * This method converts fields with the array notation 136 * (like foo[bar] to arrays) like PHP does. 137 * 139 */ 140 public function getPhpValues() 141 { 155 /** 156 * Gets the file field values as PHP. 157 * 191 if (!in_array($this->getMethod(), array('POST', 'PUT', 'DELETE', 'PATCH'))) { 192 $query = parse_url($uri, PHP_URL_QUERY); 193 $currentParameters = array();s2member-files.php https://gitlab.com/Gashler/dp | PHP | 108 lines
1<?php 2if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"])) 5global /* A Multisite ``$base`` configuration? */ $base; 6$ws_plugin__s2member_temp_s_base = (!empty ($base)) ? $base : c_ws_plugin__s2member_utils_urls::parse_url (network_home_url ("/"), PHP_URL_PATH); 7// This works on Multisite installs too. The function ``network_home_url ()`` defaults to ``home_url ()`` on standard WordPress® installs. 20 RewriteEngine On 21 RewriteBase <?php echo $ws_plugin__s2member_temp_s_base . "\n"; ?> 22 28 RewriteCond %{ENV:s2member_file_download_wp_vdir_check} !^complete$ 29 RewriteCond %{THE_REQUEST} ^(?:GET|HEAD)(?:[\ ]+)(?:<?php echo preg_quote ($ws_plugin__s2member_temp_s_base, " "); ?>)([_0-9a-zA-Z\-]+/)(?:wp-content/) 30 RewriteRule ^(.*)$ - [E=s2member_file_download_wp_vdir:,E=s2member_file_download_wp_vdir:%1,E=s2member_file_download_wp_vdir_check:complete] 107 108<?php unset ($ws_plugin__s2member_temp_s_base); ?>elements_edit.php https://gitlab.com/x33n/platform | PHP | 169 lines
1<?php 2if (!$request_parameters) { 82 // cycle through all locations, push to temp array and combine if necessary 83 $parsed = parse_url($location['access_location']); 84 if (isset($tmp_locations_array[$parsed['host']])) {BenchmarkCommand.php https://gitlab.com/andecode/theme-spark | PHP | 312 lines
1<?php 2 53 $url = $input->getArgument('url'); 54 $url_components = parse_url($url); 55 $login = isset($url_components['user']) && isset($url_components['pass']);class.videopress-video.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 324 lines
1<?php 2/** 270 public static function hostname( $url ) { 271 return parse_url( esc_url_raw( $url ), PHP_URL_HOST ); 272 }Phalcon.php https://gitlab.com/merial/WETE_Ryhma3 | PHP | 460 lines
1<?php 2namespace Codeception\Lib\Connector; 3 4use Codeception\Lib\Connector\Shared\PhpSuperGlobalsConverter; 5use Symfony\Component\BrowserKit\Response; 20{ 21 use PhpSuperGlobalsConverter; 22 82 $uri = $request->getUri() ?: $phRequest->getURI(); 83 $pathString = parse_url($uri, PHP_URL_PATH); 84 $queryString = parse_url($uri, PHP_URL_QUERY); 199 { 200 if ($this->status() !== PHP_SESSION_ACTIVE) { 201 $this->memory = []; 313 * 314 * ``` php 315 * <?phpPgCache_Plugin.php https://gitlab.com/karlen/ayo_wp | PHP | 300 lines
1<?php 2namespace W3TC; 164 $home_url = get_home_url(); 165 $parsed_url = @parse_url( $home_url ); 166 241 'href' => wp_nonce_url( network_admin_url( 242 'admin.php?page=w3tc_dashboard&w3tc_flush_pgcache' ), 243 'w3tc' ) 251 'href' => wp_nonce_url( network_admin_url( 252 'admin.php?page=w3tc_dashboard&w3tc_flush_post&post_id=' . 253 Util_Environment::detect_post_id() ), 'w3tc' )Stream.php https://bitbucket.org/acidel/buykoala.git | PHP | 506 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Stream.php 22621 2010-07-18 00:35:48Z torio $ 21 */ 177 * 178 * http://bugs.php.net/21641 - stream_read() is always passed PHP's 179 * internal read buffer size (8192) no matter what is passed as $count 392 { 393 return $this->_getS3Client($path)->createBucket(parse_url($path, PHP_URL_HOST)); 394 } 404 { 405 return $this->_getS3Client($path)->removeBucket(parse_url($path, PHP_URL_HOST)); 406 } 421 else { 422 $host = parse_url($path, PHP_URL_HOST); 423 $this->_bucketList = $this->_getS3Client($path)->getObjectsByBucket($host);Stream.php https://bitbucket.org/hamidrezas/melobit.git | PHP | 565 lines
1<?php 2/** 19 * @license http://todo name_todo 20 * @version $Id: Stream.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 25 */ 26require_once 'Zend/Service/WindowsAzure/Storage/Blob.php'; 27 30 */ 31require_once 'Zend/Service/WindowsAzure/Exception.php'; 32 115 { 116 $url = parse_url($path); 117 if ($url['host']) { 131 { 132 $url = parse_url($path); 133 if ($url['host']) {index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 301 lines
54 // BEGIN REDUNDANT 55 this.php_js = this.php_js || {}; 56 this.php_js.ini = this.php_js.ini || {}; 107 108 if (ini['phpjs.ajaxBypassCache'] && ini['phpjs.ajaxBypassCache'].local_value) { 109 url += (url.match(/\?/) == null ? '?' : '&') + (new Date()) 271 } 272 this.$http_response_header = headers; // see http://php.net/manual/en/reserved.variables.httpresponseheader.php 273 } 288 289Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 290the closest match to this hashtable-like data structure. 291 292Please also note that php.js offers community built functions and goes by the 293[McDonald's Theory](https://medium.com/what-i-learned-building/9216e1c9da7d). We'll put onlineminileven.php https://gitlab.com/hunt9310/ras | PHP | 347 lines
1<?php 2 10// Released under the GPL license 11// http://www.opensource.org/licenses/gpl-license.php 12// 59 'wp-admin', 60 'wp-comments-post.php', 61 'wp-mail.php', 61 'wp-mail.php', 62 'wp-login.php', 63 'wp-activate.php', 125 if (isset($_GET['ak_action'])) { 126 $url = parse_url( get_bloginfo( 'url' ) ); 127 $domain = $url['host']; 254 if ( ( navigator.userAgent.match( /iphone/i ) ) || ( navigator.userAgent.match( /ipod/i ) ) ) 255 document.write( '<span id="wpcom-mobile-app-promo" style="margin-top: 10px; font-size: 13px;"><strong>Now Available!</strong> <a href="/index.php?app-download=ios">Download WordPress for iOS</a></span><br /><br />' ); 256 else if ( ( navigator.userAgent.match( /android/i ) ) && ( null == navigator.userAgent.match( /playbook/i ) && null == navigator.userAgent.match( /bb10/i ) ) )Tool.php https://gitlab.com/billyprice1/bdApi | PHP | 305 lines
1<?php 2 183 $request = new bdApi_Zend_Controller_Request_Http($link); 184 $request->setBaseUrl(parse_url(XenForo_Application::getOptions()->get('boardUrl'), PHP_URL_PATH)); 185 237 238 $linkFragment = parse_url($link, PHP_URL_FRAGMENT); 239 if (!empty($linkFragment) AND preg_match('#^post-(?<post_id>\d+)$#', $linkFragment, $fragment)) {soundcloud.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 261 lines
1<?php 2/* 167 // Convert URL to array 168 $url = parse_url( urldecode( $match[1] ) ); 169 // Convert URL query to array 242 foreach ( $matches as $match ) { 243 $args = parse_url( html_entity_decode( $match[1] ), PHP_URL_QUERY ); 244 $args = wp_parse_args( $args ); 251 $content = preg_replace( $replace_regex, sprintf( "\n\n%s\n\n", $shortcode ), $content ); 252 /** This action is documented in modules/shortcodes/youtube.php */ 253 do_action( 'jetpack_embed_to_shortcode', 'soundcloud', $url_matches[0] );dailymotion.com.php https://gitlab.com/dkiller1/rapidleech | PHP | 172 lines
1<?php 2####### Account Info. ########### 24 <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr> 25 <tr><td colspan=2 align=center><small>*You can set it as default in <b><?php echo $page_upload["dailymotion.com"]; ?></b></small></tr> 26 </table> 28 29 <?php 30} 38 <div id=login width=100% align=center>Login to Dailymotion.com</div> 39 <?php 40 $rnd = time() . rndNum(3); 68 <div id=info width=100% align=center>Retrive upload ID</div> 69 <?php 70 $upurl = cut_str($page, 'xuploadUrl = \"', '"'); 72 $upurl = str_replace("\\", "", $upurl); 73 $url = parse_url($upurl); 74 unset($post);error_report.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 364 lines
17if (is_readable('js/line_counts.php')) { 18 include_once 'js/line_counts.php'; 19} 62 "enabled", 63 "php_version" => phpversion() 64 ); 83 } 84 } elseif ($exception_type == 'php') { 85 $errors = array(); 85 $errors = array(); 86 // create php error report 87 $i = 0; 360{ 361 $line_counts_time = filemtime("js/line_counts.php"); 362 $js_time = filemtime("js");url_helper.php https://gitlab.com/zanderwong/admin | PHP | 523 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 304 var l = new Array(); 305 <?php 306 $i = 0; 306 $i = 0; 307 foreach ($x as $val){ ?>l[<?php echo $i++; ?>] = '<?php echo $val; ?>';<?php } ?> 308 313 //]]> 314 </script><?php 315 398 399 $url = parse_url($str); 400remotefilegetter.php https://gitlab.com/inglobe/mgt-clemente-css | PHP | 348 lines
1<?php 2 99 //fix for some servers not able to follow location & failing downloads 100 //only set follow location if compatible with PHP settings 101 if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) { 154 // parsing url components 155 $comps = parse_url($url); 156 if ($comps == false || !isset($this->_opts[$comps['scheme']])) {class-sitemap-image-parser.php https://gitlab.com/najomie/fit-hippie | PHP | 428 lines
1<?php 2/** 31 $this->home_url = home_url(); 32 $parsed_home = parse_url( $this->home_url ); 33http.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 224 lines
1<?php 2/** 216 if ( $url && !isset( $capabilities['ssl'] ) ) { 217 $scheme = parse_url( $url, PHP_URL_SCHEME ); 218 if ( 'https' == $scheme || 'ssl' == $scheme ) {iATSServiceUKDD.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 341 lines
1<?php 2 55 // We only use the domain of the configured url, which is different for NA vs. UK. 56 $this->_profile['iats_domain'] = parse_url($this->_paymentProcessor['url_site'], PHP_URL_HOST); 57 } 162 // use the iATSService object for interacting with iATS. 163 require_once "CRM/iATS/iATSService.php"; 164 $iats = new iATS_Service_Request(array('type' => 'customer', 'method' => 'direct_debit_create_acheft_customer_code', 'iats_domain' => $this->_profile['iats_domain'], 'currencyID' => $params['currencyID'])); 298 } 299 $iats_domain = parse_url($this->_paymentProcessor['url_site'], PHP_URL_HOST); 300 if ('www.uk.iatspayments.com' != $iats_domain) {filecloud_io.php https://gitlab.com/dkiller1/rapidleech | PHP | 185 lines
1<?php 2 25 if (preg_match('@\nLocation: (https?://s\d+\.filecloud\.io/[^\r\n]+)@i', $this->page, $dllink)) { 26 $filename = urldecode(basename(parse_url($dllink[1], PHP_URL_PATH))); 27 return $this->RedirectDownload($dllink[1], $filename); 80 81 $filename = urldecode(basename(parse_url($dllink[0], PHP_URL_PATH))); 82 return $this->RedirectDownload($dllink[0], $filename, $this->cookie); 85 private function Get_Reply($page) { 86 if (!function_exists('json_decode')) html_error('Error: Please enable JSON in php.'); 87 // First time using json_decode in plugins. :) 175 176 $filename = urldecode(basename(parse_url($rply['download_url'], PHP_URL_PATH))); 177 return $this->RedirectDownload($rply['download_url'], $filename);php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();plugin.php https://bitbucket.org/bsnowman/classyblog.git | PHP | 413 lines
1<?php 2 280 $url = WP_PLUGIN_URL . '/' . dirname(W3TC_FILE) . '/pub/apc.php'; 281 $path = parse_url($url, PHP_URL_PATH); 282 $post = array( 314 $url = WP_PLUGIN_URL . '/' . dirname(W3TC_FILE) . '/pub/apc.php'; 315 $path = parse_url($url, PHP_URL_PATH); 316class-wc-orders-tracking.php https://gitlab.com/campus-academy/krowkaramel | PHP | 178 lines
22 add_action( 'woocommerce_process_shop_order_meta', array( $this, 'track_order_action' ), 51 ); 23 add_action( 'load-post-new.php', array( $this, 'track_add_order_from_edit' ), 10 ); 24 add_filter( 'woocommerce_shop_order_search_results', array( $this, 'track_order_search' ), 10, 3 ); 54 public function track_orders_view() { 55 if ( isset( $_GET['post_type'] ) && 'shop_order' === wp_unslash( $_GET['post_type'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized 56 56 57 // phpcs:disable WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput 58 $properties = array( 106 $date_created = $order->get_date_created() ? $order->get_date_created()->date( 'Y-m-d H:i:s' ) : ''; 107 // phpcs:disable WordPress.Security.NonceVerification 108 $new_date = sprintf( 158 $referring_args = array(); 159 $post_edit_page = wp_parse_url( admin_url( 'post.php' ) ); 160Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 467 lines
1<?php 2/** 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 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 */ 41 const CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog'; 42 const CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives'; 43 const XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter'; 275 { 276 return Mage::getStoreConfigFlag(self::CONFIG_PARSE_URL_DIRECTIVES, $this->_storeId); 277 }Item.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 386 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 224 if (!Mage::getStoreConfigFlag('web/url/use_store')) { 225 $urlInfo = parse_url($url); 226 $store = $product->getStore()->getCode();url_helper.php https://gitlab.com/RikaPM/manik | PHP | 595 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 346 var l=new Array(); 347 <?php 348 $i = 0; 348 $i = 0; 349 foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?> 350 354 //]]> 355 </script><?php 356 452 453 $url = parse_url($str); 454soundcloud.php https://gitlab.com/hunt9310/ras | PHP | 310 lines
1<?php 2/* 183 // Convert URL to array 184 $url = parse_url( urldecode( $match[1] ) ); 185 // Convert URL query to array 274 275 $args = parse_url( html_entity_decode( $match[1] ), PHP_URL_QUERY ); 276 $args = wp_parse_args( $args ); 301 $content = preg_replace( $replace_regex, sprintf( "\n\n%s\n\n", $shortcode ), $content ); 302 /** This action is documented in modules/shortcodes/youtube.php */ 303 do_action( 'jetpack_embed_to_shortcode', 'soundcloud', $url_matches[0] );RedisProfilerStorage.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 394 lines
1<?php 2 26 const REDIS_SERIALIZER_NONE = 0; 27 const REDIS_SERIALIZER_PHP = 1; 28 148 149 $profile = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP); 150 175 176 if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime, self::REDIS_SERIALIZER_PHP)) { 177 if (!$profileIndexed) { 209 if (null === $this->redis) { 210 $data = parse_url($this->dsn); 211 270 271 if (!$childProfileData = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP)) { 272 continue;url_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 593 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 341 var l=new Array(); 342 <?php 343 $i = 0; 343 $i = 0; 344 foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?> 345 348 else document.write(unescape(l[i]));} 349 </script><?php 350 446 447 $url = parse_url($str); 4481fichier_com.php https://gitlab.com/dkiller1/rapidleech | PHP | 127 lines
1<?php 2 14 15 $link = parse_url($link); 16 $link['scheme'] = 'https'; 32 33 if (preg_match($this->DLRegexp, $this->page, $dl)) return $this->RedirectDownload($dl[0], (empty($dl[2]) ? 'T8_1f_d1' : urldecode(parse_url($dl[0], PHP_URL_PATH)))); 34 } 54 55 if (preg_match($this->DLRegexp, $page, $dl)) return $this->RedirectDownload($dl[0], (empty($dl[2]) ? 'T8_1f_f2' : urldecode(parse_url($dl[0], PHP_URL_PATH)))); 56 72 73 return $this->RedirectDownload($dl[0], (empty($dl[2]) ? 'T8_1f_f1' : urldecode(parse_url($dl[0], PHP_URL_PATH)))); 74 } 82 83 return $this->RedirectDownload($dl[0], (empty($dl[2]) ? 'T8_1f_pr' : urldecode(parse_url($dl[0], PHP_URL_PATH)))); 84 }Yii2.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 280 lines
1<?php 2namespace Codeception\Lib\Connector; 17{ 18 use Shared\PhpSuperGlobalsConverter; 19 107 108 $pathString = parse_url($uri, PHP_URL_PATH); 109 $queryString = parse_url($uri, PHP_URL_QUERY);UrlGenerator.php https://gitlab.com/pomirleanu.florentin/SMS-Client | PHP | 674 lines
1<?php namespace Illuminate\Routing; 2 175 176 // Once we get the root URL, we will check to see if it contains an index.php 177 // file in the paths. If it does, we will remove it since it is not needed 184 /** 185 * Remove the index.php file from a path. 186 * 191 { 192 $i = 'index.php'; 193 336 // not going to be available. We will remove it then append it back on here. 337 if ( ! is_null($fragment = parse_url($uri, PHP_URL_FRAGMENT))) 338 {wpsdb-base.php https://gitlab.com/mattswann/launch-housing | PHP | 399 lines
1<?php 2class WPSDB_Base { 26 $this->addons = array( 27 'wp-sync-db-media-files/wp-sync-db-media-files.php' => array( 28 'name' => 'Media Files', 30 ), 31 'wp-sync-db-cli/wp-sync-db-cli.php' => array( 32 'name' => 'CLI', 47 $this->plugin_title = ucwords( str_ireplace( '-', ' ', basename( $plugin_file_path ) ) ); 48 $this->plugin_title = str_ireplace( array( 'db', 'wp', '.php' ), array( 'DB', 'WP', '' ), $this->plugin_title ); 49 50 if ( is_multisite() ) { 51 $this->plugin_base = 'settings.php?page=wp-sync-db'; 52 } 53 else { 54 $this->plugin_base = 'tools.php?page=wp-sync-db'; 55 }Route.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 316 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 12/** 13 * ThinkPHP路由解析类 14 */ 140 if(false !== strpos($url,'?')) { // [控制器/操作?]参数1=值1&参数2=值2... 141 $info = parse_url($url); 142 $path = explode('/',$info['path']); 168 // 'news/:month/:day/:id'=>array('News/read?cate=1','status=1'), 169 // 'new/:id'=>array('/new.php?id=:1',301), 重定向 170 private static function parseRule($rule,$route,$regx) {item.php https://bitbucket.org/eternaware/joomus.git | PHP | 345 lines
40 41 $this->setRedirect(JRoute::_('index.php?option=com_menus&view=item&menutype=' . $menuType . $this->getRedirectToItemAppend(), false)); 42 } 145 $this->setMessage($this->getError(), 'error'); 146 $this->setRedirect(JRoute::_('index.php?option=com_menus&view=items' . $this->getRedirectToListAppend(), false)); 147 186 $args = array(); 187 parse_str(parse_url($data['link'], PHP_URL_QUERY), $args); 188 217 // Redirect back to the edit screen. 218 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_item . $this->getRedirectToItemAppend($recordId), false)); 219 240 $this->setMessage(JText::sprintf('JLIB_APPLICATION_ERROR_CHECKIN_FAILED', $model->getError()), 'warning'); 241 $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_item . $this->getRedirectToItemAppend($recordId), false)); 242CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
23 * @category Authentication 24 * @package PhpCAS 25 * @author Adam Franco <afranco@middlebury.edu> 26 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 27 * @link https://wiki.jasig.org/display/CASC/phpCAS 28 */ 71 { 72 $urlParts = parse_url($request_url); 73 $defaultDomain = $urlParts['host']; 87 88 phpCAS::trace($cookie['name'].' -> '.$cookie['value']); 89 } 127 * Parse Cookies without PECL 128 * From the comments in http://php.net/manual/en/function.http-parse-cookie.php 129 *Item.php https://bitbucket.org/jit_bec/shopifine.git | PHP | 386 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 224 if (!Mage::getStoreConfigFlag('web/url/use_store')) { 225 $urlInfo = parse_url($url); 226 $store = $product->getStore()->getCode();functions.photon.php https://gitlab.com/Gashler/sg | PHP | 190 lines
1<?php 2 24 25 $image_url_parts = @parse_url( $image_url ); 26 54 // Photon doesn't support query strings so we ignore them and look only at the path. 55 // However some source images are served via PHP so check the no-query-string extension. 56 // For future proofing, this is a blacklist of common issues rather than a whitelist. 57 $extension = pathinfo( $image_url_parts['path'], PATHINFO_EXTENSION ); 58 if ( empty( $extension ) || in_array( $extension, array( 'php' ) ) ) 59 return $image_url; 106function jetpack_photon_parse_wpcom_query_args( $args, $image_url ) { 107 $parsed_url = @parse_url( $image_url ); 108Ftp.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 509 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 123 { 124 $data = @parse_url($string); 125 if(false === $data) { 444 /** 445 * Get directory contents in PHP array 446 *File.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 306 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 40 * @link http://simplepie.org/ SimplePie 41 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 42 */ 72 $idn = new idna_convert(); 73 $parsed = SimplePie_Misc::parse_url($url); 74 $url = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']); 161 $this->method = SIMPLEPIE_FILE_SOURCE_REMOTE | SIMPLEPIE_FILE_SOURCE_FSOCKOPEN; 162 $url_parts = parse_url($url); 163 $socket_host = $url_parts['host'];class-wp-http-streams.php https://gitlab.com/webkod3r/tripolis | PHP | 428 lines
1<?php 2/** 10/** 11 * Core class used to integrate PHP Streams as an HTTP transport. 12 * 17 /** 18 * Send a HTTP request to a URI using PHP Streams. 19 * 50 51 $arrURL = parse_url($url); 52 78 /* 79 * Certain versions of PHP have issues with 'localhost' and IPv6, It attempts to connect 80 * to ::1, which fails when the server is not set up for it. For compatibility, always 133 if ( !WP_DEBUG ) { 134 // In the event that the SSL connection fails, silence the many PHP Warnings. 135 if ( $secure_transport )function_importdata.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 185 lines
1<?php 2 6 * 7 * $Id: function_importdata.php 29236 2012-03-30 05:34:47Z chenmengshu $ 8 */ 128 $xmlkey = strip_tags($xmlkey); 129 $parse = parse_url($xmlurl); 130 if(!empty($parse['host'])) {ServerRequest.php https://gitlab.com/remyvianne/krowkaramel | PHP | 344 lines
1<?php 2 170 $uri = self::getUriFromGlobals(); 171 $body = new CachingStream(new LazyOpenStream('php://input', 'r+')); 172 $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; 185 $uri = 'http://' . $authority; 186 $parts = parse_url($uri); 187 if (false === $parts) {class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 180 { 181 $url_parts = parse_url( $host ); 182 $dbh = @mysqli_connect( 'localhost', $username, $password, $dbname, null, $url_parts['path'] ); 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))settings.php https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | PHP | 166 lines
1<?php 2// $Id: settings.php,v 1.39.2.3 2007/07/09 04:28:12 drumm Exp $ 22 * For example, for a fictitious site installed at 23 * http://www.drupal.org/mysite/test/, the 'settings.php' 24 * is searched in the following directories: 48 * 49 * Note that the $db_url variable gets parsed using PHP's built-in 50 * URL parser (i.e. using the "parse_url()" function) so make sure 94/* X!X!X!X!X!X!X database settings are in /etc/brlcad X!X!X!X!X!X */ 95require_once("/etc/brlcad/sitesettings.php"); 96 118/** 119 * PHP settings: 120 * 122 * be set at runtime (ie., when ini_set() occurs), read the PHP 123 * documentation at http://www.php.net/manual/en/ini.php#ini.list 124 * and take a look at the .htaccess file to see which non-runtimeData.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 478 lines
1<?php 2/** 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 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 41 const CONFIG_USE_STATIC_URLS = 'cms/wysiwyg/use_static_urls_in_catalog'; 42 const CONFIG_PARSE_URL_DIRECTIVES = 'catalog/frontend/parse_url_directives'; 43 const XML_PATH_CONTENT_TEMPLATE_FILTER = 'global/catalog/content/tempate_filter'; 276 { 277 return Mage::getStoreConfigFlag(self::CONFIG_PARSE_URL_DIRECTIVES, $this->_storeId); 278 }my.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 186 lines
1<?php 2!defined('A_P') && exit('Forbidden'); 3$USCR = 'user_collection'; 4$baseUrl = 'apps.php?'; 5$basename = 'apps.php?q='.$q.'&'; 49 $share['link'] = $link; 50 $parselink = parse_url($link); 51 if(preg_match("/(youku.com|youtube.com|sohu.com|sina.com.cn)$/i",$parselink['host'],$hosts)) {FileCache.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 365 lines
1<?php 2 318 protected function validate_key( $key ) { 319 $url_parts = parse_url( $key ); 320 if ( ! empty($url_parts['scheme']) ) { // is urlUriRewriter.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 381 lines
1<?php 2/** 228 if (w3_is_url(self::$_prependRelativePath)) { 229 $parse_url = @parse_url(self::$_prependRelativePath); 230 230 231 if ($parse_url && isset($parse_url['host'])) { 232 $scheme = $parse_url['scheme']; 233 $host = $parse_url['host']; 234 $port = (isset($parse_url['port']) && $parse_url['port'] != 80 ? ':' . (int) $parse_url['port'] : ''); 235 $path = (!empty($parse_url['path']) ? $parse_url['path'] : '/');upload.php https://gitlab.com/WPonEB/WPonEB | PHP | 331 lines
41 wp_localize_script( 'media-grid', '_wpMediaGridSettings', array( 42 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ), 43 'queryVars' => (object) $vars 79 if ( current_user_can( 'upload_files' ) ) { ?> 80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 81 } 118 if ( $referer = wp_get_referer() ) { 119 if ( false !== strpos( $referer, 'upload.php' ) ) 120 $location = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'message', 'ids', 'posted' ), $referer ); 182$title = __('Media Library'); 183$parent_file = 'upload.php'; 184 229if ( current_user_can( 'upload_files' ) ) { ?> 230 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 231}proxy.php https://gitlab.com/BoTranVan/SecLists | PHP | 351 lines
1<?php 2ini_set('session.use_cookies', '0'); 40 41// TODO: If the remote site uses a sessionid it collides with the php sessionid cookie from this page 42// figure out how to reuse sessionid from the remote site 74<head> 75 <title>Laudanum PHP Proxy</title> 76</head> 97 // creates the url array, addes a scheme if it is missing and retries parsing 98 $o = parse_url($u); 99 if (!isset($o["scheme"])) { $o = parse_url("http://" . $u); } 106 // this is used because the built in function isn't 107 // avilable in all installs of php 108 if (!isset($u["host"])) { return null; } 223 //rewrite images and links - absolute reference 224 $r = preg_replace("/((src|href).?=.?['\"]?)(\/[^'\"[:space:]]+['\"]?)/", "\\1" . $_SERVER["PHP_SELF"] . "?laudurl=" . $u["scheme"] . "://" . $u["host"] . "\\3", $r); 225 //rewrite images and links - hard linkedDiscover.php https://github.com/ramziammar/websites.git | PHP | 469 lines
1<?php 2 7 8require_once "Auth/OpenID.php"; 9require_once "Auth/OpenID/Parse.php"; 9require_once "Auth/OpenID/Parse.php"; 10require_once "Auth/OpenID/Message.php"; 11require_once "Auth/Yadis/XRIRes.php"; 11require_once "Auth/Yadis/XRIRes.php"; 12require_once "Auth/Yadis/Yadis.php"; 13 378{ 379 $parsed = parse_url($uri); 380 438{ 439 // If the fetcher (i.e., PHP) doesn't support SSL, we can't do 440 // discovery on an HTTPS URL.Url.php https://gitlab.com/adam.kvita/MI-VMM-SIFT | PHP | 505 lines
1<?php 2 19 * /--\ /--\ /------\ /-------\ /--\/--\/----------------------------\ 20 * http://john:x0y17575@nette.org:8042/en/manual.php?name=param#fragment <-- absoluteUrl 21 * \__________________________/\____________/^\________/^\______/ 29 * - baseUrl: http://user:password@nette.org:8042/en/ 30 * - relativeUrl: manual.php 31 * 92 if (is_string($url)) { 93 $p = @parse_url($url); // @ - is escalated to exception 94 if ($p === FALSE) { 284 { 285 return http_build_query($this->query, '', '&', PHP_QUERY_RFC3986); 286 }class-wc-download-handler.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 426 lines
1<?php 2 220 $file_path = str_replace( array_keys( $replacements ), array_values( $replacements ), $file_path ); 221 $parsed_file_path = parse_url( $file_path ); 222 $remote_file = true; 338 } 339 if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) { 340 set_magic_quotes_runtime( 0 ); 369 * 370 * Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/ 371 *includesScreen.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 207 lines
1<?php 2 7 var $core_screens = array( 8 'index.php' => array( 'base' => 'dashboard', 'id' => 'dashboard' ), 9 'edit.php' => array( 'base' => 'edit', 'id' => 'edit-post', 'post_type' => 'post' ), 9 'edit.php' => array( 'base' => 'edit', 'id' => 'edit-post', 'post_type' => 'post' ), 10 'post-new.php'=> array( 'action' => 'add', 'base' => 'post', 'id' => 'post', 'post_type' => 'post' ), 11 'edit-tags.php' => array( 'base' => 'edit-tags', 'id' => 'edit-post_tag', 'post_type' => 'post', 'taxonomy' => 'post_tag' ), 11 'edit-tags.php' => array( 'base' => 'edit-tags', 'id' => 'edit-post_tag', 'post_type' => 'post', 'taxonomy' => 'post_tag' ), 12 'edit-tags.php?taxonomy=post_tag' => array( 'base' => 'edit-tags', 'id' => 'edit-post_tag', 'post_type' => 'post', 'taxonomy' => 'post_tag' ), 13 'edit-tags.php?taxonomy=category' => array( 'base' => 'edit-tags', 'id' => 'edit-category', 'post_type' => 'post', 'taxonomy' => 'category' ), 13 'edit-tags.php?taxonomy=category' => array( 'base' => 'edit-tags', 'id' => 'edit-category', 'post_type' => 'post', 'taxonomy' => 'category' ), 14 'upload.php' => array( 'base' => 'upload', 'id' => 'upload' ), 15 'media-new.php' => array( 'action' => 'add', 'base' => 'media', 'id' => 'media' ), 15 'media-new.php' => array( 'action' => 'add', 'base' => 'media', 'id' => 'media' ), 16 'edit.php?post_type=page' => array( 'base' => 'edit', 'id' => 'edit-page', 'post_type' => 'page' ), 17 'link-manager.php' => array( 'base' => 'link-manager', 'id' => 'link-manager' ),Link.php https://gitlab.com/ealexis.t/trends | PHP | 224 lines
1<?php 2 85 // absolute URL? 86 if (null !== parse_url($uri, PHP_URL_SCHEME)) { 87 return $uri; 118 // relative path 119 $path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH); 120 $path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri);class-itsec-hide-backend.php https://gitlab.com/najomie/fit-hippie | PHP | 361 lines
26 27 $is_jetpack_active = in_array( 'jetpack/jetpack.php', (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( 'jetpack/jetpack.php' ); 28 66 public function filter_apache_server_config_modification( $modification ) { 67 require_once( dirname( __FILE__ ) . '/config-generators.php' ); 68 72 public function filter_nginx_server_config_modification( $modification ) { 73 require_once( dirname( __FILE__ ) . '/config-generators.php' ); 74 151 $this->settings['register'] != 'wp-register.php' && 152 strpos( $_SERVER['REQUEST_URI'], 'wp-register.php' ) !== false || 153 strpos( $_SERVER['REQUEST_URI'], 'wp-signup.php' ) !== false || 155 isset( $_REQUEST['redirect_to'] ) && 156 strpos( $_REQUEST['redirect_to'], 'wp-admin/customize.php' ) !== false 157wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
1<?php 2/** 35function wc_get_filename_from_url( $file_url ) { 36 $parts = parse_url( $file_url ); 37 if ( isset( $parts['path'] ) ) { 157 // @codeCoverageIgnoreStart 158 if ( version_compare( phpversion(), '5.3', '<' ) ) { 159 $tax = round( $tax, $dp ); 210/** 211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings 212 * @param float $float 236/** 237 * Format a decimal with PHP Locale settings 238 * @param string $value 402 * 403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155 404 *wc-page-functions.php https://gitlab.com/hunt9310/ras | PHP | 215 lines
1<?php 2/** 97 if ( strstr( $permalink, '?' ) ) { 98 $query_string = '?' . parse_url( $permalink, PHP_URL_QUERY ); 99 $permalink = current( explode( '?', $permalink ) ); 122 foreach ( $items as $key => $item ) { 123 $path = parse_url( $item->url, PHP_URL_PATH ); 124 $query = parse_url( $item->url, PHP_URL_QUERY );class-github-updater.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 395 lines
1<?php 2// Prevent loading this file directly and/or if the class is already defined 119 // See Downloading a zipball (private repo) https://help.github.com/articles/downloading-files-from-the-command-line 120 extract( parse_url( $this->config['zip_url'] ) ); // $scheme, $host, $path 121 297 public function get_plugin_data() { 298 include_once ABSPATH.'/wp-admin/includes/plugin.php'; 299 $data = get_plugin_data( WP_PLUGIN_DIR . '/' . $this->config['slug'] ); 393 394/* End of file class-github-updater.php */ 395/* Location: ./includes/class-github-updater.php */EpiOAuth.php https://gitlab.com/ahsanullah716/auth_master | PHP | 422 lines
1<?php 2class EpiOAuth { 132 $_h = array('Expect:'); 133 $urlParts = parse_url($url); 134 $oauth = 'Authorization: OAuth realm="'.$urlParts['scheme'].'://'.$urlParts['host'].$urlParts['path'].'",'; 254 curl_setopt($ch, CURLOPT_POST, 1); 255 // php's curl extension automatically sets the content type 256 // based on whether the params are in string or array form 267 { 268 $urlParts = parse_url($url); 269 $scheme = strtolower($urlParts['scheme']);NetDNA.php https://gitlab.com/karlen/ayo_wp | PHP | 485 lines
1<?php 2 6 7require_once(W3TC_LIB_DIR . '/OAuth/W3tcOAuth.php'); 8require_once('W3tcWpHttpException.php'); 78 //parse endpoint before creating OAuth request 79 $parsed = parse_url($endpoint); 80 if (array_key_exists("parsed", $parsed)) {Html.php https://gitlab.com/knowthecode/ktc-sandbox | PHP | 367 lines
1<?php 2/* 50 public static function secure_cookie() { 51 return ( is_ssl() and ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ) ); 52 } 166 array( 167 'ajax_error' => __( 'PHP Error in AJAX Response', 'query-monitor' ), 168 'infinitescroll_paused' => __( 'Infinite Scroll has been paused by Query Monitor', 'query-monitor' ), 168 'infinitescroll_paused' => __( 'Infinite Scroll has been paused by Query Monitor', 'query-monitor' ), 169 'ajaxurl' => admin_url( 'admin-ajax.php' ), 170 'auth_nonce' => array( 206 207 require_once $this->qm->plugin_path( 'output/Html.php' ); 208 208 209 foreach ( glob( $this->qm->plugin_path( 'output/html/*.php' ) ) as $file ) { 210 require_once $file;bitshare_com.php https://gitlab.com/billyprice1/rapidleech | PHP | 144 lines
1<?php 2if (!defined('RAPIDLEECH')) { 76 $dlink = trim($dl[1]); 77 $filename = basename(parse_url($dlink, PHP_URL_PATH)); 78 $this->RedirectDownload($dlink, $filename, $this->cookie, 0, $link); 134 $dlink = trim($dl[1]); 135 $filename = basename(parse_url($dlink, PHP_URL_PATH)); 136 $this->RedirectDownload($dlink, $filename, $this->cookie);README.md https://gitlab.com/payam/ext-request | Markdown | 454 lines
14- ServerResponse, essentially a wrapper around (and buffer for) response- 15 related PHP functions, with some additional convenience methods, and self- 16 sending capability. 36 37```php 38<?php 132- `$params`: Typically path-info or routing parameters. 133- `$url`: The result of [`parse_url`](http://php.net/parse_url) as built from 134 the `$_SERVER` keys `HTTPS`, `HTTP_HOST`/`SERVER_NAME`, `SERVER_PORT`, and 171 172```php 173<?php 423 424- `setRawCookie(...)`: A buffered equivalent of [`setrawcookie()`](http://php.net/setrawcookie) 425 with identical arguments.php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 129 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 130 CodeMirror.defineMIME("text/x-php", phpConfig); 131})();upload.php https://gitlab.com/thisishayat/itv-2016 | PHP | 302 lines
41 wp_localize_script( 'media-grid', '_wpMediaGridSettings', array( 42 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ), 43 'queryVars' => (object) $vars 79 if ( current_user_can( 'upload_files' ) ) { ?> 80 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 81 } 84 <div class="error hide-if-js"> 85 <p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p> 86 </div> 112 if ( $referer = wp_get_referer() ) { 113 if ( false !== strpos( $referer, 'upload.php' ) ) 114 $location = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'message', 'ids', 'posted' ), $referer ); 220if ( current_user_can( 'upload_files' ) ) { ?> 221 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php 222}ajax_savecolor_deleteicon.php https://gitlab.com/pablo.sapoznik/s42transfer | PHP | 381 lines
186 RewriteEngine on 187 ErrorDocument 404 '.$cfg['web_root'].'404.php 188 # Set "protossl" to "s" if we were accessed via https://. This is used later 328 //logo 329 $iconPathlogo = (parse_url($cfg['logo'], PHP_URL_PATH)); 330 $cfg['logo'] = $web_rootUrl.$iconPathlogo; 332 //logo_resolation 333 $iconPathlogo_resolation = (parse_url($cfg['logo_resolation'], PHP_URL_PATH)); 334 $cfg['logo_resolation'] = $web_rootUrl.$iconPathlogo_resolation; 337 //favicon 338 //$iconPathfavicon = (parse_url($cfg['favicon'], PHP_URL_PATH)); 339 //$cfg['favicon'] = $web_rootUrl.$iconPathfavicon; 341 //touchicon 342 $iconPathtouchicon = (parse_url($cfg['touchicon'], PHP_URL_PATH)); 343 $cfg['touchicon'] = $web_rootUrl.$iconPathtouchicon;Varnish_Flush.php https://gitlab.com/karlen/ayo_wp | PHP | 432 lines
1<?php 2namespace W3TC; 42 /** 43 * PHP5-style constructor 44 */ 86 function _request( $varnish_server, $url ) { 87 $parse_url = @parse_url( $url ); 88 88 89 if ( !$parse_url || !isset( $parse_url['host'] ) ) 90 return new \WP_Error( 'http_request_failed', 'Unrecognized URL format ' . $url ); 92 $host = $parse_url['host']; 93 $port = ( isset( $parse_url['port'] ) ? (int) $parse_url['port'] : 80 ); 94 $path = ( !empty( $parse_url['path'] ) ? $parse_url['path'] : '/' ); 94 $path = ( !empty( $parse_url['path'] ) ? $parse_url['path'] : '/' ); 95 $query = ( isset( $parse_url['query'] ) ? $parse_url['query'] : '' ); 96 $request_uri = $path . ( $query != '' ? '?' . $query : '' );url_helper.php https://gitlab.com/nicolerey/PPLI-payroll | PHP | 569 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 450 451 $url = parse_url($str); 452func.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 207 lines
1 <?php 2 // Khai báo trình duyệt nhận lấy nội dung 33 else { 34 $matches = parse_url($url); 35 $host = $matches['host'];forum_attachment.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 329 lines
1<?php 2 6 * 7 * $Id: forum_attachment.php 30933 2012-07-02 08:39:51Z zhengqingpeng $ 8 */ 18if(!empty($_GET['findpost']) && ($attach = C::t('forum_attachment')->fetch($aid))) { 19 dheader('location: forum.php?mod=redirect&goto=findpost&pid='.$attach['pid'].'&ptid='.$attach['tid']); 20} 61 62$refererhost = parse_url($_SERVER['HTTP_REFERER']); 63$serverhost = $_SERVER['HTTP_HOST']; 127 if(!$_G['uid'] || $_G['uid'] && !($ispaid = C::t('common_credit_log')->count_by_uid_operation_relatedid($_G['uid'], 'BTC', $attach['tid']))) { 128 showmessage('attachment_payto', 'forum.php?mod=viewthread&tid='.$attach['tid']); 129 } 134 $payrequired = $_G['uid'] ? !C::t('common_credit_log')->count_by_uid_operation_relatedid($_G['uid'], 'BAC', $attach['aid']) : 1; 135 $payrequired && showmessage('attachement_payto_attach', 'forum.php?mod=misc&action=attachpay&aid='.$attach['aid'].'&tid='.$attach['tid']); 136 }class.jetpack-sso-helpers.php https://gitlab.com/chernushov881/charity-fund | PHP | 372 lines
1<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName 2/** 201 if ( false === strpos( $api_base, 'jetpack.wordpress.com/jetpack' ) ) { 202 $base_url_parts = wp_parse_url( esc_url_raw( $api_base ) ); 203 if ( $base_url_parts && ! empty( $base_url_parts['host'] ) ) { 323 324 $parsed_url = wp_parse_url( $original_request ); 325 if ( empty( $parsed_url ) || empty( $parsed_url['query'] ) ) { 347 * Check if the site has a custom login page URL, and return it. 348 * If default login page URL is used (`wp-login.php`), `null` will be returned. 349 * 354 355 if ( 'wp-login.php' === substr( $login_url, -12 ) ) { 356 // No custom URL found.Url.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 555 lines
1<?php 2/** 4 * 5 * This class and its properties are heavily based on parse_url() 6 * 20 /** 21 * The domain name of a network host, or an IPv4 address as a set of four decimal digit groups separated by literal periods; for example, www.php.net or babelfish.altavista.com 22 * 27 /** 28 * The base domain of a network host; for example, php.net or altavista.com 29 * 55 /** 56 * The path component contains the location to the requested resource on the given host. In the URL http://www.foo.com/test/test.php, /test/test.php is the path component. 57 * 458 /** 459 * Factory object from an array provided by the parse_url function 460 *Socket.php https://bitbucket.org/acidel/buykoala.git | PHP | 537 lines
1<?php 2/** 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 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 */ 249 * 250 * @param string $uri ex. http://google.com/index.php?a=b 251 * @return string ex. /index.php?a=b 254 { 255 $parts = parse_url($uri); 256 if(!empty($parts['user']) && !empty($parts['pass'])) {ms-default-constants.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 153 lines
1<?php 2/** 2/** 3 * Defines constants and global variables that can be overridden, generally in wp-config.php. 4 * 13 * Exists for backward compatibility with legacy file-serving through 14 * wp-includes/ms-files.php (wp-content/blogs.php in MU). 15 * 20 21 // This filter is attached in ms-default-filters.php but that file is not included during SHORTINIT. 22 add_filter( 'default_site_option_ms_files_rewriting', '__return_true' ); 65 if ( !defined( 'ADMIN_COOKIE_PATH' ) ) { 66 if ( ! is_subdomain_install() || trim( parse_url( get_option( 'siteurl' ), PHP_URL_PATH ), '/' ) ) { 67 define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH ); 87 * Exists for backward compatibility with legacy file-serving through 88 * wp-includes/ms-files.php (wp-content/blogs.php in MU). 89 *github-checker.php https://gitlab.com/axminenko/rocks-tools | PHP | 449 lines
1<?php 2 41 42 $path = @parse_url($repositoryUrl, PHP_URL_PATH); 43 if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) { 257 if ( !class_exists('Parsedown', false) ) { 258 require_once(dirname(__FILE__) . '/vendor/parsedown.php'); 259 } 334 * Parse plugin metadata from the header comment. 335 * This is basically a simplified version of the get_file_data() function from /wp-includes/functions.php. 336 * 409 if ( !class_exists('PucReadmeParser', false) ) { 410 require_once(dirname(__FILE__) . '/vendor/readme-parser.php'); 411 }cachepdo.class.php https://bitbucket.org/ardydedase/web-build-optimizer.git | PHP | 290 lines
1<?php 2/** 9 * @copyright 2008-2010 Contributors 10 * @license http://opensource.org/licenses/bsd-license.php Simplified BSD License 11 * @link http://github.com/skyzyx/cachecore CacheCore 12 * @link http://getcloudfusion.com CloudFusion 13 * @link http://php.net/pdo PDO 14 */ 74 * 75 * See <http://php.net/pdo> for more information. 76 * 96 // No? Just pass it through. 97 $this->dsn = parse_url($location); 98 $this->dsn_string = $location; 257 * @return array The list of supported database drivers. 258 * @link http://php.net/pdo.getavailabledrivers PHP Method 259 */