PageRenderTime 1312ms queryTime 43ms sortTime 72ms getByIdsTime 1045ms findMatchingLines 68ms

100+ results results for '$PATH repo:xamedow/CMS 2.0' (1312 ms)

Not the results you expected?
formMibs.php https://gitlab.com/florianocomercial/centreon | PHP | 149 lines
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
6 *
                    
88$tpl = new Smarty();
                    
89$tpl = initSmartyTpl($path, $tpl);
                    
90
                    
                
CreateCustomTargetingKeysAndValues.php https://github.com/markvince/CakePHP-GAStats-Plugin.git | PHP | 147 lines
                    
11 *
                    
12 * Licensed under the Apache License, Version 2.0 (the "License");
                    
13 * you may not use this file except in compliance with the License.
                    
15 *
                    
16 *     http://www.apache.org/licenses/LICENSE-2.0
                    
17 *
                    
27 * @copyright  2013, Google Inc. All Rights Reserved.
                    
28 * @license    http://www.apache.org/licenses/LICENSE-2.0 Apache License,
                    
29 *             Version 2.0
                    
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);
                    
38
                    
                
helper.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 367 lines
                    
7 * @copyright   Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
                    
8 * @license     GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
                    
9 * 
                    
259			if (!empty($line) && strpos($line, "\t") !== false) {
                    
260				list($path, $hash) = explode("\t", $line);
                    
261				$hashTable[$path] = $hash;
                    
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));
                    
358
                    
                
DevController.php https://gitlab.com/brucealdridge/yii2 | PHP | 367 lines
                    
22 * @author Carsten Brandt <mail@cebe.cc>
                    
23 * @since 2.0
                    
24 */
                    
351            }
                    
352            $path = $dir . DIRECTORY_SEPARATOR . $file;
                    
