<?php /** * * @package Legacy * @version $Id: install_dbform.inc.php,v 1.3 2008/09/25 15:12:24 kilica Exp $ * @copyright Copyright 2005-2007 XOOPS Cube Project <http://xoopscube.sourceforge.net/> * @license http://xoopscube.sourceforge.net/license/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2 * */ include_once '../mainfile.php'; include_once './class/settingmanager.php'; $sm = new setting_manager(); $sm->readConstant(); $wizard->setContent($sm->editform()); $wizard->render();
} include 'install_tpl.php'; break; case "dbform": include_once '../mainfile.php'; include_once 'class/settingmanager.php'; $sm = new setting_manager(); $sm->readConstant(); $content = $sm->editform(); $title = _INSTALL_L90; $b_next = array('dbconfirm', _INSTALL_L91); include 'install_tpl.php'; break; case "dbconfirm": include_once 'class/settingmanager.php'; $sm = new setting_manager(true); $content = $sm->checkData(); if (!empty($content)) { $content .= $sm->editform(); $b_next = array('dbconfirm', _INSTALL_L91); include 'install_tpl.php'; break; } $title = _INSTALL_L53; $content = $sm->confirmForm(); $b_next = array('dbsave', _INSTALL_L92); $b_back = array('', _INSTALL_L93); include 'install_tpl.php'; break; case "dbsave": include_once "./class/mainfilemanager.php";
<?php /** * * @package Legacy * @version $Id: install_dbconfirm.inc.php,v 1.3 2008/09/25 15:12:34 kilica Exp $ * @copyright Copyright 2005-2007 XOOPS Cube Project <http://xoopscube.sourceforge.net/> * @license http://xoopscube.sourceforge.net/license/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2 * */ include_once './class/settingmanager.php'; $sm = new setting_manager(true); $content = $sm->checkData(); if (!empty($content)) { $wizard->setTitle(_INSTALL_L93); $wizard->setContent($content . $sm->editform()); $wizard->setNext(array('dbconfirm', _INSTALL_L91)); } else { $wizard->setContent($sm->confirmForm()); } $wizard->render();