Project

General

Profile

« Previous | Next » 

Revision 1538

Added by Luisehahne about 13 years ago

! add table db engine in module install scripts
! some small updates in modules

View differences:

install.php
4 4
 * @category        modules
5 5
 * @package         wysiwyg
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
......
15 14
 * @lastmodified    $Date$
16 15
 *
17 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
/* -------------------------------------------------------- */
18 25

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

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

  
40

  
34 41
    $mod_search = "SELECT * FROM ".TABLE_PREFIX."search  WHERE value = 'wysiwyg'";
35 42
    $insert_search = $database->query($mod_search);
36 43
    if( $insert_search->numRows() == 0 )
......
62 69

  
63 70
    }
64 71
}
65

  
66
?>

Also available in: Unified diff