Esempio n. 1
0
 /**
  * Check whether phpBB is installed.
  * Assigns error template vars if not installed.
  *
  * @return bool Returns true if phpBB is installed.
  */
 public function check_phpbb_installed()
 {
     if (phpbb_check_installation_exists($this->phpbb_root_path, $this->php_ext)) {
         return true;
     }
     $this->page_title = 'BOARD_NOT_INSTALLED';
     $install_url = append_sid($this->phpbb_root_path . 'install/index.' . $this->php_ext, 'mode=install&language=' . $this->language);
     $this->template->assign_vars(array('S_NOT_INSTALLED' => true, 'BODY' => sprintf($this->lang['BOARD_NOT_INSTALLED_EXPLAIN'], $install_url)));
     return false;
 }
Esempio n. 2
0
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
/**
*/
if (!defined('IN_INSTALL')) {
    // Someone has tried to access the file direct. This is not a good idea, so exit
    exit;
}
if (!empty($setmodules)) {
    // If phpBB is already installed we do not include this module
    if (phpbb_check_installation_exists($phpbb_root_path, $phpEx) && !file_exists($phpbb_root_path . 'cache/install_lock')) {
        return;
    }
    $module[] = array('module_type' => 'install', 'module_title' => 'INSTALL', 'module_filename' => substr(basename(__FILE__), 0, -strlen($phpEx) - 1), 'module_order' => 10, 'module_subs' => '', 'module_stages' => array('INTRO', 'REQUIREMENTS', 'DATABASE', 'ADMINISTRATOR', 'CONFIG_FILE', 'ADVANCED', 'CREATE_TABLE', 'FINAL'), 'module_reqs' => '');
}
/**
* Installation
*/
class install_install extends module
{
    /**
     * @var \phpbb\filesystem\filesystem_interface
     */
    protected $filesystem;
    function install_install(&$p_master)
    {