Beispiel #1
0
$wizardSeq->add('createDB', _INSTALL_L105, 'checkDB', _INSTALL_L104);
$wizardSeq->add('createTables', _INSTALL_L40, 'siteInit', _INSTALL_L112);
$wizardSeq->add('siteInit', _INSTALL_L112, 'insertData', _INSTALL_L116);
$wizardSeq->add('insertData', _INSTALL_L116, 'finish', _INSTALL_L117);
$wizardSeq->add('finish', _INSTALL_L32, 'nextStep', _INSTALL_L210);
if (file_exists('./custom/custom.inc.php')) {
    include './custom/custom.inc.php';
}
// options for mainfile.php
$xoopsOption['nocommon'] = true;
define('XOOPS_INSTALL', 1);
if (!empty($_POST['op'])) {
    $op = $_POST['op'];
} elseif (!empty($_GET['op'])) {
    $op = $_GET['op'];
} else {
    $op = 'langselect';
}
$wizard->setOp($op);
$op = basename($op);
$fname = './wizards/install_' . $op . '.inc.php';
$custom_fname = './custom/install_' . $op . '.inc.php';
if (file_exists($fname)) {
    include $fname;
} else {
    if (file_exists($custom_fname)) {
        include $custom_fname;
    } else {
        $wizard->render();
    }
}