Project

General

Profile

« Previous | Next » 

Revision 1537

Added by Dietmar almost 13 years ago

continue updating headerinfos, adding upgrade scripts to module

View differences:

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

  
13 13
=========================== add small Features 2.8.2 ==========================
14
10 Dez-2011 Build 1535 Dietmar Woellbrink (Luisehahne)
14
10 Dez-2011 Build 1537 Dietmar Woellbrink (Luisehahne)
15
! continue updating headerinfos, adding upgrade scripts to module
16
10 Dez-2011 Build 1536 Dietmar Woellbrink (Luisehahne)
15 17
+ add upgrade.php to captcha_control and small changes
16 18
+ add FolderProtectFile to quickskin
17 19
10 Dez-2011 Build 1535 Dietmar Woellbrink (Luisehahne)
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', '1536');
55
if(!defined('REVISION')) define('REVISION', '1537');
56 56
if(!defined('SP')) define('SP', 'SP2');
branches/2.8.x/wb/modules/menu_link/save.php
4 4
 * @category        modules
5 5
 * @package         menu_link
6 6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
57 56

  
58 57
// Print admin footer
59 58
$admin->print_footer();
60

  
61
?>
branches/2.8.x/wb/modules/menu_link/install.php
1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         menu_link
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version      	$Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
// prevent this file from being accessed directly
20
if(defined('WB_PATH') == false) {
21
	exit("Cannot access this file directly"); 
22
}
23

  
24
$table = TABLE_PREFIX ."mod_menu_link";
25
// $database->query("DROP TABLE IF EXISTS `$table`");
26

  
27
$database->query("
28
	CREATE TABLE IF NOT EXISTS `$table` (
29
		`section_id` INT(11) NOT NULL DEFAULT '0',
30
		`page_id` INT(11) NOT NULL DEFAULT '0',
31
		`target_page_id` INT(11) NOT NULL DEFAULT '0',
32
		`redirect_type` INT NOT NULL DEFAULT '302',
33
		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
34
		`extern` VARCHAR(255) NOT NULL DEFAULT '' ,
35
		PRIMARY KEY (`section_id`)
36
	)
37
");
38

  
39
?>
1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         menu_link
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2011, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 5.2.2 and higher
13
 * @version      	$Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16
 *
17
 */
18

  
19
// Must include code to stop this file being access directly
20
/* -------------------------------------------------------- */
21
if(defined('WB_PATH') == false)
22
{
23
	// Stop this file being access directly
24
		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>');
25
}
26
/* -------------------------------------------------------- */
27

  
28
$table = TABLE_PREFIX ."mod_menu_link";
29
$database->query("DROP TABLE IF EXISTS `$table`");
30

  
31
$database->query("
32
	CREATE TABLE IF NOT EXISTS `$table` (
33
		`section_id` INT(11) NOT NULL DEFAULT '0',
34
		`page_id` INT(11) NOT NULL DEFAULT '0',
35
		`target_page_id` INT(11) NOT NULL DEFAULT '0',
36
		`redirect_type` INT NOT NULL DEFAULT '302',
37
		`anchor` VARCHAR(255) NOT NULL DEFAULT '0' ,
38
		`extern` VARCHAR(255) NOT NULL DEFAULT '' ,
39
		PRIMARY KEY (`section_id`)
40
	) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
41
");
branches/2.8.x/wb/modules/menu_link/modify.php
4 4
 * @category        modules
5 5
 * @package         menu_link
6 6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
16 15
 *
17 16
*/
18 17

  
19
// Must include code to stop this file being accessed directly
20
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
18
// Must include code to stop this file being access 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
/* -------------------------------------------------------- */
21 26

  
22 27
// check if module language file exists for the language set by the user (e.g. DE, EN)
23 28
if(!file_exists(WB_PATH .'/modules/menu_link/languages/'.LANGUAGE .'.php')) {
branches/2.8.x/wb/modules/menu_link/upgrade.php
1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         menu_link
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
// Must include code to stop this file being access directly
18
/* -------------------------------------------------------- */
19
if(defined('WB_PATH') == false)
20
{
21
	// Stop this file being access directly
22
		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>');
23
}
24
/* -------------------------------------------------------- */
25

  
26
$msg = '';
27
$sTable = TABLE_PREFIX.'mod_menu_link';
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

  
branches/2.8.x/wb/modules/jsadmin/uninstall.php
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6 6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8
 * @copyright       2009-2011, Website Baker Org. e.V.
7
 * @copyright       (C) 2006, Stepan Riha, 2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
17 16
*/
18 17

  
19 18
// prevent this file from being accessed directly
20
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
/* -------------------------------------------------------- */
21 26

  
22 27
$table = TABLE_PREFIX ."mod_jsadmin";
23 28
$database->query("DROP TABLE `$table`");
branches/2.8.x/wb/modules/jsadmin/info.php
3 3
 *
4 4
 * @category        modules
5 5
 * @package         jsadmin
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
$module_directory = 'jsadmin';
21
$module_name = 'Javascript Admin';
19
$module_name = 'Javascript Admin 1.4.0';
22 20
$module_function = 'tool';
23
$module_version = '1.3.0';
21
$module_version = '1.4.0';
24 22
$module_platform = '2.7 | 2.8.x';
25 23
$module_author = 'Stepan Riha, Swen Uth';
26 24
$module_license	= 'BSD License';
branches/2.8.x/wb/modules/jsadmin/tool.php
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6 6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
16 15
 *
17 16
*/
18 17

  
19
// Must include code to stop this file being access directly
20
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
/* -------------------------------------------------------- */
21 26

  
22 27
// check if module language file exists for the language set by the user (e.g. DE, EN)
23 28
if(!file_exists(WB_PATH .'/modules/jsadmin/languages/'.LANGUAGE .'.php')) {
branches/2.8.x/wb/modules/jsadmin/jsadmin_backend_include.php
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6 6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
117 116
print_r( $page_type.'/'.$buttonCell ); print '</pre>'; // die();
118 117
*/
119 118
}
120

  
121

  
122
?>
branches/2.8.x/wb/modules/jsadmin/jsadmin.php
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6 6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8 7
 * @copyright       2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
......
16 15
 *
17 16
*/
18 17

  
19
// Must include code to stop this file being access directly
20
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
/* -------------------------------------------------------- */
21 26

  
22 27
function get_setting($name, $default = '') {
23 28
	global $database;
......
50 55
$js_yui_scripts[] = $YUI_PATH.'/dom/dom'.$js_yui_min.'.js';
51 56
$js_yui_scripts[] = $YUI_PATH.'/connection/connection'.$js_yui_min.'.js';
52 57
$js_yui_scripts[] = $YUI_PATH.'/dragdrop/dragdrop'.$js_yui_min.'.js';
53

  
54
?>
branches/2.8.x/wb/modules/jsadmin/install.php
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6 6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       (C) 2006, Stepan Riha
8
 * @copyright       2009-2011, Website Baker Org. e.V.
7
 * @copyright       (C) 2006, Stepan Riha, 2009-2011, Website Baker Org. e.V.
9 8
 * @link			http://www.websitebaker2.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
......
17 16
*/
18 17

  
19 18
// prevent this file from being accessed directly
20
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
/* -------------------------------------------------------- */
21 26

  
22 27
// add new rows to table "settings"
23 28

  
29
$msg = array ();
24 30
$table = TABLE_PREFIX ."mod_jsadmin";
31
$jsadminDefault = array (
32
	array ( 'id' => '1','name' => 'mod_jsadmin_persist_order','value' => '1' ),
33
	array ( 'id' => '2','name' => 'mod_jsadmin_ajax_order_pages','value' => '1' ),
34
	array ( 'id' => '3','name' => 'mod_jsadmin_ajax_order_sections','value' => '1' ),
35
);
36

  
25 37
$database->query("DROP TABLE IF EXISTS `$table`");
38
$sql = 'CREATE TABLE IF NOT EXISTS `'.TABLE_PREFIX.'mod_jsadmin` ('
39
	. ' `id` INT(11) NOT NULL DEFAULT \'0\','
40
	. ' `name` VARCHAR(255) NOT NULL DEFAULT \'0\','
41
	. ' `value` INT(11) NOT NULL DEFAULT \'0\','
42
	. ' PRIMARY KEY ( `id` )'
43
	. ' ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci';
26 44

  
27
$database->query("
28
	CREATE TABLE `$table` (
29
    `id` INT(11) NOT NULL DEFAULT '0',
30
		`name` VARCHAR(255) NOT NULL DEFAULT '0',
31
		`value` INT(11) NOT NULL DEFAULT '0',
32
   	PRIMARY KEY (`id`)
33
	)
34
");
45
if($database->query($sql) ) {
35 46

  
36
global $database;
37
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('1','mod_jsadmin_persist_order','1')");
38
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('2','mod_jsadmin_ajax_order_pages','1')");
39
$database->query("INSERT INTO ".$table." (id,name,value) VALUES ('3','mod_jsadmin_ajax_order_sections','1')");
47
	for($x=0;$x<sizeof($jsadminDefault); $x++) {
48
		$sql  = 'INSERT INTO '.$table.' SET ';
49
		$sql .= '`id`=\''.$jsadminDefault[$x]['id'].'\', ';
50
		$sql .= '`name`=\''.$jsadminDefault[$x]['name'].'\', ';
51
		$sql .= '`value`=\''.$jsadminDefault[$x]['value'].'\' ';
52
		if(!$database->query($sql) ) { $msg[] = $database->get_error();}
53
	}
54
} else {
55
	$msg[] = $database->get_error();
56
}
40 57

  
41
?>
branches/2.8.x/wb/modules/jsadmin/upgrade.php
1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         jsadmin
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
// Must include code to stop this file being access directly
18
/* -------------------------------------------------------- */
19
if(defined('WB_PATH') == false)
20
{
21
	// Stop this file being access directly
22
		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>');
23
}
24
/* -------------------------------------------------------- */
25

  
26
$msg = '';
27
$sTable = TABLE_PREFIX.'mod_jsadmin';
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