Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        modules
5
 * @package         
6
 * @subpackage      
7
 * @author          WebsiteBaker Project
8
 * @copyright       WebsiteBaker Org. e.V.
9
 * @link            http://websitebaker.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.3
12
 * @requirements    PHP 5.3.6 and higher
13
 * @version         $Id: upgrade.php 2 2017-07-02 15:14:29Z Manuela $
14
 * @filesource      $HeadURL: svn://isteam.dynxs.de/wb/2.10.x/trunk/modules/captcha_control/upgrade.php $
15
 * @lastmodified    $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
16
 *
17
 */
18
/* -------------------------------------------------------- */
19
// Must include code to stop this file being accessed directly
20
if(!defined('WB_PATH')) {
21
    require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
22
    throw new IllegalFileException();
23
} else {
24
    $msg = '';
25
    $sTable = TABLE_PREFIX.'mod_captcha_control';
26
    if(($sOldType = $database->getTableEngine($sTable))) {
27
        if(('myisam' != strtolower($sOldType))) {
28
            if(!$database->query('ALTER TABLE `'.$sTable.'` Engine = \'MyISAM\' ')) {
29
                $msg = $database->get_error();
30
            }
31
        }
32
    } else {
33
        $msg = $database->get_error();
34
    }
35
// ------------------------------------
36
}
(9-9/9)