100+ results results for 'php parse_url' (323 ms)
26 * PHP License, version 3.0 or later. A copy of this license should have 27 * been distributed with this file in the file LICENSE.PHP . If this is not 28 * the case, you can obtain a copy at http://www.php.net/license/3_0.txt. 72 73 if ( php_sapi_name() !== "cli") 74 echo("</pre>"); 91function pre_var_dump($mixed) { 92 if ( php_sapi_name() !== "cli") 93 echo("<pre>"); 395 * 396 * @see http://www.php.net/manual/en/function.set-error_handler.php 397 * 506 * 507 * @link http://us.php.net/manual/en/function.sys-get-temp-dir.php#85261 508 */file.php https://bitbucket.org/cisash/fananeen.git | PHP | 324 lines
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 100755Url.php https://gitlab.com/x33n/respond | 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 *Ftp.php https://gitlab.com/inglobe/mgt-clemente-css | 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 *Locator.php https://github.com/ushahidi/Sweeper.git | PHP | 314 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. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 * @todo phpDoc comments 222 $href = trim($link['attribs']['href']['data']); 223 $parsed = SimplePie_Misc::parse_url($href); 224 if ($parsed['scheme'] === '' || preg_match('/^(http(s)|feed)?$/i', $parsed['scheme'])) 234 235 $current = SimplePie_Misc::parse_url($this->file->url); 236RedirectAPITest.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']);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 }StorageServiceSettings.php https://bitbucket.org/skudatech/azure-sdk-for-php.git | PHP | 485 lines
1<?php 2 14 * 15 * PHP version 5 16 * 18 * @package WindowsAzure\Common\Internal 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 22 * @link https://github.com/windowsazure/azure-sdk-for-php 23 */ 35 * @package WindowsAzure\Common\Internal 36 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 37 * @copyright 2012 Microsoft Corporation 253 254 $scheme = parse_url($proxyUri, PHP_URL_SCHEME); 255 $host = parse_url($proxyUri, PHP_URL_HOST);trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
1<?php 2/** 2/** 3 * PHP Class to handle TrackBacks (send/ping, receive, retreive, detect, seed, etc...) 4 * 4 * 5 * <code><?php 6 * include('trackback_cls.php'); 11 * 12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $ 13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org) 14 * @author Ran Aroussi <ran@blogish.org> 15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 16 * 54 // Parse the target 55 $target = parse_url($tb); 56class.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 );core.php https://gitlab.com/MiteshMungara/TrafficBuzz | 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];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) {URI.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 623 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 * 64 // Is the request coming from the command line? 65 if (php_sapi_name() == 'cli' or defined('STDIN')) 66 { 192 193 $uri = parse_url($uri, PHP_URL_PATH); 194 228 { 229 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 230 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern 621 622/* End of file URI.php */ 623/* Location: ./system/core/URI.php */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 comCookie.php https://bitbucket.org/helfreire/tccsite.git | PHP | 324 lines
1<?php 2 146 if (null !== $url) { 147 if ((false === $urlParts = parse_url($url)) || !isset($urlParts['host']) || !isset($urlParts['path'])) { 148 throw new \InvalidArgumentException(sprintf('The URL "%s" is not valid.', $url));http.php https://gitlab.com/Gashler/dp | PHP | 519 lines
1<?php 2/** 319 if ( $url && !isset( $capabilities['ssl'] ) ) { 320 $scheme = parse_url( $url, PHP_URL_SCHEME ); 321 if ( 'https' == $scheme || 'ssl' == $scheme ) { 351function get_allowed_http_origins() { 352 $admin_origin = parse_url( admin_url() ); 353 $home_origin = parse_url( home_url() ); 429 430 $parsed_url = @parse_url( $url ); 431 if ( ! $parsed_url || empty( $parsed_url['host'] ) ) 439 440 $parsed_home = @parse_url( get_option( 'home' ) ); 441Http.php https://github.com/quarkness/piwik.git | PHP | 491 lines
1<?php 2/** 131 // initialization 132 $url = @parse_url($aUrl); 133 if($url === false || !isset($url['scheme'])) 308 // we make sure the request takes less than a few seconds to fail 309 // we create a stream_context (works in php >= 5.2.1) 310 // we also set the socket_timeout (for php < 5.2.1) 321 .$via."\r\n", 322 'max_redirects' => 5, // PHP 5.1.0 323 'timeout' => $timeout, // PHP 5.2.1 403 /* 404 * as of php 5.2.0, CURLOPT_FOLLOWLOCATION can't be set if 405 * in safe_mode or open_basedir is setpre-check.php https://bitbucket.org/blackriver/openx.git | PHP | 394 lines
70 <meta name="Description" content="" /> 71 <title>php Error page</title> 72<style type="text/css"> 258 259 // Test for existence of "parse_url" and "strpos", which are 260 // special cases required for the display of the error message 261 // in the event of anything failing in this test! 262 if (!function_exists('parse_url')) { 263 $aErrors[] = $errorString1 . 'parse_url' . $errorString2; 322 323 // Check PHP version, as use of PHP < 5.1.4 will result in parse errors 324 $errorMessage = "PHP version 5.1.4, or greater, was not detected."; 338 $phpMemoryLimit = OX_getMemoryLimitSizeInBytes(); 339 if ($phpMemoryLimit > 0 && $phpMemoryLimit < $minimumRequiredMemory) { 340 // The memory limit is too low, but can it be increased?Download.php https://github.com/jpratt/cal.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')) {settings.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 */Visitor.php https://github.com/quarkness/piwik.git | PHP | 439 lines
1<?php 2/** 13/** 14 * @see plugins/Referers/functions.php 15 * @see plugins/UserCountry/functions.php 15 * @see plugins/UserCountry/functions.php 16 * @see plugins/UserSettings/functions.php 17 * @see plugins/Provider/functions.php 19 20require_once PIWIK_INCLUDE_PATH . '/plugins/Referers/functions.php'; 21require_once PIWIK_INCLUDE_PATH . '/plugins/UserCountry/functions.php'; 21require_once PIWIK_INCLUDE_PATH . '/plugins/UserCountry/functions.php'; 22require_once PIWIK_INCLUDE_PATH . '/plugins/UserSettings/functions.php'; 23require_once PIWIK_INCLUDE_PATH . '/plugins/Provider/functions.php'; 262 $url = $this->getRefererUrl(); 263 $url = @parse_url($url); 264 if(empty($url['query']))theme-install.php https://gitlab.com/juanito.abelo/nlmobile | 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 */root-cookie.php https://github.com/linickx/root-cookie.git | PHP | 279 lines
19 20# Then we paste the WP functions from /wp-includes/pluggable.php 21# ... 68 $info = get_bloginfo('url'); 69 $info = parse_url($info); 70 $info = $info['host']; 87 88 // Set httponly if the php version is >= 5.2.0 89 if ( version_compare(phpversion(), '5.2.0', 'ge') ) { 223<?php echo "<h2>" . __( 'root Cookie Options', 'rootcookie_trans_domain' ) . "</h2>"; ?> 224<form name="plugin_options" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> 225<input type="hidden" name="rootcookie_submit_hidden" value="Y" /> 232 <th scope="row"><?php _e("Allow Cookies to go across All Subdomains:", 'rootcookie_trans_domain' ); ?> </th> 233 <td><input type="checkbox" name="rootcookie_subdomain" value="<?php echo $rootcookie_subdomain_on; ?>"<?php if($checked){echo " CHECKED";} ?> /><span class="description">Tick this box and we'll try to <b>guess</b> your domain and enable the cookie.</span></td> 234</tr>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' ] );URL.php https://github.com/lsces/phpgedview.git | PHP | 410 lines
1<?php 2// +-----------------------------------------------------------------------+ 31// +-----------------------------------------------------------------------+ 32// | Author: Richard Heyes <richard at php net> | 33// +-----------------------------------------------------------------------+ 101 /** 102 * PHP4 Constructor 103 * 156 $this->port = !empty($port) ? $port : (isset($HTTP_SERVER_VARS['SERVER_PORT']) ? $HTTP_SERVER_VARS['SERVER_PORT'] : $this->getStandardPort($this->protocol)); 157 $this->path = !empty($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : '/'; 158 $this->querystring = isset($HTTP_SERVER_VARS['QUERY_STRING']) ? $this->_parseRawQuerystring($HTTP_SERVER_VARS['QUERY_STRING']) : null; 336 * 337 * /foo/bar/../boo.php => /foo/boo.php 338 * /foo/bar/../../boo.php => /boo.php 338 * /foo/bar/../../boo.php => /boo.php 339 * /foo/bar/.././/boo.php => /foo/boo.php 340 *class.json-api.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 371 lines
1<?php 2 62 63 $parsed = parse_url( $this->url ); 64 $this->path = $parsed['path']; 75 if ( is_null( $post_body ) ) { 76 $this->post_body = file_get_contents( 'php://input' ); 77qode-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}entities.class.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 333 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 98 $attribute_value = $element->getAttribute($attribute); 99 $protocol = parse_url($attribute_value, PHP_URL_SCHEME); 100 103 $attribute_value = $this->full_path($root_path . "/" . $attribute_value, "/"); 104 $attribute_value = "\$@FILEPHP@\$" . "/" . $attribute_value; 105 }menus.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 572 lines
1<?php 2/** 42 JText::_('COM_MENUS_SUBMENU_MENUS'), 43 'index.php?option=com_menus&view=menus', 44 $vName == 'menus' 47 JText::_('COM_MENUS_SUBMENU_ITEMS'), 48 'index.php?option=com_menus&view=items', 49 $vName == 'items' 98 99 // Check if the link is in the form of index.php?... 100 if (is_string($request)) 103 104 if (strpos($request, 'index.php') === 0) 105 { 105 { 106 parse_str(parse_url(htmlspecialchars_decode($request), PHP_URL_QUERY), $args); 107 }bootstrap.php https://github.com/agilehands/micromvc.git | PHP | 466 lines
1<?php 2/** 90 * Returns the current URL path string (if valid) 91 * PHP before 5.3.3 throws E_WARNING for bad uri in parse_url() 92 * 400/** 401 * Override PHP's default error handling if in debug mode 402 */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 ),Ftp.php https://bitbucket.org/dnejedly/eaparts.git | 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) 2012 Magento Inc. (http://www.magentocommerce.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 *http.php https://github.com/muskmelon/Greemo.git | 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 ) {Form.php https://gitlab.com/4gdevs/online-class-record-system | 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();index.php https://github.com/srahn/kvwmap.git | PHP | 350 lines
4include_once(CLASSPATH . 'Layer.php'); 5// include('funktionen/input_check_functions.php'); 6include_once(PLUGINS . 'wasserrecht/config/config.php'); 6include_once(PLUGINS . 'wasserrecht/config/config.php'); 7include(PLUGINS . 'wasserrecht/helper/Log.php'); 8include(PLUGINS . 'wasserrecht/helper/CommonClassTrait.php'); 27include(PLUGINS . 'wasserrecht/model/db/gewaesserbenutzungen.php'); 28include(PLUGINS . 'wasserrecht/model/db/gewaesserbenutzungen_umfang_name.php'); 29include(PLUGINS . 'wasserrecht/model/db/gewaesserbenutzungen_umfang_einheiten.php'); 116 117$GUI->actual_link = parse_url((isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", PHP_URL_PATH); 118 268 $GUI->result['update_mysql'] = 'Datenbankverbindung fehlgeschlagen<br>' . mysqli_connect_error(); 269 $GUI->main = PLUGINS . 'wasserrecht/view/deploy_results.php'; 270 $GUI->output();com_eventlist.php https://github.com/Ratmir15/Joomla---formula-of-success.git | PHP | 232 lines
1<?php 2/** 2/** 3 * $Id: com_eventlist.php 52 2009-10-24 22:35:11Z guilleva $ 4 * $LastChangedDate: 2009-10-24 16:35:11 -0600 (Sat, 24 Oct 2009) $ 21 function prepareMenuItem(&$node) { 22 $link_query = parse_url( $node->link ); 23 parse_str( html_entity_decode($link_query['query']), $link_vars); 53 $venid=0; 54 $link_query = parse_url( $parent->link ); 55 parse_str( html_entity_decode($link_query['query']), $link_vars ); 149 $node->name = $cat->catname; 150 $node->link = 'index.php?option=com_eventlist&view=categoryevents&id='.$cat->id.':'.$cat->alias; 151 $node->expandible = true; 164 $node->modified = ($event->modified? $event->modified : $event->created); 165 $node->link = 'index.php?option=com_eventlist&view=details&id='.$event->id.':'.$event->alias; 166 $node->priority = $params['event_priority'];ARC2_Reader.php https://github.com/drobbins/s3db.git | PHP | 254 lines
1<?php 2/* 96 97 $parts = parse_url($url); 98 #echo $url.'<br />'; 105 function getFileSocket($url) { 106 $parts = parse_url($url); 107 $s = file_exists($parts['path']) ? @fopen($parts['path'], 'rb') : false; 114 function getHTTPSocket($url, $redirs = 0) { 115 $parts = parse_url($url); 116 if (!isset($parts['scheme'])) {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']])) {Connection.php https://github.com/jordscream/symfony.git | PHP | 361 lines
1<?php 2 89 { 90 if (false === $parsedUrl = parse_url($dsn)) { 91 throw new InvalidArgumentException(sprintf('The given Amazon SQS DSN "%s" is invalid.', $dsn));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' )Download.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 307 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 */ 100 */ 101 $urlProp = parse_url($this->_resourceFile); 102 if (!isset($urlProp['scheme']) || strtolower($urlProp['scheme'] != 'http')) {REST.php https://github.com/CloCkWeRX/Pyrus.git | PHP | 322 lines
1<?php 2/** 4 * 5 * PHP versions 5 6 * 8 * @package Pyrus 9 * @author Greg Beaver <cellog@php.net> 10 * @copyright 2010 The PEAR Group 10 * @copyright 2010 The PEAR Group 11 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 12 * @link https://github.com/pyrus/Pyrus 20 * @package Pyrus 21 * @author Greg Beaver <cellog@php.net> 22 * @copyright 2010 The PEAR Group 22 * @copyright 2010 The PEAR Group 23 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 24 * @link https://github.com/pyrus/Pyrusindex.php https://github.com/rsinger/Jangle.git | PHP | 384 lines
1<?php 2 2 3require 'lib/jangle.php'; 4require 'lib/spyc.php5'; 4require 'lib/spyc.php5'; 5require 'lib/models.php'; 6 8$config["base_uri"] = getenv('HTTP_X_CONNECTOR_BASE'); 9$url = parse_url($_SERVER['REQUEST_URI']); 10 359 if($type != $format) { 360 $u = parse_url($feed->uri); 361 if($u['query']) {Stream.php https://bitbucket.org/ksekar/campus.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']) {Stream.php https://bitbucket.org/haichau59/manga.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 */ 26//require_once 'Zend/Service/WindowsAzure/Storage/Blob.php'; 27 30 */ 31//require_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']) {default.settings.php https://github.com/michaelmcandrew/vaw.git | PHP | 227 lines
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 95/** 96 * Access control for update.php script 97 * 97 * 98 * If you are updating your Drupal installation using the update.php script 99 * being not logged in as administrator, you will need to modify the access 131 * be set at runtime (ie., when ini_set() occurs), read the PHP 132 * documentation at http://www.php.net/manual/en/ini.php#ini.list 133 * and take a look at the .htaccess file to see which non-runtimeStream.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/Ebozavrik/test-application.git | PHP | 568 lines
1<?php 2/** 19 * @license http://todo name_todo 20 * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 106 { 107 $url = parse_url($path); 108 if ($url['host']) { 123 { 124 $url = parse_url($path); 125 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] );wp-help.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 200 lines
68 // Now to see if it originated from our post type 69 $qs = parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY ); 70 wp_parse_str( $qs, $vars ); 104 wp_nonce_field( 'cws-wp-help-save', '_cws_wp_help_nonce', false, true ); ?> 105 <p><input type="checkbox" name="cws_wp_help_make_default_doc" id="cws_wp_help_make_default_doc" <?php checked( $post->ID == get_option( self::default_doc ) ); ?> /> <label for="cws_wp_help_make_default_doc"><?php _e( 'Make this the default help document' ); ?></label></p> 106 <?php 167<div class="wrap"> 168 <?php screen_icon(); ?><h2><?php _e( 'Publishing Help' ); ?></h2> 169<?php $pages = $this->get_help_topics_html(); ?> 171<div id="cws-wp-help-listing"> 172<h3><?php _e( 'Help Topics' ); ?><?php if ( current_user_can( 'publish_pages' ) ) : ?><span><a href="<?php echo admin_url( 'edit.php?post_type=wp-help' ); ?>">Manage</a></span><?php endif; ?></h3> 173<ul> 189 <?php if ( current_user_can( 'manage_options' ) ) : ?> 190 <p><?php printf( __( 'No published help documents found. <a href="%s">Manage Help Documents</a>.' ), admin_url( 'edit.php?post_type=wp-help' ) ); ?></p> 191 <?php else : ?>postgre_driver.php https://bitbucket.org/saifshuvo/codeigniter.git | PHP | 636 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 114 /* We don't have these options as elements in our standard configuration 115 * array, but they might be set by parse_url() if the configuration was 116 * provided via string. Example: 227 228 /* If PHP was compiled with PostgreSQL lib versions earlier 229 * than 7.4, pg_version() won't return the server version 634 635/* End of file postgre_driver.php */ 636/* Location: ./system/database/drivers/postgre/postgre_driver.php */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);Request.php https://github.com/telkins/zf2.git | PHP | 549 lines
1<?php 2/** 115 116 $parsedUri = parse_url($matches['uri']); 117 if (array_key_exists('query', $parsedUri)) {function.fetch.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 220 lines
1<?php 2/** 14 * Purpose: fetch file, web or ftp data and display results 15 * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} 16 * (Smarty online manual) 31 $_params = array('resource_type' => 'file', 'resource_name' => $params['file']); 32 require_once(SMARTY_CORE_DIR . 'core.is_secure.php'); 33 if(!smarty_core_is_secure($_params, $smarty)) { 51 // http fetch 52 if($uri_parts = parse_url($params['file'])) { 53 // set defaultserror_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");Download.php https://github.com/joebushi/magento-mirror.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) 2009 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')) {func.php https://github.com/gobsInternetTechnologyGmbH/private_sales.git | PHP | 296 lines
1<?php 2/* vim: set ts=4 sw=4 sts=4 et: */ 10| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE | 11| AT THE FOLLOWING URL: http://www.x-cart.com/license.php | 12| | 41 * @copyright Copyright (c) 2001-2011 Ruslan R. Fazlyev <rrf@x-cart.com> 42 * @license http://www.x-cart.com/license.php X-Cart license agreement 43 * @version $Id: func.php,v 1.49.2.1 2011/01/10 13:12:02 ferz Exp $ 69 70 $host = @parse_url($config['SnS_connector']['sns_collector_path_url_http']."/event.".$config['SnS_connector']['sns_script_extension']); 71 if (empty($host['host']) || empty($host['path'])) 196 197 $tmp = @parse_url($current_location); 198 $cpost = "pageUrl=".urlencode($tmp['scheme']."://".$tmp['host'].$REQUEST_URI);favicon.php https://github.com/RomanSixty/Feed-on-Feeds.git | PHP | 337 lines
1<?php 2/** Locate a suitable favicon for a site. 16 protected $site_url; /* whose favicons are we interested in */ 17 protected $site_url_parts; /* broken down by parse_url() */ 18 protected $favicons; /* list of extant favicons referenced by site */ 27 $this->site_url = $site_url; 28 $this->site_url_parts = parse_url($site_url); 29 $this->stream_context_options = array( 'http' => array() ); 148 /* put back together */ 149 $favicon_url = self::unparse_url($favicon_url); 150 231 /* allow common extensions */ 232 $ext = pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION); 233 switch ($ext) { 285 /* Put it all together. */ 286 return self::unparse_url($url_parts); 287 }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 ); 33function.parse-url.html https://bitbucket.org/stillzhl/manuals.git | HTML | 277 lines
15 <h1 class="refname">parse_url</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">parse_url</span> — <span class="dc-title">解析 URL,返回其组成部分</span></p> 17 70 <strong><code>PHP_URL_PATH</code></strong>、 <strong><code>PHP_URL_QUERY</code></strong> 71 或 <strong><code>PHP_URL_FRAGMENT</code></strong> 的其中一个来获取 URL 中指定的部分的 <span class="type"><a href="language.types.string.html" class="type string">string</a></span>。 (除了指定为 <strong><code>PHP_URL_PORT</code></strong> 后,将返回一个 <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> 的值)。 72 </p> 189<div class="phpcode"><code><span style="color: #000000"> 190<span style="color: #0000BB"><?php<br />$url </span><span style="color: #007700">= </span><span style="color: #DD0000">'http://username:password@hostname/path?arg=value#anchor'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">parse_url</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">));<br /><br />echo </span><span style="color: #0000BB">parse_url</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">, </span><span style="color: #0000BB">PHP_URL_PATH</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> 191</span> 217<div class="phpcode"><code><span style="color: #000000"> 218<span style="color: #0000BB"><?php<br />$url </span><span style="color: #007700">= </span><span style="color: #DD0000">'//www.example.com/path?googleguy=googley'</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">// 在 5.4.7 之前这会输出路径 "//www.example.com/path"<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">parse_url</span><span style="color: #007700">(</span><span style="color: #0000BB">$url</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?></span> 219</span> 249 <p class="para"> 250 <span class="function"><strong>parse_url()</strong></span> 是专门用来解析 URL 而不是 URI 的。不过为遵从 PHP 251 向后兼容的需要有个例外,对 file:// 协议允许三个斜线(file:///...)。其它任何协议都不能这样。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); 316lmbUri.class.php https://github.com/idler/limb.git | PHP | 543 lines
1<?php 2/* 2/* 3 * Limb PHP Framework 4 * 8 */ 9lmb_require('limb/core/src/lmbSet.class.php'); 10lmb_require('limb/core/src/lmbArrayHelper.class.php'); 15 * @package net 16 * @version $Id: lmbUri.class.php 8124 2010-02-03 17:03:21Z 3dmax $ 17 */ 503 * 504 * /foo/bar/../boo.php => /foo/boo.php 505 * /foo/bar/../../boo.php => /boo.php 505 * /foo/bar/../../boo.php => /boo.php 506 * /foo/bar/.././/boo.php => /foo/boo.php 507 *url_helper.php https://github.com/cloudmanic/CodeIgniter.git | PHP | 598 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 * 345 var l=new Array(); 346 <?php 347 $i = 0; 347 $i = 0; 348 foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?> 349 353 //]]> 354 </script><?php 355 451 452 $url = parse_url($str); 453class-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 }RedisProfilerStorage.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 390 lines
1<?php 2 26 const REDIS_SERIALIZER_NONE = 0; 27 const REDIS_SERIALIZER_PHP = 1; 28 145 146 $profile = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP); 147 172 173 if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime, self::REDIS_SERIALIZER_PHP)) { 174 if (!$profileIndexed) { 205 if (null === $this->redis) { 206 $data = parse_url($this->dsn); 207 266 267 if (!$childProfileData = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP)) { 268 continue;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();Item.php https://github.com/rgranadino/magento-mirror.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) 2011 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();soundcloud.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] );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/panace/public | 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);Stream.php https://bitbucket.org/nblaudez/maerdo.git | PHP | 565 lines
1<?php 2/** 19 * @license http://todo name_todo 20 * @version $Id: Stream.php 23486 2010-12-10 04:05:30Z mjh_ca $ 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']) {UriRewriter.php https://github.com/sharpmachine/wakeupmedia.com.git | 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'] : '/');Stream.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 565 lines
1<?php 2/** 19 * @license http://todo name_todo 20 * @version $Id: Stream.php 23485 2010-12-10 04:03:18Z mjh_ca $ 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']) {Drupal.php https://github.com/ksecor/civicrm.git | PHP | 289 lines
1<?php 2 163 $config =& CRM_Core_Config::singleton( ); 164 $script = 'index.php'; 165 170 if ( ! isset( $config->useFrameworkRelativeBase ) ) { 171 $base = parse_url( $config->userFrameworkBaseURL ); 172 $config->useFrameworkRelativeBase = $base['path']; 220 static function authenticate( $name, $password ) { 221 require_once 'DB.php'; 222 237 // need to change this to make sure we matched only one row 238 require_once 'CRM/Core/BAO/UFMatch.php'; 239 while ( $row = $query->fetchRow( DB_FETCHMODE_ASSOC ) ) {Item.php https://bitbucket.org/sevenly/magento-ce.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();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 {SimpleOpenID.php https://github.com/holsinger/openfloor.git | PHP | 314 lines
3 FREE TO USE 4 Simple OpenID PHP Class 5 Contributed by http://www.fivestores.com/ 19 :: SET RETURN URL :: 20 $openid->SetApprovedURL('http://www.yoursite.com/return.php'); // Script which handles a response from OpenID Server 21 :: SET TRUST ROOT :: 104 /* 105 $u = parse_url(trim($a)); 106 if (!isset($u['path'])){ 155 function OpenID_Standarize($openid_identity){ 156 $u = parse_url(strtolower(trim($openid_identity))); 157 if ($u['path'] == '/'){ 186 $request = $method . " /server HTTP/1.0\r\n"; 187 $request .= "User-Agent: Simple OpenID PHP Class (http://www.phpclasses.org/simple_openid)\r\n"; 188 $request .= "Connection: close\r\n\r\n";IATS.php https://github.com/timstephenson/NatureBridge.git | PHP | 316 lines
1<?php 2 37 38require_once 'CRM/Core/Payment.php'; 39 67 $this->_profile['mode'] = $mode; // live or test 68 $this->_profile['webserver'] = parse_url($this->_paymentProcessor['url_site'],PHP_URL_HOST); 69 $currencyID = $config->defaultCurrency; 101 // Password = $this->_paymentProcessor['password' ]; 102 // beginning of modified sample code from IATS php api include IATS supplied api library 103 104 if ( $isRecur ) { 105 include_once('Services/IATS/iats_reoccur.php'); 106 $iatslink1 = new iatslinkReoccur; 107 } else { 108 include_once('Services/IATS/iatslink.php'); 109 $iatslink1 = new iatslink;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 }