100+ results results for '$PATH repo:edubuc/starter-kit-fr' (2777 ms)
127 $path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH); 128 $path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri); 129 129 130 return $baseUri.('' === $path || '/' !== $path[0] ? '/' : '').$path; 131 } 145 * 146 * @param string $path URI path 147 * 149 */ 150 protected function canonicalizePath($path) 151 { 151 { 152 if ('' === $path || '/' === $path) { 153 return $path;TwigExtension.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 153 lines
62 // register user-configured paths 63 foreach ($config['paths'] as $path => $namespace) { 64 if (!$namespace) { 64 if (!$namespace) { 65 $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($path)); 66 } else { 66 } else { 67 $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($path, $namespace)); 68 }perl-5.14-no-sys-dirs.patch https://gitlab.com/janneke/guix | Patch | 156 lines
12-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin' 13-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" 14-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" 14-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" 15-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" 16-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" 16-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" 17-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin" 18-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" 18-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" 19-paths="$paths /sbin /usr/sbin /usr/libexec" 20-paths="$paths /system/gnu_library/bin" 22 23 for p in $paths 24 doTemplateNameParserTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 89 lines
47 */ 48 public function testParse($name, $logicalName, $path, $ref) 49 { 53 $this->assertSame($logicalName, $template->getLogicalName()); 54 $this->assertSame($path, $template->getPath()); 55 }ImportMappingDoctrineCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 137 lines
115 if ('annotation' === $type) { 116 $path = $destPath.'/'.str_replace('\\', '.', $className).'.php'; 117 } else { 117 } else { 118 $path = $destPath.'/'.str_replace('\\', '.', $className).'.orm.'.$type; 119 } 119 } 120 $output->writeln(sprintf(' > writing <comment>%s</comment>', $path)); 121 $code = $exporter->exportClassMetadata($class); 121 $code = $exporter->exportClassMetadata($class); 122 if (!is_dir($dir = dirname($path))) { 123 mkdir($dir, 0775, true); 124 } 125 file_put_contents($path, $code); 126 chmod($path, 0664);certificate_helper.rb https://gitlab.com/mattermost/omnibus-gitlab | Ruby | 172 lines
126 unless rehash_status.zero? 127 LoggingHelper.warning("Rehashing of trusted certificates present in `/etc/gitlab/trusted-certs` failed. If on a FIPS-enabled machine, ensure `c_rehash` binary is available in $PATH.") 128 returnCookie.php https://gitlab.com/x33n/respond | PHP | 513 lines
161 * 162 * @param string $path Path of the cookie 163 * 165 */ 166 public function setPath($path) 167 { 167 { 168 return $this->setData('path', $path); 169 } 408 * 409 * @param string $path Path to check against 410 * 412 */ 413 public function matchesPath($path) 414 {html.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 394 lines
343 // Try to find a favicon by checking the template and root folder 344 $path = $directory . DS; 345 $dirs = array( $path, JPATH_BASE . DS ); 351 $path = str_replace( JPATH_BASE . DS, '', $dir ); 352 $path = str_replace( '\\', '/', $path ); 353 $this->addFavicon( JURI::base(true).'/'.$path . 'favicon.ico' );SourceTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 275 lines
165 /** 166 * @param string $path 167 * @param string $expected 169 */ 170 public function testGetContentType($path, $expected) 171 { 171 { 172 $this->assertEquals($expected, $this->object->getContentType($path)); 173 }class.php https://gitlab.com/alexprowars/bitrix | PHP | 326 lines
68 69 $pathTo = str_replace('#id#', $this->agreement->getId(), $this->arParams['PATH_TO_EDIT']); 70 if ($this->arParams['IFRAME']) 71 { 72 $pathTo .= strpos($pathTo, '?') === false ? '?' : '&'; 73 $pathTo .= 'IFRAME=Y'; 83 { 84 $pathTo .= strpos($pathTo, '?') === false ? '?' : '&'; 85 $pathTo .= 'IS_SAVED=Y'; 85 $pathTo .= 'IS_SAVED=Y'; 86 LocalRedirect($pathTo); 87 } 94 { 95 LocalRedirect($pathTo); 96 }Collection.php https://gitlab.com/blingbang2016/shop | PHP | 461 lines
100 * Set path to this directory 101 * @param string $path - path to this directory 102 * @param bool $isRecursion - use or not recursion 104 */ 105 public function setPath($path, $isRecursion='') 106 { 141 * 142 * @param string $path - path to directory 143 * @return string - latest dir in the path 155 static public function getLastDir($path){ 156 if($path=='') $path = $this->getPath(); 157 $last = strrpos($path, "/"); 228 $this->getFilesPaths($paths); 229 return $paths; 230 }update.php https://gitlab.com/billyprice1/ruTorrent | PHP | 196 lines
1<?php 2 $path = dirname(realpath($argv[0])); 3 if(chdir($path))ConvertCurrency.php https://gitlab.com/CORP-RESELLER/codesamples-php | PHP | 156 lines
1<?php 2$path = '../../lib'; 3set_include_path(get_include_path() . PATH_SEPARATOR . $path);S3.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 332 lines
102 * 103 * @param string $path 104 * @param array $options 106 */ 107 public function fetchItem($path, $options = array()) 108 { 108 { 109 $fullPath = $this->_getFullPath($path, $options); 110 try { 150 * 151 * @param string $path 152 * @param array $options 154 */ 155 public function deleteItem($path, $options = array()) 156 {html.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 224 lines
54 * @param JModel $model The model object. 55 * @param SplPriorityQueue $paths The paths queue. 56 * 58 */ 59 public function __construct(JModel $model, SplPriorityQueue $paths = null) 60 { 64 65 if (isset($paths)) 66 { 66 { 67 $paths->insert(JPATH_THEMES . '/' . $app->getTemplate() . '/html/' . $component . '/' . $this->getName(), 2); 68 } 69 70 parent::__construct($model, $paths); 71 }ups.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 187 lines
30 require_once (dirname ( __FILE__ ) . '/ups.class.php'); 31 $path = JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_pago' . DIRECTORY_SEPARATOR . 'helpers'; 32 require_once $path . '/ShippingCalculator.php'; 32 require_once $path . '/ShippingCalculator.php'; 33 require_once $path . '/helper.php'; 34 $ShippingCalculator = new ShippingCalculator;lib-git-p4.sh https://gitlab.com/181gaming/git | Shell | 246 lines
39 then 40 path=$(cygpath --windows "$path") 41 else 41 else 42 path=$(test-path-utils real_path "$path") 43 fi && 43 fi && 44 echo "$path" 45}ZipStreamWrapper.php https://gitlab.com/digaotinfo/agendaLegislativa | PHP | 201 lines
75 * 76 * @param string $path resource name including scheme, e.g. 77 * @param string $mode only "r" is supported 81 */ 82 public function stream_open($path, $mode, $options, &$opened_path) { 83 // Check for mode 87 88 $pos = strrpos($path, '#'); 89 $url['host'] = substr($path, 6, $pos - 6); // 6: strlen('zip://') 89 $url['host'] = substr($path, 6, $pos - 6); // 6: strlen('zip://') 90 $url['fragment'] = substr($path, $pos + 1); 91flexvolume_test.go https://gitlab.com/CORP-RESELLER/kubernetes | Go | 417 lines
98 PATH=$2 99 /bin/mkdir -p $PATH 100 if [ $? -ne 0 ]; then 102 "status": "Failure", 103 "reason": "Failed to create $PATH" 104 }' 112 PATH=$2 113 /bin/rm -r $PATH 114 if [ $? -ne 0 ]; then 116 "status": "Failure", 117 "reason": "Failed to cleanup $PATH" 118 }'Driver.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 227 lines
56 // check application path first 57 foreach (get_instance()->load->get_package_paths(TRUE) as $path) 58 { 61 { 62 $filepath = $path.'libraries/'.$lib_name.'/drivers/'.$class.'.php'; 63Logger.php https://gitlab.com/Erdrix/overviewCompanies | PHP | 186 lines
19 */ 20 private $path; 21 77 if ($this->path) { 78 $path = $this->path . DS . date('m-d-Y') . '.log'; 79 file_put_contents($path, 81 FILE_APPEND); 82 chmod($path, octdec('0' . $this->permission)); 83 }Module.php https://gitlab.com/devtoannh/cafe | PHP | 284 lines
150 if (!$partial) { 151 $path = trim($path, self::URI_DELIMITER); 152 } else { 156 if ($path != '') { 157 $path = explode(self::URI_DELIMITER, $path); 158 163 164 if (count($path) && !empty($path[0])) { 165 $values[$this->_controllerKey] = array_shift($path); 167 168 if (count($path) && !empty($path[0])) { 169 $values[$this->_actionKey] = array_shift($path); 174 $key = urldecode($path[$i]); 175 $val = isset($path[$i + 1]) ? urldecode($path[$i + 1]) : null; 176 $params[$key] = (isset($params[$key]) ? (array_merge((array) $params[$key], array($val))): $val);NestedArrayAccess.php https://gitlab.com/akbaryu/intro_magang_web | PHP | 190 lines
28 { 29 $path = explode($separator ?: $this->nestedSeparator, $name); 30 $current = $this->items; 30 $current = $this->items; 31 foreach ($path as $field) { 32 if (is_object($current) && isset($current->{$field})) { 55 { 56 $path = explode($separator ?: $this->nestedSeparator, $name); 57 $current = &$this->items; 57 $current = &$this->items; 58 foreach ($path as $field) { 59 if (is_object($current)) { 97 98 $path = explode($separator ?: $this->nestedSeparator, $name); 99 $var = array_pop($path);tar.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 189 lines
106 $buffer = $this->_metadata[$i]['data']; 107 $path = JPath::clean($destination.DS.$this->_metadata[$i]['name']); 108 // Make sure the destination folder exists 108 // Make sure the destination folder exists 109 if (!JFolder::create(dirname($path))) 110 { 113 } 114 if (JFile::write($path, $buffer) === false) 115 {config.php https://gitlab.com/randydanniswara/website | PHP | 358 lines
8//Note Mautic specific bundles so they can be applied as needed without having to specify them individually 9$buildBundles = function($namespace, $bundle) use ($container, $paths, $root, &$ormMappings, &$serializerMappings, &$ipLookupServices) { 10 $isPlugin = $isMautic = false; 14 $bundleBase = $bundle; 15 $relative = $paths['plugins'].'/'.$bundleBase; 16 } elseif (strpos($namespace, 'MauticAddon\\') !== false) { 23 $bundleBase = str_replace('Mautic', '', $bundle); 24 $relative = $paths['bundles'] . '/' . $bundleBase; 25 } 28 $baseNamespace = preg_replace('#\\\[^\\\]*$#', '', $namespace); 29 $directory = $paths['root'].'/'.$relative; 30 135 $key = $container->hasParameter('mautic.secret_key') ? $container->getParameter('mautic.secret_key') : uniqid(); 136 $sessionName = md5(md5($paths['local_config']).$key); 137}Css2Xpath.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 169 lines
39 { 40 $path = (string) $path; 41 if (strstr($path, ',')) { 41 if (strstr($path, ',')) { 42 $paths = explode(',', $path); 43 $expressions = array(); 61 if (0 === strpos($pathSegment, '[contains(')) { 62 $paths[0] .= '*' . ltrim($pathSegment, '*'); 63 } else { 70 $paths[$key] .= '//*' . ltrim($pathSegment, '*'); 71 $paths[] = $xpath . $pathSegment; 72 } 74 foreach ($paths as $key => $xpath) { 75 $paths[$key] .= '//' . $pathSegment; 76 }ConfigListener.php https://gitlab.com/yousafsyed/easternglamor | PHP | 404 lines
143 foreach ($this->paths as $path) { 144 $this->addConfigByPath($path['path'], $path['type']); 145 } 283 if ($paths instanceof Traversable) { 284 $paths = ArrayUtils::iteratorToArray($paths); 285 } 299 300 foreach ($paths as $path) { 301 $this->addConfigPath($path, $type); 307 * 308 * @param string $path 309 * @param string $type 368 case self::STATIC_PATH: 369 $this->addConfig($path, ConfigFactory::fromFile($path)); 370 break;configuration.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 408 lines
102 $ns = $this->registry[$namespace]['data']; 103 $pathNodes = $count - 1; 104 104 105 for ($i = 1; $i < $pathNodes; $i ++) { 106 if((isset($ns->$nodes[$i]))) $ns =& $ns->$nodes[$i]; 164 165 $pathNodes = $count - 1; 166 166 167 if ($pathNodes < 0) { 168 $pathNodes = 0; 170 171 for ($i = 0; $i < $pathNodes; $i ++) 172 {PropertyPathTest.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 203 lines
19 { 20 $path = new PropertyPath('reference.traversable[index].property'); 21 21 22 $this->assertEquals('reference.traversable[index].property', $path->__toString()); 23 } 57 */ 58 public function testUnexpectedCharacters($path) 59 { 59 { 60 new PropertyPath($path); 61 }Client.php https://gitlab.com/cuza/Clinic_Recods | PHP | 204 lines
175 176 $path = str_replace("'", "\\'", $r->getFileName()); 177 192} 193require_once '$path'; 194CookieJar.php https://gitlab.com/x33n/respond | PHP | 248 lines
86 87 public function clear($domain = null, $path = null, $name = null) 88 { 91 return; 92 } elseif (!$path) { 93 $this->cookies = array_filter( 94 $this->cookies, 95 function (SetCookie $cookie) use ($path, $domain) { 96 return !$cookie->matchesDomain($domain); 101 $this->cookies, 102 function (SetCookie $cookie) use ($path, $domain) { 103 return !($cookie->matchesPath($path) && 109 $this->cookies, 110 function (SetCookie $cookie) use ($path, $domain, $name) { 111 return !($cookie->getName() == $name &&UrlGenerator.php https://gitlab.com/puntodos/ean-landings | PHP | 327 lines
316 $targetDirs[] = $targetFile; 317 $path = str_repeat('../', count($sourceDirs)).implode('/', $targetDirs); 318 322 // (see http://tools.ietf.org/html/rfc3986#section-4.2). 323 return '' === $path || '/' === $path[0] 324 || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) 324 || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos) 325 ? "./$path" : $path; 326 }BaseStringHelper.php https://gitlab.com/aintenebris/memoria | PHP | 271 lines
56 * 57 * @param string $path A path string. 58 * @param string $suffix If the name component ends in suffix this will also be cut off. 61 */ 62 public static function basename($path, $suffix = '') 63 { 64 if (($len = mb_strlen($suffix)) > 0 && mb_substr($path, -$len) == $suffix) { 65 $path = mb_substr($path, 0, -$len); 66 } 66 } 67 $path = rtrim(str_replace('\\', '/', $path), '/\\'); 68 if (($pos = mb_strrpos($path, '/')) !== false) { 68 if (($pos = mb_strrpos($path, '/')) !== false) { 69 return mb_substr($path, $pos + 1); 70 }sendpr.tcl https://gitlab.com/OpenSourceMirror/sourcenav | TCL | 348 lines
40 } else { 41 set _site(sendpr) [file join $Paths(bindir) send-pr] 42 # If it doesn't exist, try the user's path. This is a hack forInstallController.php https://gitlab.com/billyprice1/phpservermon | PHP | 352 lines
36 * Full path to config file 37 * @var string $path_config 38 */ 38 */ 39 protected $path_config; 40 42 * Full path to old config file (2.0) 43 * @var string $path_config_old 44 */ 44 */ 45 protected $path_config_old; 46UrlMatcher.php https://gitlab.com/ealexis.t/trends | PHP | 251 lines
87 */ 88 public function match($pathinfo) 89 { 91 92 if ($ret = $this->matchCollection(rawurldecode($pathinfo), $this->routes)) { 93 return $ret; 97 ? new MethodNotAllowedException(array_unique($this->allow)) 98 : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo)); 99 } 122 * 123 * @param string $pathinfo The path info to be parsed 124 * @param RouteCollection $routes The set of routes 130 */ 131 protected function matchCollection($pathinfo, RouteCollection $routes) 132 {AppNameCommand.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 329 lines
109 * 110 * @param string $path 111 * @return void 112 */ 113 protected function replaceNamespace($path) 114 { 124 125 $this->replaceIn($path, $search, $replace); 126 } 226 { 227 if ($this->files->exists($path = $this->getPhpSpecConfigPath())) { 228 $this->replaceIn($path, $this->currentRoot, $this->argument('name')); 253 { 254 $this->files->put($path, str_replace($search, $replace, $this->files->get($path))); 255 }ax_boost_base.m4 https://gitlab.com/Red54/airprobe-hopping | m4 | 334 lines
159 fi 160 for ac_boost_path in $path_list ; do 161 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; thenFs.pm https://gitlab.com/kinwei/IFE-task7 | Perl | 503 lines
27 28=item SVN::Fs::contents_changed($root1, $path1, $root2, $path2) 29 31 32=item SVN::Fs::delete_fs($path) 33 52 53=item SVN::Fs::props_changed($root1, $path1, $root2, $path2) 54 218 219=item $root-E<gt>is_dir($path) 220 220 221True if there is a node at C<$path> which is a directory. 222PersonalInfoTest.php https://gitlab.com/svillegas/magento2 | PHP | 300 lines
25 */ 26 protected $pathToDefaultTimezone = 'path/to/default/timezone'; 27Ftp.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 396 lines
151 */ 152 public function write($path, $contents, Config $config) 153 { 153 { 154 $mimetype = Util::guessMimeType($path, $contents); 155 $config = Util::ensureConfig($config); 158 rewind($stream); 159 $result = $this->writeStream($path, $stream, $config); 160 $result = fclose($stream) && $result; 166 if ($visibility = $config->get('visibility')) { 167 $this->setVisibility($path, $visibility); 168 } 175 */ 176 public function writeStream($path, $resource, Config $config) 177 {Storage.php https://gitlab.com/yousafsyed/easternglamor | PHP | 316 lines
114 { 115 $path = str_replace($this->getStorageRoot(), '', $path); 116 return $this->urlEncoder->encode($path); 128 if (!strstr($path, $this->getStorageRoot())) { 129 $path = $this->getStorageRoot() . $path; 130 } 208 $nodes = explode('/', trim($node, '/')); 209 $pathPieces = array_merge($pathPieces, $nodes); 210 } 225 if ($path && $path !== self::NODE_ROOT) { 226 $path = $this->convertIdToPath($path); 227 227 228 if ($this->mediaDirectoryWrite->isDirectory($path) && 0 === strpos($path, $currentPath)) { 229 $currentPath = $this->mediaDirectoryWrite->getRelativePath($path);application.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 377 lines
358 $options = array(); 359 $pathway =& parent::getPathway('site', $options); 360 return $pathway;RouteCompilerTest.php https://gitlab.com/ealexis.t/trends | PHP | 267 lines
199 */ 200 public function testCompileWithHost($name, $arguments, $prefix, $regex, $variables, $pathVariables, $tokens, $hostRegex, $hostVariables, $hostTokens) 201 { 208 $this->assertEquals($variables, $compiled->getVariables(), $name.' (variables)'); 209 $this->assertEquals($pathVariables, $compiled->getPathVariables(), $name.' (path variables)'); 210 $this->assertEquals($tokens, $compiled->getTokens(), $name.' (tokens)');pantheon-cache.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 437 lines
43 */ 44 public $paths = array(); 45 355 public function enqueue_urls( $urls ) { 356 $paths = array(); 357 $urls = array_filter( (array) $urls, 'is_string' ); 360 $parsed = parse_url( $full_url ); 361 $path = $parsed['path'] . $parsed['query']; 362 if ( '' == $path ) { 364 } 365 $path = '^' . preg_quote( $path ) . '$'; 366 $paths[] = $path; 368 369 $this->paths = array_merge( $this->paths, $paths ); 370 }tempmanager.php https://gitlab.com/wuhang2003/core | PHP | 277 lines
127 // Build a name without postfix 128 $path = $this->buildFileNameWithSuffix($uniqueFileName . '-folder', $postFix); 129 mkdir($path, 0700); 129 mkdir($path, 0700); 130 $this->current[] = $path; 131 131 132 return $path . '/'; 133 } else { 190 if (substr($file, 0, 7) === self::TMP_PREFIX) { 191 $path = $this->tmpBaseDir . '/' . $file; 192 $mtime = filemtime($path); 193 if ($mtime < $cutOfTime) { 194 $files[] = $path; 195 }AdminController.php https://gitlab.com/igorbabko/blog | PHP | 325 lines
271 $del_file = $request->get('del_file'); 272 $path = $request->get('folder') . '/' . $del_file; 273 $result = $this->manager->deleteFile($path); 311 $fileName = $fileName ?: $file['name']; 312 $path = str_finish($request->get('folder'), '/') . $fileName; 313 $content = File::get($file['tmp_name']); 313 $content = File::get($file['tmp_name']); 314 $result = $this->manager->saveFile($path, $content); 315 if ($result === true) {DefaultWriter.php git://github.com/josegonzalez/upload.git | PHP | 193 lines
87 $results = []; 88 foreach ($files as $file => $path) { 89 $results[] = $this->writeFile($filesystem, $file, $path); 104 $results = []; 105 foreach ($files as $path) { 106 $results[] = $this->deletePath($filesystem, $path); 116 * @param string $file a full path to a temp file 117 * @param string $path that path to which the file should be written 118 * @return bool 119 */ 120 public function writeFile(FilesystemOperator $filesystem, $file, $path): bool 121 { 128 $success = false; 129 $tempPath = $path . '.temp'; 130 $this->deletePath($filesystem, $tempPath);SystemTest.php https://gitlab.com/gricelya/Blog-Merry | PHP | 89 lines
18 19 // executable files not in $PATH 20 $this->assertTrue(System::isExecutable(TEST_ROOT_ETC . '/system/executable.sh'));ClassLoader.php https://gitlab.com/megathrone86/SoftwareProjects | PHP | 199 lines
72 { 73 foreach ($prefixes as $prefix => $path) { 74 $this->addPrefix($prefix, $path); 81 * @param string $prefix The classes prefix 82 * @param array|string $paths The location(s) of the classes 83 */ 83 */ 84 public function addPrefix($prefix, $paths) 85 { 86 if (!$prefix) { 87 foreach ((array) $paths as $path) { 88 $this->fallbackDirs[] = $path; 95 $this->prefixes[$prefix], 96 (array) $paths 97 );FileEmbedder.php https://gitlab.com/staging06/myproject | PHP | 428 lines
357 { 358 $path = realpath($matches[3]); 359 if (!$path) 362 } 363 $ext = preg_replace("~^.*?\\.([^\\.]+)\$~s", "\$1", $path); 364 364 365 $lower_path = strtolower($path); 366 if (array_key_exists($lower_path, $this->registeredFiles)) 377 $cid = $this->message->attach($registered["obj"]); 378 $this->registerFile($path, $cid, $registered["obj"]); 379 return $matches[1] . $cid . $matches[4]; 380 } 381 $filename = basename($path); 382 $att = new Swift_Message_EmbeddedFile(new Swift_File($path), $filename, $this->getType($ext));RTx.pm https://gitlab.com/lawyerscommittee/RT-Extension-OurVoteLive | Perl | 261 lines
78 # images, but good enough for css and js. 79 $path{static} = "$path{html}/NoAuth/" 80 unless $RT::StaticPath; 90 91 printf "%-10s => %s\n", $_, $path{$_} for sort keys %path; 92 92 93 if ( my @dirs = map { ( -D => $_ ) } grep $path{$_}, qw(bin html sbin etc) ) { 94 my @po = map { ( -o => $_ ) } 130 $self->postamble("$postamble\n"); 131 if ( $path{lib} ) { 132 $self->makemaker_args( INSTALLSITELIB => $path{'lib'} ); 207 $path =~ s{\:\:}{-}g; 208 $path = "$RT::LocalPluginPath/$path/lib"; 209 if ( -e $path ) {Registry.php https://gitlab.com/blingbang2016/shop | PHP | 364 lines
207 foreach ((array)$entries as $entry) { 208 $path = $packageDir. DS .$entry; 209 $info = pathinfo($path); 209 $info = pathinfo($path); 210 if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') { 211 continue; 213 214 if (is_readable($path)) { 215 $data = file_get_contents($path);DeploystrategyAbstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 402 lines
225 226 protected function removeTrailingSlash($path) 227 { 227 { 228 return rtrim($path, ' \\/'); 229 } 348 $path = (string) $item; 349 if (!strcmp($path, '.') || !strcmp($path, '..')) { 350 continue;Category.php https://gitlab.com/blingbang2016/shop | PHP | 183 lines
69 */ 70 $pathIds = array_reverse($this->_appliedCategory->getPathIds()); 71 $curCategoryId = $this->getLayer()->getCurrentCategory()->getId(); 71 $curCategoryId = $this->getLayer()->getCurrentCategory()->getId(); 72 if (isset($pathIds[1]) && $pathIds[1] != $curCategoryId) { 73 return $pathIds[1];CookieJar.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 406 lines
130 $domain = $cookie->getDomain(); 131 $path = $cookie->getPath(); 132 if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array(); 132 if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array(); 133 if (! isset($this->cookies[$domain][$path])) $this->cookies[$domain][$path] = array(); 134 $this->cookies[$domain][$path][$cookie->getName()] = $cookie; 237 $path = $uri->getPath(); 238 $path = substr($path, 0, strrpos($path, '/')); 239 if (! $path) $path = '/'; 240 241 if (isset($this->cookies[$uri->getHost()][$path][$cookie_name])) { 242 $cookie = $this->cookies[$uri->getHost()][$path][$cookie_name]; 325 * @param array $dom_array 326 * @param string $path 327 * @return arrayclass.wpcom-json-api-site-settings-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 349 lines
15 // POST /sites/%s/settings 16 function callback( $path = '', $blog_id = 0 ) { 17 $blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) );class.gdn.php https://gitlab.com/sheldonels/Garden | PHP | 352 lines
117 * @param string $ClassName The actual name of the class. 118 * @param string $Path The path to the class' file. You can prefix the path with ~ to start at the application root. 119 * @param string $FactoryType The way objects will be instantiated for the class. One of (Gdn::FactoryInstance, Gdn::FactoryPrototype, Gdn::FactorySingleton). 121 */ 122 public static function FactoryInstall($Alias, $ClassName, $Path, $FactoryType = self::FactoryInstance, $Data = NULL) { 123 // Don't overwrite an existing definition. 126 127 self::$_Factory->Install($Alias, $ClassName, $Path, $FactoryType, $Data); 128t9301-fast-import-notes.sh https://gitlab.com/nmusco/git | Shell | 682 lines
477 do 478 if test $(expr length "$path") -ge 40 479 then 553 do 554 if test $(expr length "$path") -ge 40 555 then 612 # Explicitly ignore the non-note paths 613 test "$path" = "foobar/non-note.txt" && continue 614 test "$path" = "deadbeef" && continue 614 test "$path" = "deadbeef" && continue 615 test "$path" = "de/adbeef" && continue 616 616 617 if test $(expr length "$path") -ne 40 618 thenGeneratorCommand.php https://gitlab.com/ealexis.t/trends | PHP | 219 lines
53 54 $path = $this->getPath($name); 55 61 62 $this->makeDirectory($path); 63 63 64 $this->files->put($path, $this->buildClass($name)); 65 129 * 130 * @param string $path 131 * @return string 132 */ 133 protected function makeDirectory($path) 134 {then.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 182 lines
139 function ( $world, $path, $type, $action, $expected = null ) { 140 $path = $world->replace_variables( $path ); 141 143 if ( '/' !== $path[0] ) 144 $path = $world->variables['RUN_DIR'] . "/$path"; 145 153 case 'exist': 154 if ( ! $test( $path ) ) { 155 throw new Exception( $world->result ); 158 case 'not exist': 159 if ( $test( $path ) ) { 160 throw new Exception( $world->result ); 163 default: 164 if ( ! $test( $path ) ) { 165 throw new Exception( "$path doesn't exist." );McRegion.php https://gitlab.com/wesleyvanneck/ImagicalMine | PHP | 367 lines
66 67 public static function isValid($path) 68 { 68 { 69 $isValid = (file_exists($path . "/level.dat") and is_dir($path . "/region/")); 70 71 if ($isValid) { 72 $files = glob($path . "/region/*.mc*"); 73 foreach ($files as $f) { 83 84 public static function generate($path, $name, $seed, $generator, array $options = []) 85 { 85 { 86 if (!file_exists($path)) { 87 mkdir($path, 0777, true);FindBasedExecutablesCompletionProviderFactory.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 157 lines
141 NativeProcessBuilder npb = NativeProcessBuilder.newProcessBuilder(env); 142 npb.setExecutable("/bin/sh").setArguments("-c", "find `echo $PATH|tr : ' '` -type f -perm -+x 2>/dev/null"); // NOI18N 143 Status rc = ExecSupport.call(npb);Start-CodeCoverageRun.ps1 https://gitlab.com/unofficial-mirrors/PowerShell | Powershell | 379 lines
43 param( 44 [string] $Path, 45 [string] $DestinationPath 48 $Script:fileTable = [ordered]@{} 49 $Script:covData = [xml] (Get-Content -ReadCount 0 -Raw -Path $Path) 50 $totalCoverage = [PSCustomObject]::new() 89 [string] $Message, 90 $Path = "$env:Temp\CodeCoverageRunLogs.txt" 91 ) 93 $message = "{0:d} - {0:t} : {1}" -f ([datetime]::now),$message 94 Add-Content -Path $Path -Value $Message -PassThru -Force 95}FileInfo.php https://gitlab.com/wuhang2003/core | PHP | 346 lines
41 /** 42 * @var string $path 43 */ 43 */ 44 private $path; 45 71 /** 72 * @param string|boolean $path 73 * @param Storage\Storage $storage 78 */ 79 public function __construct($path, $storage, $internalPath, $data, $mount, $owner= null) { 80 $this->path = $path;t1007-hash-object.sh https://gitlab.com/Blueprint-Marketing/git | Shell | 223 lines
114 path0_sha=$(git hash-object --path=file0 file1) && 115 test "$file0_sha" = "$path0_sha" && 116 test "$file1_sha" = "$path1_sha" && 118 path0_sha=$(cat file1 | git hash-object --path=file0 --stdin) && 119 test "$file0_sha" = "$path0_sha" && 120 test "$file1_sha" = "$path1_sha" &&AbstractConfigLoader.php https://gitlab.com/x33n/ampache | PHP | 177 lines
150 if (!empty($config['includes'])) { 151 foreach ($config['includes'] as &$path) { 152 // Account for relative paths 152 // Account for relative paths 153 if ($path[0] != DIRECTORY_SEPARATOR && !isset($this->aliases[$path]) && $basePath) { 154 $path = "{$basePath}/{$path}"; 156 // Don't load the same files more than once 157 if (!isset($this->loadedFiles[$path])) { 158 $this->loadedFiles[$path] = true; 158 $this->loadedFiles[$path] = true; 159 $config = $this->mergeData($this->loadFile($path), $config); 160 }DomQuery41.php https://gitlab.com/yousafsyed/easternglamor | PHP | 436 lines
100 * 101 * @param string $path CSS selector path 102 * @return void 103 */ 104 public function __construct($path) 105 { 105 { 106 $this->_path = $path; 107 }ajax_calls.php https://gitlab.com/staging06/myproject | PHP | 253 lines
77 } 78 $path = $current_path.$_POST['path']; 79 $info = pathinfo($path); 83 $zip = new ZipArchive; 84 if ($zip->open($path) === true) { 85 //make all the folders 100 if (in_array(strtolower($fileinfo['extension']), $ext)) { 101 copy('zip://'.$path.'#'.$OnlyFileName, $base_folder.$FullFileName['name']); 102 } 110 case 'gz': 111 $p = new PharData($path); 112 $p->decompress(); // creates files.tar 115 // unarchive from the tar 116 $phar = new PharData($path); 117 $phar->decompressFiles();recaptchalib.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 277 lines
61 * @param string $host 62 * @param string $path 63 * @param array $data 66 */ 67function _recaptcha_http_post($host, $path, $data, $port = 80) { 68 70 71 $http_request = "POST $path HTTP/1.0\r\n"; 72 $http_request .= "Host: $host\r\n";mkerrors.sh https://gitlab.com/davejlong/gitlab-ci-multi-runner | Shell | 476 lines
22 # Assumes GNU versions of utilities in PATH. 23 export PATH=/usr/gnu/bin:$PATH 24fiAkismet.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 387 lines
227 * @param string $host 228 * @param string $path 229 * @param array $params 231 */ 232 protected function _post($host, $path, array $params) 233 { 233 { 234 $uri = 'http://' . $host . ':' . $this->getPort() . $path; 235 $client = self::getHttpClient(); 278 * 279 * @param string $path 280 * @param array $params 283 */ 284 protected function _makeApiCall($path, $params) 285 {panedw.tcl https://gitlab.com/OpenSourceMirror/vtcl | TCL | 325 lines
49 50 frame $path -background [Widget::cget $path -background] -class PanedWindow 51 set _panedw($path,nbpanes) 0 52 53 bind $path <Configure> "PanedWindow::_realize $path %w %h" 54 bind $path <Destroy> "PanedWindow::_destroy $path" 55 56 rename $path ::$path:cmd 57 proc ::$path { cmd args } "return \[eval PanedWindow::\$cmd $path \$args\]" 70 71 if { [Widget::hasChanged $path -background bg] && $_panedw($path,nbpanes) > 0 } { 72 $path:cmd configure -background $bg 300 } else { 301 $path.f$i configure -$size [winfo $size $path.f$i] 302 }Factory.php https://gitlab.com/ealexis.t/trends | PHP | 242 lines
110 foreach ($files as $path => $file) { 111 $path = explode('/', $path); 112 $pointer = &$result; 181 $commonPath = dirname($paths[0]) . '/'; 182 $files[basename($paths[0])] = $files[$paths[0]]; 183 194 $paths[$i] = substr($paths[$i], 7); 195 $paths[$i] = strtr($paths[$i], '/', DIRECTORY_SEPARATOR); 196 } 196 } 197 $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]); 198 210 !isset($paths[$i+1][0]) || 211 $paths[$i][0] != $paths[$i+1][0]) { 212 $done = true;Filesystem.php https://gitlab.com/fiesta-framework/Documentation | PHP | 242 lines
18 { 19 if($this->exists($path)) return file_get_contents($path); 20 else throw new FileNotFoundException("File does not existe in ($path)"); 24 { 25 if($this->exists($path)) return require $path; 26 else throw new FileNotFoundException("File does not existe in ($path)"); 30 { 31 if($this->exists($path)) return require_once $path; 32 else throw new FileNotFoundException("File does not existe in ($path)"); 65 { 66 $paths=is_array($path) ? $path : func_get_args() ; 67 // 69 70 foreach ($paths as $value) if( !unlink($path)) $ok=false; 71class.ls.sources.php https://gitlab.com/webkod3r/tripolis | PHP | 253 lines
25 $skinsPath = $skins = array(); 26 $path = rtrim($path, '/\\'); 27 29 if(file_exists($path.'/skin.css')) { 30 $skinsPath = array($path); 31 148 */ 149 public static function addDemoSlider( $path ) { 150 151 $slidersPath = $sliders = array(); 152 $path = rtrim($path, '/\\'); 153 213 * @access public 214 * @param string $path Path to the .zip file 215 * @return array Array of previously added demo slider pathsPwMedalService.php https://gitlab.com/wuhang2003/phpwind | PHP | 327 lines
58 if (!$medals[$medalId]) continue; 59 $path = $medals[$medalId]['path'] ? $attachUrl : $localUrl; 60 $_tmp = $medals[$medalId]; 60 $_tmp = $medals[$medalId]; 61 $_tmp['image'] = $path . $_tmp['image']; 62 $_tmp['icon'] = $path . $_tmp['icon']; 300 301 public function getMedalImage($path = '', $filename = '') { 302 if ($path) { 302 if ($path) { 303 return Pw::getPath($path . $filename); 304 } else {libcurl.m4 https://gitlab.com/taler/gnunet | m4 | 251 lines
80 else 81 AC_PATH_PROG([_libcurl_config],[curl-config],[],[$PATH]) 82 fiFileEngine.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 431 lines
212 //@codingStandardsIgnoreStart 213 return @unlink($path); 214 //@codingStandardsIgnoreEnd 244 245 $path = $path->getRealPath() . DS; 246 if (!in_array($path, $cleared)) { 268 269 $dir = dir($path); 270 while (($entry = $dir->read()) !== false) { 273 } 274 $filePath = $path . $entry; 275 if (!file_exists($filePath) || is_dir($filePath)) { 424 //@codingStandardsIgnoreStart 425 @unlink($path); 426 //@codingStandardsIgnoreEndhandlerservice.php https://gitlab.com/alexprowars/bitrix | PHP | 447 lines
402 * @param array $items 403 * @param string $path 404 * @return array 406 */ 407 private static function convertArrayForSaving(array $items, string $path = ''): array 408 { 415 throw new RestException( 416 ($path === '' ? '' : $path . ' ') . 'Item CODE is not specified', 417 self::ERROR_CHECK_FAILURESaveTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 389 lines
340 ->will($this->returnValue($this->session)); 341 $path = 'sales/order/view'; 342 $arguments = ['order_id' => $orderId]; 345 ->will($this->returnValue($orderId)); 346 $this->prepareRedirect($path, $arguments); 347 366 /** 367 * @param string $path 368 * @param array $arguments 369 */ 370 protected function prepareRedirect($path, array $arguments = []) 371 { 379 380 $url = $path . '/' . (!empty($arguments) ? $arguments['order_id'] : ''); 381 $this->helper->expects($this->atLeastOnce())Batch.php https://gitlab.com/yousafsyed/easternglamor | PHP | 241 lines
113 * 114 * @param string $path Path 115 * @param string $queryString Query string 121 */ 122 public function enlistOperation($path = '/', $queryString = '', $httpVerb = Zend_Http_Client::GET, $headers = array(), $forTableStorage = false, $rawData = null) 123 { 139 if (strpos($path, '/') !== 0) { 140 $path = '/' . $path; 141 } 148 // URL encoding 149 $path = Zend_Service_WindowsAzure_Storage::urlencode($path); 150 $queryString = Zend_Service_WindowsAzure_Storage::urlencode($queryString); 152 // Generate URL 153 $requestUrl = $this->getBaseUrl() . $path . $queryString; 154directory.php https://gitlab.com/alexprowars/bitrix | PHP | 294 lines
17 * Constructor. 18 * @param string $path Folder path. 19 * @param string|null $siteId Site id. 20 */ 21 public function __construct(string $path, ?string $siteId = null) 22 { 22 { 23 parent::__construct($path, $siteId); 24 }uri.php https://gitlab.com/alexprowars/bitrix | PHP | 343 lines
16 protected $pass; 17 protected $path; 18 protected $query; 159 * Sets the path. 160 * @param string $path 161 * @return $this 162 */ 163 public function setPath($path) 164 { 164 { 165 $this->path = $path; 166 return $this; 174 { 175 $pathQuery = $this->path; 176 if($this->query <> "")SetCookie.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 546 lines
96 */ 97 protected $path = null; 98 175 * @param int $expires 176 * @param string $path 177 * @param string $domain 183 */ 184 public function __construct($name = null, $value = null, $expires = null, $path = null, $domain = null, $secure = false, $httponly = false, $maxAge = null, $version = null) 185 { 211 212 if ($path) { 213 $this->setPath($path); 270 271 $path = $this->getPath(); 272 if ($path) {Route.php https://gitlab.com/yousafsyed/easternglamor | PHP | 244 lines
94 * 95 * @param string $path 96 * @return array 97 */ 98 protected function getPathParts($path) 99 { 99 { 100 return explode('/', trim($path, '/')); 101 } 111 /** @var \Magento\Framework\Webapi\Rest\Request $request */ 112 $pathParts = $this->getPathParts($request->getPathInfo()); 113 $routeParts = $this->getRouteParts(); 113 $routeParts = $this->getRouteParts(); 114 if (count($pathParts) <> count($routeParts)) { 115 return false;install_09.md https://gitlab.com/FrontISTR-Commons/FrontISTR_manual | Markdown | 279 lines
36$ mkdir -p local/bin local/lib local/include 37$ export PATH=$HOME/local/bin:$PATH 38```header.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 153 lines
1<?php 2 function activeClassNav($path=""){ 3 3 4 if(basename($_SERVER['REQUEST_URI'],'.php') == $path){ 5 echo 'active';Google_FileCache.php https://gitlab.com/hop23typhu/doan_tienganh | PHP | 137 lines
27class Google_FileCache extends Google_Cache { 28 private $path; 29view.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 279 lines
93 { 94 $path = array_reverse($viewobj->path); 95 $start = true; 97 98 foreach ($path as $element) 99 {MethodsTest.php https://gitlab.com/svillegas/magento2 | PHP | 149 lines
114 /** 115 * @param string $path 116 * @return \RegexIterator 117 */ 118 private function collectFiles($path) 119 { 122 | \FilesystemIterator::SKIP_DOTS; 123 $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, $flags)); 124 139 $ds = DIRECTORY_SEPARATOR; 140 $path = __DIR__ . $ds . str_repeat('..' . $ds, 5) . 'Magento'; 141 141 142 foreach ($this->collectFiles($path) as $file) { 143 $config = include $file->getPathname();t7407-submodule-foreach.sh https://gitlab.com/0072016/0072016-K-V- | Shell | 382 lines
75 git submodule update --init -- sub1 sub3 && 76 git submodule foreach "echo \$toplevel-\$name-\$path-\$sha1" > ../actual && 77 git config foo.bar zar && 212 cd clone2 && 213 git submodule foreach -q --recursive "echo \$name-\$path" > ../actual 214 ) &&FileLoader.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 259 lines
62 // as any environment folders with their specific configuration items. 63 $path = $this->getPath($namespace); 64 64 65 if (is_null($path)) 66 { 72 // merged on top of the main arrays to make the environments cascade. 73 $file = "{$path}/{$group}.php"; 74 82 // precedence over them if we are currently in an environments setup. 83 $file = "{$path}/{$environment}/{$group}.php"; 84 123 124 $path = $this->getPath($namespace); 125find_copyrights.pl https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk | Perl | 161 lines
19while (@ARGV) { 20 my $path = shift @ARGV; 21 push @find_args, qw'-not ( -path', "*/$path/*", qw'-prune )'PluginTask.php https://gitlab.com/digaotinfo/abear.com.br | PHP | 196 lines
34 */ 35 public $path = null; 36 88 public function bake($plugin) { 89 $pathOptions = App::path('plugins'); 90 if (count($pathOptions) > 1) { 90 if (count($pathOptions) > 1) { 91 $this->findPath($pathOptions); 92 } 156 * 157 * @param array $pathOptions 158 * @return string plugin path 161 $valid = false; 162 foreach ($pathOptions as $i => $path) { 163 if (!is_dir($path)) {helper-functions.php https://gitlab.com/ripontopu/uswo | PHP | 352 lines
14 * @since 2.0.0 15 * @param string $path Path to append 16 * @return string Directory with optional path appended 17 */ 18function cmb2_dir( $path = '' ) { 19 return CMB2_DIR . $path;Cookie.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 190 lines
24 protected $expire; 25 protected $path; 26 protected $secure; 34 * @param int|string|\DateTime $expire The time the cookie expires 35 * @param string $path The path on the server in which the cookie will be available on 36 * @param string $domain The domain that the cookie is available to 41 */ 42 public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) 43 { 67 $this->expire = $expire; 68 $this->path = empty($path) ? '/' : $path; 69 $this->secure = (bool) $secure;MerchantAccountGateway.php https://gitlab.com/yousafsyed/easternglamor | PHP | 152 lines
25 try { 26 $path = $this->_config->merchantPath() . '/merchant_accounts/' . $merchant_account_id; 27 $response = $this->_http->get($path);FormFieldRegistry.php https://gitlab.com/I-NOZex/quiz | PHP | 215 lines
38 } 39 $path = array_shift($segments); 40 if ('' === $path) { 42 } else { 43 $target = &$target[$path]; 44 } 58 while (count($segments) > 1) { 59 $path = array_shift($segments); 60 if (!array_key_exists($path, $target)) { 62 } 63 $target = &$target[$path]; 64 } 81 while ($segments) { 82 $path = array_shift($segments); 83 if (!array_key_exists($path, $target)) {ProviderRepository.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 230 lines
178 { 179 $path = $this->manifestPath.'/services.json'; 180 183 // deferred loading or should be eagerly loaded on each request to us. 184 if ($this->files->exists($path)) 185 { 185 { 186 $manifest = json_decode($this->files->get($path), true); 187 199 { 200 $path = $this->manifestPath.'/services.json'; 201 201 202 $this->files->put($path, json_encode($manifest, JSON_PRETTY_PRINT)); 203url.php https://gitlab.com/ken3/bluSky | PHP | 213 lines
109 // Chop off possible scheme, host, port, user and pass parts 110 $path = preg_replace('~^[-a-z0-9+.]++://[^/]++/?~', '', trim($uri, '/')); 111 111 112 if ( ! UTF8::is_ascii($path)) 113 { 114 // Encode all non-ASCII characters, as per RFC 1738 115 $path = preg_replace_callback('~([^/]+)~', 'URL::_rawurlencode_callback', $path); 116 } 118 // Concat the URL 119 return URL::base($protocol, $index).$path; 120 }minileven.php https://gitlab.com/sergiopellegrini/lauraleigh | PHP | 290 lines
101 if (!empty($url['path'])) { 102 $path = $url['path']; 103 } 104 else { 105 $path = '/'; 106 } 113 , time() + 300000 114 , $path 115 , $domain 126 , time() + 300000 127 , $path 128 , $domain