PageRenderTime 644ms queryTime 227ms sortTime 13ms getByIdsTime 117ms findMatchingLines 151ms

100+ results results for 'php mkdir' (644 ms)

Not the results you expected?
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
238	"php.ini-development" => "php.ini-development",
                    
239	"php.ini-production" => "php.ini-production",
                    
240	"win32/install.txt" => "install.txt",
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
class-wp-image-editor.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 403 lines
                    
1<?php
                    
2/**
                    
333			// The directory containing the original file may no longer exist when using a replication plugin. 
                    
334			wp_mkdir_p( dirname( $filename ) ); 
                    
335		}
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
100    if ($path && !file_exists($path))
                    
101        mkdir($path, 0777, true); // or even 01777 so you get the sticky bit set
                    
102    if($path_thumbs && !file_exists($path_thumbs))
                    
102    if($path_thumbs && !file_exists($path_thumbs))
                    
103        mkdir($path_thumbs, 0777, true) or die("$path_thumbs cannot be found"); // or even 01777 so you get the sticky bit set
                    
104    umask($oldumask);
                    
                
ImageModule.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 400 lines
                    
1<?php
                    
2
                    
81        if (parent::getInstall()) {
                    
82            @mkdir($this->getUploadPath(), 0755);
                    
83        }
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
123        $tmp = sys_get_temp_dir();
                    
124        @mkdir($tmp . "/composer_testdir/level1/level2", 0777, true);
                    
125        file_put_contents($tmp . "/composer_testdir/level1/level2/hello.txt", "hello world");
                    
127        $fs = new Filesystem;
                    
128        $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
                    
129        $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
                    
143        $tmp = sys_get_temp_dir();
                    
144        @mkdir("$tmp/composer_testdir", 0777, true);
                    
145        file_put_contents("$tmp/composer_testdir/file1.txt", 'Hello');
                    
187        $symlinked = $basepath . "/linked";
                    
188        @mkdir($basepath . "/real", 0777, true);
                    
189        touch($basepath . "/real/FILE");
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
326        if ($force) {
                    
327            return @mkdir($path, $mode, $recursive);
                    
328        }
                    
329
                    
330        return mkdir($path, $mode, $recursive);
                    
331    }
                    
                
upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
64		if ( ! is_dir( $target_dir ) ) {
                    
65			if ( ! wp_mkdir_p( $target_dir ) ) {
                    
66				GFCommon::log_debug( "GFAsyncUpload::upload(): Couldn't create the tmp folder: " . $target_dir );
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
                
AdminApPageBuilderPositions.php https://gitlab.com/ptisky/API_prestashop | PHP | 398 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once(_PS_MODULE_DIR_.'appagebuilder/classes/ApPageBuilderPositionsModel.php');
                    
18
                    
99			if (!is_dir($this->theme_dir.'css/modules/'.$this->module_name))
                    
100				mkdir($this->theme_dir.'css/modules/'.$this->module_name, 0755);
                    
101			mkdir($this->position_css_folder, 0755);
                    
105			if (!is_dir($this->theme_dir.'js/modules/'.$this->module_name))
                    
106				mkdir($this->theme_dir.'js/modules/'.$this->module_name, 0755);
                    
107			mkdir($this->position_js_folder, 0755);
                    
                
elfinder.pt_BR.js https://gitlab.com/r.collas/site_central | JavaScript | 320 lines
                    
28			'errConf'              : 'Configuração inválida do backend.',
                    
29			'errJSON'              : 'Módulo PHP JSON não está instalado.',
                    
30			'errNoVolumes'         : 'Não existe nenhum volume legível disponivel.',
                    
47			'errPopup'             : 'Navegador impediu abertura da janela popup, Para abrir o arquivo desabilite está  opção no navegador.',
                    
48			'errMkdir'             : 'Incapaz de criar a pasta "$1".',
                    
49			'errMkfile'            : 'Incapaz de criar o arquivo "$1".',
                    
89			'cmdinfo'      : 'propriedades',
                    
90			'cmdmkdir'     : 'Nova pasta',
                    
91			'cmdmkfile'    : 'Novo arquivo de texto',
                    
118			'ntfreload'   : 'Recarregar conteudo da pasta',
                    
119			'ntfmkdir'    : 'Criar diretório',
                    
120			'ntfmkfile'   : 'Criar arquivos',
                    
269			'kindTextPlain'   : 'Texto simples',
                    
270			'kindPHP'         : 'PHP',
                    
271			'kindCSS'         : 'CSS',
                    
                
AbstractFactory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
                    
1<?php
                    
2/**
                    
53    {
                    
54        $this->factoryContent = "<?php\n\n";
                    
55        $this->factoryContent .= "namespace Magento\Mtf\\{$type}; \n\n";
                    
93
                    
94        $file = MTF_BP . "/generated/Magento/Mtf/{$type}/{$type}FactoryDeprecated.php";
                    
95        if (false === file_put_contents($file, $this->factoryContent)) {
                    
115        }
                    
116        if (!is_dir($folder) && !$this->mkDir($folder, $mode)) {
                    
117            throw new \Exception("Unable to create directory '{$folder}'. Access forbidden.");
                    
129     */
                    
130    protected function mkDir($dir, $mode = 0777, $recursive = true)
                    
