Ejemplo n.º 1
0
     $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";
     $title = _INSTALL_L88;
     $mm = new mainfile_manager("../mainfile.php");
     $ret = $mm->copyDistFile();
     if (!$ret) {
         $content = _INSTALL_L60;
         include 'install_tpl.php';
         exit;
     }
     $mm->setRewrite('XOOPS_ROOT_PATH', $myts->stripSlashesGPC($_POST['root_path']));
Ejemplo n.º 2
0
<?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();