Revision 1499
Added by DarkViper over 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
=============================== FEATURES FREEZE ================================ |
14 | 14 |
----------------------------------- Fixes 2.8.2 -------------------------------- |
15 |
11 Aug-2011 Build 1499 Werner v.d.Decken(DarkViper) |
|
16 |
# little fix in calling globalExceptionHandler from inner core files |
|
15 | 17 |
11 Aug-2011 Build 1498 Werner v.d.Decken(DarkViper) |
16 | 18 |
# fixed secureform |
17 | 19 |
11 Aug-2011 Build 1497 Werner v.d.Decken(DarkViper) |
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', '1498'); |
|
55 |
if(!defined('REVISION')) define('REVISION', '1499'); |
branches/2.8.x/wb/framework/module.functions.php | ||
---|---|---|
33 | 33 |
|
34 | 34 |
/* -------------------------------------------------------- */ |
35 | 35 |
// Must include code to stop this file being accessed directly |
36 |
require_once('globalExceptionHandler.php'); |
|
37 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
36 |
if(!defined('WB_PATH')) { |
|
37 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
38 |
throw new IllegalFileException(); |
|
39 |
} |
|
38 | 40 |
/* -------------------------------------------------------- */ |
39 | 41 |
|
40 | 42 |
/* |
branches/2.8.x/wb/framework/SecureForm.mtab.php | ||
---|---|---|
47 | 47 |
*/ |
48 | 48 |
/* -------------------------------------------------------- */ |
49 | 49 |
// Must include code to stop this file being accessed directly |
50 |
require_once('globalExceptionHandler.php'); |
|
51 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
50 |
if(!defined('WB_PATH')) { |
|
51 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
52 |
throw new IllegalFileException(); |
|
53 |
} |
|
52 | 54 |
/* -------------------------------------------------------- */ |
53 | 55 |
|
54 | 56 |
class SecureForm { |
branches/2.8.x/wb/framework/class.admin.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
require_once(WB_PATH.'/framework/class.wb.php'); |
25 | 26 |
|
branches/2.8.x/wb/framework/functions-utf8.php | ||
---|---|---|
42 | 42 |
// entities_to_7bit() |
43 | 43 |
// entities_to_umlauts2() |
44 | 44 |
// umlauts_to_entities2() |
45 |
|
|
46 | 45 |
/* -------------------------------------------------------- */ |
47 | 46 |
// Must include code to stop this file being accessed directly |
48 |
require_once('globalExceptionHandler.php'); |
|
49 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
47 |
if(!defined('WB_PATH')) { |
|
48 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
49 |
throw new IllegalFileException(); |
|
50 |
} |
|
50 | 51 |
/* -------------------------------------------------------- */ |
51 | 52 |
/* |
52 | 53 |
* check for mb_string support |
branches/2.8.x/wb/framework/initialize.php | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/* -------------------------------------------------------- */ |
20 | 20 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php');
|
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php');
|
|
22 | 22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
23 | 23 |
/* -------------------------------------------------------- */ |
24 | 24 |
//set_include_path(get_include_path() . PATH_SEPARATOR . WB_PATH); |
branches/2.8.x/wb/framework/DseTwo.php | ||
---|---|---|
15 | 15 |
*/ |
16 | 16 |
/* -------------------------------------------------------- */ |
17 | 17 |
// Must include code to stop this file being accessed directly |
18 |
require_once('globalExceptionHandler.php'); |
|
19 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
18 |
if(!defined('WB_PATH')) { |
|
19 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
20 |
throw new IllegalFileException(); |
|
21 |
} |
|
20 | 22 |
/* -------------------------------------------------------- */ |
21 | 23 |
|
22 | 24 |
class DseTwo { |
branches/2.8.x/wb/framework/class.wbmailer.php | ||
---|---|---|
22 | 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | 23 |
|
24 | 24 |
*/ |
25 |
|
|
26 | 25 |
/* -------------------------------------------------------- */ |
27 | 26 |
// Must include code to stop this file being accessed directly |
28 |
require_once('globalExceptionHandler.php'); |
|
29 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
27 |
if(!defined('WB_PATH')) { |
|
28 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
29 |
throw new IllegalFileException(); |
|
30 |
} |
|
30 | 31 |
/* -------------------------------------------------------- */ |
31 | 32 |
// Include PHPMailer class |
32 | 33 |
require_once(WB_PATH."/include/phpmailer/class.phpmailer.php"); |
branches/2.8.x/wb/framework/class.database.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* |
20 |
|
|
21 | 19 |
Database class |
22 |
|
|
23 | 20 |
This class will be used to interface between the database |
24 | 21 |
and the Website Baker code |
25 |
|
|
26 | 22 |
*/ |
27 |
|
|
28 | 23 |
/* -------------------------------------------------------- */ |
29 | 24 |
// Must include code to stop this file being accessed directly |
30 |
require_once('globalExceptionHandler.php'); |
|
31 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
25 |
if(!defined('WB_PATH')) { |
|
26 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
27 |
throw new IllegalFileException(); |
|
28 |
} |
|
32 | 29 |
/* -------------------------------------------------------- */ |
33 | 30 |
if(!defined('DB_URL')) { |
34 | 31 |
//define('DB_URL', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_NAME); |
branches/2.8.x/wb/framework/functions.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
// Define that this file has been loaded |
25 | 26 |
define('FUNCTIONS_FILE_LOADED', true); |
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 |
if(!defined('WB_PATH')) { |
|
22 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
23 |
throw new IllegalFileException(); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
19 | 26 |
|
20 | 27 |
class SecureForm { |
21 | 28 |
|
branches/2.8.x/wb/framework/class.login.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
define('LOGIN_CLASS_LOADED', true); |
25 | 26 |
|
branches/2.8.x/wb/framework/class.wb.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
// Include PHPLIB template class |
25 | 26 |
require_once(WB_PATH."/include/phplib/template.inc"); |
branches/2.8.x/wb/framework/globalExceptionHandler.php | ||
---|---|---|
21 | 21 |
* define Exception to show error after accessing a forbidden file |
22 | 22 |
*/ |
23 | 23 |
class IllegalFileException extends LogicException { |
24 |
|
|
25 | 24 |
public function __toString() { |
26 | 25 |
$file = str_replace(dirname(dirname(__FILE__)), '', $this->getFile()); |
27 |
$out = '<div style="color: #ff0000; text-align: center;"><br /><br /><br /><h1>Illegale file access</h1>'; |
|
26 |
$out = '<div style="color: #ff0000; text-align: center;"><br />'; |
|
27 |
$out .= '<br /><br /><h1>Illegale file access</h1>'; |
|
28 | 28 |
$out .= '<h2>'.$file.'</h2></div>'; |
29 | 29 |
return $out; |
30 | 30 |
} |
31 |
|
|
32 | 31 |
} // end of class |
33 | 32 |
|
34 | 33 |
/** |
branches/2.8.x/wb/framework/class.order.php | ||
---|---|---|
17 | 17 |
*/ |
18 | 18 |
/* -------------------------------------------------------- */ |
19 | 19 |
// Must include code to stop this file being accessed directly |
20 |
require_once('globalExceptionHandler.php'); |
|
21 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
22 | 24 |
/* -------------------------------------------------------- */ |
23 | 25 |
define('ORDERING_CLASS_LOADED', true); |
24 | 26 |
// Load the other required class files if they are not already loaded |
branches/2.8.x/wb/framework/addon.precheck.inc.php | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/* -------------------------------------------------------- */ |
20 | 20 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
21 |
if(!defined('WB_PATH')) { |
|
22 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
23 |
throw new IllegalFileException(); |
|
24 |
} |
|
23 | 25 |
/* -------------------------------------------------------- */ |
24 | 26 |
function getVersion($version, $strip_suffix = true) |
25 | 27 |
{ |
branches/2.8.x/wb/framework/class.frontend.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
require_once(WB_PATH.'/framework/class.wb.php'); |
25 | 26 |
//require_once(WB_PATH.'/framework/SecureForm.php'); |
branches/2.8.x/wb/framework/charsets_table.php | ||
---|---|---|
22 | 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | 23 |
|
24 | 24 |
*/ |
25 |
|
|
26 | 25 |
/* -------------------------------------------------------- */ |
27 | 26 |
// Must include code to stop this file being accessed directly |
28 |
require_once('globalExceptionHandler.php'); |
|
29 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
27 |
if(!defined('WB_PATH')) { |
|
28 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
29 |
throw new IllegalFileException(); |
|
30 |
} |
|
30 | 31 |
/* -------------------------------------------------------- */ |
31 | 32 |
global $iso_8859_2_to_utf8; |
32 | 33 |
$iso_8859_2_to_utf8 = array( |
branches/2.8.x/wb/framework/frontend.functions.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
|
|
19 | 18 |
/* -------------------------------------------------------- */ |
20 | 19 |
// Must include code to stop this file being accessed directly |
21 |
require_once('globalExceptionHandler.php'); |
|
22 |
if(!defined('WB_PATH')) { throw new IllegalFileException(); } |
|
20 |
if(!defined('WB_PATH')) { |
|
21 |
require_once(dirname(__FILE__).'/globalExceptionHandler.php'); |
|
22 |
throw new IllegalFileException(); |
|
23 |
} |
|
23 | 24 |
/* -------------------------------------------------------- */ |
24 | 25 |
// compatibility mode for versions before 2.8.1 |
25 | 26 |
$admin = $wb; |
Also available in: Unified diff
little fix in calling globalExceptionHandler from inner core files