Project

General

Profile

« Previous | Next » 

Revision 1555

Added by Dietmar over 12 years ago

! wb_quickSkin_28.php create _skin folders with folder protect file
! add a 3th parameter to function make_dir to allows the creation of nested directories specified in the pathname. Defaults to TRUE

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14
91 Jan-2012 Build 1554 Dietmar Woellbrink (Luisehahne)
14
02 Jan-2012 Build 1555 Dietmar Woellbrink (Luisehahne)
15
! wb_quickSkin_28.php create _skin folders with folder protect file 
16
! add a 3th parameter to function make_dir to allows the creation of nested directories specified in the pathname. Defaults to TRUE
17
01 Jan-2012 Build 1554 Dietmar Woellbrink (Luisehahne)
15 18
# typofixes in DE languages files (Tks to Ruebenwurzel)
16 19
31 Dez-2011 Build 1553 Dietmar Woellbrink (Luisehahne)
17 20
! recoded  formmodul, add dropdown email_fromname_field
branches/2.8.x/wb/include/quickSkin/wb_quickSkin_28.php
9 9

  
10 10
// use Debug Mode?
11 11
$debugmode = false; 
12

  
12
if(!isset($module_dir)) {
13
		die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Missing variable $module_dir</h2></body></html>');
14
}
15
$aMsg = array();
16
require_once(WB_PATH.'/framework/functions.php');
13 17
// COMPILED TEMPLATES
14
$_CONFIG['quickskin_compiled'] = WB_PATH.'/temp/quickSkin/_skins_tmp/';
18
$_CONFIG['quickskin_compiled'] = WB_PATH.'/temp/'.$module_dir.'/_skins_tmp/';
19
if(!is_dir($_CONFIG['quickskin_compiled'])) {
20
	$msg = createFolderProtectFile($_CONFIG['quickskin_compiled']);
21
	if(sizeof($msg)) {
22
		// $admin->print_error($MESSAGE['GENERIC_BAD_PERMISSIONS'],$module_overview_link );
23
		$aMsg[] = $msg;
24
	}
25
}
15 26

  
16 27
// CACHED FILES
17
$_CONFIG['quickskin_cache'] = WB_PATH.'/temp/quickSkin/_skins_cache/';
28
$_CONFIG['quickskin_cache'] = WB_PATH.'/temp/'.$module_dir.'/_skins_cache/';
29
if(!is_dir($_CONFIG['quickskin_cache'])) {
30
	$msg = createFolderProtectFile($_CONFIG['quickskin_cache']);
31
	if(sizeof($msg)) {
32
		//$admin->print_error($MESSAGE['GENERIC_BAD_PERMISSIONS'],$module_overview_link );
33
		$aMsg[] = $msg;
34
	}
35
}
18 36
$_CONFIG['cache_lifetime'] = 600;
19 37

  
20 38
// EXTENTSIONS DIR
branches/2.8.x/wb/admin/interface/version.php
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54 54
if(!defined('VERSION')) define('VERSION', '2.8.2');
55
if(!defined('REVISION')) define('REVISION', '1554');
55
if(!defined('REVISION')) define('REVISION', '1555');
56 56
if(!defined('SP')) define('SP', 'SP2');
branches/2.8.x/wb/framework/functions.php
401 401
}
402 402

  
403 403
// Function to create directories
404
function make_dir($dir_name, $dir_mode = OCTAL_DIR_MODE)
404
function make_dir($dir_name, $dir_mode = OCTAL_DIR_MODE $recursive=true)
405 405
{
406
	$retVal = false;
406 407
	if(!is_dir($dir_name))
407 408
    {
408
		$umask = umask(0);
409
		mkdir($dir_name, $dir_mode);
410
		umask($umask);
411
		return true;
412
	} else {
413
		return false;
409
		$retVal = mkdir($dir_name, $dir_mode,$recursive);
414 410
	}
411
	return $retVal;
415 412
}
416 413

  
417 414
// Function to chmod files and directories
......
651 648
			// $admin->print_error($MESSAGE['MEDIA_DIR_EXISTS']);
652 649
			$retVal[] = basename($sAbsDir).'::'.$MESSAGE['MEDIA_DIR_EXISTS'];
653 650
		}
654
		if ( !make_dir($sAbsDir) ) {
651
		if (!is_dir($sAbsDir) && !make_dir($sAbsDir) ) {
655 652
			// $admin->print_error($MESSAGE['MEDIA_DIR_NOT_MADE']);
656 653
			$retVal[] = basename($sAbsDir).'::'.$MESSAGE['MEDIA_DIR_NOT_MADE'];
657 654
		} else {

Also available in: Unified diff