Revision 1496
Added by DarkViper over 13 years ago
branches/2.8.x/wb/framework/module.functions.php | ||
---|---|---|
31 | 31 |
NOTE: Some functions were added for module developers to make the creation of own module easier |
32 | 32 |
*/ |
33 | 33 |
|
34 |
// Must include code to stop this file being access directly |
|
35 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
34 |
/* -------------------------------------------------------- */ |
|
35 |
// Must include code to stop this file being accessed directly |
|
36 |
require_once('globalExceptionHandler.php'); |
|
37 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
38 |
/* -------------------------------------------------------- */ |
|
36 | 39 |
|
37 | 40 |
/* |
38 | 41 |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
branches/2.8.x/wb/framework/SecureForm.mtab.php | ||
---|---|---|
45 | 45 |
* how many blocks of the IP should be used in fingerprint 0=no ipcheck, possible values 0-4 |
46 | 46 |
* define ('FINGERPRINT_WITH_IP_OCTETS',2); |
47 | 47 |
*/ |
48 |
/* -------------------------------------------------------- */ |
|
49 |
// Must include code to stop this file being accessed directly |
|
50 |
require_once('globalExceptionHandler.php'); |
|
51 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
52 |
/* -------------------------------------------------------- */ |
|
48 | 53 |
|
49 | 54 |
class SecureForm { |
50 | 55 |
|
branches/2.8.x/wb/framework/class.admin.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
require_once(WB_PATH.'/framework/class.wb.php'); |
23 | 25 |
|
24 | 26 |
// Get WB version |
branches/2.8.x/wb/framework/functions-utf8.php | ||
---|---|---|
43 | 43 |
// entities_to_umlauts2() |
44 | 44 |
// umlauts_to_entities2() |
45 | 45 |
|
46 |
// Must include code to stop this file being access directly |
|
47 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
48 |
|
|
46 |
/* -------------------------------------------------------- */ |
|
47 |
// Must include code to stop this file being accessed directly |
|
48 |
require_once('globalExceptionHandler.php'); |
|
49 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
50 |
/* -------------------------------------------------------- */ |
|
49 | 51 |
/* |
50 | 52 |
* check for mb_string support |
51 | 53 |
*/ |
branches/2.8.x/wb/framework/DseTwo.php | ||
---|---|---|
13 | 13 |
* this is a authorisised GPL-lizensed derivate from the original |
14 | 14 |
* ISTeasy class DseOne which is available under a cc-by-sa-3.0 license |
15 | 15 |
*/ |
16 |
/* -------------------------------------------------------- */ |
|
17 |
// Must include code to stop this file being accessed directly |
|
18 |
require_once('globalExceptionHandler.php'); |
|
19 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
/* -------------------------------------------------------- */ |
|
16 | 21 |
|
17 | 22 |
class DseTwo { |
18 | 23 |
|
branches/2.8.x/wb/framework/class.wbmailer.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// Must include code to stop this file being access directly |
|
27 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
28 |
|
|
26 |
/* -------------------------------------------------------- */ |
|
27 |
// Must include code to stop this file being accessed directly |
|
28 |
require_once('globalExceptionHandler.php'); |
|
29 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
30 |
/* -------------------------------------------------------- */ |
|
29 | 31 |
// Include PHPMailer class |
30 | 32 |
require_once(WB_PATH."/include/phpmailer/class.phpmailer.php"); |
31 | 33 |
|
branches/2.8.x/wb/framework/class.database.php | ||
---|---|---|
25 | 25 |
|
26 | 26 |
*/ |
27 | 27 |
|
28 |
// Must include code to stop this file being access directly |
|
29 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
30 |
|
|
28 |
/* -------------------------------------------------------- */ |
|
29 |
// Must include code to stop this file being accessed directly |
|
30 |
require_once('globalExceptionHandler.php'); |
|
31 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
32 |
/* -------------------------------------------------------- */ |
|
31 | 33 |
if(!defined('DB_URL')) { |
32 | 34 |
//define('DB_URL', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME); |
33 | 35 |
} |
branches/2.8.x/wb/framework/functions.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
// Define that this file has been loaded |
23 | 25 |
define('FUNCTIONS_FILE_LOADED', true); |
24 | 26 |
|
branches/2.8.x/wb/framework/SecureForm.php | ||
---|---|---|
16 | 16 |
* @lastmodified $Date$ |
17 | 17 |
* @description |
18 | 18 |
*/ |
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
19 | 24 |
|
20 | 25 |
class SecureForm { |
21 | 26 |
|
branches/2.8.x/wb/framework/class.login.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
define('LOGIN_CLASS_LOADED', true); |
23 | 25 |
|
24 | 26 |
// Load the other required class files if they are not already loaded |
branches/2.8.x/wb/framework/class.wb.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
21 | 24 |
// Include PHPLIB template class |
22 | 25 |
require_once(WB_PATH."/include/phplib/template.inc"); |
23 | 26 |
|
branches/2.8.x/wb/framework/class.order.php | ||
---|---|---|
15 | 15 |
/******************************************************************************* |
16 | 16 |
* abstract factory for application |
17 | 17 |
*/ |
18 |
// Must include code to stop this file being access directly |
|
19 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
18 |
/* -------------------------------------------------------- */ |
|
19 |
// Must include code to stop this file being accessed directly |
|
20 |
require_once('globalExceptionHandler.php'); |
|
21 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
22 |
/* -------------------------------------------------------- */ |
|
20 | 23 |
define('ORDERING_CLASS_LOADED', true); |
21 | 24 |
// Load the other required class files if they are not already loaded |
22 | 25 |
require_once(WB_PATH."/framework/class.database.php"); |
branches/2.8.x/wb/framework/addon.precheck.inc.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
function getVersion($version, $strip_suffix = true) |
23 | 25 |
{ |
24 | 26 |
/** |
branches/2.8.x/wb/framework/class.frontend.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
require_once(WB_PATH.'/framework/class.wb.php'); |
23 | 25 |
//require_once(WB_PATH.'/framework/SecureForm.php'); |
24 | 26 |
|
branches/2.8.x/wb/framework/charsets_table.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// Must include code to stop this file being access directly |
|
27 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
28 |
|
|
26 |
/* -------------------------------------------------------- */ |
|
27 |
// Must include code to stop this file being accessed directly |
|
28 |
require_once('globalExceptionHandler.php'); |
|
29 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
30 |
/* -------------------------------------------------------- */ |
|
29 | 31 |
global $iso_8859_2_to_utf8; |
30 | 32 |
$iso_8859_2_to_utf8 = array( |
31 | 33 |
"\x80"=>"\xc2\x80","\x81"=>"\xc2\x81","\x82"=>"\xc2\x82","\x83"=>"\xc2\x83","\x84"=>"\xc2\x84","\x85"=>"\xc2\x85","\x86"=>"\xc2\x86","\x87"=>"\xc2\x87", |
branches/2.8.x/wb/framework/frontend.functions.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Must include code to stop this file being access directly |
|
20 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
21 |
|
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
// Must include code to stop this file being accessed directly |
|
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
23 |
/* -------------------------------------------------------- */ |
|
22 | 24 |
// compatibility mode for versions before 2.8.1 |
23 | 25 |
$admin = $wb; |
24 | 26 |
$default_link = $wb->default_link; |
Also available in: Unified diff
activate globalExceptionHandler in inner core files