131    {
                    
131    {
                    
132        return @mkdir($dir, $mode, $recursive);
                    
133    }
                    
                
ProductController.php https://gitlab.com/techniconline/kmc | PHP | 341 lines
                    
1<?php
                    
2namespace App\Http\Controllers\backend;
                    
132                if (!file_exists($createFolder)) {
                    
133                    mkdir($createFolder, 0755);
                    
134                }
                    
294            if (!file_exists($createFolder)) {
                    
295                mkdir($createFolder, 0755);
                    
296            }
                    
                
fs.js https://gitlab.com/TurnInternational/simon | JavaScript | 364 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 *   * http://www.opensource.org/licenses/mit-license.php
                    
8 *   * http://www.gnu.org/licenses/gpl.html
                    
36    tmpDir = os.tmpdir || os.tmpDir || function() { return '/tmp'; },
                    
37    makeDir = promisify(fs.mkdir),
                    
38    removeDir = promisify(fs.rmdir),
                    
                
README.md https://gitlab.com/Fair_lab/FNLSphinx | Markdown | 284 lines
                    
47 - has support for C/C++, but AFAIK that's it
                    
48 - there are usually other packages that help with that: Javadoc, PHPdoc
                    
492. [insert the usual debates about code documentation here]
                    
68cd ~ 
                    
69mkdir Sphinx
                    
70
                    
                
BakeView.php https://gitlab.com/BitCoding/bake | PHP | 273 lines
                    
1<?php
                    
2namespace Bake\View;
                    
22     *
                    
23     * phpTagReplacements are applied to the contents of a bake template, to allow php tags
                    
24     * to be treated as plain text
                    
31     *     Replace remaining <=% with php short echo tags
                    
32     *     Replace <% with php open tags
                    
33     *     Replace %> with php close tags
                    
37    protected $_defaultConfig = [
                    
38        'phpTagReplacements' => [
                    
39            '<?' => "<BitPHPBakeOpenTag",
                    
39            '<?' => "<BitPHPBakeOpenTag",
                    
40            '?>' => "BitPHPBakeCloseTag>"
                    
41        ],
                    
189
                    
190        $unPhp = $this->config('phpTagReplacements');
                    
191        return str_replace(array_values($unPhp), array_keys($unPhp), $content);
                    
                
Clover.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 290 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
13 *
                    
14 * @category   PHP
                    
15 * @package    CodeCoverage
                    
15 * @package    CodeCoverage
                    
16 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
17 * @copyright  Sebastian Bergmann <sebastian@phpunit.de>
                    
                
image.php https://gitlab.com/billyprice1/website | PHP | 412 lines
                    
1<?php
                    
2/**
                    
51	// using a replication plugin.
                    
52	wp_mkdir_p( dirname( $dst_file ) );
                    
53
                    
402		// using a replication plugin.
                    
403		wp_mkdir_p( dirname( $dst_file ) );
                    
404
                    
                
swift.php https://gitlab.com/Red54/core | PHP | 582 lines
                    
1<?php
                    
2/**
                    
133
                    
134	public function mkdir($path) {
                    
135		$path = $this->normalizePath($path);
                    
537		if (!$this->file_exists('.')) {
                    
538			$this->mkdir('.');
                    
539		}
                    
                
files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
                    
3 *
                    
4 * This file is part of phpFastCache.
                    
5 *
                    
17use phpFastCache\Core\DriverAbstract;
                    
18use phpFastCache\Exceptions\phpFastCacheDriverException;
                    
19
                    
29     * @param array $config
                    
30     * @throws phpFastCacheDriverException
                    
31     */
                    
37        if (!$this->checkdriver() && !isset($config[ 'skipError' ])) {
                    
38            throw new phpFastCacheDriverException("Can't use this driver for your website!");
                    
39        }
                    
58     * @return string
                    
59     * @throws phpFastCacheDriverException
                    
60     */
                    
                
index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
                    
1<?php
                    
2/*
                    
14
                    
15require_once('../system/init.php');
                    
16
                    
18
                    
19if (file_exists(AWS_PATH . 'config/install.lock.php'))
                    
20{
                    
20{
                    
21	H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php'));
                    
22}
                    
33
                    
34		if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false)
                    
35		{
                    
35		{
                    
36			$system_require['php'] = TRUE;
                    
37		}
                    
                
helper.php https://gitlab.com/wuhang2003/core | PHP | 297 lines
                    
1<?php
                    
2/**
                    
33	/**
                    
34	 * @dataProvider phpFileSizeProvider
                    
35	 */
                    
35	 */
                    
36	public function testPhpFileSize($expected, $input)
                    
37	{
                    
37	{
                    
38		$result = OC_Helper::phpFileSize($input);
                    
39		$this->assertEquals($expected, $result);
                    
41
                    
42	public function phpFileSizeProvider()
                    
43	{
                    
80
                    
81		mkdir("data/TestSubdirectory", 0777);
                    
82		$result = OC_Helper::isSubDirectory("data/TestSubdirectory/", "data");
                    
                
Filesystem.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0775, $recursive = true)
                    
94    {
                    
102        }
                    
103        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
104            return mkdir($dir, $mode);
                    
120            if (file_exists($path)) {
                    
121                //require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
123            } else {
                    
124                if (!self::mkdirs($path)) {
                    
125                    //require_once 'Zend/Search/Lucene/Exception.php';
                    
                
Filesystem.php https://gitlab.com/yousafsyed/easternglamor | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25#require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0775, $recursive = true)
                    
94    {
                    
102        }
                    
103        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
104            return mkdir($dir, $mode);
                    
120            if (file_exists($path)) {
                    
121                #require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
123            } else {
                    
124                if (!self::mkdirs($path)) {
                    
125                    #require_once 'Zend/Search/Lucene/Exception.php';
                    
                
CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
                    
1<?php
                    
2/**
                    
31
                    
32            // http://php.net/manual/function.ob-start.php
                    
33            // -> If output_callback  returns FALSE original input is sent to the browser.
                    
299        if ($perm === false) {
                    
300            // build-in mkdir function is enough
                    
301
                    
302            $umask = ($umask !== false) ? umask($umask) : false;
                    
303            $res   = mkdir($pathname, ($perm !== false) ? $perm : 0775, true);
                    
304
                    
311                $err = ErrorHandler::stop();
                    
312                throw new Exception\RuntimeException("mkdir('{$pathname}', 0{$oct}, true) failed", 0, $err);
                    
313            }
                    
320        } else {
                    
321            // build-in mkdir function sets permission together with current umask
                    
322            // which doesn't work well on multo threaded webservers
                    
                
given.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 156 lines
                    
1<?php
                    
2
                    
22		$full_path = $world->variables['RUN_DIR'] . "/$path";
                    
23		Process::create( \WP_CLI\utils\esc_cmd( 'mkdir -p %s', dirname( $full_path ) ) )->run_check();
                    
24		file_put_contents( $full_path, $content );
                    
33
                    
34$steps->Given( '/^wp-config\.php$/',
                    
35	function ( $world ) {
                    
66	function( $world, $stream ) {
                    
67		$plugins = implode( ' ', array_map( 'trim', explode( PHP_EOL, (string)$stream ) ) );
                    
68		$world->proc( "wp plugin install $plugins --activate" )->run_check();
                    
73	function ( $world ) {
                    
74		$wp_config_path = $world->variables['RUN_DIR'] . "/wp-config.php";
                    
75
                    
146	function($world) {
                    
147		$wp_config_path = $world->variables['RUN_DIR'] . "/wp-config.php";
                    
148
                    
                
Ftp.php https://gitlab.com/puntodos/ean-landings | PHP | 448 lines
                    
1<?php
                    
2
                    
186    {
                    
187        $stream = fopen('php://temp', 'w+b');
                    
188        fwrite($stream, $contents);
                    
319
                    
320        return (boolean) ftp_mkdir($connection, $directory);
                    
321    }
                    
397    {
                    
398        $stream = fopen('php://temp', 'w+');
                    
399        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
                
autotest.sh https://gitlab.com/wuhang2003/core | Shell | 339 lines
                    
56if ! [ -x "$PHPUNIT" ]; then
                    
57	echo "phpunit executable not found, please install phpunit version >= 3.7" >&2
                    
58	exit 3
                    
62if [[ "$PHPUNIT" =~ \.phar$ ]]; then
                    
63  PHPUNIT=( "$PHP" "$PHPUNIT" )
                    
64else
                    
71
                    
72if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 4 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 4 -a "$PHPUNIT_MINOR_VERSION" -ge 4 \) ]; then
                    
73	echo "phpunit version >= 4.4 required. Version found: $PHPUNIT_VERSION" >&2
                    
76
                    
77if ! [ \( -w config -a ! -f config/config.php \) -o \( -f config/config.php -a -w config/config.php \) ]; then
                    
78	echo "Please enable write permissions on config and config/config.php" >&2
                    
135	if [ -f config/config-autotest-backup.php ]; then
                    
136		mv config/config-autotest-backup.php config/config.php
                    
137	fi
                    
                
Printer.php https://gitlab.com/KakoFerrare/Primeiro_Composer | PHP | 172 lines
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 */
                    
16class PHPUnit_Util_Printer
                    
17{
                    
44     *
                    
45     * @throws PHPUnit_Framework_Exception
                    
46     */
                    
59                } else {
                    
60                    if (strpos($out, 'php://') === false &&
                    
61                        !is_dir(dirname($out))) {
                    
129        } else {
                    
130            if (PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg') {
                    
131                $buffer = htmlspecialchars($buffer);
                    
                
Printer.php https://gitlab.com/techniconline/kmc | PHP | 174 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of PHPUnit.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 */
                    
16class PHPUnit_Util_Printer
                    
17{
                    
44     *
                    
45     * @throws PHPUnit_Framework_Exception
                    
46     */
                    
54                    if (sizeof($out) != 2) {
                    
55                        throw new PHPUnit_Framework_Exception;
                    
56                    }
                    
                
Log.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 247 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
119		$this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '')
                    
120			? ltrim($config['log_file_extension'], '.') : 'php';
                    
121
                    
121
                    
122		file_exists($this->_log_path) OR mkdir($this->_log_path, 0755, TRUE);
                    
123
                    
181			$newfile = TRUE;
                    
182			// Only add protection to php files
                    
183			if ($this->_file_ext === 'php')
                    
184			{
                    
185				$message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n";
                    
186			}
                    
                
elfinder.ko.js https://gitlab.com/r.collas/site_central | JavaScript | 340 lines
                    
28			'errConf'              : 'Backend 환경설정이 올바르지 않습니다',
                    
29			'errJSON'              : 'PHP JSON 모듈이 설치되지 않았습니다',
                    
30			'errNoVolumes'         : '읽기 가능한 볼률이 없습니다',
                    
47			'errPopup'             : '브라우저에서 팝업을 차단하였습니다.팝업을 허용하려면 브라우저 옵션을 변경하세요',
                    
48			'errMkdir'             : ' "$1" 폴더를 생성할 수 없습니다',
                    
49			'errMkfile'            : ' "$1" 파일을 생성할 수 없습니다',
                    
89			'cmdinfo'      : '파일정보',
                    
90			'cmdmkdir'     : '새 폴더',
                    
91			'cmdmkfile'    : '새 텍스트파일',
                    
117			'ntfreload'   : '새로고침',
                    
118			'ntfmkdir'    : '폴더 생성',
                    
119			'ntfmkfile'   : '파일 생성',
                    
289			'kindTextPlain'   : '보통 텍스트',
                    
290			'kindPHP'         : 'PHP 소스',
                    
291			'kindCSS'         : 'CSS 문서',
                    
                
Filesystem.php https://gitlab.com/luisrepo/ClienteWS | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
Installer.php https://gitlab.com/asun89/socianovation-web | PHP | 370 lines
                    
1<?php
                    
2namespace Grav\Common\GPM;
                    
87
                    
88        Folder::mkdir($tmp);
                    
89
                    
135                foreach ((array) $package_yaml['install']['pre_install']['create'] as $file) {
                    
136                    Folder::mkdir($install_path . '/' . ltrim($file, '/'));
                    
137                }
                    
289        if (
                    
290            !file_exists($target . DS . 'index.php') ||
                    
291            !file_exists($target . DS . 'bin') ||
                    
                
PortalManager.php https://gitlab.com/Skull3x/SimpleSkyWars | PHP | 129 lines
                    
1<?php
                    
2
                    
29		if (! file_exists ( $path )) {
                    
30			@mkdir ( $this->pgin->getDataFolder () );
                    
31			@mkdir ( $path );
                    
                
ArenaPlayerLocation.php https://gitlab.com/Skull3x/SimpleSkyWars | PHP | 128 lines
                    
1<?php
                    
2
                    
30		if (! file_exists ( $path )) {
                    
31			// @mkdir ($this->pgin->getDataFolder());
                    
32			@mkdir ( $path );
                    
69		if (! file_exists ( $path )) {
                    
70			@mkdir ( $this->pgin->getDataFolder () );
                    
71			@mkdir ( $path );
                    
                
FileSystem.php https://gitlab.com/tekoestudio/capacitacion-tipsy | PHP | 157 lines
                    
1<?php
                    
2
                    
26	{
                    
27		if (!is_dir($dir) && !@mkdir($dir, $mode, TRUE) && !is_dir($dir)) { // @ - dir may already exist
                    
28			throw new Nette\IOException("Unable to create directory '$dir'. " . error_get_last()['message']);
                    
                
FileLockRegion.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 265 lines
                    
1<?php
                    
2
                    
63    {
                    
64        if ( ! is_dir($directory) && ! @mkdir($directory, 0775, true)) {
                    
65            throw new \InvalidArgumentException(sprintf('The directory "%s" does not exist and could not be created.', $directory));
                    
                
qrmask.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * PHP QR Code encoder
                    
4 *
                    
9 *
                    
10 * PHP QR Code is distributed under LGPL 3
                    
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
                    
153                    if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo))
                    
154                        mkdir(QR_CACHE_DIR.'mask_'.$maskNo);
                    
155                    file_put_contents($fileName, self::serial($bitMask));
                    
286        {
                    
287            $minDemerit = PHP_INT_MAX;
                    
288            $bestMaskNum = 0;
                    
                
elFinderSupportVer1.js https://gitlab.com/wormen/client.mastodont-engine | JavaScript | 336 lines
                    
96				
                    
97			case 'mkdir':
                    
98			case 'mkfile':
                    
139	// 	'Access denied'                                    : 'Access denied.',
                    
140	// 	'PHP JSON module not installed'                    : 'PHP JSON module not installed.',
                    
141	// 	'File not found'                                   : 'File not found.',
                    
                
README.markdown https://gitlab.com/wwitzel3/vim-config | Markdown | 252 lines
                    
42LLVM intermediate language, Lua, MATLAB, NASM, Objective-C, Objective-C++,
                    
43OCaml, Perl, Perl POD, PHP, gettext Portable Object, Puppet, Python, Racket,
                    
44reStructuredText, Ruby, Rust, SASS/SCSS, Scala, Slim, Tcl, TeX, Texinfo, Twig,
                    
77```sh
                    
78mkdir -p ~/.vim/autoload ~/.vim/bundle; \
                    
79curl -so ~/.vim/autoload/pathogen.vim \
                    
183
                    
184Some filetypes, like PHP, have style checkers as well as syntax checkers. These
                    
185can be chained together like this:
                    
186```vim
                    
187let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd']
                    
188```
                    
190This is telling syntastic to run the `php` checker first, and if no errors are
                    
191found, run `phpcs`, and then `phpmd`.
                    
192
                    
                
Rakefile https://gitlab.com/pwgd/false-start-pwgd | Rakefile | 133 lines
                    
10PROFILE = "pwgd"
                    
11SETTINGS_SOURCE_REL = "provisioning/settings.#{ENV['ENVIRONMENT']}.php"
                    
12SETTINGS_TARGET_REL = "#{DEFAULT_DIR}/settings.local.php"
                    
85  rm_r BUILD_DIR
                    
86  mkdir_p BUILD_DIR
                    
87  sh "git archive HEAD | tar -x -C #{BUILD_DIR}"
                    
129  task :performance => [:vendor] do
                    
130    sh "./vendor/bin/phpunit --bootstrap ./vendor/autoload.php --log-junit reports/performance.xml tests/"
                    
131  end
                    
                
ExtendedFileStream.php https://gitlab.com/Isaki/le331.fr | PHP | 194 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'phing/system/io/PhingFile.php';
                    
4
                    
27 *
                    
28 * @author Michiel Rook <mrook@php.net>
                    
29 * @version $Id: 9f3deadd6a2b93620d27fe8959f9f688b4c58171 $
                    
54        if (!$f->exists()) {
                    
55            $f->mkdirs();
                    
56        }
                    
177     */
                    
178    public function mkdir($path, $mode, $options)
                    
179    {
                    
                
service-bus-amqp-apache.md https://gitlab.com/yeah568/azure-content | Markdown | 119 lines
                    
21
                    
22This section shows how to create a CentOS Linux VM using Azure Virtual Machines and how to download, build and install the Apache Qpid Proton-C library along with the Python and PHP language bindings. After completing these steps, you will be able to run the Python and PHP samples included with this guide.
                    
23
                    
39
                    
40For the Python and PHP apps, this example uses the Proton client libraries from Apache. These libraries are available for download from [http://qpid.apache.org/download.html](http://qpid.apache.org/download.html). The Readme file in the distribution package explains the steps required to install the dependencies and build Proton. Here's a summary of the steps:
                    
41
                    
53	# dependencies needed for bindings
                    
54	yum install swig python-devel ruby-devel php-devel java-1.6.0-openjdk
                    
55	
                    
88	
                    
89	mkdir build cd build
                    
90			
                    
                
init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
24		'url'			=>		'',		// optional url for migration that corresponds to this ftp/path.
                    
25		'disable_file_management'	=>		'0',		// When 1, _manage.php will not load which renders remote file management DISABLED.
                    
26		'disabled'					=>		'0',		// When 1, disable this destination.
                    
82			} else {
                    
83				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTPS in PHP.', 'error' );
                    
84				return false;
                    
95			} else {
                    
96				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTP in PHP.', 'error' );
                    
97				return false;
                    
124		// Create directory if it does not exist.
                    
125		@ftp_mkdir( $conn_id, $path );
                    
126		
                    
                
Filesystem.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Storage_Directory */
                    
24require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
25
                    
88
                    
89    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
90    {
                    
96        }
                    
97        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
98            return mkdir($dir, $mode);
                    
114            if (file_exists($path)) {
                    
115                require_once 'Zend/Search/Lucene/Exception.php';
                    
116                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
Main.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 368 lines
                    
1<?php
                    
2/**
                    
39	public function onEnable(){
                    
40		if (!is_dir($this->getDataFolder())) mkdir($this->getDataFolder());
                    
41		mc::plugin_init($this,$this->getFile());
                    
                
File.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 160 lines
                    
1<?php
                    
2
                    
92     *
                    
93     * \SplFileInfo::getExtension() is not available before PHP 5.3.6
                    
94     *
                    
132        if (!is_dir($directory)) {
                    
133            if (false === @mkdir($directory, 0777, true) && !is_dir($directory)) {
                    
134                throw new FileException(sprintf('Unable to create the "%s" directory', $directory));
                    
                
FileLog.php https://gitlab.com/ViniciusP/project-games | PHP | 213 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) :  Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
12 * @since         1.3.0
                    
12 * @since         1.3.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
93        ) {
                    
94            mkdir($this->_path, 0775, true);
                    
95        }
                    
                
GitRepo.php git://github.com/kbjr/Git.php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
118					if ($parent = realpath(dirname($repoPath))) {
                    
119						mkdir($repoPath);
                    
120						$this->repoPath = $repoPath;
                    
                
DirectoryTest.php https://gitlab.com/reasonat/test8 | PHP | 163 lines
                    
1<?php
                    
2
                    
4
                    
5use Drupal\Component\PhpStorage\FileStorage;
                    
6
                    
32    $child_path = $parent_path . DIRECTORY_SEPARATOR . $child;
                    
33    $this->assertTrue(drupal_mkdir($child_path, 0775, TRUE), t('No error reported when creating new local directories.'), 'File');
                    
34
                    
47    $absolute_path = drupal_realpath($directory) . DIRECTORY_SEPARATOR . $this->randomMachineName() . DIRECTORY_SEPARATOR . $this->randomMachineName();
                    
48    $this->assertTrue(drupal_mkdir($absolute_path, 0775, TRUE), 'No error reported when creating new absolute directories.', 'File');
                    
49    $this->assertDirectoryPermissions($absolute_path, 0775);
                    
68
                    
69    if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
70      // PHP on Windows doesn't support any kind of useful read-only mode for
                    
70      // PHP on Windows doesn't support any kind of useful read-only mode for
                    
71      // directories. When executing a chmod() on a directory, PHP only sets the
                    
72      // read-only flag, which doesn't prevent files to actually be written
                    
                
Clover.php https://gitlab.com/ealexis.t/trends | PHP | 284 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
15 */
                    
16class PHP_CodeCoverage_Report_Clover
                    
17{
                    
18    /**
                    
19     * @param  PHP_CodeCoverage $coverage
                    
20     * @param  string           $target
                    
                
t_xsd_generator.cc https://gitlab.com/sudarsunkannan/mapkeeper | C++ | 359 lines
                    
85  /**
                    
86   * Output xsd/php file
                    
87   */
                    
88  std::ofstream f_xsd_;
                    
89  std::ofstream f_php_;
                    
90
                    
100  // Make output directory
                    
101  MKDIR(get_out_dir().c_str());
                    
102
                    
103  // Make output file
                    
104  string f_php_name = get_out_dir()+program_->get_name()+"_xsd.php";
                    
105  f_php_.open(f_php_name.c_str());
                    
106
                    
107  f_php_ <<
                    
108    "<?php" << endl;
                    
                
DefenceManager.php https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev | PHP | 379 lines
                    
1<?php
                    
2
                    
265		if (! file_exists ( $path )) {
                    
266			@mkdir ( $path, 0755, true );
                    
267			// $resource = new \SplFileInfo($file_name);
                    
                
Transformer.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 317 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * phpDocumentor
                    
4 *
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
7 * @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
                    
8 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
9 * @link      http://phpdoc.org
                    
11
                    
12namespace phpDocumentor\Transformer;
                    
13
                    
13
                    
14use phpDocumentor\Transformer\Event\WriterInitializationEvent;
                    
15use phpDocumentor\Transformer\Writer\Initializable;
                    
                
Language.de.js https://gitlab.com/fredec/ionizecms-1.0.8.x | JavaScript | 125 lines
                    
76	'backend.delete_cache_entries_failed': 'An error occurred when attempting to delete the item cache (thumbnails, metadata)',
                    
77	'backend.mkdir_failed': 'An error occurred when attempting to create the directory: ', // path
                    
78	'backend.move_failed': 'An error occurred while moving / renaming the file / directory: ', // oldlocalpath : newlocalpath
                    
82
                    
83	// Image.class.php:
                    
84	'backend.process_nofile': 'The image processing unit did not receive a valid file location to work on.',
                    
                
Cache_File.php https://gitlab.com/karlen/ayo_wp | PHP | 455 lines
                    
1<?php
                    
2namespace W3TC;
                    
117		@fputs( $fp, pack( 'L', $expires_at ) );
                    
118		@fputs( $fp, '<?php exit; ?>' );
                    
119		@fputs( $fp, @serialize( $var ) );
                    
315
                    
316		$path = sprintf( '%s/%s/%s.php', substr( $hash, 0, 3 ), substr( $hash, 3, 3 ), $hash );
                    
317
                    
409		@fputs( $fp, pack( 'L', $expires_at ) );
                    
410		@fputs( $fp, '<?php exit; ?>' );
                    
411		@fputs( $fp, (int)$value );
                    
447		if ( !@is_dir( $dir ) ) {
                    
448			if ( !Util_File::mkdir_from( $dir, W3TC_CACHE_DIR ) )
                    
449				return false;
                    
                
crop-avatar.php https://gitlab.com/oytunistrator/cropper | PHP | 197 lines
                    
1<?php
                    
2    class CropAvatar {
                    
48                    if (!file_exists($dir)) {
                    
49                        mkdir($dir, 0777);
                    
50                    }
                    
85            if (!file_exists($dir)) {
                    
86                mkdir($dir, 0777);
                    
87            }
                    
145                case UPLOAD_ERR_INI_SIZE:
                    
146                    $message = 'The uploaded file exceeds the upload_max_filesize directive in php.ini';
                    
147                    break;
                    
                
PostImageHandler.php https://gitlab.com/wubbajack/insided-test | PHP | 288 lines
                    
1<?php namespace App\Core\Handlers;
                    
2
                    
231        if (!is_dir($dir)) {
                    
232            mkdir($dir, 0777, true);
                    
233        }
                    
                
files_lang.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 107 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2
                    
71$lang['files:folder_not_empty']				= 'É necessário excluir o conteúdo de "%s" primeiro';
                    
72$lang['files:mkdir_error']					= 'Nós não temos permissão para criar a pasta de upload. Deve criá-la manualmente';
                    
73$lang['files:chmod_error']					= 'A pasta de upload não tem permissões de escrita. Ela tem de ter permissões 0777';
                    
106
                    
107/* End of file files_lang.php */
                    
                
EasyTar.class.php https://gitlab.com/surajraghuvanshi/Privlage-Esclator | PHP | 209 lines
                    
15 +--------------------------------------------------
                    
16 http://www.phpclasses.org/browse/package/4239.html **/
                    
17class tar
                    
77
                    
78			if ($infos['type']=='5' && @mkdir($dest.$infos['name'], 0775, true))
                    
79			  $result[]=$dest.$infos['name'];
                    
                
generate-standalone.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 159 lines
                    
10 * Compiles all of HTML Purifier's library files into one big file
                    
11 * named HTMLPurifier.standalone.php. This is usually called during the
                    
12 * release process.
                    
42/**
                    
43 * Replaces the includes inside PHP source code with the corresponding
                    
44 * source.
                    
44 * source.
                    
45 * @param string $text PHP source code to replace includes from
                    
46 */
                    
99    $contents = file_get_contents($file);
                    
100    if (strrchr($file, '.') === '.php') $contents = replace_includes($contents);
                    
101    return file_put_contents($sfile, $contents);
                    
123echo 'Generating includes file... ';
                    
124shell_exec('php generate-includes.php');
                    
125echo "done!\n";
                    
                
syncDir.php https://gitlab.com/florianocomercial/centreon | PHP | 201 lines
                    
1<?php
                    
2/*
                    
38
                    
39	require_once realpath(dirname(__FILE__) . "/../../../../../config/centreon.config.php");
                    
40
                    
40
                    
41	require_once ("./class/centreonDB.class.php");
                    
42
                    
99	<br>
                    
100	<?php print "<b>&nbsp;&nbsp;"._("Media Detection")."</b>"; ?>
                    
101	<br><br>
                    
104		<p>
                    
105		<?php
                    
106			print _("Bad picture alias detected :") . " $fileRemoved<br>";
                    
112		<br><br><br>
                    
113		<center><a href='javascript:window.opener.location.reload();javascript:window.close();'><?php print _("Close"); ?></a></center>
                    
114	</div>
                    
                
elfinder.ar.js https://gitlab.com/kaouech/theme | JavaScript | 290 lines
                    
26			'errConf'              : 'خطأ في الإعدادات الخاصة بالخادم الخلفي ',
                    
27			'errJSON'              : 'الميزة PHP JSON module غير موجودة ',
                    
28			'errNoVolumes'         : 'لا يمكن القراءة من أي من الوسائط الموجودة ',
                    
45			'errPopup'             : 'يمنعني المتصفح من إنشاء نافذة منبثقة , الرجاء تعديل الخيارات الخاصة  من إعدادات المتصفح ',
                    
46			'errMkdir'             : ' غير قادر على إنشاء مجلد جديد "$1".',
                    
47			'errMkfile'            : ' غير قادر على إنشاء ملف جديد"$1".',
                    
85			'cmdinfo'      : 'معلومات ',
                    
86			'cmdmkdir'     : 'مجلد جديد',
                    
87			'cmdmkfile'    : 'ملف نصي جديد',
                    
110			'ntfreload'   : 'إعادة عرض محتويات المجلد ',
                    
111			'ntfmkdir'    : 'ينشئ المجلدات',
                    
112			'ntfmkfile'   : 'ينشئ الملفات',
                    
235			'kindTextPlain'   : 'مستند نصي',
                    
236			'kindPHP'         : 'PHP ملف نصي برمجي لـ',
                    
237			'kindCSS'         : 'Cascading style sheet',
                    
                
tracking.php https://gitlab.com/x33n/platform-application | PHP | 163 lines
                    
1<?php
                    
2/**
                    
87
                    
88    require_once __DIR__ . '/../app/bootstrap.php.cache';
                    
89    require_once __DIR__ . '/../app/AppKernel.php';
                    
114} else {
                    
115    mkdir($trackingFolder);
                    
116}
                    
138    $rawData['loggedAt'] = getLoggedAt();
                    
139    $data                = json_encode($rawData) . PHP_EOL;
                    
140    $fh                  = fopen($trackingFolder . DIRECTORY_SEPARATOR . $fileName, 'a');
                    
150if ($settings['piwik_host']) {
                    
151    $piwikTrackingUrl = $settings['piwik_host'] . '/piwik.php';
                    
152    if ($settings['piwik_token_auth']) {
                    
                
Makefile https://gitlab.com/envieidoc/advancedtomato2 | Makefile | 214 lines
                    
135	-rd /s /q $(BUILD_DIR)\php-test-pack-$(PHP_VERSION_STRING)
                    
136	-del /f /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip
                    
137	-del /f /q $(BUILD_DIR)\php-debug-pack-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip
                    
153	-rd /s /q $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)
                    
154	-del /f /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip
                    
155	-del /f /q $(BUILD_DIR)\php-debug-pack-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip
                    
158	cd $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
                    
159	-$(ZIP) -9 -q -r ..\php-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip .
                    
160	cd ..\..
                    
170	cd
                    
171	-$(ZIP) -9 -q -r php-devel-pack-$(PHP_VERSION_STRING)$(PHP_ZTS_ARCHIVE_POSTFIX)-Win32-$(PHP_COMPILER_SHORT)-$(PHP_ARCHITECTURE).zip $(BUILD_DIR_DEV_NAME)
                    
172	cd ..\..
                    
212	@echo It's okay for this step to fail:
                    
213	-$(PHP_PREFIX)\php.exe -n -dextension_dir=$(PHP_PREFIX) win32/build/registersyslog.php $(PHP_PREFIX)\$(PHPDLL)
                    
214
                    
                
io.php https://gitlab.com/a.loskutnikov/sitimobile | PHP | 272 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
92
                    
93	// Ensure the folder path has no double-slashes, or mkdir may fail on certain platforms
                    
94	while ( strpos($folderPath, '//') !== false )
                    
116
                    
117		$php_errormsg = '' ;
                    
118		// Enable error tracking to catch the error.
                    
122		$oldumask = umask(0) ;
                    
123		mkdir( $folderPath, 0777 ) ;
                    
124		umask( $oldumask ) ;
                    
154	if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) )
                    
155		SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ;
                    
156
                    
                
StreamHandler.php https://gitlab.com/judielsm/Handora | PHP | 146 lines
                    
1<?php
                    
2
                    
18 *
                    
19 * Can be used to store into php://stderr, remote and local files, etc.
                    
20 *
                    
104    {
                    
105        $this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg);
                    
106    }
                    
137            set_error_handler(array($this, 'customErrorHandler'));
                    
138            $status = mkdir($dir, 0777, true);
                    
139            restore_error_handler();
                    
                
BasicStructure.php https://gitlab.com/wuhang2003/core | PHP | 300 lines
                    
1<?php
                    
2
                    
5
                    
6require __DIR__ . '/../../vendor/autoload.php';
                    
7
                    
124	public function sendingToWith($verb, $url, $body) {
                    
125		$fullUrl = $this->baseUrl . "v{$this->apiVersion}.php" . $url;
                    
126		$client = new Client();
                    
155	public function theOCSStatusCodeShouldBe($statusCode) {
                    
156		PHPUnit_Framework_Assert::assertEquals($statusCode, $this->getOCSResponse($this->response));
                    
157	}
                    
163	public function theHTTPStatusCodeShouldBe($statusCode) {
                    
164		PHPUnit_Framework_Assert::assertEquals($statusCode, $this->response->getStatusCode());
                    
165	}
                    
267		if (!file_exists("../../core/skeleton/FOLDER")) {
                    
268			mkdir("../../core/skeleton/FOLDER", 0777, true);
                    
269		}
                    
                
Filesystem.php https://gitlab.com/Sigpot/AirSpot | PHP | 514 lines
                    
1<?php
                    
2
                    
386        if ($force) {
                    
387            return @mkdir($path, $mode, $recursive);
                    
388        }
                    
389
                    
390        return mkdir($path, $mode, $recursive);
                    
391    }
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 387 lines
                    
1<?php
                    
2/**
                    
27		if ( ! extension_loaded('ftp') ) {
                    
28			$this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available'));
                    
29			return false;
                    
248	}
                    
249	function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
                    
250		if ( !@ftp_mkdir($this->link, $path) )
                    
                
Storage.php https://gitlab.com/fiesta-framework/Documentation | PHP | 382 lines
                    
1<?php 
                    
2
                    
59		$self=new self();
                    
60		if(!$self->checkDiskExiste($name)) mkdir($self->basePath."/".$name, 0777, true);
                    
61		$self=new self($name);
                    
306		if($this->isDir($name))		
                    
307		return mkdir($this->storagePath."/".$name);
                    
308	}
                    
312		$self=new self();
                    
313		return mkdir($self->storagePath."/".$name);
                    
314	}
                    
                
methodComp.cpp https://gitlab.com/weinshec/tes_performance | C++ | 144 lines
                    
77  pu_fit.setTree(outTree);
                    
78  PHPIProcessor     pu_phpi("phpi", ch, true);
                    
79  pu_phpi.setTree(outTree);
                    
100  double fit_integral;
                    
101  double fit_dAmplitude, fit_dIntegral, phpi_dAmplitude, phpi_dIntegral;
                    
102  outTree->Branch("fit_integral",    &fit_integral);
                    
104  outTree->Branch("fit_dIntegral",   &fit_dIntegral);
                    
105  outTree->Branch("phpi_dAmplitude", &phpi_dAmplitude);
                    
106  outTree->Branch("phpi_dIntegral",  &phpi_dIntegral);
                    
113    auto fitRecord  = pu_fit(event);
                    
114    auto phpiRecord = pu_phpi(event);
                    
115
                    
117                      / truth.truth_amplitude;
                    
118    phpi_dAmplitude = (phpiRecord.ph - truth.truth_amplitude)
                    
119                      / truth.truth_amplitude;
                    
                
ext_ftp.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 265 lines
                    
1<?hh
                    
2// @generated by idl-to-hni.php
                    
3
                    
114<<__Native("ZendCompat")>>
                    
115function ftp_mkdir(mixed $ftp_stream,
                    
116                   mixed $directory): mixed;
                    
251 * if both the ftp module and the OpenSSL support is built statically into
                    
252 * php, this means that on Windows this function will be undefined in the
                    
253 * official PHP builds. To make this function available on Windows you must
                    
253 * official PHP builds. To make this function available on Windows you must
                    
254 * compile your own PHP binaries.  ftp_ssl_connect() is not intended for use
                    
255 * with sFTP. To use sFTP with PHP, please see ssh2_sftp().
                    
                
ReadOnlyStreamWrapperTest.php https://gitlab.com/geeta7/drupal | PHP | 93 lines
                    
1<?php
                    
2
                    
80
                    
81    // Test the mkdir() function by attempting to create a directory.
                    
82    $dirname = $this->randomMachineName();
                    
84    $readonlydir = $this->scheme . '://' . $dirname;
                    
85    $this->assertFalse(@drupal_mkdir($readonlydir, 0775, 0), 'Unable to create directory with read-only stream wrapper.');
                    
86    // Create a temporary directory for testing purposes
                    
86    // Create a temporary directory for testing purposes
                    
87    $this->assertTrue(drupal_mkdir($dir), 'Test directory created.');
                    
88    // Test the rmdir() function by attempting to remove the directory.
                    
                
release-process.md https://gitlab.com/Quetzalcoatl/VekitaCoin | Markdown | 122 lines
                    
34
                    
35	mkdir -p inputs; cd inputs/
                    
36	wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.9.20140401.tar.gz' -O miniupnpc-1.9.20140401.tar.gz'
                    
                
posters.php https://gitlab.com/sutrix.hoa.tran/Research-Prestashop | PHP | 286 lines
                    
1<?php
                    
2
                    
9	exit;
                    
10require_once(dirname(__FILE__) . '/classes/PostersModel.php');
                    
11class Posters extends Module
                    
54	{
                    
55            mkdir($this->img_folder);
                    
56            chown($this->img_folder,fileowner(_PS_IMG_DIR_));
                    
143// Include the controller file
                    
144        require_once(dirname(__FILE__) . '/controllers/hook/' . $hook_name . '.php');
                    
145// Build the controller name dynamically
                    
                
Process.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 451 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
171                $destPath.= DS.$dir;
                    
172                $this->_mkdir($destPath);
                    
173            }
                    
188        if (is_dir($source)) {
                    
189            $this->_mkdir($target);
                    
190            $dir = dir($source);
                    
                
Grenade.php https://gitlab.com/Skull3x/MineBlock | PHP | 206 lines
                    
1<?php
                    
2namespace MineBlock\Grenade;
                    
118	public function loadYml(){
                    
119		@mkdir($this->path = ($this->getServer()->getDataPath() . "/plugins/! MineBlock/"));
                    
120		$this->g = (new Config($this->file = $this->path . "Grenade.yml", Config::YAML, [
                    
132	public function isKorean(){
                    
133		@mkdir($this->getServer()->getDataPath() . "/plugins/! MineBlock/");
                    
134		if(!isset($this->ik)) $this->ik = (new Config($this->getServer()->getDataPath() . "/plugins/! MineBlock/" . "! Korean.yml", Config::YAML, ["Korean" => false]))->get("Korean");
                    
                
upload.class.php https://github.com/isold/longyu.git | PHP | 378 lines
                    
1<?php
                    
2
                    
61		{
                    
62			if (!mkdir($dir))
                    
63			{
                    
147/*
                    
148    php缩略图函数:
                    
149        等比例无损压缩,可填充补充色 author: 华仔
                    
161        // 中文件名乱码
                    
162        if ( PHP_OS == 'WINNT' ) {
                    
163                $srcimage = iconv('UTF-8', 'GBK', $srcimage);
                    
258
                    
259// BMP 创建函数  php本身无
                    
260function imagecreatefrombmp($filename)
                    
339}
                    
340// BMP 保存函数,php本身无
                    
341function imagebmp ($im, $fn = false)
                    
                
io.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 303 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
93
                    
94	// Ensure the folder path has no double-slashes, or mkdir may fail on certain platforms
                    
95	while ( strpos($folderPath, '//') !== false )
                    
117
                    
118		$php_errormsg = '' ;
                    
119		// Enable error tracking to catch the error.
                    
123		{
                    
124			mkdir( $folderPath ) ;
                    
125		}
                    
169	if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) )
                    
170		SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ;
                    
171
                    
                
FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
                    
1<?php
                    
2/**
                    
154        if( $parent && ! $parent->exists() ){
                    
155            $this->mkdir($parent);
                    
156        }
                    
229            if( ! $dir->exists() ){
                    
230                $this->mkdir($dir);
                    
231            }
                    
267     */
                    
268     public function mkdir( Loco_fs_File $here = null ) {
                    
269        if( is_null($here) ){
                    
283                foreach( $stack as $path ){
                    
284                    if( ! $fs->mkdir($path,$mode) ){
                    
285                        Loco_error_AdminNotices::debug( sprintf('mkdir(%s,%03o) failed via "%s" method;',var_export($path,1),$mode,$fs->method) );
                    
317        // Deny list of executable file extensions, noting that specific actions may limit this further.
                    
318        // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not.
                    
319        $exts = array_slice( explode('.', $this->file->basename() ), 1 );
                    
                
openbay.php https://gitlab.com/hazelnuts23/unitedfoodstuff | PHP | 116 lines
                    
1<?php
                    
2// Heading
                    
96$_['error_permission']					= 'You do not have permission to modify the OpenBay Pro extension';
                    
97$_['error_mkdir']						= 'PHP mkdir function is disabled, contact your host';
                    
98$_['error_file_delete']					= 'Unable to remove these files, you should delete them manually';
                    
98$_['error_file_delete']					= 'Unable to remove these files, you should delete them manually';
                    
99$_['error_mcrypt']            			= 'PHP function "mcrypt_encrypt" is not enabled. Contact your hosting provider.';
                    
100$_['error_mbstring']               		= 'PHP library "mb strings" is not enabled. Contact your hosting provider.';
                    
100$_['error_mbstring']               		= 'PHP library "mb strings" is not enabled. Contact your hosting provider.';
                    
101$_['error_ftpconnect']             		= 'PHP FTP functions are not enabled. Contact your hosting provider.';
                    
102$_['error_oc_version']             		= 'Your version of OpenCart is not tested to work with this module. You may experience problems.';
                    
102$_['error_oc_version']             		= 'Your version of OpenCart is not tested to work with this module. You may experience problems.';
                    
103$_['error_fopen']             			= 'PHP function "fopen" is disabled by your host - you will be unable to import images when importing products';
                    
104
                    
                
dir.php https://gitlab.com/gricelya/rental | PHP | 209 lines
                    
1<?php
                    
2
                    
11 * @copyright Bastian Allgeier
                    
12 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
                    
13 */
                    
35  public static function make($dir, $recursive = true) {
                    
36    return is_dir($dir) ? true : @mkdir($dir, static::$defaults['permissions'], $recursive);
                    
37  }
                    
                
Reporter.php https://gitlab.com/matheusgarcez/jasperphp | PHP | 167 lines
                    
1<?php
                    
2namespace JasperPHP;
                    
12        $this->reportDirectory = $reportDir;
                    
13        $this->jasper = new JasperPHP($resourcesDir);
                    
14    }
                    
82        $cacheDirectory = $this->reportDirectory . "/tmp/";
                    
83        if (!file_exists($cacheDirectory) && !@mkdir($cacheDirectory, 0755) && !is_dir($cacheDirectory)) {
                    
84            throw new \Exception("Failed to create temporary folder.");
                    
                
ClassMapGeneratorTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 226 lines
                    
68            $data[] = array(__DIR__.'/Fixtures/php5.4', array(
                    
69                'TFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
70                'CFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
70                'CFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
71                'Foo\\TBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
72                'Foo\\IBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
72                'Foo\\IBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
73                'Foo\\TFooBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
74                'Foo\\CBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
166
                    
167        file_put_contents($tempDir.'/A.php', "<?php\nclass A {}");
                    
168
                    
183            }
                    
184            file_put_contents($tempDir.'/'.$keyword.'/A.php', "<?php\nclass A {}");
                    
185        }
                    
                
sizepropagation.php https://gitlab.com/wuhang2003/core | PHP | 121 lines
                    
1<?php
                    
2/**
                    
52		$ownerView = $this->setupUser(self::TEST_FILES_SHARING_API_USER2);
                    
53		$ownerView->mkdir('/sharedfolder/subfolder');
                    
54		$ownerView->file_put_contents('/sharedfolder/subfolder/foo.txt', 'bar');
                    
87		$ownerView = $this->setupUser(self::TEST_FILES_SHARING_API_USER2);
                    
88		$ownerView->mkdir('/sharedfolder/subfolder');
                    
89		$ownerView->file_put_contents('/sharedfolder/subfolder/foo.txt', 'bar');
                    
                
FilesystemAdapter.php https://gitlab.com/pr0055/symfonypizza | PHP | 158 lines
                    
1<?php
                    
2
                    
36        if (!file_exists($dir = $directory.'/.')) {
                    
37            @mkdir($directory, 0777, true);
                    
38        }
                    
146
                    
147    private function getFile($id, $mkdir = false)
                    
148    {
                    
151
                    
152        if ($mkdir && !file_exists($dir)) {
                    
153            @mkdir($dir, 0777, true);
                    
                
class-ai1wm-extractor.php https://gitlab.com/haque.mdmanzurul/roadskill | PHP | 296 lines
                    
1<?php
                    
2
                    
115		if ( false === file_exists( $path ) ) {
                    
116			mkdir( $path, 0755, true );
                    
117		}
                    
                
Logger.php git://github.com/katzgrau/KLogger.git | PHP | 349 lines
                    
1<?php
                    
2namespace Katzgrau\KLogger;
                    
118        if ( ! file_exists($logDirectory)) {
                    
119            mkdir($logDirectory, $this->defaultPermissions, true);
                    
120        }
                    
121
                    
122        if(strpos($logDirectory, 'php://') === 0) {
                    
123            $this->setLogToStdOut($logDirectory);
                    
288        if ($this->options['appendContext'] && ! empty($context)) {
                    
289            $message .= PHP_EOL.$this->indent($this->contextToString($context));
                    
290        }
                    
291
                    
292        return $message.PHP_EOL;
                    
293
                    
298     *
                    
299     * PHP DateTime is dump, and you have to resort to trickery to get microseconds
                    
300     * to work correctly, so here it is.
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
123      {
                    
124        if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName())
                    
125        {
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
                
Folder.php https://gitlab.com/akbaryu/project_magang_blog_grav | PHP | 346 lines
                    
1<?php
                    
2/**
                    
228                if (!is_dir($dst)) {
                    
229                    $success &= @mkdir($dst, 0777, true);
                    
230                }
                    
315
                    
316        $success = @mkdir($folder, 0777, true);
                    
317
                    
                
kfmDirectory.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 364 lines
                    
1<?php
                    
2class kfmDirectory extends kfmObject{
                    
78		}
                    
79		mkdir($physical_address);
                    
80		if(!file_exists($physical_address)){
                    
111		$j=0;
                    
112		if(!is_dir(WORKPATH.'css_sprites'))mkdir(WORKPATH.'css_sprites');
                    
113		foreach($files as $file){
                    
                
MaildirFolderTest.php git://github.com/zendframework/zf2.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
60            if (!file_exists($this->_tmpdir)) {
                    
61                mkdir($this->_tmpdir);
                    
62            }
                    
79            if ($dir != '.') {
                    
80                mkdir($this->_tmpdir . $dir);
                    
81            }
                    
85                }
                    
86                mkdir($this->_tmpdir . $dir . '/' . $subdir);
                    
87                $dh = opendir($this->_originalDir . $dir . '/' . $subdir);
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
                
FileSystem.php https://gitlab.com/vanafroo/voipWEB | PHP | 171 lines
                    
1<?php
                    
2
                    
116     */
                    
117    public static function mkdir($dir, $mode = 0750)
                    
118    {
                    
119        $fs = new \Symfony\Component\Filesystem\Filesystem();
                    
120        $fs->mkdir($dir, $mode);
                    
121    }
                    
                
Compiler.js https://gitlab.com/0072016/webpack | JavaScript | 441 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
262		outputPath = compilation.getPath(this.outputPath);
                    
263		this.outputFileSystem.mkdirp(outputPath, emitFiles.bind(this));
                    
264	}.bind(this));
                    
278				var dir = path.dirname(targetFile);
                    
279				this.outputFileSystem.mkdirp(this.outputFileSystem.join(outputPath, dir), writeOut.bind(this));
                    
280			} else writeOut.call(this);
                    
322	if(!recordsOutputPathDirectory) return writeFile.call(this);
                    
323	this.outputFileSystem.mkdirp(recordsOutputPathDirectory, function(err) {
                    
324		if(err) return callback(err);
                    
                
Login.php https://gitlab.com/Skull3x/Plugins | PHP | 248 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
231	public function loadYml(){
                    
232		@mkdir($this->getServer()->getDataPath() . "/plugins/! DeBePlugins/");
                    
233		$this->login = new Config($this->getServer()->getDataPath() . "/plugins/! DeBePlugins/" . "Login.yml", Config::YAML);
                    
                
Makefile https://gitlab.com/albertkeba/docs | Makefile | 132 lines
                    
76	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
                    
77	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/CakePHPCookbook.qhcp"
                    
78	@echo "To view the help file:"
                    
78	@echo "To view the help file:"
                    
79	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/CakePHPCookbook.qhc"
                    
80
                    
85	@echo "To view the help file:"
                    
86	@echo "# mkdir -p $$HOME/.local/share/devhelp/CakePHPCookbook"
                    
87	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/CakePHPCookbook"
                    
                
PharStreamWrapper.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 511 lines
                    
1<?php
                    
2namespace TYPO3\PharStreamWrapper;
                    
19     * Internal stream constants that are not exposed to PHP, but used...
                    
20     * @see https://github.com/php/php-src/blob/e17fc0d73c611ad0207cac8a4a01ded38251a7dc/main/php_streams.h
                    
21     */
                    
103     */
                    
104    public function mkdir($path, $mode, $options)
                    
105    {
                    
105    {
                    
106        $this->assert($path, Behavior::COMMAND_MKDIR);
                    
107        return $this->invokeInternalStreamWrapper(
                    
107        return $this->invokeInternalStreamWrapper(
                    
108            'mkdir',
                    
109            $path,
                    
258            $arguments[] = $this->context;
                    
259        // work around https://bugs.php.net/bug.php?id=66569
                    
260        // for including files from Phar stream with OPcache enabled
                    
                
msp-admin-functions.php https://gitlab.com/stevie007/cinostaging | PHP | 141 lines
                    
1<?php // admin related functions
                    
2
                    
93    if ( empty( $wp_filesystem ) ) {
                    
94        require_once ( ABSPATH.'/wp-admin/includes/file.php' );
                    
95        WP_Filesystem();
                    
97
                    
98    if ( wp_mkdir_p( $css_dir ) && ! $wp_filesystem->put_contents( $css_file, $css_terms.$css, 0644 ) ) {
                    
99        // if the directory is not writable, try inline css fallback
                    
                
ChangeImageProfileController.php https://gitlab.com/phumaster/uploadImage | PHP | 148 lines
                    
1<?php
                    
2
                    
29      if(!file_exists(public_path().'/upload')) {
                    
30        mkdir(public_path().'/upload');
                    
31      }
                    
32      if(!file_exists(public_path().'/upload/images/')) {
                    
33        mkdir(public_path().'/upload/images');
                    
34      }
                    
56        if(!file_exists(public_path().'/upload/images/'.$this->user->id.'_'.$this->folder)) {
                    
57          mkdir(public_path().'/upload/images/'.$this->user->id.'_'.$this->folder);
                    
58        }
                    
59        if(!file_exists($destination)) {
                    
60          mkdir($destination);
                    
61        }
                    
107        if(!file_exists(public_path().'/upload/images/'.$this->user->id.'_'.$this->folder)) {
                    
108          mkdir(public_path().'/upload/images/'.$this->user->id.'_'.$this->folder);
                    
109        }
                    
                
McRegion.php https://gitlab.com/koutyan777/Genisys | PHP | 332 lines
                    
1<?php
                    
2
                    
76		if(!file_exists($path)){
                    
77			mkdir($path, 0777, true);
                    
78		}
                    
80		if(!file_exists($path . "/region")){
                    
81			mkdir($path . "/region", 0777);
                    
82		}
                    
                
Sample.php https://gitlab.com/mbase2/source-code | PHP | 230 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Helper;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\IOFactory;
                    
6use PhpOffice\PhpSpreadsheet\Spreadsheet;
                    
7use PhpOffice\PhpSpreadsheet\Writer\IWriter;
                    
8use PhpOffice\PhpSpreadsheet\Writer\Pdf;
                    
9use RecursiveDirectoryIterator;
                    
26    {
                    
27        return PHP_SAPI === 'cli';
                    
28    }
                    
36    {
                    
37        return basename($_SERVER['SCRIPT_FILENAME'], '.php');
                    
38    }
                    
                
ClassPreloader.php https://gitlab.com/ealexis.t/trends | PHP | 181 lines
                    
17use PhpParser\Parser;
                    
18use PhpParser\PrettyPrinter\Standard as PrettyPrinter;
                    
19use RuntimeException;
                    
30     *
                    
31     * @var \PhpParser\PrettyPrinter\Standard
                    
32     */
                    
52     * @param \PhpParser\PrettyPrinter\Standard    $printer
                    
53     * @param \PhpParser\Parser                    $parser
                    
54     * @param \ClassPreloader\Parser\NodeTraverser $traverser
                    
76    {
                    
77        if ($strict && version_compare(PHP_VERSION, '7') < 1) {
                    
78            throw new RuntimeException('Strict mode requires PHP 7 or greater.');
                    
130
                    
131        if (substr($pretty, 30) === '<?php declare(strict_types=1);' || substr($pretty, 30) === "<?php\ndeclare(strict_types=1);") {
                    
132            $pretty = substr($pretty, 32);
                    
                
learn_export.php https://gitlab.com/alexprowars/bitrix | PHP | 294 lines
                    
1<?
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3
                    
5{
                    
6	require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php'); // second system's prolog
                    
7
                    
12
                    
13	require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php');	// system's epilog
                    
14	exit();
                    
16
                    
17require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/learning/prolog.php");
                    
18IncludeModuleLangFile(__FILE__);
                    
21
                    
22require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/tar_gz.php");
                    
23
                    
                
behat_filepicker.php git://github.com/moodle/moodle.git | PHP | 310 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
25
                    
26// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
                    
27
                    
27
                    
28require_once(__DIR__ . '/../../../lib/behat/core_behat_file_helper.php');
                    
29
                    
58                $this->getSession());
                    
59        $newfolder = $this->find('css', 'div.fp-btn-mkdir a', $exception, $fieldnode);
                    
60        $newfolder->click();
                    
63        $exception = new ExpectationException('The dialog to enter the folder name does not appear', $this->getSession());
                    
64        $dialoginput = $this->find('css', '.fp-mkdir-dlg-text input', $exception);
                    
65        $dialoginput->setValue($foldername);
                    
                
view-verification_a.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 136 lines
                    
1<?php  
                    
2 #echo "<pre>"; print_r($_REQUEST); exit; 
                    
19    	$Data_Mail['vName'] = $_REQUEST['vName'];
                    
20    	$Data_Mail['act_link'] = $tconfig['tsite_url']."index.php?file=c-verifymail&act=".$Data['vEmailVarificationCode'];
                    
21    	$generalobj->send_email_user("EMAIL_VERIFICATION_USER",$Data_Mail);
                    
22      $var_msg = LBL_SENT_MAIL;
                    
23    	header("Location: ".$tconfig["tsite_url"]."index.php?file=m-verification&var_msg=".$var_msg."&msg_code=1");
                    
24      exit;
                    
28    	$var_msg = LBL_ERROR_MAIL_VERIFICATION;
                    
29    	header("Location: ".$tconfig["tsite_url"]."index.php?file=m-verification&var_msg=".$var_msg."&msg_code=0");
                    
30      exit;
                    
48    	$Data_Mail['vName'] = $_REQUEST['vName'];
                    
49    	$Data_Mail['act_link'] = $tconfig['tsite_url']."index.php?file=c-verifymail&act=".$Data['vPaymentEmailVerificationCode']."&pay=1";
                    
50    	$generalobj->send_email_user("EMAIL_VERIFICATION_USER",$Data_Mail);
                    
51      $var_msg = LBL_SENT_MAIL;
                    
52    	header("Location: ".$tconfig["tsite_url"]."index.php?file=m-verification&var_msg=".$var_msg."&msg_code=1");
                    
53      exit;
                    
                
ValidCheckingInfoObject.py https://gitlab.com/envieidoc/Clover | Python | 350 lines
                    
4# which accompanies this distribution.  The full text of the license may be found at
                    
5# http://opensource.org/licenses/bsd-license.php
                    
6#
                    
45        if not os.path.exists(dest):
                    
46            os.mkdir(dest)
                    
47        BinFileName = "PcdVarCheck.bin"
                    
                
Stream.php https://gitlab.com/luisrepo/ClienteWS | PHP | 565 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://todo     name_todo
                    
20 * @version    $Id: Stream.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Service/WindowsAzure/Exception.php';
                    
32
                    
474     */
                    
475    public function mkdir($path, $mode, $options)
                    
476    {
                    
486        } else {
                    
487            throw new Zend_Service_WindowsAzure_Exception('mkdir() with multiple levels is not supported on Windows Azure Blob Storage.');
                    
488        }
                    
                
Process.php https://gitlab.com/bbakalov/young_soldier | PHP | 451 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
171                $destPath.= DS.$dir;
                    
172                $this->_mkdir($destPath);
                    
173            }
                    
188        if (is_dir($source)) {
                    
189            $this->_mkdir($target);
                    
190            $dir = dir($source);
                    
                
ApplicationController.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 149 lines
                    
1<?php
                    
2
                    
20                        $img_dst = Application_Model_Application::getBaseImagePath().$relativePath;
                    
21                        if(!is_dir($img_dst)) mkdir($img_dst, 0777, true);
                    
22                        $img_dst .= '/'.$datas['image'];
                    
                
motifs.php https://gitlab.com/freesoftware/paragonie-airship | PHP | 120 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
14 *
                    
15 * Load this in index.php, or anywhere /AFTER/ the CABIN_DIR constant exists
                    
16 */
                    
25        if (!\is_dir(CABIN_DIR . '/View/motif')) {
                    
26            \mkdir(CABIN_DIR . '/View/motif', 0775);
                    
27        } else {
                    
30        if (!\is_dir(CABIN_DIR . '/public/motif')) {
                    
31            \mkdir(CABIN_DIR . '/public/motif', 0775);
                    
32        } else {
                    
                
 

Source

Language