PageRenderTime 2826ms queryTime 354ms sortTime 438ms getByIdsTime 570ms findMatchingLines 201ms

100+ results results for '$PATH repo:vladimiraleksiev/mhbg' (2826 ms)

Not the results you expected?
Link.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;
                    
                
formMibs.php https://gitlab.com/florianocomercial/centreon | PHP | 149 lines
                    
88$tpl = new Smarty();
                    
89$tpl = initSmartyTpl($path, $tpl);
                    
90
                    
                
Logger.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    fi
                    
                
Page.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=$PATH
                    
                
ZipStreamWrapper.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);
                    
91
                    
                
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);
                    
                
lib-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://gitlab.com/LisovyiEvhenii/ismextensions | 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    }'
                    
                
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 do
                    
                
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)) {
                    
                
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    }
                    
                
Object.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  none
                    
                
kvm.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"
                    
                
ImportMappingDoctrineCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 137 lines
                    
115                if ('annotation' === $type) {
                    
116                    $path = $destPath.'/'.str_replace('\\', '.', $className).'.php';
                    
117                } else {
                    
117                } else {
                    
118                    $path = $destPath.'/'.str_replace('\\', '.', $className).'.orm.'.$type;
                    
119                }
                    
119                }
                    
120                $output->writeln(sprintf('  > writing <comment>%s</comment>', $path));
                    
121                $code = $exporter->exportClassMetadata($class);
                    
121                $code = $exporter->exportClassMetadata($class);
                    
122                if (!is_dir($dir = dirname($path))) {
                    
123                    mkdir($dir, 0775, true);
                    
124                }
                    
125                file_put_contents($path, $code);
                    
126                chmod($path, 0664);
                    
                
certificate_helper.rb https://gitlab.com/mattermost/omnibus-gitlab | Ruby | 172 lines
                    
126    unless rehash_status.zero?
                    
127      LoggingHelper.warning("Rehashing of trusted certificates present in `/etc/gitlab/trusted-certs` failed. If on a FIPS-enabled machine, ensure `c_rehash` binary is available in $PATH.")
                    
128      return
                    
                
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;
                    
                
html.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 224 lines
                    
54	 * @param   JModel            $model  The model object.
                    
55	 * @param   SplPriorityQueue  $paths  The paths queue.
                    
56	 *
                    
58	 */
                    
59	public function __construct(JModel $model, SplPriorityQueue $paths = null)
                    
60	{
                    
64
                    
65		if (isset($paths))
                    
66		{
                    
66		{
                    
67			$paths->insert(JPATH_THEMES . '/' . $app->getTemplate() . '/html/' . $component . '/' . $this->getName(), 2);
                    
68		}
                    
69
                    
70		parent::__construct($model, $paths);
                    
71	}
                    
                
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)) {
                    
                
UnregisteredLocalFile.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')
                    
85end
                    
                
elasticsearch.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.
                    
50
                    
                
Cookie.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    {
                    
                
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.
                    
222
                    
                
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> ) {
                    
                
Loader.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        }
                    
                
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		}
                    
                
S3.php https://bitbucket.org/simukti/zf1.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';
                    
27
                    
                
Common.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)
                    
                
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}
                    
                
Util.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                    }
                    
                
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;
                    
46
                    
                
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>
                    
                
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 name
                    
                
Ftp.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';
                    
63
                    
                
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/rk3188_rk3066_r-box_android4.4.2_sdk | Perl | 161 lines
                    
19while (@ARGV) {
                    
20    my $path = shift @ARGV;
                    
21    push @find_args, qw'-not ( -path', "*/$path/*", qw'-prune )'
                    
                
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		}
                    
                
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);
                    
345
                    
                
menutypes.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		}
                    
                
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);
                    
                
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
                    
147				// If the path does not exist, add it.
                    
