Project

General

Profile

« Previous | Next » 

Revision 1547

Added by Dietmar almost 13 years ago

View differences:

branches/2.8.x/CHANGELOG
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14 14
18 Dez-2011 Build 1546 Dietmar Woellbrink (Luisehahne)
15
+ forgot a file in quickSkin Folder
16
18 Dez-2011 Build 1546 Dietmar Woellbrink (Luisehahne)
15 17
! recoded /account/forgot_form.php
16 18
! update quickSkin 
17 19
! update languages files 
branches/2.8.x/wb/include/quickSkin/wb_quickSkin_28.php
1
<?php
2
/* -------------------------------------------------------- */
3
if(defined('WB_PATH') == false)
4
{
5
	// Stop this file being access directly
6
		die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
7
}
8
/* -------------------------------------------------------- */
9

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

  
13
// COMPILED TEMPLATES
14
$_CONFIG['quickskin_compiled'] = WB_PATH.'/temp/quickSkin/_skins_tmp/';
15

  
16
// CACHED FILES
17
$_CONFIG['quickskin_cache'] = WB_PATH.'/temp/quickSkin/_skins_cache/';
18
$_CONFIG['cache_lifetime'] = 600;
19

  
20
// EXTENTSIONS DIR
21
$_CONFIG['extensions_dir'] = str_replace('\\','/', dirname(__FILE__).'/_lib/qx/'); 
22

  
23
require_once (WB_PATH.'/include/quickSkin/_lib/quickSkin_28/class.quickskin.php');
24

  
25

  
26
/**
27
	SET UP COMPRESSION 
28
*/
29
if ( ini_get( 'zlib.output_compression' )  && ini_get( 'zlib.output_compression_level' ) != 5 ) {
30
  ini_set( 'zlib.output_compression_level', '5' );
31
  ob_start();
32
}
33
/**
34
 * use_common_placeholders
35
 * 
36
 * This function is for QuickSkins internal use.
37
 * It will replace common placeholders to ease the work 
38
 * and the creation of modules and its templates
39
 * This function is called in the class.quickskin.php
40
 *
41
 */
42

  
43
/**
44
 * use_common_placeholders
45
 * 
46
 * This function is for QuickSkins internal use.
47
 * It will replace common placeholders to ease the work 
48
 * and the creation of modules and its templates
49
 * This function is called in the class.quickskin.php
50
 *
51
 */
52

  
53
function use_common_placeholders($text) {
54

  
55
	/**
56
		This function makes possible to use the following PLACEHOLDERS within your modules.
57
		Works good in PAGE Type and ADMIN TOOL Type modules.
58
		As of date 12-18-2011, SNIPPET Type Modules weren't tested
59
		[MODULE_NAME]
60
		[MODULE_URL]
61

  
62
		[WB_URL]
63
		[ADMIN_URL]
64
		[THEME_URL]
65
		[MEDIA_DIRECTORY]
66
			
67
		[TEMPLATE_DIR]
68
		[TEMPLATE_NAME]
69
		[TEMPLATE]
70

  
71
	*/
72
	switch (TRUE){
73
		case isset($GLOBALS['tool']): $MOD_NAME = $GLOBALS['tool']; break;  // AdminTool
74
		case isset($GLOBALS['section']['module']): $MOD_NAME = $GLOBALS['section']['module']; break;  // PageType Module
75
		case isset($GLOBALS['module_dir']): $MOD_NAME = $GLOBALS['module_dir']; break;  // SnippetType Module
76
		default: $MOD_NAME = FALSE;
77
	
78
	}
79
	
80
	if(isset($MOD_NAME)) {
81
		$text = str_replace('[MODULE_NAME]', $MOD_NAME, $text);
82
		$text = str_replace('[MODULE_URL]', WB_URL.'/modules/'.$MOD_NAME, $text);
83
	}	
84
	
85
	// WB CONSTANTS (frontend only)
86
	if(defined('TEMPLATE_DIR'))	 $text = str_replace('[TEMPLATE_DIR]', TEMPLATE_DIR, $text);
87
	if(defined('TEMPLATE_NAME')) $text = str_replace('[TEMPLATE_NAME]', TEMPLATE_NAME, $text);
88
	if(defined('TEMPLATE'))	     $text = str_replace('[TEMPLATE]', TEMPLATE, $text);	
89
	
90
	// WB CONSTANTS (always accessible) 
91
	$text = str_replace('[WB_URL]', WB_URL, $text);	
92
	$text = str_replace('[ADMIN_URL]', ADMIN_URL, $text);
93
	$text = str_replace('[MEDIA_DIRECTORY]', MEDIA_DIRECTORY, $text);
94
	$text = str_replace('[THEME_URL]', THEME_URL, $text);
95
		
96
	return $text;
97
}
0 98

  
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', '1546');
55
if(!defined('REVISION')) define('REVISION', '1547');
56 56
if(!defined('SP')) define('SP', 'SP2');

Also available in: Unified diff