Revision 1536
Added by Dietmar almost 13 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
=========================== add small Features 2.8.2 ========================== |
14 | 14 |
10 Dez-2011 Build 1535 Dietmar Woellbrink (Luisehahne) |
15 |
+ add upgrade.php to captcha_control and small changes |
|
16 |
+ add FolderProtectFile to quickskin |
|
17 |
10 Dez-2011 Build 1535 Dietmar Woellbrink (Luisehahne) |
|
15 | 18 |
! changes in code modul |
16 | 19 |
+ add function getTableEngine to class.database |
17 | 20 |
+ add Quickskin to include folder |
branches/2.8.x/wb/include/quickSkin/qx/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category Security |
|
5 |
* @package FolderProtectFile |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 |
* |
|
16 |
*/ |
|
17 |
|
|
18 |
header('HTTP/1.1 301 Moved Permanently'); |
|
19 |
header("Location: ../../../index.php"); |
|
20 |
|
|
0 | 21 |
branches/2.8.x/wb/include/quickSkin/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category Security |
|
5 |
* @package FolderProtectFile |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 |
* |
|
16 |
*/ |
|
17 |
|
|
18 |
header('HTTP/1.1 301 Moved Permanently'); |
|
19 |
header("Location: ../../index.php"); |
|
20 |
|
|
0 | 21 |
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', '1535');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1536');
|
|
56 | 56 |
if(!defined('SP')) define('SP', 'SP2'); |
branches/2.8.x/wb/modules/captcha_control/uninstall.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category modules |
5 | 5 |
* @package captcha_control |
6 |
* @author Independend-Software-Team |
|
7 | 6 |
* @author WebsiteBaker Project |
8 |
* @copyright 2004-2009, Ryan Djurovich |
|
9 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
10 | 8 |
* @link http://www.websitebaker2.org/ |
11 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
18 | 16 |
*/ |
19 | 17 |
|
20 | 18 |
// prevent this file from being accessed directly |
21 |
if(!defined('WB_PATH')) { exit('Cannot access this file directly'); } |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
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>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
22 | 26 |
|
23 | 27 |
$table = TABLE_PREFIX .'mod_captcha_control'; |
24 | 28 |
$database->query("DROP TABLE `$table`"); |
branches/2.8.x/wb/modules/captcha_control/info.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package captcha_control |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 |
* |
|
16 |
*/ |
|
2 | 17 |
|
3 |
// $Id$ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2009, Ryan Djurovich |
|
9 |
|
|
10 |
Website Baker is free software; you can redistribute it and/or modify |
|
11 |
it under the terms of the GNU General Public License as published by |
|
12 |
the Free Software Foundation; either version 2 of the License, or |
|
13 |
(at your option) any later version. |
|
14 |
|
|
15 |
Website Baker is distributed in the hope that it will be useful, |
|
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
GNU General Public License for more details. |
|
19 |
|
|
20 |
You should have received a copy of the GNU General Public License |
|
21 |
along with Website Baker; if not, write to the Free Software |
|
22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
|
|
24 |
----------------------------------------------------------------------------------------- |
|
25 |
This is a control-tool for captcha and ASP |
|
26 |
----------------------------------------------------------------------------------------- |
|
27 |
V1.0 - inital version |
|
28 |
|
|
29 |
*/ |
|
30 |
|
|
18 |
// prevent this file from being accessed directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
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>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
31 | 26 |
$module_directory = 'captcha_control'; |
32 |
$module_name = 'Captcha and Advanced-Spam-Protection (ASP) Control'; |
|
33 |
$module_function = 'tool'; |
|
34 |
$module_version = '1.1'; |
|
35 |
$module_platform = '2.7 | 2.8.x'; |
|
36 |
$module_author = 'Thomas Hornik (thorn)'; |
|
37 |
$module_license = 'GNU General Public License'; |
|
38 |
$module_description = 'Admin-Tool to control CAPTCHA and ASP'; |
|
39 |
|
|
40 |
?> |
|
27 |
$module_name = 'Captcha and Advanced-Spam-Protection (ASP) Control'; |
|
28 |
$module_function = 'tool'; |
|
29 |
$module_version = '1.2.0'; |
|
30 |
$module_platform = '2.7 | 2.8.x'; |
|
31 |
$module_author = 'Thomas Hornik (thorn)'; |
|
32 |
$module_license = 'GNU General Public License'; |
|
33 |
$module_description = 'Admin-Tool to control CAPTCHA and ASP'; |
branches/2.8.x/wb/modules/captcha_control/tool.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category modules |
5 | 5 |
* @package captcha_control |
6 |
* @author Independend-Software-Team |
|
7 | 6 |
* @author WebsiteBaker Project |
8 |
* @copyright 2004-2009, Ryan Djurovich |
|
9 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
10 | 8 |
* @link http://www.websitebaker2.org/ |
11 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
17 | 15 |
* |
18 | 16 |
*/ |
19 | 17 |
|
20 |
// Must include code to stop this file being access directly |
|
21 |
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); } |
|
18 |
// prevent this file from being accessed directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
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>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
22 | 26 |
|
23 | 27 |
// check if module language file exists for the language set by the user (e.g. DE, EN) |
24 | 28 |
if(!file_exists(WB_PATH .'/modules/captcha_control/languages/'.LANGUAGE .'.php')) { |
branches/2.8.x/wb/modules/captcha_control/install.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category modules |
5 | 5 |
* @package captcha_control |
6 |
* @author Independend-Software-Team |
|
7 | 6 |
* @author WebsiteBaker Project |
8 |
* @copyright 2004-2009, Ryan Djurovich |
|
9 | 7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
10 | 8 |
* @link http://www.websitebaker2.org/ |
11 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
... | ... | |
18 | 16 |
*/ |
19 | 17 |
|
20 | 18 |
// prevent this file from being accessed directly |
21 |
if(!defined('WB_PATH')) { exit('Cannot access this file directly'); } |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
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>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
22 | 26 |
|
23 | 27 |
$table = TABLE_PREFIX.'mod_captcha_control'; |
24 | 28 |
$database->query("DROP TABLE IF EXISTS `$table`"); |
25 | 29 |
|
26 |
$database->query("CREATE TABLE `$table` ( |
|
30 |
$database->query("CREATE TABLE IF NOT EXISTS `$table` (
|
|
27 | 31 |
`enabled_captcha` VARCHAR(1) NOT NULL DEFAULT '1', |
28 | 32 |
`enabled_asp` VARCHAR(1) NOT NULL DEFAULT '0', |
29 | 33 |
`captcha_type` VARCHAR(255) NOT NULL DEFAULT 'calc_text', |
... | ... | |
31 | 35 |
`asp_view_min_age` INT(11) NOT NULL DEFAULT '10', |
32 | 36 |
`asp_input_min_age` INT(11) NOT NULL DEFAULT '5', |
33 | 37 |
`ct_text` LONGTEXT NOT NULL |
34 |
)" |
|
38 |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"
|
|
35 | 39 |
); |
36 | 40 |
|
37 | 41 |
// add new row using the table default values defined above |
branches/2.8.x/wb/modules/captcha_control/upgrade.php | ||
---|---|---|
1 |
<?php |
|
2 |
/** |
|
3 |
* |
|
4 |
* @category modules |
|
5 |
* @package captcha_control |
|
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
8 |
* @link http://www.websitebaker2.org/ |
|
9 |
* @license http://www.gnu.org/licenses/gpl.html |
|
10 |
* @platform WebsiteBaker 2.8.x |
|
11 |
* @requirements PHP 5.2.2 and higher |
|
12 |
* @version $Id$ |
|
13 |
* @filesource $HeadURL$ |
|
14 |
* @lastmodified $Date$ |
|
15 |
* |
|
16 |
*/ |
|
17 |
|
|
18 |
// prevent this file from being accessed directly |
|
19 |
/* -------------------------------------------------------- */ |
|
20 |
if(defined('WB_PATH') == false) |
|
21 |
{ |
|
22 |
// Stop this file being access directly |
|
23 |
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>'); |
|
24 |
} |
|
25 |
/* -------------------------------------------------------- */ |
|
26 |
$msg = ''; |
|
27 |
$sTable = TABLE_PREFIX.'mod_captcha_control'; |
|
28 |
if(($sOldType = $database->getTableEngine($sTable))) { |
|
29 |
if(('myisam' != strtolower($sOldType))) { |
|
30 |
if(!$database->query('ALTER TABLE `'.$sTable.'` Engine = \'MyISAM\' ')) { |
|
31 |
$msg = $database->get_error(); |
|
32 |
} |
|
33 |
} |
|
34 |
} else { |
|
35 |
$msg = $database->get_error(); |
|
36 |
} |
|
37 |
// ------------------------------------ |
|
0 | 38 |
Also available in: Unified diff
+ add upgrade.php to captcha_control and small changes
+ add FolderProtectFile to quickskin