148				if (!in_array($path, $paths)) {
                    
149					array_unshift($paths, $path);
                    
221		foreach ($new as $path) {
                    
222			if (!in_array($path, $paths)) {
                    
223				array_unshift($paths, trim($path));
                    
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;
                    
                
SessionManager.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 212 lines
                    
59    {
                    
60        $path = $this->app['config']['session.files'];
                    
61
                    
63
                    
64        return $this->buildSession(new FileSessionHandler($this->app['files'], $path, $lifetime));
                    
65    }
                    
                
CMB2_Utils.php https://gitlab.com/hunt9310/ras | PHP | 188 lines
                    
158	 */
                    
159	public function url( $path = '' ) {
                    
160		if ( $this->url ) {
                    
160		if ( $this->url ) {
                    
161			return $this->url . $path;
                    
162		}
                    
184
                    
185		return $this->url . $path;
                    
186	}
                    
                
PropertyPathTest.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 203 lines
                    
19    {
                    
20        $path = new PropertyPath('reference.traversable[index].property');
                    
21
                    
21
                    
22        $this->assertEquals('reference.traversable[index].property', $path->__toString());
                    
23    }
                    
57     */
                    
58    public function testUnexpectedCharacters($path)
                    
59    {
                    
59    {
                    
60        new PropertyPath($path);
                    
61    }
                    
                
Category.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 183 lines
                    
69             */
                    
70            $pathIds = array_reverse($this->_appliedCategory->getPathIds());
                    
71            $curCategoryId = $this->getLayer()->getCurrentCategory()->getId();
                    
71            $curCategoryId = $this->getLayer()->getCurrentCategory()->getId();
                    
72            if (isset($pathIds[1]) && $pathIds[1] != $curCategoryId) {
                    
73                return $pathIds[1];
                    
                
tar.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 189 lines
                    
106				$buffer = $this->_metadata[$i]['data'];
                    
107				$path = JPath::clean($destination.DS.$this->_metadata[$i]['name']);
                    
108				// Make sure the destination folder exists
                    
108				// Make sure the destination folder exists
                    
109				if (!JFolder::create(dirname($path)))
                    
110				{
                    
113				}
                    
114				if (JFile::write($path, $buffer) === false)
                    
115				{
                    
                
Win32.pm https://github.com/Tailgunner/CataMooseC.git | Perl | 444 lines
                    
217    else {
                    
218        $path =~ 
                    
219            m{^ ( $VOL_RX ? )
                    
317sub rel2abs {
                    
318    my ($self,$path,$base ) = @_;
                    
319
                    
342
                    
343    my ( $path_directories, $path_file ) =
                    
344      ($self->splitpath( $path, 1 ))[1,2] ;
                    
350			   $base_volume, 
                    
351			   $self->catdir( $base_directories, $path_directories ), 
                    
352			   $path_file
                    
440    }
                    
441    return $path ne "" || $volume ? $volume.$path : ".";
                    
442}
                    
                
Config.php https://bitbucket.org/acidel/buykoala.git | PHP | 169 lines
                    
102            foreach ($this->getNode('formats')->children() as $typeCode => $typeConfig) {
                    
103                $path = sprintf('%s%s', self::XML_PATH_ADDRESS_TEMPLATE, $typeCode);
                    
104                $type = new Varien_Object();
                    
109                    ->setTitle((string)$typeConfig->title)
                    
110                    ->setDefaultFormat(Mage::getStoreConfig($path, $store))
                    
111                    ->setHtmlEscape($htmlEscape);
                    
                
MethodsTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 149 lines
                    
114    /**
                    
115     * @param string $path
                    
116     * @return \RegexIterator
                    
117     */
                    
118    private function collectFiles($path)
                    
119    {
                    
122            | \FilesystemIterator::SKIP_DOTS;
                    
123        $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, $flags));
                    
124
                    
139        $ds = DIRECTORY_SEPARATOR;
                    
140        $path = __DIR__ . $ds . str_repeat('..' . $ds, 5) . 'Magento';
                    
141
                    
141
                    
142        foreach ($this->collectFiles($path) as $file) {
                    
143            $config = include $file->getPathname();
                    
                
converterhelper_test.php https://gitlab.com/unofficial-mirrors/moodle | 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());
                    
                
Config.php https://gitlab.com/strongpapazola/gempabmkg | PHP | 380 lines
                    
131
                    
132		foreach ($this->_config_paths as $path)
                    
133		{
                    
135			{
                    
136				$file_path = $path.'config/'.$location.'.php';
                    
137				if (in_array($file_path, $this->is_loaded, TRUE))
                    
                
PhpDocumentorTask.php https://github.com/ArnaudD/global-menu.git | PHP | 460 lines
                    
307    	$found = null;
                    
308    	foreach(explode(PATH_SEPARATOR, get_include_path()) as $path) {
                    
309    		$testpath = $path . DIRECTORY_SEPARATOR . 'PhpDocumentor';
                    
                
MigrateUpgradeFormStepsTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 147 lines
                    
133  protected function assertFirstForm(WebAssert $session, string $expected): void {
                    
134    $paths = [
                    
135      '',
                    
140    ];
                    
141    foreach ($paths as $path) {
                    
142      $this->drupalGet('/upgrade' . $path);
                    
                
MenuUiJavascriptTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 163 lines
                    
114   *   Optional parent menu link id.
                    
115   * @param string $path
                    
116   *   The path to enter on the form. Defaults to the front page.
                    
128   */
                    
129  protected function addMenuLink($parent = '', $path = '/', $menu_id = 'tools', $expanded = FALSE, $weight = '0') {
                    
130    // View add menu link page.
                    
134    $edit = [
                    
135      'link[0][uri]' => $path,
                    
136      'title[0][value]' => $title,
                    
                
CookieJar.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 406 lines
                    
130            $domain = $cookie->getDomain();
                    
131            $path = $cookie->getPath();
                    
132            if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array();
                    
132            if (! isset($this->cookies[$domain])) $this->cookies[$domain] = array();
                    
133            if (! isset($this->cookies[$domain][$path])) $this->cookies[$domain][$path] = array();
                    
134            $this->cookies[$domain][$path][$cookie->getName()] = $cookie;
                    
237        $path = $uri->getPath();
                    
238        $path = substr($path, 0, strrpos($path, '/'));
                    
239        if (! $path) $path = '/';
                    
240
                    
241        if (isset($this->cookies[$uri->getHost()][$path][$cookie_name])) {
                    
242            $cookie = $this->cookies[$uri->getHost()][$path][$cookie_name];
                    
325     * @param array $dom_array
                    
326     * @param string $path
                    
327     * @return array
                    
                
class.wpcom-json-api-site-settings-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 349 lines
                    
15	// POST /sites/%s/settings
                    
16	function callback( $path = '', $blog_id = 0 ) {
                    
17		$blog_id = $this->api->switch_to_blog_and_validate_user( $this->api->get_blog_id( $blog_id ) );
                    
                
ModelDefinition.php https://gitlab.com/fsavina/finncds-temporary | PHP | 436 lines
                    
423	{
                    
424		$path = $this->get ( 'storage.file' );
                    
425		if ( is_array ( $path ) )
                    
426		{
                    
427			$path = Arr::get ( $path, 'path' );
                    
428		}
                    
428		}
                    
429		return $path ?: "finnegan/{$this->name}.json";
                    
430	}
                    
                
Registry.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 364 lines
                    
207                foreach ((array)$entries as $entry) {
                    
208                    $path =  $packageDir. DS .$entry;
                    
209                    $info = pathinfo($path);
                    
209                    $info = pathinfo($path);
                    
210                    if ($entry == '.' || $entry == '..' || is_dir($path) || $info['extension'] != 'xml') {
                    
211                        continue;
                    
213
                    
214                    if (is_readable($path)) {
                    
215                        $data = file_get_contents($path);
                    
                
Css2Xpath.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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                }
                    
                
PluginList.php https://gitlab.com/gideonmarked/yovelife | PHP | 206 lines
                    
62                $pluginCodeObj = new PluginCode($pluginCode);
                    
63                $path = $pluginCodeObj->toPluginInformationFilePath();
                    
64                if (!File::isFile(File::symbolizePath($path))) {
                    
                
ImportModel.php https://gitlab.com/gideonmarked/wellmarketing | PHP | 211 lines
                    
68        $sessionKey = array_get($options, 'sessionKey');
                    
69        $path = $this->getImportFilePath($sessionKey);
                    
70        $data = $this->processImportData($path, $matches, $options);
                    
                
scraper.php https://github.com/chaunceyt/votersdaily.git | PHP | 134 lines
                    
2<?php
                    
3$PATH_TO_INCLUDES = dirname(dirname(dirname(__FILE__)));
                    
4require $PATH_TO_INCLUDES.'/phputils/EventScraper.php';
                    
4require $PATH_TO_INCLUDES.'/phputils/EventScraper.php';
                    
5require $PATH_TO_INCLUDES.'/phputils/couchdb.php';
                    
6
                    
                
Chain.php https://github.com/fjd/joobsbox-php.git | PHP | 168 lines
                    
73    {
                    
74        $path    = trim($request->getPathInfo(), '/');
                    
75        $subPath = $path;
                    
111        
                    
112        $request->setPathInfo($path);
                    
113        
                    
                
file.php https://github.com/bb-dev/cakephp2x.git | PHP | 552 lines
                    
63 */
                    
64	public $path = null;
                    
65
                    
92 *
                    
93 * @param string $path Path to file
                    
94 * @param boolean $create Create file if it does not exist (if true)
                    
97 */
                    
98	public function __construct($path, $create = false, $mode = 0755) {
                    
99		parent::__construct();
                    
99		parent::__construct();
                    
100		$this->Folder = new Folder(dirname($path), $create, $mode);
                    
101		if (!is_dir($path)) {
                    
101		if (!is_dir($path)) {
                    
102			$this->name = basename($path);
                    
103		}
                    
                
BaseStringHelper.php https://gitlab.com/brucealdridge/yii2 | PHP | 271 lines
                    
56     *
                    
57     * @param string $path A path string.
                    
58     * @param string $suffix If the name component ends in suffix this will also be cut off.
                    
61     */
                    
62    public static function basename($path, $suffix = '')
                    
63    {
                    
64        if (($len = mb_strlen($suffix)) > 0 && mb_substr($path, -$len) == $suffix) {
                    
65            $path = mb_substr($path, 0, -$len);
                    
66        }
                    
66        }
                    
67        $path = rtrim(str_replace('\\', '/', $path), '/\\');
                    
68        if (($pos = mb_strrpos($path, '/')) !== false) {
                    
68        if (($pos = mb_strrpos($path, '/')) !== false) {
                    
69            return mb_substr($path, $pos + 1);
                    
70        }
                    
                
ConfigListener.php https://gitlab.com/yousafsyed/easternglamor | PHP | 404 lines
                    
143        foreach ($this->paths as $path) {
                    
144            $this->addConfigByPath($path['path'], $path['type']);
                    
145        }
                    
283        if ($paths instanceof Traversable) {
                    
284            $paths = ArrayUtils::iteratorToArray($paths);
                    
285        }
                    
299
                    
300        foreach ($paths as $path) {
                    
301            $this->addConfigPath($path, $type);
                    
307     *
                    
308     * @param  string $path
                    
309     * @param  string $type
                    
368            case self::STATIC_PATH:
                    
369                $this->addConfig($path, ConfigFactory::fromFile($path));
                    
370                break;
                    
                
configuration.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 408 lines
                    
102				$ns = $this->registry[$namespace]['data'];
                    
103				$pathNodes = $count - 1;
                    
104
                    
104
                    
105				for ($i = 1; $i < $pathNodes; $i ++) {
                    
106					if((isset($ns->$nodes[$i]))) $ns =& $ns->$nodes[$i];
                    
164
                    
165		$pathNodes = $count - 1;
                    
166
                    
166
                    
167		if ($pathNodes < 0) {
                    
168			$pathNodes = 0;
                    
170
                    
171		for ($i = 0; $i < $pathNodes; $i ++)
                    
172		{
                    
                
Start-CodeCoverageRun.ps1 https://gitlab.com/unofficial-mirrors/PowerShell | Powershell | 379 lines
                    
43    param(
                    
44        [string] $Path,
                    
45        [string] $DestinationPath
                    
48    $Script:fileTable = [ordered]@{}
                    
49    $Script:covData = [xml] (Get-Content -ReadCount 0 -Raw -Path $Path)
                    
50    $totalCoverage = [PSCustomObject]::new()
                    
89        [string] $Message,
                    
90        $Path = "$env:Temp\CodeCoverageRunLogs.txt"
                    
91    )
                    
93    $message = "{0:d} - {0:t} : {1}" -f ([datetime]::now),$message
                    
94    Add-Content -Path $Path -Value $Message -PassThru -Force
                    
95}
                    
                
string.php https://bitbucket.org/eternaware/joomus.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);
                    
118
                    
                
Client.php https://gitlab.com/pr0055/symfonypizza | PHP | 204 lines
                    
175
                    
176        $path = str_replace("'", "\\'", $r->getFileName());
                    
177
                    
192}
                    
193require_once '$path';
                    
194
                    
                
class-wpseo-image-utils.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 485 lines
                    
91	 *     @type string $alt      Image's alt text.
                    
92	 *     @type string $path     Path of image.
                    
93	 *     @type int    $width    Width of image.
                    
223	 *
                    
224	 * @param string $path The relative file path.
                    
225	 *
                    
227	 */
                    
228	public static function get_absolute_path( $path ) {
                    
229		static $uploads;
                    
235		// Add the uploads basedir if the path does not start with it.
                    
236		if ( empty( $uploads['error'] ) && strpos( $path, $uploads['basedir'] ) !== 0 ) {
                    
237			return $uploads['basedir'] . DIRECTORY_SEPARATOR . ltrim( $path, DIRECTORY_SEPARATOR );
                    
239
                    
240		return $path;
                    
241	}
                    
                
controller.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 342 lines
                    
161		 * Gets the system thumbnail for a given file object. This function returns a relative path
                    
162		 * @return string $path
                    
163		 */
                    
180		 * Gets the system thumbnail for a given file object. This function returns the absolute path
                    
181		 * @return string $path
                    
182		 */
                    
262			$filename = $prefix . $filename;
                    
263			$path = DIR_FILES_UPLOADED . '/' . $filename;
                    
264			copy($pointer, $path);
                    
                
config.yaml https://gitlab.com/my-application.bjoernbartels.earth/application-base | YAML | 431 lines
                    
173                    set:
                    
174                        - '$path_info $fastcgi_path_info'
                    
175                    proxy: ''
                    
                
CookieJar.php https://gitlab.com/x33n/respond | PHP | 248 lines
                    
86
                    
87    public function clear($domain = null, $path = null, $name = null)
                    
88    {
                    
91            return;
                    
92        } elseif (!$path) {
                    
93            $this->cookies = array_filter(
                    
94                $this->cookies,
                    
95                function (SetCookie $cookie) use ($path, $domain) {
                    
96                    return !$cookie->matchesDomain($domain);
                    
101                $this->cookies,
                    
102                function (SetCookie $cookie) use ($path, $domain) {
                    
103                    return !($cookie->matchesPath($path) &&
                    
109                $this->cookies,
                    
110                function (SetCookie $cookie) use ($path, $domain, $name) {
                    
111                    return !($cookie->getName() == $name &&
                    
                
t7407-submodule-foreach.sh https://gitlab.com/mayakarya/git | Shell | 382 lines
                    
75		git submodule update --init -- sub1 sub3 &&
                    
76		git submodule foreach "echo \$toplevel-\$name-\$path-\$sha1" > ../actual &&
                    
77		git config foo.bar zar &&
                    
212		cd clone2 &&
                    
213		git submodule foreach -q --recursive "echo \$name-\$path" > ../actual
                    
214	) &&
                    
                
recaptchalib.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 277 lines
                    
61 * @param string $host
                    
62 * @param string $path
                    
63 * @param array $data
                    
66 */
                    
67function _recaptcha_http_post($host, $path, $data, $port = 80) {
                    
68
                    
70
                    
71        $http_request  = "POST $path HTTP/1.0\r\n";
                    
72        $http_request .= "Host: $host\r\n";
                    
                
UrlGenerator.php https://gitlab.com/puntodos/ean-landings | PHP | 327 lines
                    
316        $targetDirs[] = $targetFile;
                    
317        $path = str_repeat('../', count($sourceDirs)).implode('/', $targetDirs);
                    
318
                    
322        // (see http://tools.ietf.org/html/rfc3986#section-4.2).
                    
323        return '' === $path || '/' === $path[0]
                    
324            || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos)
                    
324            || false !== ($colonPos = strpos($path, ':')) && ($colonPos < ($slashPos = strpos($path, '/')) || false === $slashPos)
                    
325            ? "./$path" : $path;
                    
326    }
                    
                
quotation_a4.blade.php https://gitlab.com/laher01/factu40 | PHP | 334 lines
                    
3    $customer = $document->customer;
                    
4    //$path_style = app_path('CoreFacturalo'.DIRECTORY_SEPARATOR.'Templates'.DIRECTORY_SEPARATOR.'pdf'.DIRECTORY_SEPARATOR.'style.css');
                    
5    $accounts = \App\Models\Tenant\BankAccount::all();
                    
10    {{--<title>{{ $tittle }}</title>--}}
                    
11    {{--<link href="{{ $path_style }}" rel="stylesheet" />--}}
                    
12</head>
                    
                
filepicker.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 176 lines
                    
2$CMS_ADMIN_PAGE=1;
                    
3$path = dirname(dirname(dirname(__FILE__)));
                    
4require_once($path . DIRECTORY_SEPARATOR . 'include.php');
                    
                
minileven.php https://gitlab.com/Gashler/sg | PHP | 290 lines
                    
101		if (!empty($url['path'])) {
                    
102			$path = $url['path'];
                    
103		}
                    
104		else {
                    
105			$path = '/';
                    
106		}
                    
113					, time() + 300000
                    
114					, $path
                    
115					, $domain
                    
126					, time() + 300000
                    
127					, $path
                    
128					, $domain
                    
                
sendpr.tcl https://gitlab.com/OpenSourceMirror/sourcenav | TCL | 348 lines
                    
40  } else {
                    
41    set _site(sendpr) [file join $Paths(bindir) send-pr]
                    
42    # If it doesn't exist, try the user's path.  This is a hack for
                    
                
generate.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 173 lines
                    
116    $filename = array_pop($namespace);
                    
117    $path = dirname(__FILE__) . "{$sep}{$filename}.php";
                    
118    if (file_exists($path)) {
                    
118    if (file_exists($path)) {
                    
119        require_once $path;
                    
120    }
                    
148    $filename = array_pop($namespace);
                    
149    $path = dirname(__FILE__) . "{$sep}{$filename}.php";
                    
150    if (file_exists($path)) {
                    
150    if (file_exists($path)) {
                    
151        require_once $path;
                    
152    }
                    
                
PostgreSqlSchemaManager.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 410 lines
                    
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);
                    
                
view.php https://gitlab.com/ppapadatis/Videolearn | PHP | 113 lines
                    
45					
                    
46					unset($path, $title, $link);
                    
47					// creating slide path
                    
47					// creating slide path
                    
48					$path = $uri->root().'modules/mod_image_show_gk4/cache/'.GKIS_Coffe_Image::translateName($this->config['image_show_data'][$i]->image, $this->config['module_id']);
                    
49					
                    
60				
                    
61				<div class="gkIsSlide" style="z-index: <?php echo $i+1; ?>;" title="<?php echo $title; ?>"><a href="<?php echo $path; ?>">src</a><a href="<?php echo $link; ?>">link</a></div>
                    
62			<?php endif; ?>	
                    
                
Compiler.php https://gitlab.com/campus-academy/krowkaramel | PHP | 273 lines
                    
125        $path = apply_filters('loco_compile_single_json', '', $pofile->getPath(), $domain );
                    
126        if( is_string($path) && '' !== $path ){
                    
127            $refs = $po->splitRefs( $this->getJsExtMap() );
                    
128            if( array_key_exists('js',$refs) && $refs['js'] instanceof Loco_gettext_Data ){
                    
129                $jsonfile = new Loco_fs_File($path);
                    
130                try {
                    
200        if( Loco_data_Settings::get()->jed_clean ){
                    
201            foreach( $this->files->getJsons() as $path ){
                    
202                $jsonfile = new Loco_fs_File($path);
                    
                
gcc-defs.exp https://gitlab.com/4144/gcc | Expect | 405 lines
                    
207
                    
208	if {![catch {open $path {RDWR CREAT EXCL} 0600} fd]} {
                    
209	    close $fd
                    
                
lib.php https://github.com/andreev-artem/moodle.git | PHP | 347 lines
                    
221     *
                    
222     * @param string $path
                    
223     * @param int $page
                    
225     */
                    
226    public function get_listing($path = '', $page = '') {
                    
227        return $this->search('', $page);
                    
                
UrlMatcher.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 251 lines
                    
87     */
                    
88    public function match($pathinfo)
                    
89    {
                    
91
                    
92        if ($ret = $this->matchCollection(rawurldecode($pathinfo), $this->routes)) {
                    
93            return $ret;
                    
97            ? new MethodNotAllowedException(array_unique($this->allow))
                    
98            : new ResourceNotFoundException(sprintf('No routes found for "%s".', $pathinfo));
                    
99    }
                    
122     *
                    
123     * @param string          $pathinfo The path info to be parsed
                    
124     * @param RouteCollection $routes   The set of routes
                    
130     */
                    
131    protected function matchCollection($pathinfo, RouteCollection $routes)
                    
132    {
                    
                
AppNameCommand.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 329 lines
                    
109     *
                    
110     * @param  string  $path
                    
111     * @return void
                    
112     */
                    
113    protected function replaceNamespace($path)
                    
114    {
                    
124
                    
125        $this->replaceIn($path, $search, $replace);
                    
126    }
                    
226    {
                    
227        if ($this->files->exists($path = $this->getPhpSpecConfigPath())) {
                    
228            $this->replaceIn($path, $this->currentRoot, $this->argument('name'));
                    
253    {
                    
254        $this->files->put($path, str_replace($search, $replace, $this->files->get($path)));
                    
255    }
                    
                
Stream.php https://gitlab.com/ricardosanchez/prueba | PHP | 239 lines
                    
42
                    
43        $this->handle = ($options & STREAM_REPORT_ERRORS) ? fopen($path, $mode) : @fopen($path, $mode);
                    
44
                    
151
                    
152        return ($options & STREAM_REPORT_ERRORS) ? mkdir($path, $mode, $recursive) : @mkdir($path, $mode, $recursive);
                    
153    }
                    
162
                    
163        return ($options & STREAM_REPORT_ERRORS) ? rmdir($path) : @rmdir($path);
                    
164    }
                    
175        // exist. This is consistent with PHP's plain filesystem stream wrapper.
                    
176        return ($flags & STREAM_URL_STAT_QUIET || !file_exists($path)) ? @stat($path) : stat($path);
                    
177    }
                    
214
                    
215        if ($mode == null || !$path || file_exists($path)) {
                    
216            return $path;
                    
                
view.php https://gitlab.com/ricardosanchez/prueba | PHP | 282 lines
                    
93		{
                    
94			$path     = array_reverse($viewobj->path);
                    
95			$start    = true;
                    
97
                    
98			foreach ($path as $element)
                    
99			{
                    
                
 

Source

Language