Project

General

Profile

« Previous | Next » 

Revision 1535

Added by Dietmar almost 13 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:

upgrade.php
2 2
/**
3 3
 *
4 4
 * @category        modules
5
 * @package         show_menu2
6
 * @author          Independend-Software-Team
5
 * @package         code
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
......
16 14
 * @lastmodified    $Date: 2011-02-07 05:55:31 +0100 (Mo, 07. Feb 2011) $
17 15
 *
18 16
 */
19

  
20 17
// Must include code to stop this file being access directly
21
if(defined('WB_PATH') == false) { exit("Cannot access this file 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
/* -------------------------------------------------------- */
22 25

  
23
?>
26
$msg = '';
27
$sTable = TABLE_PREFIX.'mod_code';
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
// ------------------------------------

Also available in: Unified diff