[ PHPXref.com ] [ Generated: Sun Jul 20 18:16:01 2008 ] [ ISPConfig 2.2.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> config.inc.php.tmp (source)

   1  <?
   2  /*
   3  Copyright (c) 2005, projektfarm Gmbh, Till Brehm, Falko Timme
   4  All rights reserved.
   5  
   6  Redistribution and use in source and binary forms, with or without modification,
   7  are permitted provided that the following conditions are met:
   8  
   9      * Redistributions of source code must retain the above copyright notice,
  10        this list of conditions and the following disclaimer.
  11      * Redistributions in binary form must reproduce the above copyright notice,
  12        this list of conditions and the following disclaimer in the documentation
  13        and/or other materials provided with the distribution.
  14      * Neither the name of ISPConfig nor the names of its contributors
  15        may be used to endorse or promote products derived from this software without
  16        specific prior written permission.
  17  
  18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  19  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  21  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  22  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  23  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  25  OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  26  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  27  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28  */
  29  // Register Globals emulieren, falls notwendig
  30  if(get_cfg_var('register_globals') != 'On') {
  31  
  32      foreach($HTTP_GET_VARS as $getkey => $getval) {
  33          $$getkey = $getval;
  34      }
  35      unset($getkey);
  36      unset($getval);
  37  
  38      foreach($HTTP_POST_VARS as $postkey => $postval) {
  39          $$postkey = $postval;
  40      }
  41      unset($postkey);
  42      unset($postval);
  43  
  44      foreach($HTTP_COOKIE_VARS as $cookiekey => $cookieval) {
  45          $$cookiekey = $cookieval;
  46      }
  47      unset($cookiekey);
  48      unset($cookieval);
  49  }
  50  
  51  $go_info = array();
  52  
  53  $s = $HTTP_GET_VARS["s"];
  54  if(isset($HTTP_POST_VARS["s"])) $s = $HTTP_POST_VARS["s"];
  55  $s = addslashes($s);
  56  $session = "s=$s";
  57  $set_header = 1;
  58  @session_start();
  59  
  60  /**********************************************
  61  * System Settings
  62  **********************************************/
  63  
  64  $go_info["server"]["dir_trenner"] = "/";
  65  $go_info["server"]["server_root"] = "/home/admispconfig/ispconfig";
  66  if(isset($_SERVER['HTTP_HOST'])){
  67    $go_info["server"]["server_url"] = '{PROTOCOL}'.$_SERVER['HTTP_HOST'];
  68  } else {
  69    $go_info["server"]["server_url"] = "{URL}:81";
  70  }
  71  $go_info["server"]["include_root"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."lib";
  72  $go_info["server"]["classes_root"] = $go_info["server"]["include_root"] . $go_info["server"]["dir_trenner"] ."classes";
  73  $go_info["server"]["temp_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."temp";
  74  $go_info["server"]["files_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."files";
  75  $go_info["server"]["backup_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."backup";
  76  $go_info["server"]["version"] = "2.2.1";
  77  $go_info["server"]["os"] = "linux";
  78  $go_info["server"]["ort"] = "local";
  79  $go_info["server"]["banner"] = "0";
  80  $go_info["server"]["db_host"] = "{DB_SERVER}";
  81  $go_info["server"]["db_name"] = "{DB_NAME}";
  82  $go_info["server"]["db_user"] = "{DB_USER}";
  83  $go_info["server"]["db_password"] = "{DB_PASSWORD}";
  84  $go_info["server"]["db_type"] = "mysql";
  85  $go_info["server"]["mail_server"] = "";
  86  $go_info["server"]["mail_user"] = "";
  87  $go_info["server"]["mail_password"] = "";
  88  $go_info["server"]["smtp_server"] = "localhost";
  89  $go_info["server"]["mode"] = "";
  90  $go_info["server"]["lang"] = "{LANG}";
  91  
  92  $go_info["server"]["postfix_config"] = 1; // 1 = SENDMAIL-STYLE, 2 = POSTFIX-STYLE
  93  $go_info["server"]["smtp_restart"] = 1; // 1 = stop/start, 2 = restart
  94  $go_info["server"]["network_config"] = 0; // 0 = none, 1 = automatic
  95  $go_info["server"]["sudo_du_enabled"] = false; // enable sudo for gathering website file usage
  96  $go_info["server"]["apache2_php"] = 'both'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype
  97  $go_info["server"]["password_hash"] = 'crypt'; // 'crypt' = crypt; 'md5' = crypt-md5
  98  $go_info["server"]["do_automated_backups"] = 0; // 0 = no, 1 = yes; PLEASE NOTE: automated backups might fill up your HDD fast!
  99  
 100  /**********************************************
 101  * Tools Settings
 102  **********************************************/
 103  
 104  $go_info["tools"]["zip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."zip".$go_info["server"]["dir_trenner"]."zip"; // nicht gzip !!
 105  $go_info["tools"]["unzip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."unzip".$go_info["server"]["dir_trenner"]."unzip";
 106  $go_info["tools"]["imagemagick"]["mogrify"] = "mogrify.exe";
 107  
 108  /**********************************************
 109  * Themes Settings
 110  **********************************************/
 111  
 112  // Themes Section
 113  $go_info["theme"]["sitename"] = "ISPConfig";
 114  $go_info["theme"]["page"]["box_color"] = "E4E4E4"; // z.B. E4E4E4 , angaben ohne #
 115  $go_info["theme"]["page"]["nav_color"] = "E0E0E0"; // z.B. 025CCA , angaben ohne #
 116  // Die Logo-Datei muss im Verzeichnis /home/admispconfig/ispconfig/web/design/default liegen!
 117  $go_info["theme"]["page"]["logo"] = ""; // z.B. meinlogo.gif
 118  $go_info["theme"]["charset"] = "iso-8859-1";
 119  
 120  /**********************************************
 121  * Logging
 122  **********************************************/
 123  
 124  $go_info["server"]["log_level"] = 0; // 0 = Debug, 1 = Info, 2 = Warning, 3 = Failure
 125  $go_info["server"]["log_file"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."ispconfig.log"; // Logdatei
 126  if(is_file("/home/admispconfig/ispconfig/adminmail.txt")){
 127    $go_info["server"]["log_mail"] = trim(shell_exec("cat /home/admispconfig/ispconfig/adminmail.txt")); // Log Emailadresse
 128  } else {
 129    $go_info["server"]["log_mail"] = "root@localhost";
 130  }
 131  $go_info["server"]["log_device"] = "FILE"; // FILE, SYSTEM, MAIL
 132  
 133  /**********************************************
 134  * Demo Mode Settings
 135  **********************************************/
 136  
 137  $go_info["demo"]["web_path"] = "";
 138  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]