Project

General

Profile

« Previous | Next » 

Revision 1535

Added by Dietmar over 12 years ago

! changes in code modul
+ add function getTableEngine to class.database
+ add Quickskin to include folder
+ add reworkes Droplet SectionPicker to load modules frontend.css

View differences:

install.php
4 4
 * @category        modules
5 5
 * @package         code
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

  
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

  
19 26
if(defined('WB_URL'))
20 27
{
21
	
28

  
22 29
	// Create table
23
	//$database->query("DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_code`");
30
	$database->query("DROP TABLE IF EXISTS `".TABLE_PREFIX."mod_code`");
24 31
	$mod_code = 'CREATE TABLE IF NOT EXISTS `'.TABLE_PREFIX.'mod_code` ('
25 32
		. ' `section_id` INT NOT NULL DEFAULT \'0\','
26 33
		. ' `page_id` INT NOT NULL DEFAULT \'0\','
27 34
		. ' `content` TEXT NOT NULL,'
28 35
		. ' PRIMARY KEY ( `section_id` )'
29
		. ' )';
36
		. ' ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci';
30 37
	$database->query($mod_code);
31 38

  
32 39
    $mod_search = "SELECT * FROM ".TABLE_PREFIX."search  WHERE value = 'code'";
......
59 66

  
60 67
    }
61 68
}
62

  
63
?>

Also available in: Unified diff