Source for file InstallIndex.class.php

Documentation is available at InstallIndex.class.php

  1. <?php
  2. /**
  3.  * Class InstallIndex
  4.  *
  5.  * LICENSE: CREATIVE COMMONS PUBLIC LICENSE  "Namensnennung — Nicht-kommerziell 2.0"
  6.  *
  7.  * @copyright  2009 <SEDesign />
  8.  * @license    http://creativecommons.org/licenses/by-nc/2.0/de/
  9.  * @version    $3.0.6$
  10.  * @link       http://www.sedesign.de/de_produkte_chat-v3.html
  11.  * @since      File available since Alpha 1.0
  12.  */
  13.  
  14. class InstallIndex extends EtChatConfig
  15. {
  16.  
  17.     /**
  18.     * Constructor
  19.     *
  20.     * @return void 
  21.     */
  22.     public function __construct ()
  23.         
  24.         // call parent Constructor from class EtChatConfig
  25.         parent::__construct()
  26.         
  27.         
  28.         $install_error "";
  29.         
  30.         
  31.         if ($this->_usedDatabaseExtension=="pdo"){
  32.             if (!extension_loaded('pdo')) $install_error .= "<div style=\"color:red\"> Keine PDO-Erweiterung gefunden.(PDO-Erweiterung sollte installiert sein!)</div>";
  33.             if (!extension_loaded('pdo_'.$this->_usedDatabase)) $install_error .= "<div style=\"color:red\"> Keine pdo_".$this->_usedDatabase."-Erweiterung gefunden.(pdo_".$this->_usedDatabase." sollte installiert sein!)</div>";
  34.         }
  35.         
  36.         if ($this->_usedDatabaseExtension=="mysqli")
  37.             if (!extension_loaded('mysqli')) $install_error .= "<div style=\"color:red\"> Keine MySQLi-Erweiterung gefunden.(MySQLi sollte installiert sein!)</div>";
  38.         
  39.         if (empty($install_error)) 
  40.             $start_install "<a href=\"./?InstallMake\">Installation starten &gt;&gt;&gt;</a>";
  41.         else 
  42.             $start_install "<b>Die Installation kann nicht durchgeführt werden.</b><br /><br /> Ursache/n:<br />".$install_error."<br /><br />Bitte korrigieren Sie die Einstellungen Ihres Webservers um den ET-Chat zu installieren.";
  43.         
  44.         
  45.         if (file_exists("./install"))
  46.             include_once("styles/install_tpl/index.tpl.html");
  47.         else 
  48.             echo "Install directory was not found.";
  49.     }
  50. }

Documentation generated on Thu, 05 May 2011 14:05:57 +0000 by phpDocumentor 1.4.3