100+ results results for '"$PATH"' (1179 ms)
78 79 $path = new PropertyPath('axes'); 80 93 94 $path->setValue($car, $axesAfter); 95 } 103 104 $path = new PropertyPath('structure.axes'); 105 122 123 $path->setValue($car, $axesAfter); 124 } 131 132 $path = new PropertyPath('axes|foo'); 133Link.php https://gitlab.com/judielsm/Handora | PHP | 232 lines
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;Makefile https://github.com/Morgulas/gccg-dev.git | Makefile | 173 lines
14LD=g++ 15# Explicit location of sdl-config if not in $PATH. 16SDLCONFIG=sdl-configformMibs.php https://gitlab.com/florianocomercial/centreon | PHP | 149 lines
88$tpl = new Smarty(); 89$tpl = initSmartyTpl($path, $tpl); 90Logger.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 }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);viewdiff.sh https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | Shell | 183 lines
61if test "x${PIX}" = "x" ; then 62 if test -f "$path_to_this/../pix/sphflake.pix" ; then 63 echo ...found .pix image files in $path_to_this/../pix 63 echo ...found .pix image files in $path_to_this/../pix 64 PIX="$path_to_this/../pix" 65 elif test -f "$path_to_this/sphflake.pix" ; then 65 elif test -f "$path_to_this/sphflake.pix" ; then 66 echo ...found .pix image files in $path_to_this 67 PIX="$path_to_this" 67 PIX="$path_to_this" 68 elif test -f "$path_to_this/../share/brlcad/pix/sphflake.pix" ; then 69 echo ...found .pix image files in $path_to_this/../share/brlcad/pix 69 echo ...found .pix image files in $path_to_this/../share/brlcad/pix 70 PIX="$path_to_this/../share/brlcad/pix" 71 fiPage.php https://bitbucket.org/acidel/buykoala.git | PHP | 168 lines
87 88 protected function _buildMenuArray(Varien_Simplexml_Element $parent=null, $path='', $level=0) 89 { 113 $menuArr['level'] = $level; 114 $menuArr['path'] = $path . $childName; 115 116 if ($child->children) { 117 $menuArr['children'] = $this->_buildMenuArray($child->children, $path.$childName.'/', $level+1); 118 }bash_pre_rc.sh https://github.com/richlowe/illumos-gate.git | Shell | 255 lines
154 unset OPATH 155 typeset OPATH=$PATH 156 typeset PATH=$PATHZipStreamWrapper.php https://gitlab.com/team_fsn/fsn-php | 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); 91Minify.php https://bitbucket.org/rcasares/alianza.git | PHP | 236 lines
166 167 $path_info = pathinfo($file, PATHINFO_BASENAME); // Referal File and path 168 177 } 178 $contents .= "\n".'/* @fileRef '.$path_info.' */'."\n"; 179 $contents .= $this->css->min($file, $compact, $is_aggregated = TRUE); 183 unset($css_charset); 184 $contents .= "\n".'// @fileRef '.$path_info.' '."\n"; 185 $contents .= $this->js->min($file, $compact);dashboard.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 161 lines
123 124 public function paginating($mdl, $path, $urisegment, $perpage) 125 { 125 { 126 $config['base_url'] = site_url($path); 127 if(gettype($mdl) === 'integer') 140 141 public function paginating_project($mdl, $path, $urisegment, $perpage) { 142 $config['base_url'] = site_url($path);CreateCustomTargetingKeysAndValues.php https://github.com/markvince/CakePHP-GAStats-Plugin.git | PHP | 147 lines
34// DfpUser.php directly via require_once. 35// $path = '/path/to/dfp_api_php_lib/src'; 36$path = dirname(__FILE__) . '/../../../../src'; 36$path = dirname(__FILE__) . '/../../../../src'; 37set_include_path(get_include_path() . PATH_SEPARATOR . $path); 38lib-git-p4.sh https://gitlab.com/mayakarya/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}DevController.php https://gitlab.com/brucealdridge/yii2 | PHP | 367 lines
351 } 352 $path = $dir . DIRECTORY_SEPARATOR . $file; 353 if (is_dir($path) && preg_match('/^yii2-(.*)$/', $file, $matches)) {Collection.php https://github.com/rgranadino/magento-mirror.git | 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 }flexvolume_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 }'IOStat.pm https://github.com/frett/MogileFS-Server.git | Perl | 157 lines
102sub mog_sysid_map { 103 my $path = $docroot; 104 $path =~ s!/$!!; 107 my @devnum; # integer ids 108 opendir(my $d, $path) or die "Failed to open docroot: $path: $!"; 109 @devnum = map { /^dev(\d+)$/ ? $1 : () } readdir($d); 112 foreach my $mogdevid (@devnum) { 113 my ($osdevid) = (stat("$path/dev$mogdevid"))[0]; 114 $map->{$mogdevid} = $osdevid;update.php https://gitlab.com/billyprice1/ruTorrent | PHP | 196 lines
1<?php 2 $path = dirname(realpath($argv[0])); 3 if(chdir($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 doController.php https://github.com/volcanicpixels/Lava.git | PHP | 179 lines
77 function _load_extension( $extension_id ) { 78 $path = $this->_get_extension_path( $extension_id ); 79 //check whether an extension.php file exists 82 $this, 83 $path, 84 $extension_id 129 130 foreach( $plugin_extension_paths as $path ) { 131 if( file_exists( $path . '/' . $this->_get_controller_namespace() . '.yaml' ) ) { 132 133 $path_debris = explode( '/', $this->_path( $path ) ); 134 $extension_dir_name = end( $path_debris ); 149 foreach( $custom_extension_paths as $path ) { 150 $path = explode( '/', $this->_path( $path ) ); 151 $extension_id = 'custom.' . end( $path );MemberRepository.php https://gitlab.com/tetrapak07/vimm-me | PHP | 194 lines
112 $memberId = $this->getThisMember()[0]['id']; 113 $path = 'uploads/' . $memberId . $param; 114 if (!File::exists($path)) { 114 if (!File::exists($path)) { 115 File::makeDirectory($path, $mode = 0777, true, true); 116 File::makeDirectory($path . '/tmp', $mode = 0777, true, true); 117 } 118 if (!File::exists($path)) { 119 return false; 120 } else { 121 return $path; 122 } 126 $memberId = $this->getThisMember()[0]['id']; 127 $path = 'uploads/' . $memberId . $param . '/tmp'; 128 if (!File::exists($path)) {menu.php https://github.com/ot2sen/Molajo.git | PHP | 177 lines
163 // Get the new path in case the node was moved 164 $pathNodes = $this->getPath(); 165 $segments = array(); 165 $segments = array(); 166 foreach ($pathNodes as $node) { 167 // Don't include root in pathview.html.php https://github.com/projectfork/Projectfork.git | PHP | 183 lines
85 $menu = $app->getMenu()->getActive(); 86 $pathway = $app->getPathway(); 87 $title = null; 114 115 $pathway = $app->getPathWay(); 116 $pathway->addItem($title, '');TemplateNameParserTest.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 }Driver.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 229 lines
52 // check application path first 53 foreach (get_instance()->load->get_package_paths(TRUE) as $path) 54 { 60 { 61 $filepath = $path.'libraries/'.$this->lib_name.'/drivers/'.$child_class.'.php'; 62Chain.php https://github.com/orchestra-io/sample-openx.git | PHP | 168 lines
73 { 74 $path = trim($request->getPathInfo(), '/'); 75 $subPath = $path; 111 112 $request->setPathInfo($path); 113Object.php https://github.com/gryzz/crystal_magento.git | PHP | 262 lines
15 * 16 * @param string $path - path to directory 17 * @return none 18 */ 19 public function __construct($path) 20 { 20 { 21 parent::__construct($path); 22 $this->_path=$path; 22 $this->_path=$path; 23 $this->_filename=basename($path); 24 } 51 * 52 * @param array &$paths - array of paths 53 * @return nonecertificate_helper.rb https://gitlab.com/oyarzun/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 returnkvm.sh https://gitlab.com/karrei/inel-imx6-kernel | Shell | 210 lines
34KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM 35PATH=${KVM}/bin:$PATH; export PATH 36builddir="${KVM}/b1"library.php https://github.com/chalosalvador/GDS.git | PHP | 389 lines
26 * 27 * @param string $path the path where to find language files 28 * @since 11.1 29 */ 30 public function loadLanguage($path=null) 31 { 39 $lang = JFactory::getLanguage(); 40 $source = $path ? $path : JPATH_PLATFORM . "/$name"; 41 $lang->load($extension . '.sys', $source, null, false, false)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);html.php https://gitlab.com/ricardosanchez/prueba | 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 }NestedArrayAccess.php https://gitlab.com/ricardosanchez/prueba | 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);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;file.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 186 lines
144 $tmpl = JRequest::getCmd( 'tmpl' ); 145 $paths = JRequest::getVar( 'rm', array(), '', 'array' ); 146 $folder = JRequest::getVar( 'folder', '', '', 'path'); 152 if (count($paths)) { 153 foreach ($paths as $path) 154 { 154 { 155 if ($path !== JFile::makeSafe($path)) { 156 JError::raiseWarning(100, JText::_('Unable to delete:').htmlspecialchars($path, ENT_COMPAT, 'UTF-8').' '.JText::_('WARNFILENAME')); 159 160 $fullPath = JPath::clean(COM_MEDIA_BASE.DS.$folder.DS.$path); 161 if (is_file($fullPath)) {Category.php https://github.com/pabloveintimilla/core.git | PHP | 275 lines
95 */ 96 private $path; 97 228 229 public function setPath($path) 230 { 230 { 231 $this->path = $path; 232 }helper.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 367 lines
259 if (!empty($line) && strpos($line, "\t") !== false) { 260 list($path, $hash) = explode("\t", $line); 261 $hashTable[$path] = $hash; 336 * 337 * @param string $path Path to create directories 338 * 343 // Check if directory already exists 344 if (is_dir($path) || empty($path)) { 345 return true; 348 // Ensure a file does not already exist with the same name 349 $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $path); 350 356 // Crawl up the directory tree 357 $nextPath = substr($path, 0, strrpos($path, DIRECTORY_SEPARATOR)); 358UnregisteredLocalFile.php https://gitlab.com/link233/bootmw | PHP | 227 lines
40 /** @var string */ 41 protected $path; 42 55 /** 56 * @param string $path Storage path 57 * @param string $mime 59 */ 60 static function newFromPath( $path, $mime ) { 61 return new self( false, false, $path, $mime ); 79 * @param FileRepo|bool $repo 80 * @param string|bool $path 81 * @param string|bool $mime 82 */ 83 function __construct( $title = false, $repo = false, $path = false, $mime = false ) { 84 if ( !( $title && $repo ) && !$path ) {service.rb https://github.com/easybiblabs/easybib-cookbooks.git | Ruby | 230 lines
83runit_service 'env-files' do 84 env('PATH' => '$PATH:/opt/chef/embedded/bin') 85endelasticsearch.md https://gitlab.com/xhang/gitlab | Markdown | 246 lines
48 49this adds `gitlab-elasticsearch-indexer` to `$GOPATH/bin`, please make sure that is in your `$PATH`. After that GitLab will find it and you'll be able to enable it in the admin settings area. 50Cookie.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 {system.php https://bitbucket.org/asikart-extension/joomclouds-client.git | PHP | 370 lines
266 267 $path = AKHelper::_('path.getAdmin', $option) . '/includes/config.json' ; 268 return JFile::write($path, $params) ;sfAutoloadConfigHandler.class.php https://github.com/bigcalm/urlcatcher.git | PHP | 187 lines
91 $ext = isset($entry['ext']) ? $entry['ext'] : '.php'; 92 $path = $entry['path']; 93 110 111 if ($matches = glob($path)) 112 { 114 { 115 $mapping = array_merge($mapping, $this->parseFile($path, $file, isset($entry['prefix']) ? $entry['prefix'] : '')); 116 } 125 126 static public function parseFile($path, $file, $prefix) 127 { 135 // FIXME: does not work for plugins installed with a symlink 136 preg_match('~^'.str_replace('\*', '(.+?)', preg_quote(str_replace('/', DIRECTORY_SEPARATOR, $path), '~')).'~', str_replace('/', DIRECTORY_SEPARATOR, $file), $match); 137 if (isset($match[$prefix]))Fs.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. 222Config.php https://github.com/mrclay/Elgg-leaf.git | PHP | 259 lines
13 private $baseUrl = ''; 14 private $paths = []; 15 private $shim = []; 46 * @param string $name Module name 47 * @param string $path Full URL of the module 48 * @return void 49 */ 50 public function addPath($name, $path) { 51 if (preg_match("/\.js$/", $path)) { 51 if (preg_match("/\.js$/", $path)) { 52 $path = preg_replace("/\.js$/", '', $path); 53 } 73 if (preg_match("/\.js$/", $path)) { 74 $path = preg_replace("/\.js$/", '', $path); 75 }grade-lab6.sh https://github.com/sandesh247/cse506-lab.git | Shell | 253 lines
5 6TCPDUMP=`PATH=$PATH:/usr/sbin:/sbin which tcpdump` 7if [ x$TCPDUMP = x ]; thenPhpDocumentorTask.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 460 lines
307 $found = null; 308 foreach(explode(PATH_SEPARATOR, get_include_path()) as $path) { 309 $testpath = $path . DIRECTORY_SEPARATOR . 'PhpDocumentor';qqfileuploader.php https://bitbucket.org/denisOg/soft-site.git | PHP | 361 lines
83 { 84 $path_length = strlen($main_path); 85 if($main_path[$path_length-1]!='/'){ 107 $pathinfo = pathinfo($this->file->getName()); 108 $ext = $pathinfo['extension']; 109 $this->uploadDirectory = realpath('.') . $main_path; 148 149 public function ResizeImage($file_name=null,$path_in=null,$width=null,$height=null,$path_out=null,$type_resize = 'inside') 150 { 152 153 if((!$file_name)||(!$path_in)||(!is_dir(realpath('.').$path_in)) ||(!$path_out) ||(!is_dir(realpath('.').$path_out))) return FALSE; 154 $path_in_file = realpath('.').$path_in.$file_name; 156 $path_out_file = realpath('.').$path_out.$pref.'_'.$file_name; 157 $this->imageResize($path_in_file,$path_out_file, $width, $height, TRUE,$type_resize); 158 return $pref.'_'.$file_name;Finder.php https://github.com/premiumcombination/nts.git | PHP | 420 lines
33 /** @var array */ 34 private $paths = array(); 35 127 */ 128 public function in($path) 129 { 129 { 130 if (!is_array($path)) { 131 $path = func_get_args(); 133 $this->maxDepth = 0; 134 return $this->from($path); 135 } 143 */ 144 public function from($path) 145 {HttpRequest.pm https://github.com/yizumi/zbserver.git | Perl | 212 lines
8 my $cache_subscription_header = "Content-Type: application/json\nCache-Control: non-cache\nProgma: no-cache\n\n"; 9 my $path = "./htdocs"; 10 25 { 26 open FH, "< $path/SubscriptionHeader.html"; 27 while( <FH> ) { 172 my( $ext ) = $file =~ /\.([A-Z0-9]+)$/i; 173 my $size = -s "$path/$file"; 174 my $data = "HTTP/".$self->{http_version}." 200 OK\nContent-Type: ". 175 $MIME->{$ext}."\nContent-Length: $size\nCache-Control: non-cache\nProgma: no-chace\nExpires: Thu, 01 Dec 1994 16:00:00 GMT\n\n"; 176 open FH, "< $path/$file"; 177 while( <FH> ) {Assets.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 414 lines
114 'page' => 'assets', 115 'type' => $path['type'], 116 'action' => 'design', 128 public function history( $path ) { 129 $asset = DataCenterDB::getAsset( $path['type'], $path['id'] ); 130 return DataCenterUI::renderLayout( 186 // Gets asset from database 187 $asset = DataCenterDB::getAsset( $path['type'], $path['id'] ); 188 // Gets location asset is in from database 251 252 public function design( $path ) { 253 $options = DataCenterViewModels::$options[$path['type']]; 327 // Gets asset from database 328 $asset = DataCenterDB::getAsset( $path['type'], $path['id'] ); 329 // Sets 'do' specific parametersLoader.php https://gitlab.com/florianocomercial/centreon | PHP | 321 lines
181 182 foreach (self::explodeIncludePath() as $path) { 183 if ($path == '.') { 188 } 189 $file = $path . '/' . $filename; 190 if (is_readable($file)) { 202 * 203 * @param string|null $path 204 * @return array 215 // intelligent in the approach. 216 $paths = preg_split('#:(?!//)#', $path); 217 } else { 217 } else { 218 $paths = explode(PATH_SEPARATOR, $path); 219 }class.session.php https://github.com/publicFunction/108-Studios-CMS.git | PHP | 229 lines
118 { 119 $path=$this->dir.$file; 120 $output .= $path ; 121 //check if this is a expired session file 122 if(filemtime($path) + $this->lifeTime < time()) 123 { 123 { 124 if($fo->delete($path)) 125 { 156 { 157 $path=CONFIG_SYS_ROOT_PATH.$file; 158 $output .= $path ; 159 //check if this is a expired session file 160 if(filemtime($path) + $this->lifeTime < time()) 161 {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 }valve_perl_helpers.pl https://github.com/SwissCheeseKnife/Protocol-7.git | Perl | 543 lines
2{ 3 my( $path ) = shift; 4 $path =~ s,\\,/,g; 4 $path =~ s,\\,/,g; 5 return $path; 6} 41 { 42 $curpath .= "/" . $path[$i]; 43 my( $dir ) = $in . $curpath;S3.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | 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 {PersonalInfoTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 300 lines
25 */ 26 protected $pathToDefaultTimezone = 'path/to/default/timezone'; 27Common.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 354 lines
19# 20# param [string] $path: The path to the transript file to read 21################################### 23{ 24 param([string] $path) 25 return Get-Content $path | 152# 153# param [string] $path: The relative path to the file 154# 158 param([string] $path) 159 $pathObj = Get-Item $path 160 return ($pathObj.FullName)base_admin.class.php https://bitbucket.org/rchlmrtn/chiari.git | PHP | 389 lines
161 if(!empty(self::$master_view) && !isset(self::$tempVars["is_masterView"]) ){ 162 $masterViewFilepath = self::$path_views.self::$master_view.".php"; 163 UniteFunctionsRev::validateFilepath($masterViewFilepath,"Master View"); 168 else{ //simple require the view file. 169 $viewFilepath = self::$path_views.$view.".php"; 170 187 188 $pathTemplate = self::$path_templates.$templateName.".php"; 189 UniteFunctionsRev::validateFilepath($pathTemplate,"Template"); 190 191 return($pathTemplate); 192 } 200 try{ 201 require self::$path_plugin."settings/$settingsFile.php"; 202 }catch (Exception $e){config.php https://gitlab.com/e0/mautic | 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}collectConstants.pl https://github.com/drbowen/openemr.git | Perl | 422 lines
48my $removeConstantsFile = "manuallyRemovedConstants.txt"; 49my $pathFilterFile = "filterDirectories.txt"; 50my $filenameOut = "constants.txt"; 119# place path filter file into array and process them 120open(PATHFILTERFILE, "<$pathFilterFile") or die "unable to open file"; 121@pathFilters = <PATHFILTERFILE>; 345sub recurse($) { 346 my($path) = @_; 347 348 ## append a trailing / if it's not there 349 $path .= '/' if($path !~ /\/$/); 350 351 ## loop through the files contained in the directory 352 for my $eachFile (glob($path.'*')) { 353Util.php https://github.com/silexlabs/amfphp-2.0.git | PHP | 166 lines
133 // we build the new path to delete 134 $path = $directory . '/' . $item; 135 136 // if the new path is a directory 137 if (is_dir($path)) { 138 // we call this function with the new path 138 // we call this function with the new path 139 self::recursive_remove_directory($path); 140 143 // we remove the file 144 unlink($path); 145 }eva_habillage_sauvegarde.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 186 lines
9 if (defined("_DIR_PLUGIN_EVASQUELETTES")) { 10 $path = _DIR_PLUGIN_EVASQUELETTES."images/vignettes_styles/"; 11 $path_evastyle = _DIR_PLUGIN_EVASQUELETTES."eva_styles/"; 13 else { 14 $path = "../squelettes/images/vignettes_styles/"; 15 $path_evastyle = "../squelettes/eva_styles/";Filesystem.php https://github.com/vivid-planet/library.git | PHP | 399 lines
133 134 foreach ($paths as $path) { 135 $fullpath = $path . DIRECTORY_SEPARATOR . $file; 281 282 foreach ($paths as $path) { 283 $_path = $path . DIRECTORY_SEPARATOR . $binary; 356 for ($i = 0; $i < $max; $i++) { 357 $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]); 358 370 !isset($paths[$i+1][0]) || 371 $paths[$i][0] != $paths[$i+1][0]) { 372 $done = TRUE; 377 if (!$done) { 378 $commonPath .= $paths[0][0] . (($paths[0][0] != DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : ''); 379FileEngine.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 419 lines
243 244 $path = $path->getRealPath() . DS; 245 if (!in_array($path, $cleared)) { 263 264 if (!is_dir($path)) { 265 return; 267 268 $dir = dir($path); 269 while (($entry = $dir->read()) !== false) { 272 } 273 $filePath = $path . $entry; 274 if (!file_exists($filePath) || is_dir($filePath)) { 276 } 277 $file = new SplFileObject($path . $entry, 'r'); 278new-features-in-cakephp-2-0.rst https://github.com/steinkel/docs.git | ReStructuredText | 325 lines
116 unset($params['subdomain']); 117 $path = parent::match($params); 118 if ($subdomain) { 118 if ($subdomain) { 119 $path = 'http://' . $subdomain . '.localhost' . $path; 120 } 120 } 121 return $path; 122 }string.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 298 lines
40 */ 41 protected $path; 42 99 * 100 * @param string $path The stream path. 101 * @param string $mode Not used. 108 */ 109 public function stream_open($path, $mode, $options, &$opened_path) 110 { 110 { 111 $this->currentString = &JStringController::getRef(str_replace('string://', '', $path)); 112 116 $this->pos = 0; 117 $this->stat = $this->url_stat($path, 0); 118converterhelper_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 145 lines
50 $descriptions = array(); 51 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE1, $descriptions); 52 $this->assertEquals($path, array()); 68 ); 69 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE1, $descriptions); 70 $this->assertEquals($path, array()); 71 72 $path = testable_convert_helper::choose_conversion_path('some_other_custom_format', $descriptions); 73 $this->assertEquals($path, array()); 75 // single step conversion 76 $path = testable_convert_helper::choose_conversion_path('yet_another_crazy_custom_format', $descriptions); 77 $this->assertEquals($path, array('converter')); 79 // no conversion needed - this is supposed to be detected by the caller 80 $path = testable_convert_helper::choose_conversion_path(backup::FORMAT_MOODLE, $descriptions); 81 $this->assertEquals($path, array());InstallController.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; 46template.php https://github.com/roblib/cairntheme.git | PHP | 156 lines
68 */ 69function unbsj_theme(&$existing, $type, $theme, $path) { 70 $hooks = cairntheme_theme($existing, $type, $theme, $path);template.php https://github.com/roblib/cairntheme.git | PHP | 156 lines
68 */ 69function nscad_theme(&$existing, $type, $theme, $path) { 70 $hooks = cairntheme_theme($existing, $type, $theme, $path);template.php https://github.com/roblib/cairntheme.git | PHP | 156 lines
68 */ 69function cairn_theme(&$existing, $type, $theme, $path) { 70 $hooks = cairntheme_theme($existing, $type, $theme, $path);cuztom.class.php https://bitbucket.org/yoan_marchal/wordpress-cuztom-helper.git | PHP | 274 lines
232 * 233 * @param string $path 234 * @return string 239 */ 240 function _determine_cuztom_url( $path = __FILE__ ) 241 { 247 { 248 $path = dirname( $path ); 249 $path = str_replace( '\\', '/', $path ); 249 $path = str_replace( '\\', '/', $path ); 250 $explode_path = explode( '/', $path ); 251 262 { 263 $path = $path . '/' . $dir; 264 }quotation_ticket.blade.php https://gitlab.com/laher01/factu40 | PHP | 286 lines
4 $invoice = $document->invoice; 5 //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css'); 6 $accounts = \App\Models\Tenant\BankAccount::all(); 13 {{--<title>{{ $tittle }}</title>--}} 14 {{--<link href="{{ $path_style }}" rel="stylesheet" />--}} 15</head>Annotation.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 247 lines
175 // path 176 if ($pathAnnotation = $this->reader->getPropertyAnnotation($property, self::PATH)) { 177 $field = $property->getName(); 183 } 184 if (strlen($pathAnnotation->separator) > 1) { 185 throw new InvalidMappingException("Tree Path field - [{$field}] Separator {$pathAnnotation->separator} is invalid. It must be only one character long."); 187 $config['path'] = $field; 188 $config['path_separator'] = $pathAnnotation->separator; 189 $config['path_append_id'] = $pathAnnotation->appendId; 189 $config['path_append_id'] = $pathAnnotation->appendId; 190 $config['path_starts_with_separator'] = $pathAnnotation->startsWithSeparator; 191 $config['path_ends_with_separator'] = $pathAnnotation->endsWithSeparator;Menu.php https://bitbucket.org/kdms/sh-magento.git | PHP | 310 lines
125 * @param Varien_Simplexml_Element $parent 126 * @param string $path 127 * @param int $level 129 */ 130 protected function _buildMenuArray(Varien_Simplexml_Element $parent=null, $path='', $level=0) 131 { 142 143 $aclResource = 'admin/' . ($child->resource ? (string)$child->resource : $path . $childName); 144 if (!$this->_checkAcl($aclResource)) { 164 165 $menuArr['active'] = ($this->getActive()==$path.$childName) 166 || (strpos($this->getActive(), $path.$childName.'/')===0); 170 if ($child->children) { 171 $menuArr['children'] = $this->_buildMenuArray($child->children, $path.$childName.'/', $level+1); 172 }timeserenu_nord.pl https://gitlab.com/gpskings/gpslibrary | Perl | 348 lines
30my ($year,$month,$day, $doy,$long,$lat,$height,$station,$N,$sigmamed,$ressq,$oversigma,$sc,$unctemp,$ind); 31my ($filbase, $path,$suff,$psfileb,$psend,$psfile ); 32my ($start, $stop,$pdata,$coeff, $coeffuns, $label,$title,$nuvvel); 46 47 ($filbase, $path,$suff ) = &fileparse($ARG,qw{enu.disp}); 48 $title = $filbase; #Station nameFtp.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 {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'; 63scaffold.php https://github.com/balkin/kohana-scaffold.git | PHP | 374 lines
57 $directory_name = "model" . DIRECTORY_SEPARATOR . "scaffold" . DIRECTORY_SEPARATOR; 58 $path = APPPATH . 'classes' . DIRECTORY_SEPARATOR . $directory_name; 59 $file = $path . $class_name . EXT; 110 111 if (!is_dir($path)) { 112 mkdir($path, 0777, TRUE); 144 145 $path = APPPATH . 'classes' . DIRECTORY_SEPARATOR . "model" . DIRECTORY_SEPARATOR . "scaffold" . DIRECTORY_SEPARATOR; 146 $files = glob($path . "*.php"); 148 foreach ($files as $fname) { 149 $what = str_replace(array($path, ".php"), "", $fname); 150 if (!in_array($what, $items)) { 167 protected function remove_models() { 168 $path = APPPATH . 'classes' . DIRECTORY_SEPARATOR . "model" . DIRECTORY_SEPARATOR . "scaffold" . DIRECTORY_SEPARATOR; 169 $count = 0;category.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 196 lines
79 if (isset($this->request->get['path'])) { 80 $path = (int)$this->request->get['path']; 81 } else { 81 } else { 82 $path = 0; 83 } 84 $data['heading_title'] = 'PRODUCTS'; 85 $data['path'] = $path; 86 $data['name'] = 'All Products'; 86 $data['name'] = 'All Products'; 87 $data['href'] = $this->url->link('product/category', 'path=' . $path); 88 98 if (isset($this->request->get['path'])) { 99 $path = (int)$this->request->get['path']; 100 } else {UrlGenerator.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 496 lines
86 * 87 * @param string $path 88 * @param mixed $extra 96 // convenient since developers do not always have to check if it's valid. 97 if ($this->isValidUrl($path)) return $path; 98 133 { 134 if ($this->isValidUrl($path)) return $path; 135 248 * 249 * @param string $path 250 * @param array $parameters 471 { 472 return trim($root.'/'.trim($path.'/'.$tail, '/'), '/'); 473 }find_copyrights.pl https://gitlab.com/brian0218/rk3288_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 )'filestore_funcs.php https://github.com/suhaspnehete/EngineY.git | PHP | 362 lines
75 if ($file != ".." && $file != ".") { 76 $path = $dir."/".$file; 77 $fileObj = generateFileObj($file, $dir, $rootDir,$expand,$showHiddenFiles); 77 $fileObj = generateFileObj($file, $dir, $rootDir,$expand,$showHiddenFiles); 78 if (is_dir($rootDir."/".$path)) { 79 if ($recurse) { 80 if (!showHiddenFiles || $fileObj["name"][0] != '.') { 81 $subfiles = getAllfiles($path,$rootDir,$recurse,$dirsOnly,$expand,$showHiddenFiles); 82 $length = count($subfiles); 122 // Function to generate an object representation of a disk file. 123 $path = $file; 124 if ($dir != "." && $dir != "./") { 146 $path = substr($resolvedFullPath, (strlen($rootPath) + 1), strlen($resolvedFullPath)); 147 $path = "./".str_replace("\\","/",$path); 148 }template.php https://github.com/discoverygarden/coalliance-theme.git | PHP | 156 lines
68 */ 69function pjcpl_theme(&$existing, $type, $theme, $path) { 70 $hooks = coalliance_theme($existing, $type, $theme, $path);template.php https://github.com/discoverygarden/coalliance-theme.git | PHP | 156 lines
68 */ 69function pdacc_theme(&$existing, $type, $theme, $path) { 70 $hooks = coalliance_theme($existing, $type, $theme, $path);template.php https://github.com/discoverygarden/coalliance-theme.git | PHP | 156 lines
68 */ 69function mscdr_theme(&$existing, $type, $theme, $path) { 70 $hooks = coalliance_theme($existing, $type, $theme, $path);template.php https://github.com/discoverygarden/coalliance-theme.git | PHP | 156 lines
68 */ 69function gopig_theme(&$existing, $type, $theme, $path) { 70 $hooks = coalliance_theme($existing, $type, $theme, $path);template.php https://github.com/discoverygarden/coalliance-theme.git | PHP | 156 lines
68 */ 69function cdpsm_theme(&$existing, $type, $theme, $path) { 70 $hooks = coalliance_theme($existing, $type, $theme, $path);getpathp.c https://bitbucket.org/kbengine/kbengine.git | C | 418 lines
213 /* If there is no slash in the argv0 path, then we have to 214 * assume python is on the user's $PATH, since there's no 215 * other way to find a directory to start the search from. If 215 * other way to find a directory to start the search from. If 216 * $PATH isn't exported, you lose. 217 */CookieJar.php https://github.com/sharpmachine/wakeupmedia.com.git | 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 arrayCss2Xpath.php https://bitbucket.org/timgws/full-text-rss.git | 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 }squeezebox_.in https://bitbucket.org/schatt/munin.git | Autoconf | 213 lines
21'squeezebox_host' and 'squeezebox_port' to connect. Also, if your 22nc(1) binary is not called "nc", or not the one in $PATH, please define it 23in the plugin's environment file (@@CONFDIR@@/squeezebox or similar).ConfigurationTest.php https://bitbucket.org/aagraz/doctrine2.git | PHP | 288 lines
64 { 65 $paths = array(__DIR__); 66 $reflectionClass = new ReflectionClass(__NAMESPACE__ . '\ConfigurationTestAnnotationReaderChecker'); 67 68 $annotationDriver = $this->configuration->newDefaultAnnotationDriver($paths, false); 69 $reader = $annotationDriver->getReader(); 75 76 $annotationDriver = $this->configuration->newDefaultAnnotationDriver($paths); 77 $reader = $annotationDriver->getReader();file.php https://gitlab.com/ppapadatis/Videolearn | PHP | 302 lines
285 286 $pathSource = hwdMediaShareFiles::getPath($foldersSource, $filenameSource, $extSource); 287 288 jimport( 'joomla.filesystem.file' ); 289 if (JFile::exists($pathSource)) JFile::delete($pathSource); 290 }ImageEditor.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 446 lines
241 242 $path = Files::fixPath($pathinfo['dirname']); 243 $file = Files::escape($pathinfo['basename']); 280 281 $path = substr($pathA, 0, $index); 282 Return Files::fixPath($path).$file; 320 $pathinfo = pathinfo($file); 321 $path = Files::fixPath($pathinfo['dirname']); 322 $imgType = $this->getImageType($file); 331 332 $this->cleanUp($path,$pathinfo['basename']); 333 343 { 344 $path = Files::fixPath($path); 345menutypes.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 381 lines
187 // Get the views for this component. 188 $path = JPATH_SITE.'/components/'.$component.'/views'; 189 189 190 if (JFolder::exists($path)) { 191 $views = JFolder::folders($path); 201 // Determine if a metadata file exists for the view. 202 $file = $path.'/'.$view.'/metadata.xml'; 203 274 // Get the layouts from the view folder. 275 $path = JPATH_SITE.'/components/'.$component.'/views/'.$view.'/tmpl'; 276 if (JFolder::exists($path)) { 276 if (JFolder::exists($path)) { 277 $layouts = array_merge($layouts, JFolder::files($path, '.xml$', false, true)); 278 }CookieComponent.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 533 lines
70 */ 71 public $path = '/'; 72modules.php https://github.com/ot2sen/Molajo.git | PHP | 191 lines
158 $extension = $module->value; 159 $path = $applicationId ? JPATH_ADMINISTRATOR : JPATH_SITE; 160 $source = $path . "/modules/$extension"; 160 $source = $path . "/modules/$extension"; 161 $lang->load("$extension.sys", $path, null, false, false) 162 || $lang->load("$extension.sys", $source, null, false, false) 162 || $lang->load("$extension.sys", $source, null, false, false) 163 || $lang->load("$extension.sys", $path, $lang->getDefault(), false, false) 164 || $lang->load("$extension.sys", $source, $lang->getDefault(), false, false);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);