353            if (is_dir($path) && preg_match('/^yii2-(.*)$/', $file, $matches)) {
                    
                
flexvolume_test.go https://gitlab.com/CORP-RESELLER/kubernetes | Go | 417 lines
                    
3
                    
4Licensed under the Apache License, Version 2.0 (the "License");
                    
5you may not use this file except in compliance with the License.
                    
7
                    
8    http://www.apache.org/licenses/LICENSE-2.0
                    
9
                    
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
                    
                
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 do
                    
                
certificate_helper.rb https://gitlab.com/oyarzun/omnibus-gitlab | Ruby | 172 lines
                    
2# Copyright:: Copyright (c) 2016 GitLab Inc.
                    
3# License:: Apache License, Version 2.0
                    
4#
                    
4#
                    
5# Licensed under the Apache License, Version 2.0 (the "License");
                    
6# you may not use this file except in compliance with the License.
                    
8#
                    
9#     http://www.apache.org/licenses/LICENSE-2.0
                    
10#
                    
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      return
                    
                
kvm.sh https://gitlab.com/karrei/inel-imx6-kernel | Shell | 210 lines
                    
23# along with this program; if not, you can access it online at
                    
24# http://www.gnu.org/licenses/gpl-2.0.html.
                    
25#
                    
34KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
                    
35PATH=${KVM}/bin:$PATH; export PATH
                    
36builddir="${KVM}/b1"
                    
                
ups.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 187 lines
                    
8 * @copyright 	(C) 2010- 'corePHP' LLC.
                    
9 * @license 	GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
                    
10 *
                    
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;
                    
                
Common.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 354 lines
                    
3# Copyright Microsoft Corporation
                    
4# Licensed under the Apache License, Version 2.0 (the "License");
                    
5# you may not use this file except in compliance with the License.
                    
6# You may obtain a copy of the License at
                    
7# http://www.apache.org/licenses/LICENSE-2.0
                    
8# Unless required by applicable law or agreed to in writing, software
                    
19#
                    
20#    param [string] $path: The path to the transript file to read
                    
21###################################
                    
23{
                    
24   param([string] $path)
                    
25   return Get-Content $path |
                    
158    param([string] $path)
                    
159    $pathObj = Get-Item $path
                    
160    return ($pathObj.FullName)
                    
                
service.rb https://github.com/easybiblabs/easybib-cookbooks.git | Ruby | 230 lines
                    
6#
                    
7# Licensed under the Apache License, Version 2.0 (the "License");
                    
8# you may not use this file except in compliance with the License.
                    
10#
                    
11#     http://www.apache.org/licenses/LICENSE-2.0
                    
12#
                    
83runit_service 'env-files' do
                    
84  env('PATH' => '$PATH:/opt/chef/embedded/bin')
                    
85end
                    
                
elasticsearch.md https://gitlab.com/xhang/gitlab | Markdown | 246 lines
                    
8
                    
9In June 2019, Mario de la Ossa hosted a [Deep Dive] on GitLab's [Elasticsearch integration] to share his domain specific knowledge with anyone who may work in this part of the code base in the future. You can find the [recording on YouTube], and the slides on [Google Slides] and in [PDF]. Everything covered in this deep dive was accurate as of GitLab 12.0, and while specific details may have changed since then, it should still serve as a good introduction.
                    
10
                    
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.
                    
50
                    
                
FileEngine.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 419 lines
                    
210		}
                    
211		$path = $this->_File->getRealPath();
                    
212		$this->_File = null;
                    
238		$cleared = array();
                    
239		foreach ($contents as $path) {
                    
240			if ($path->isFile()) {
                    
243
                    
244			$path = $path->getRealPath() . DS;
                    
245			if (!in_array($path, $cleared)) {
                    
260 */
                    
261	protected function _clearDirectory($path, $now, $threshold) {
                    
262		$prefixLength = strlen($this->settings['prefix']);
                    
267
                    
268		$dir = dir($path);
                    
269		while (($entry = $dir->read()) !== false) {
                    
                
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
                    
41	/**
                    
42	 * Full path to old config file (2.0)
                    
43	 * @var string $path_config_old
                    
44	 */
                    
45	protected $path_config_old;
                    
46
                    
107		if(!defined('PSM_DB_PREFIX')) {
                    
108			// first detect "old" config file (2.0)
                    
109			if(file_exists($this->path_config_old)) {
                    
                
CookieComponent.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 533 lines
                    
16 * @package       Cake.Controller.Component
                    
17 * @since         CakePHP(tm) v 1.2.0.4213
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
30 * @package       Cake.Controller.Component
                    
31 * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html
                    
32 *
                    
70 */
                    
71	public $path = '/';
                    
72
                    
214 * @return void
                    
215 * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::write
                    
216 */
                    
255 * @return string or null, value for specified key
                    
256 * @link http://book.cakephp.org/2.0/en/core-libraries/components/cookie.html#CookieComponent::read
                    
257 */
                    
                
gantryformhelper.class.php https://gitlab.com/ricardosanchez/prueba | PHP | 309 lines
                    
144				// Derive the new path.
                    
145				$path = $paths[$i] . '/' . strtolower(substr($type, 0, $pos));
                    
146
                    
221		foreach ($new as $path) {
                    
222			if (!in_array($path, $paths)) {
                    
223				array_unshift($paths, trim($path));
                    
243		// start looping through the path set
                    
244		foreach ($paths as $path) {
                    
245			// get the path to the file
                    
251				// traversal attempts on the local file system.
                    
252				$path     = realpath($path); // needed for substr() later
                    
253				$fullname = realpath($fullname);
                    
259			// traversal attempts.
                    
260			if (file_exists($fullname) && substr($fullname, 0, strlen($path)) == $path) {
                    
261				return $fullname;
                    
                
converterhelper_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());
                    
                
new-features-in-cakephp-2-0.rst https://github.com/steinkel/docs.git | ReStructuredText | 325 lines
                    
79
                    
80:php:class:`CakeRequest` est une nouvelle classe introduite dans 2.0. Elle
                    
81encapsule les méthodes d'introspection de requêtes utilisées couramment et
                    
87
                    
88:php:class:`CakeResponse` est une nouvelle classe introduite dans 2.0. Elle
                    
89encapsule les méthodes et propriétés utilisées couramment dans la réponse HTTP
                    
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        }
                    
                
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) {
                    
16    } elseif (strpos($namespace, 'MauticAddon\\') !== false) {
                    
17        // @deprecated 1.1.4; to be removed in 2.0; BC support for MauticAddon
                    
18        $isPlugin   = true;
                    
23        $bundleBase = str_replace('Mautic', '', $bundle);
                    
24        $relative   = $paths['bundles'] . '/' . $bundleBase;
                    
25    }
                    
28        $baseNamespace = preg_replace('#\\\[^\\\]*$#', '', $namespace);
                    
29        $directory     = $paths['root'].'/'.$relative;
                    
30
                    
                
ConventionalLoader.php https://bitbucket.org/ajalovec/knpradbundle.git | PHP | 416 lines
                    
34    {
                    
35        $path   = $this->locator->locate($file);
                    
36        $config = $this->yaml->parse($path);
                    
46            throw new \InvalidArgumentException(sprintf(
                    
47                'The file "%s" must contain a YAML array.', $path
                    
48            ));
                    
66            if (1 == count($parts)) {
                    
67                $this->parseClassical($collection, $shortname, $mapping, $path, $file);
                    
68
                    
125    protected function parseClassical(RouteCollection $collection, $shortname,
                    
126                                      array $mapping, $path, $file)
                    
127    {
                    
133                        'The file "%s" cannot define both a "path" and a "pattern" attribute. Use only "path".',
                    
134                        $path
                    
135                    ));
                    
                
md_exporter.php https://github.com/VSEphpbb/phpbb.git | PHP | 565 lines
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
8*
                    
21	/** @var string Path where we look for files*/
                    
22	protected $path;
                    
23
                    
                
lib.php https://github.com/epsd/moodle.git | PHP | 347 lines
                    
19 *
                    
20 * @since 2.0
                    
21 * @package    repository_flickr
                    
30 *
                    
31 * @since 2.0
                    
32 * @package    repository_flickr
                    
221     *
                    
222     * @param string $path
                    
223     * @param int $page
                    
225     */
                    
226    public function get_listing($path = '', $page = '') {
                    
227        return $this->search('', $page);
                    
                
CMB2_Utils.php https://gitlab.com/hunt9310/ras | PHP | 188 lines
                    
9 * @author    WebDevStudios
                    
10 * @license   GPL-2.0+
                    
11 * @link      http://webdevstudios.com
                    
18	 * @var   string
                    
19	 * @since 2.0.0
                    
20	 */
                    
102	 * Returns a timestamp, first checking if value already is a timestamp.
                    
103	 * @since  2.0.0
                    
104	 * @param  string|int $string Possible timestamp string
                    
118	 * Determine if a value is a valid timestamp
                    
119	 * @since  2.0.0
                    
120	 * @param  mixed  $timestamp Value to check
                    
130	 * Checks if a value is 'empty'. Still accepts 0.
                    
131	 * @since  2.0.0
                    
132	 * @param  mixed $value Value to check
                    
                
editor.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 459 lines
                    
5 * @copyright 	Copyright (c) 2009-2012 Ryan Demmer. All rights reserved.
                    
6 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
                    
7 * JCE is free software. This version may have been modified pursuant
                    
344
                    
345                if ($version == '2.0') {
                    
346                    return true;
                    
357     * @param string $prefix Language prefix
                    
358     * @param object $path[optional] Base path
                    
359     */
                    
359     */
                    
360    protected function loadLanguage($prefix, $path = JPATH_SITE) {
                    
361        $language = JFactory::getLanguage();
                    
363
                    
364        $language->load($prefix, $path, $tag, true);
                    
365    }
                    
                
PostgreSqlSchemaManager.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 410 lines
                    
29 * @author Benjamin Eberlei <kontakt@beberlei.de>
                    
30 * @since  2.0
                    
31 */
                    
95        $names = $this->getSchemaNames();
                    
96        $paths = $this->getSchemaSearchPaths();
                    
97
                    
97
                    
98        $this->existingSchemaPaths = array_filter($paths, function ($v) use ($names) {
                    
99            return in_array($v, $names);
                    
                
BaseStringHelper.php https://gitlab.com/brucealdridge/yii2 | PHP | 271 lines
                    
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) {
                    
71
                    
72        return $path;
                    
73    }
                    
79     *
                    
80     * @param string $path A path string.
                    
81     * @return string the parent directory's path.
                    
                
init.php https://github.com/yoniweb/forkcms-Golden-Gate.git | PHP | 459 lines
                    
10 * @author		Davy Hellemans <davy@netlash.com>
                    
11 * @since		2.0
                    
12 */
                    
107		// init var
                    
108		$pathToLoad = '';
                    
109
                    
120		// is it an exception
                    
121		if(isset($exceptions[$className])) $pathToLoad = $exceptions[$className];
                    
122
                    
126		// file check in core
                    
127		if($pathToLoad != '' && SpoonFile::exists($pathToLoad)) require_once $pathToLoad;
                    
128
                    
164						// if it exists, load it!
                    
165						if($pathToLoad != '' && SpoonFile::exists($pathToLoad))
                    
166						{
                    
                
schema.php https://github.com/raulpa/cakephp.git | PHP | 503 lines
                    
19 * @subpackage    cake.cake.console.libs
                    
20 * @since         CakePHP(tm) v 1.2.0.5550
                    
21 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
59	function startup() {
                    
60		$name = $file = $path = $connection = $plugin = null;
                    
61		if (!empty($this->params['name'])) {
                    
84		if (!empty($this->params['path'])) {
                    
85			$path = $this->params['path'];
                    
86		}
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 201 lines
                    
20 *
                    
21 * @since 2.0
                    
22 * @package    repository_wikimedia
                    
32 *
                    
33 * @since 2.0
                    
34 * @package    repository_wikimedia
                    
94
                    
95    public function get_listing($path = '', $page = '') {
                    
96        $client = new wikimedia;
                    
                
helper-functions.php https://gitlab.com/almoore1/buy-button-wordpress | PHP | 352 lines
                    
7 * @author    WebDevStudios
                    
8 * @license   GPL-2.0+
                    
9 * @link      http://webdevstudios.com
                    
13 * Helper function to provide directory path to CMB2
                    
14 * @since  2.0.0
                    
15 * @param  string  $path Path to append
                    
17 */
                    
18function cmb2_dir( $path = '' ) {
                    
19	return CMB2_DIR . $path;
                    
36 * Get instance of the CMB2_Utils class
                    
37 * @since  2.0.0
                    
38 * @return CMB2_Utils object CMB2 utilities class
                    
47 * Get instance of the CMB2_Ajax class
                    
48 * @since  2.0.0
                    
49 * @return CMB2_Ajax object CMB2 utilities class
                    
                
configuration.php https://github.com/brettjamin/appleseed.git | PHP | 456 lines
                    
7 * @link         http://opensource.appleseedproject.org
                    
8 * @license      GNU General Public License version 2.0 (See LICENSE.txt)
                    
9 */
                    
253			if ( is_file ( $filename ) ) {
                    
254				$path[$component][] = $filename;
                    
255			}
                    
259				if ( is_file ( $filename ) ) {
                    
260					$path[$component][] = $filename;
                    
261				}
                    
264			// No configuration files found, continue loop
                    
265			if ( !isset ( $path[$component] ) ) continue;
                    
266			
                    
331		
                    
332		foreach ( $path as $hook=> $paths ) {
                    
333			
                    
                
filesystem.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 293 lines
                    
5 * @copyright 	Copyright (c) 2009-2013 Ryan Demmer. All rights reserved.
                    
6 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
                    
7 * JCE is free software. This version may have been modified pursuant
                    
148
                    
149    public function toAbsolute($path) {
                    
150        return $path;
                    
152
                    
153    public function toRelative($path) {
                    
154        return $path;
                    
156
                    
157    public function getFiles($path, $filter) {
                    
158        return array();
                    
160
                    
161    public function getFolders($path) {
                    
162        return array();
                    
                
BiddingStrategySimulationServiceGapicClient.php https://gitlab.com/remyvianne/krowkaramel | PHP | 300 lines
                    
4 *
                    
5 * Licensed under the Apache License, Version 2.0 (the "License");
                    
6 * you may not use this file except in compliance with the License.
                    
8 *
                    
9 *     https://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
93
                    
94    private static $pathTemplateMap;
                    
95
                    
125    {
                    
126        if (self::$pathTemplateMap == null) {
                    
127            self::$pathTemplateMap = [
                    
131
                    
132        return self::$pathTemplateMap;
                    
133    }
                    
                
TestCookieBestMatchSpec.java https://github.com/steveclark7/Test1.git | Java | 281 lines
                    
6 * regarding copyright ownership.  The ASF licenses this file
                    
7 * to you under the Apache License, Version 2.0 (the
                    
8 * "License"); you may not use this file except in compliance
                    
10 *
                    
11 *   http://www.apache.org/licenses/LICENSE-2.0
                    
12 *
                    
243        Header header = headers.get(0);
                    
244        Assert.assertEquals("$Version=1; name1=\"value1\"; $Path=\"/\"; $Domain=\".domain.com\"; " +
                    
245                "name2=\"value2\"; $Path=\"/\"; $Domain=\".domain.com\"",
                    
                
QueryException.php https://github.com/nattaphat/hgis.git | PHP | 252 lines
                    
25 * @link    www.doctrine-project.org
                    
26 * @since   2.0
                    
27 * @author  Guilherme Blanco <guilhermeblanco@hotmail.com>
                    
131    /**
                    
132     * @param object $pathExpr
                    
133     *
                    
135     */
                    
136    public static function invalidPathExpression($pathExpr)
                    
137    {
                    
138        return new self(
                    
139            "Invalid PathExpression '" . $pathExpr->identificationVariable . "." . $pathExpr->field . "'."
                    
140        );
                    
                
ClientTest.php https://github.com/fernanDOTdo/symfony.git | PHP | 334 lines
                    
49        $r = new \ReflectionClass('Symfony\Component\BrowserKit\Response');
                    
50        $path = $r->getFileName();
                    
51
                    
54
                    
55require_once('$path');
                    
56
                    
106    {
                    
107        $json = '{"jsonrpc":"2.0","method":"echo","id":7,"params":["Hello World"]}';
                    
108
                    
                
Dockerfile https://gitlab.com/peter.tiedemann/thrift | Dockerfile | 191 lines
                    
106RUN curl -sSL https://storage.googleapis.com/golang/go1.4.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz
                    
107ENV PATH /usr/local/go/bin:$PATH
                    
108
                    
126    && mkdir -p /tmp/haxe /usr/lib/haxe && \
                    
127    curl http://haxe.org/website-content/downloads/3.2.0/downloads/haxe-3.2.0-linux64.tar.gz -o /tmp/haxe/haxe-3.2.0-linux64.tar.gz && \
                    
128    tar -xvzf /tmp/haxe/haxe-3.2.0-linux64.tar.gz -C /usr/lib/haxe --strip-components=1 && \
                    
146RUN apt-get update && apt-get install -y \
                    
147      libmono-system-web2.0-cil \
                    
148      mono-complete \
                    
154# THRIFT-2916: DMD pinned to 2.065.0-0 due to regression in 2.066
                    
155# THRIFT-3253: DMD pinned to 2.065.0-0 due to deprecations 2.067.1
                    
156RUN apt-get update && apt-get install -y \
                    
158      xdg-utils \
                    
159    && curl -sSL http://downloads.dlang.org/releases/2.x/2.065.0/dmd_2.065.0-0_amd64.deb -o /tmp/dmd_2.065.0-0_amd64.deb && \
                    
160    dpkg -i /tmp/dmd_2.065.0-0_amd64.deb && \
                    
                
CSSMin.php https://github.com/daevid/MWFork.git | PHP | 222 lines
                    
4 *
                    
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
                    
6 * not use this file except in compliance with the License.
                    
8 *
                    
9 * 		http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
25 * @copyright Copyright 2010 Wikimedia Foundation
                    
26 * @license http://www.apache.org/licenses/LICENSE-2.0
                    
27 */
                    
60	 * @param $source string CSS data to remap
                    
61	 * @param $path string File path where the source was read from (optional)
                    
62	 * @return array List of local file references
                    
63	 */
                    
64	public static function getLocalFileReferences( $source, $path = null ) {
                    
65		$files = array();
                    
                
Google_FileCache.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 137 lines
                    
4 *
                    
5 * Licensed under the Apache License, Version 2.0 (the "License");
                    
6 * you may not use this file except in compliance with the License.
                    
8 *
                    
9 *     http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
27class Google_FileCache extends Google_Cache {
                    
28  private $path;
                    
29
                    
                
filesystem.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 289 lines
                    
5 * @copyright 	Copyright (C) 2009-2012 Ryan Demmer. All rights reserved.
                    
6 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
                    
7 * JCE is free software. This version may have been modified pursuant
                    
152
                    
153    function toAbsolute($path) {
                    
154        return $path;
                    
156
                    
157    function toRelative($path) {
                    
158        return $path;
                    
160
                    
161    function getFiles($path, $filter) {
                    
162        return array();
                    
164
                    
165    function getFolders($path) {
                    
166        return array();
                    
                
Pay.php https://gitlab.com/CORP-RESELLER/codesamples-php | PHP | 200 lines
                    
1<?php 
                    
2$path = '../../lib';
                    
3set_include_path(get_include_path() . PATH_SEPARATOR . $path);
                    
97		// Amount to be credited to the receiver's account
                    
98		$receiver[1]->amount = "2.00";
                    
99		
                    
141		// Amount to be credited to the receiver's account
                    
142		$receiver[1]->amount = "2.00";
                    
143		
                    
                
RTx.pm https://gitlab.com/rajul/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;
                    
87
                    
88    my $args = join ', ', map "q($_)", map { ($_, $path{$_}) }
                    
89        sort keys %path;
                    
113        $postamble .= << ".";
                    
114\t\$(NOECHO) chown -R $uid:$gid $path{var}
                    
115.
                    
132        $self->makemaker_args( INSTALLSITELIB => $path{'lib'} );
                    
133        $self->makemaker_args( INSTALLARCHLIB => $path{'lib'} );
                    
134    } else {
                    
207    $path =~ s{\:\:}{-}g;
                    
208    $path = "$RT::LocalPluginPath/$path/lib";
                    
209    if ( -e $path ) {
                    
                
mcp.dashee.php https://github.com/brandonkelly/dashEE.git | PHP | 467 lines
                    
10 * @link		http://expressionengine.com
                    
11 * @since		Version 2.0
                    
12 * @filesource
                    
116		{
                    
117			$path = PATH_THIRD.$mod.'/widgets/';
                    
118			$map = directory_map(PATH_THIRD.$mod.'/widgets', 1);
                    
157	{
                    
158		$path = PATH_THIRD . $name . '/';
                    
159		$this->_EE->load->add_package_path($path);
                    
163		{
                    
164			$this->_EE->load->_ci_view_path = $path . 'views/';
                    
165		}
                    
                
main.cc https://gitlab.com/vectorci/serving | C++ | 208 lines
                    
2
                    
3Licensed under the Apache License, Version 2.0 (the "License");
                    
4you may not use this file except in compliance with the License.
                    
6
                    
7    http://www.apache.org/licenses/LICENSE-2.0
                    
8
                    
33// To serve a single model, run with:
                    
34//     $path_to_binary/tensorflow_model_server \
                    
35//     --model_base_path=[/tmp/my_model | gs://gcs_address] \
                    
                
FileEngine.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 373 lines
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @since         CakePHP(tm) v 1.2.0.4933
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
209		}
                    
210		$path = $this->_File->getRealPath();
                    
211		$this->_File = null;
                    
211		$this->_File = null;
                    
212		return unlink($path);
                    
213	}
                    
250			}
                    
251			$path = $this->_File->getRealPath();
                    
252			$this->_File = null;
                    
252			$this->_File = null;
                    
253			if (file_exists($path)) {
                    
254				unlink($path);
                    
                
PostgreSqlSchemaManager.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 359 lines
                    
29 * @author      Benjamin Eberlei <kontakt@beberlei.de>
                    
30 * @since       2.0
                    
31 */
                    
91        $names = $this->getSchemaNames();
                    
92        $paths = $this->getSchemaSearchPaths();
                    
93
                    
93
                    
94        $this->existingSchemaPaths = array_filter($paths, function ($v) use ($names) {
                    
95            return in_array($v, $names);
                    
                
start.php https://github.com/masuman/elgg-1.git | PHP | 355 lines
                    
5	 * @package ElggPages
                    
6	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
                    
7	 * @author Curverider Ltd
                    
258		
                    
259		$path = array($guid);
                    
260		
                    
263			if ($entity) {
                    
264				$path[] = $entity->getGUID();
                    
265			}
                    
267			
                    
268		return $path;
                    
269	}
                    
                
filespec_test.php https://github.com/VSEphpbb/phpbb.git | PHP | 338 lines
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
8*
                    
25	private $config;
                    
26	public $path;
                    
27
                    
                
ServiceRestProxy.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 347 lines
                    
3/**
                    
4 * LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
                    
5 * you may not use this file except in compliance with the License.
                    
6 * You may obtain a copy of the License at
                    
7 * http://www.apache.org/licenses/LICENSE-2.0
                    
8 *
                    
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
                    
39 * @copyright 2012 Microsoft Corporation
                    
40 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
41 * @version   Release: @package_version@
                    
95     * @param array  $postParameters The HTTP POST parameters.
                    
96     * @param string $path           URL path
                    
97     * @param int    $statusCode     Expected status code received in the response
                    
                
index.php https://bitbucket.org/tduarte/atmailopen.git | PHP | 181 lines
                    
8// +----------------------------------------------------------------+
                    
9// | AtMail Open - Licensed under the Apache 2.0 Open-source License|
                    
10// | http://opensource.org/licenses/apache2.0.php                   |
                    
16$path = dirname(dirname(__FILE__));
                    
17set_include_path('.' . PATH_SEPARATOR . "$path/libs" . PATH_SEPARATOR . "$path/libs/Atmail" . PATH_SEPARATOR . "$path/libs/PEAR");
                    
18
                    
36        echo <<<EOF
                    
37<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                    
38<html><head>
                    
                
ApplicationGatewayTests.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 207 lines
                    
3# Copyright Microsoft Corporation
                    
4# Licensed under the Apache License, Version 2.0 (the "License");
                    
5# you may not use this file except in compliance with the License.
                    
6# You may obtain a copy of the License at
                    
7# http://www.apache.org/licenses/LICENSE-2.0
                    
8# Unless required by applicable law or agreed to in writing, software
                    
55		$gwSubnet = New-AzureRmVirtualNetworkSubnetConfig -Name $gwSubnetName -AddressPrefix 10.0.0.0/24
                    
56		$nicSubnet = New-AzureRmVirtualNetworkSubnetConfig  -Name $nicSubnetName -AddressPrefix 10.0.2.0/24
                    
57		$vnet = New-AzureRmvirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $gwSubnet, $nicSubnet
                    
115		$rule03Name = Get-ResourceName
                    
116		$PathRule01Name = Get-ResourceName
                    
117		$PathRule02Name = Get-ResourceName
                    
138		# Add new URL routing
                    
139		$imagePathRule = New-AzureRmApplicationGatewayPathRuleConfig -Name $PathRule01Name -Paths "/image" -BackendAddressPool $pool -BackendHttpSettings $poolSetting
                    
140		$videoPathRule = New-AzureRmApplicationGatewayPathRuleConfig -Name $PathRule02Name -Paths "/video" -BackendAddressPool $pool -BackendHttpSettings $poolSetting
                    
                
cookie.php https://github.com/adivik2000/nigraha.git | PHP | 505 lines
                    
22 * @subpackage		cake.cake.libs.controller.components
                    
23 * @since			CakePHP(tm) v 1.2.0.4213
                    
24 * @version			$Revision: 5318 $
                    
80 */
                    
81	var $path = '/';
                    
82/**
                    
                
FileEngine.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 431 lines
                    
208		}
                    
209		$path = $this->_File->getRealPath();
                    
210		$this->_File = null;
                    
239		$cleared = array();
                    
240		foreach ($contents as $path) {
                    
241			if ($path->isFile()) {
                    
244
                    
245			$path = $path->getRealPath() . DS;
                    
246			if (!in_array($path, $cleared)) {
                    
268
                    
269		$dir = dir($path);
                    
270		while (($entry = $dir->read()) !== false) {
                    
378			if (!is_dir($path)) {
                    
379				mkdir($path, 0775, true);
                    
380			}
                    
                
test.php https://github.com/Yannix/zetacomponents.git | PHP | 318 lines
                    
20 *
                    
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
                    
22 * @filesource
                    
169        $tempDir = $this->createTempDir( get_class( $this ) );
                    
170        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
171        $fh = fopen( $path, "wb" );
                    
173        fclose( $fh );
                    
174        chmod( $path, 0 );
                    
175
                    
218        {
                    
219            $this->assertEquals( "The file '{$path}' can not be opened for writing.", $e->getMessage() );
                    
220        }
                    
263        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
264        mkdir( $path );
                    
265        chmod( $path, 0 );
                    
                
view.html.php https://github.com/projectfork/Projectfork.git | PHP | 223 lines
                    
93        $menu    = $app->getMenu()->getActive();
                    
94        $pathway = $app->getPathway();
                    
95        $title   = null;
                    
137            $link = '&format=feed&limitstart=';
                    
138            $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
                    
139            $this->document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
                    
                
BakeShell.php https://github.com/gustavor/lore.git | PHP | 242 lines
                    
18 * @link          http://cakephp.org CakePHP(tm) Project
                    
19 * @since         CakePHP(tm) v 1.2.0.5012
                    
20 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
70		if (!is_dir($this->DbConfig->path)) {
                    
71			$path = $this->Project->execute();
                    
72			if (!empty($path)) {
                    
72			if (!empty($path)) {
                    
73				$this->DbConfig->path = $path . 'Config' . DS;
                    
74			} else {
                    
                
GlobTest.php https://gitlab.com/gregtyka/frankenserver | PHP | 359 lines
                    
4 *
                    
5 * Licensed under the Apache License, Version 2.0 (the "License");
                    
6 * you may not use this file except in compliance with the License.
                    
8 *
                    
9 *     http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
34
                    
35  protected function setupBasicRead($files, $path = '.') {
                    
36    $handle = uniqid();
                    
36    $handle = uniqid();
                    
37    $this->expectOpenDir($path, $handle);
                    
38    $this->expectReadDir($handle, $files);
                    
                
twilio.php https://github.com/ibnoe/OpenVBX.git | PHP | 564 lines
                    
26
                    
27	// VERSION: 2.0.1
                    
28
                    
109		 *	 Sends a REST Request to the Twilio REST API
                    
110		 *	 $path : the URL (relative to the endpoint URL, after the /v1)
                    
111		 *	 $method : the HTTP method to use, defaults to GET
                    
114		 */
                    
115		public function request($path, $method = "GET", $vars = array()) {
                    
116			$fp = null;
                    
123			// construct full url
                    
124			$url = "{$this->Endpoint}/$path";
                    
125
                    
127			if($method == "GET")
                    
128				$url .= (FALSE === strpos($path, '?')?"?":"&").$encoded;
                    
129
                    
                
dirvish-locate.pl https://bitbucket.org/dirvish/dirvish.git | Perl | 264 lines
                    
13#                                                         				#
                    
14#	Licensed under the Open Software License version 2.0				#
                    
15#                                                         				#
                    
121my $pathcount = 0;
                    
122my $path = undef;
                    
123my %match = ();
                    
154            $$f{mtime},
                    
155            $path
                    
156        ) = m<^
                    
169
                    
170        exists($match{$path}) or ++$pathcount;
                    
171        push @{$match{$path}}, $f;
                    
172    }
                    
173    if ($pathcount >= $KILLCOUNT)
                    
174    {
                    
                
dbsharing.php https://github.com/sherdog/GitWitty.git | PHP | 319 lines
                    
22 * @par History:

                    
23 * - V1.2.0 28-APR-2009: Initial version

                    
24 * - V1.2.0 RC3 05-JUL-2009: Fix warning concerning deprecated syntax in PHP 5.x

                    
24 * - V1.2.0 RC3 05-JUL-2009: Fix warning concerning deprecated syntax in PHP 5.x

                    
25 * - V1.2.0 RC4 09-JUL-2009: Add check that dbsharing.xml contain effectivelly <tables> tags to avoid

                    
26 *                           searching children when the tag is not present

                    
196         if ( !empty($condition)) {

                    
197            $path = str_replace( '{root}', JPATH_ROOT, $condition);

                    
198            if ( !file_exists( JPath::clean( $path))) {

                    
                
cookie.php https://github.com/AnthonyRL/Beanstalker.git | PHP | 485 lines
                    
20 * @subpackage    cake.cake.libs.controller.components
                    
21 * @since         CakePHP(tm) v 1.2.0.4213
                    
22 * @version       $Revision$
                    
76 */
                    
77	var $path = '/';
                    
78/**
                    
                
cookie.php https://github.com/campagsi/bisad.git | PHP | 471 lines
                    
16 * @subpackage    cake.cake.libs.controller.components
                    
17 * @since         CakePHP(tm) v 1.2.0.4213
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
75 */
                    
76	var $path = '/';
                    
77
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 216 lines
                    
20 *
                    
21 * @since 2.0
                    
22 * @package    repository_recent
                    
30 *
                    
31 * @since 2.0
                    
32 * @package    repository_recent
                    
108     * @param string $encodedpath
                    
109     * @param string $path not used by this plugin
                    
110     * @return mixed
                    
                
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```
                    
49| metis-5.1.0.tar.gz              | http://glaros.dtc.umn.edu/gkhome/metis/metis/download |
                    
50| scalapack-2.0.2.tgz             | http://www.netlib.org/scalapack/                      |
                    
51| MUMPS_5.1.2.tar.gz              | http://mumps.enseeiht.fr/                             |
                    
89$ cd $HOME/work
                    
90$ tar xvf scalapack-2.0.2.tgz
                    
91$ cd scalapack-2.0.2
                    
                
ParquetHiveCompatibilitySuite.scala https://gitlab.com/KiaraGrouwstra/spark | Scala | 139 lines
                    
4 * this work for additional information regarding copyright ownership.
                    
5 * The ASF licenses this file to You under the Apache License, Version 2.0
                    
6 * (the "License"); you may not use this file except in compliance with
                    
8 *
                    
9 *    http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
63                 |STORED AS PARQUET
                    
64                 |LOCATION '$path'
                    
65               """.stripMargin
                    
                
ApiShell.php https://github.com/suzuki/candycane.git | PHP | 238 lines
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @since         CakePHP(tm) v 1.2.0.5012
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
37 */
                    
38	public $paths = array();
                    
39
                    
70		if (isset($this->paths[$type])) {
                    
71			$path = $this->paths[$type];
                    
72		} else {
                    
72		} else {
                    
73			$path = $this->paths['core'];
                    
74		}
                    
82		}
                    
83		$objects = App::objects('class', $path);
                    
84		if (in_array($class, $objects)) {
                    
                
ezclusterfilehandler.php https://github.com/eeggenberger/ezpublish.git | PHP | 204 lines
                    
5 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
                    
6 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
                    
7 * @version //autogentag//
                    
119     *
                    
120     * @param string $path
                    
121     */
                    
121     */
                    
122    public static function cleanupEmptyDirectories( $path )
                    
123    {
                    
123    {
                    
124        $dirpath = eZDir::dirpath( $path );
                    
125
                    
                
DependencyTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 277 lines
                    
82    $this->drupalGet('admin/modules');
                    
83    $this->assertSession()->pageTextContains('System incompatible module version test (>2.0) (incompatible with version 1.0)');
                    
84    $this->assertSession()->elementTextEquals('xpath', '//tr[@data-drupal-selector="edit-modules-system-incompatible-module-version-dependencies-test"]//span[@class="admin-missing"]', 'incompatible with');
                    
110    ];
                    
111    $path = $this->siteDirectory . '/modules/system_no_module_version_dependency_test';
                    
112    mkdir($path, 0777, TRUE);
                    
112    mkdir($path, 0777, TRUE);
                    
113    file_put_contents("$path/system_no_module_version_dependency_test.info.yml", Yaml::encode($info));
                    
114
                    
120    ];
                    
121    $path = $this->siteDirectory . '/modules/system_no_module_version_test';
                    
122    mkdir($path, 0777, TRUE);
                    
122    mkdir($path, 0777, TRUE);
                    
123    file_put_contents("$path/system_no_module_version_test.info.yml", Yaml::encode($info));
                    
124
                    
                
kvm-remote.sh https://gitlab.com/dieselnutjob/linux-next | Shell | 269 lines
                    
1#!/bin/bash
                    
2# SPDX-License-Identifier: GPL-2.0+
                    
3#
                    
22KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
                    
23PATH=${KVM}/bin:$PATH; export PATH
                    
24. functions.sh
                    
225		fi
                    
226		ssh "$i" "cd \"$resdir/$ds\"; touch remote.run; PATH=\"$T/bin:$PATH\" nohup kvm-remote-$curbatch.sh > kvm-remote-$curbatch.sh.out 2>&1 &" 1>&2
                    
227		ret=$?
                    
                
lxc-ubuntu-cloud.in https://gitlab.com/Red54/lxc | Autoconf | 406 lines
                    
64    if [ $nics -eq 1 ]; then
                    
65        grep -q "^lxc.network.hwaddr" $path/config || sed -i -e "/^lxc\.network\.type[ \t]*=[ \t]*veth/a lxc.network.hwaddr = 00:16:3e:$(openssl rand -hex 3| sed 's/\(..\)/\1:/g; s/.$//')" $path/config
                    
66    fi
                    
79    echo "" >> $path/config
                    
80    echo "# Common configuration" >> $path/config
                    
81    if [ -e "${LXC_TEMPLATE_CONFIG}/ubuntu-cloud.common.conf" ]; then
                    
93    echo "# Container specific configuration" >> $path/config
                    
94    [ -e "$path/config-auto" ] && cat $path/config-auto >> $path/config && rm $path/config-auto
                    
95    grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
                    
95    grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
                    
96    cat <<EOF >> $path/config
                    
97lxc.mount = $path/fstab
                    
104    echo "# Network configuration" >> $path/config
                    
105    cat $path/config-network >> $path/config
                    
106    rm $path/config-network
                    
                
LightLoadTest.java https://github.com/derickbailey/qedserver.git | Java | 235 lines
                    
3// ------------------------------------------------------------------------
                    
4// Licensed under the Apache License, Version 2.0 (the "License");
                    
5// you may not use this file except in compliance with the License.
                    
6// You may obtain a copy of the License at
                    
7// http://www.apache.org/licenses/LICENSE-2.0
                    
8// Unless required by applicable law or agreed to in writing, software
                    
80                        assert sessionCookie != null;
                    
81                        // Mangle the cookie, replacing Path with $Path, etc.
                    
82                        sessionCookie = sessionCookie.replaceFirst("(\\W)(P|p)ath=", "$1\\$Path=");
                    
                
kvm.sh https://gitlab.com/oyvholm/linux | Shell | 469 lines
                    
23# along with this program; if not, you can access it online at
                    
24# http://www.gnu.org/licenses/gpl-2.0.html.
                    
25#
                    
39KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM
                    
40PATH=${KVM}/bin:$PATH; export PATH
                    
41TORTURE_DEFCONFIG=defconfig
                    
280KVM="$KVM"; export KVM
                    
281PATH="$PATH"; export PATH
                    
282TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE
                    
                
Plugin.php https://gitlab.com/alexandresgv/siteentec | PHP | 390 lines
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
136        if (empty($config['path'])) {
                    
137            $paths = App::path('Plugin');
                    
138            $pluginPath = str_replace('/', DS, $plugin);
                    
138            $pluginPath = str_replace('/', DS, $plugin);
                    
139            foreach ($paths as $path) {
                    
140                if (is_dir($path . $pluginPath)) {
                    
140                if (is_dir($path . $pluginPath)) {
                    
141                    $config['path'] = $path . $pluginPath . DS;
                    
142                    break;
                    
229            foreach ($dir as $path) {
                    
230                if ($path->isDir() && !$path->isDot()) {
                    
231                    $plugins[] = $path->getBasename();
                    
                
AbstractFileDriver.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 210 lines
                    
35 * @link        www.doctrine-project.com
                    
36 * @since       2.0
                    
37 * @version     $Revision$
                    
62     *  
                    
63     * @param string|array $paths One or multiple paths where mapping documents can be found. 
                    
64     */ 
                    
64     */ 
                    
65    public function __construct($paths) 
                    
66    { 
                    
66    { 
                    
67        $this->addPaths((array) $paths);
                    
68    } 
                    
72     *
                    
73     * @param array $paths
                    
74     */
                    
                
file_folders_m.php https://github.com/marcoscoelho/pyrocms.git | PHP | 257 lines
                    
8 * @author		PyroCMS Dev Team
                    
9 * @license		Apache License v2.0
                    
10 * @link		http://pyrocms.com
                    
223
                    
224	public function get_by_path($path)
                    
225	{
                    
225	{
                    
226		if (is_array($path))
                    
227		{
                    
227		{
                    
228			$path = implode('/', $path);
                    
229		}
                    
230
                    
231		$path = trim($path, '/');
                    
232
                    
                
lib.php https://github.com/pauln/moodle.git | PHP | 198 lines
                    
20 *
                    
21 * @since Moodle 2.0
                    
22 * @package    repository_wikimedia
                    
32 *
                    
33 * @since Moodle 2.0
                    
34 * @package    repository_wikimedia
                    
76
                    
77    public function get_listing($path = '', $page = '') {
                    
78        $client = new wikimedia;
                    
                
AbstractPearTask.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 241 lines
                    
4 * 
                    
5 * PHP Version 5.2.0
                    
6 *
                    
111        {
                    
112            $paths = explode( PATH_SEPARATOR, getenv( 'PATH' ) );
                    
113        }
                    
115        {
                    
116            $paths = array( $this->pearBinaryDir );
                    
117        }
                    
117        }
                    
118        $paths = array_unique( $paths );
                    
119
                    
121
                    
122        foreach ( $paths as $path )
                    
123        {
                    
                
BaseMailer.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 394 lines
                    
28 * @author Paul Klimov <klimov.paul@gmail.com>
                    
29 * @since 2.0
                    
30 */
                    
321    {
                    
322        $path = Yii::getAlias($this->fileTransportPath);
                    
323        if (!is_dir($path)) {
                    
323        if (!is_dir($path)) {
                    
324            mkdir($path, 0777, true);
                    
325        }
                    
326        if ($this->fileTransportCallback !== null) {
                    
327            $file = $path . '/' . call_user_func($this->fileTransportCallback, $this, $message);
                    
328        } else {
                    
328        } else {
                    
329            $file = $path . '/' . $this->generateMessageFileName();
                    
330        }
                    
                
CreateProductTemplates.php https://github.com/markvince/CakePHP-GAStats-Plugin.git | PHP | 157 lines
                    
9 *
                    
10 * Licensed under the Apache License, Version 2.0 (the "License");
                    
11 * you may not use this file except in compliance with the License.
                    
13 *
                    
14 *     http://www.apache.org/licenses/LICENSE-2.0
                    
15 *
                    
25 * @copyright  2014, Google Inc. All Rights Reserved.
                    
26 * @license    http://www.apache.org/licenses/LICENSE-2.0 Apache License,
                    
27 *             Version 2.0
                    
32// DfpUser.php directly via require_once.
                    
33// $path = '/path/to/dfp_api_php_lib/src';
                    
34$path = dirname(__FILE__) . '/../../../../src';
                    
34$path = dirname(__FILE__) . '/../../../../src';
                    
35set_include_path(get_include_path() . PATH_SEPARATOR . $path);
                    
36
                    
                
ezimagefont.php https://github.com/eeggenberger/ezpublish.git | PHP | 230 lines
                    
5 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
                    
6 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
                    
7 * @version //autogentag//
                    
34    */
                    
35    function eZImageFont( $family, $size, $path,
                    
36                          $xAdjustment = 0, $yAdjustment = 0 )
                    
38        $this->FontFamily = $family;
                    
39        $this->FontPath = $path;
                    
40        $this->PointSize = $size;
                    
122    */
                    
123    function setPath( $path )
                    
124    {
                    
124    {
                    
125        $this->FontPath = $path;
                    
126        $this->initialize();
                    
                
view.html.php https://github.com/projectfork/Projectfork.git | PHP | 221 lines
                    
89        $menu    = $app->getMenu()->getActive();
                    
90        $pathway = $app->getPathway();
                    
91        $title   = null;
                    
133            $link    = '&format=feed&limitstart=';
                    
134            $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
                    
135            $this->document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
                    
                
vatrules.php https://github.com/eeggenberger/ezpublish.git | PHP | 199 lines
                    
3 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
                    
4 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
                    
5 * @version //autogentag//
                    
190
                    
191$path = array();
                    
192$path[] = array( 'text' => ezpI18n::tr( 'kernel/shop/vatrules', 'VAT rules' ),
                    
195$Result = array();
                    
196$Result['path'] = $path;
                    
197$Result['content'] = $tpl->fetch( "design:shop/vatrules.tpl" );
                    
                
function.svn-import.html https://bitbucket.org/thncr/manuals.git | HTML | 143 lines
                    
15  <h1 class="refname">svn_import</h1>
                    
16  <p class="verinfo">(PECL svn &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">svn_import</span> &mdash; <span class="dc-title">Imports an unversioned path into a repository</span></p>
                    
17
                    
23   <span class="type">bool</span> <span class="methodname"><strong>svn_import</strong></span>
                    
24    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$path</code></span>
                    
25   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$url</code></span>
                    
                
indexer.php https://gitlab.com/ricardosanchez/prueba | PHP | 484 lines
                    
112
                    
113		$path = __DIR__ . '/driver/' . $format . '.php';
                    
114		$class = 'FinderIndexerDriver' . ucfirst($format);
                    
116		// Check if a parser exists for the format.
                    
117		if (file_exists($path))
                    
118		{
                    
119			// Instantiate the parser.
                    
120			include_once $path;
                    
121
                    
162				self::META_CONTEXT  => round($data->options->get('meta_multiplier', 1.2), 2),
                    
163				self::PATH_CONTEXT  => round($data->options->get('path_multiplier', 2.0), 2),
                    
164				self::MISC_CONTEXT  => round($data->options->get('misc_multiplier', 0.3), 2)
                    
                
extract.php https://github.com/t73biz/BaseApp.git | PHP | 495 lines
                    
16 * @subpackage    cake.cake.console.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.5012
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
170		$this->out(__('Paths:', true));
                    
171		foreach ($this->__paths as $path) {
                    
172			$this->out('   ' . $path);
                    
487	function __searchFiles() {
                    
488		foreach ($this->__paths as $path) {
                    
489			$Folder = new Folder($path);
                    
                
AuthController.php https://github.com/rjdjohnston/core.git | PHP | 204 lines
                    
4 *
                    
5 *  Licensed under the Apache License, Version 2.0 (the "License");
                    
6 *  you may not use this file except in compliance with the License.
                    
8 *
                    
9 *      http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
114		$domain = trim($config->web->host, " /");
                    
115		$path   = trim($config->web->path, " /");
                    
116		
                    
121			if (isset($config->app->user)) {
                    
122				$url = "http://$domain/$path";
                    
123			} else {
                    
123			} else {
                    
124				$url	= "http://{$user->username}.$domain/$path";
                    
125			};
                    
                
extensions.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 240 lines
                    
5 * @copyright 	Copyright (c) 2009-2013 Ryan Demmer. All rights reserved.
                    
6 * @license   	GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
                    
7 * JCE is free software. This version may have been modified pursuant
                    
75        // core extensions path
                    
76        $path = $config['base_path'] . '/extensions';
                    
77
                    
85
                    
86        if (JFolder::exists($path)) {
                    
87            foreach ($types as $type) {
                    
88                if ($extension) {
                    
89                    if (JFile::exists($path . '/' . $type . '/' . $extension . '.xml') && JFile::exists($path . '/' . $type . '/' . $extension . '.php')) {
                    
90                        $object = new stdClass();
                    
91                        $object->folder = $type;
                    
92                        $object->path = $path . '/' . $type;
                    
93                        $object->extension = $extension;
                    
                
Browser.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 288 lines
                    
5 * @copyright Copyright (C) 2007 - ${copyright_year} RocketTheme, LLC
                    
6 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
                    
7 */
                    
227		$ext        = substr($file, strrpos($file, '.'));
                    
228		$path       = ($keep_path) ? dirname($file) . DS : '';
                    
229		$filename   = basename($file, $ext);
                    
230		foreach ($this->checks as $suffix) {
                    
231			$checkfiles[] = $path . $filename . $suffix . $ext;
                    
232		}
                    
                
AbstractMenu.php https://gitlab.com/ricardosanchez/prueba | PHP | 403 lines
                    
8 * http://opensource.org/licenses/MIT
                    
9 * http://www.gnu.org/licenses/gpl-2.0.html
                    
10 *
                    
307     *
                    
308     * @param   string  $path
                    
309     *
                    
371
                    
372        if (!isset($this->items[$path]) || !$this->items[$path]->hasChildren()) {
                    
373            return;
                    
381                if (is_array($value)) {
                    
382                    $this->sortAll($value, $path ? $path . '/' . $key : $key);
                    
383                }
                    
390                    if (is_array($value)) {
                    
391                        $this->sortAll($value, $path ? $path . '/' . $key : $key);
                    
392                    }
                    
                
api.php https://github.com/jasoneh/SMS-Can-.git | PHP | 220 lines
                    
21 * @subpackage    cake.cake.console.libs
                    
22 * @since         CakePHP(tm) v 1.2.0.5012
                    
23 * @version       $Revision$
                    
42 */
                    
43	var $paths = array();
                    
44
                    
75		if (isset($this->paths[$type])) {
                    
76			$path = $this->paths[$type];
                    
77		} else {
                    
77		} else {
                    
78			$path = $this->paths['core'];
                    
79		}
                    
88
                    
89		$objects = App::objects('class', $path);
                    
90		if (in_array($class, $objects)) {
                    
                
ServiceRestProxy.php https://gitlab.com/pankajmohale/chef2go | PHP | 347 lines
                    
3/**
                    
4 * LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
                    
5 * you may not use this file except in compliance with the License.
                    
6 * You may obtain a copy of the License at
                    
7 * http://www.apache.org/licenses/LICENSE-2.0
                    
8 *
                    
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
                    
39 * @copyright 2012 Microsoft Corporation
                    
40 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
41 * @version   Release: 0.4.1_2015-03
                    
95     * @param array  $postParameters The HTTP POST parameters.
                    
96     * @param string $path           URL path
                    
97     * @param int    $statusCode     Expected status code received in the response
                    
                
recode_torrent.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 309 lines
                    
6* @copyright (c) 2015 PPK
                    
7* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
8*
                    
212		{
                    
213			$path=implode('/', (isset($v['path.utf-8']) ? $v['path.utf-8'] : (isset($v['path']) ? $v['path'] : '')));
                    
214			if($type_conv && isset($dict['encoding']) && $dict['encoding']!='UTF-8')
                    
215			{
                    
216				$path=torrent_enconvert($path, $dict['encoding'], 'UTF-8', $type_conv);
                    
217			}
                    
217			}
                    
218			$db->sql_query("INSERT INTO ".TRACKER_FILES_TABLE." (torrent, filename, size) VALUES ('{$attach_id}', '". $db->sql_escape(utf8_normalize_nfc($path)) ."', '{$v['length']}')");
                    
219		}
                    
                
ezimagefont.php https://github.com/Yannix/ezpublish.git | PHP | 230 lines
                    
5 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
                    
6 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
                    
7 * @version //autogentag//
                    
34    */
                    
35    function eZImageFont( $family, $size, $path,
                    
36                          $xAdjustment = 0, $yAdjustment = 0 )
                    
38        $this->FontFamily = $family;
                    
39        $this->FontPath = $path;
                    
40        $this->PointSize = $size;
                    
122    */
                    
123    function setPath( $path )
                    
124    {
                    
124    {
                    
125        $this->FontPath = $path;
                    
126        $this->initialize();
                    
                
vatrules.php https://github.com/Yannix/ezpublish.git | PHP | 199 lines
                    
3 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
                    
4 * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
                    
5 * @version //autogentag//
                    
190
                    
191$path = array();
                    
192$path[] = array( 'text' => ezpI18n::tr( 'kernel/shop/vatrules', 'VAT rules' ),
                    
195$Result = array();
                    
196$Result['path'] = $path;
                    
197$Result['content'] = $tpl->fetch( "design:shop/vatrules.tpl" );
                    
                
formGroupConfig.php https://gitlab.com/florianocomercial/centreon | PHP | 303 lines
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
6 *
                    
239$tpl = new Smarty();
                    
240$tpl = initSmartyTpl($path, $tpl);
                    
241
                    
290if ($valid) {
                    
291    require_once($path."listGroupConfig.php");
                    
292} else {
                    
                
UrlRule.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 396 lines
                    
27 * @author Qiang Xue <qiang.xue@gmail.com>
                    
28 * @since 2.0
                    
29 */
                    
100     * @see createUrl()
                    
101     * @since 2.0.7
                    
102     */
                    
234
                    
235        $pathInfo = $request->getPathInfo();
                    
236        $suffix = (string)($this->suffix === null ? $manager->suffix : $this->suffix);
                    
239            if (substr_compare($pathInfo, $suffix, -$n, $n) === 0) {
                    
240                $pathInfo = substr($pathInfo, 0, -$n);
                    
241                if ($pathInfo === '') {
                    
250        if ($this->host !== null) {
                    
251            $pathInfo = strtolower($request->getHostInfo()) . ($pathInfo === '' ? '' : '/' . $pathInfo);
                    
252        }
                    
                
singular-3.1.0-gentoo.patch https://bitbucket.org/remustata/lmnd-prefix.git | Patch | 81 lines
                    
43+  {"ExDir",     'm',    feResDir,   "SINGULAR_EXAMPLES_DIR","%r/share/doc/PFSUBST/examples",          (char *)""},
                    
44   {"Path",      'p',    feResPath,  NULL,                   "%b;$PATH",             (char *)""},
                    
45 
                    
65 };
                    
66--- kernel/mod_raw.cc.orig	2009-11-02 10:12:22.000000000 +0000
                    
67+++ kernel/mod_raw.cc	2010-10-11 09:19:01.432179264 +0000
                    
                
ZkAuthorizationTest.scala https://gitlab.com/JHUDevOpsFall2016/kafka-alex | Scala | 321 lines
                    
4 * this work for additional information regarding copyright ownership.
                    
5 * The ASF licenses this file to You under the Apache License, Version 2.0
                    
6 * (the "License"); you may not use this file except in compliance with
                    
8 *
                    
9 *    http://www.apache.org/licenses/LICENSE-2.0
                    
10 *
                    
156    for (path <- zkUtils.securePersistentZkPaths) {
                    
157      info(s"Creating $path")
                    
158      zkUtils.makeSurePersistentPathExists(path)
                    
158      zkUtils.makeSurePersistentPathExists(path)
                    
159      zkUtils.createPersistentPath(s"$path/fpjwashere", "")
                    
160    }
                    
188    for (path <- firstZk.securePersistentZkPaths) {
                    
189      info(s"Creating $path")
                    
190      firstZk.makeSurePersistentPathExists(path)
                    
                
BaseAuthorize.php https://bitbucket.org/allanxyh/project.git | PHP | 162 lines
                    
20 * @package       Cake.Controller.Component.Auth
                    
21 * @since 2.0
                    
22 * @see AuthComponent::$authenticate
                    
107 * @param CakeRequest $request The request a path is needed for.
                    
108 * @param string $path
                    
109 * @return string the action path for the given request.
                    
110 */
                    
111	public function action($request, $path = '/:plugin/:controller/:action') {
                    
112		$plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
                    
112		$plugin = empty($request['plugin']) ? null : Inflector::camelize($request['plugin']) . '/';
                    
113		$path = str_replace(
                    
114			array(':controller', ':action', ':plugin/'),
                    
117		);
                    
118		$path = str_replace('//', '/', $path);
                    
119		return trim($path, '/');
                    
                
helper.php https://github.com/amet17/webstar.git | PHP | 281 lines
                    
10 * @copyright   Copyright © 2011 NoNumber! All Rights Reserved
                    
11 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
                    
12 */
                    
54
                    
55		$path = JPATH_SITE;
                    
56		if ( $folder ) {
                    
56		if ( $folder ) {
                    
57			$path .= DS.implode( DS, explode( '.', $folder ) );
                    
58		}
                    
58		}
                    
59		$file = $path.DS.$file;
                    
60
                    
                
listsMenusAccess.php https://gitlab.com/florianocomercial/centreon | PHP | 169 lines
                    
4 * Centreon is developped by : Julien Mathis and Romain Le Merlus under
                    
5 * GPL Licence 2.0.
                    
6 * 
                    
59	$tpl = new Smarty();
                    
60	$tpl = initSmartyTpl($path, $tpl);
                    
61
                    
                
 

Source

Language