Simple Multi User Managed Directory 0.00063
SMUMD
source/install/secure/init.php
gehe zur Dokumentation dieser Datei
00001 <?php
00002 /* \brief main init and config file 
00003  *      Simple Multi User Managed Directory
00004  *      by Sascha Heinatz * sascha.heinatz@alice.de
00005  *      Copyright 2011. 
00006  * 
00007  *      This file is part of Simple Multi User Managed Directory - SMUMD.
00008  *      
00009  *      Simple Multi User Managed Directory - SMUMD 
00010  *      is free software: you can redistribute it and/or modify
00011  *      it under the terms of the GNU Lesser General Public License as published by
00012  *      the Free Software Foundation, either version 3 of the License, or
00013  *      (at your option) any later version.
00014  *      
00015  *      Simple Multi User Managed Directory - SMUMD 
00016  *      is distributed in the hope that it will be useful,
00017  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  *      GNU Lesser General Public License for more details.
00020  *      
00021  *      You should have received a copy of the GNU Lesser General Public License
00022  *      along with Simple Multi User Managed Directory - SMUMD.  
00023  *      If not, see <http://www.gnu.org/licenses/>.
00024  *      <hr>
00025  */
00026 $FS = "/"; 
00027 $DB_FILE = "protectioncontroll.txt";
00028 $USER_DB_FILE = "userlogins.txt";
00029 $LOG_FILE = "userlogfile.txt";
00030 $SERVER_ROOT = $_SERVER['DOCUMENT_ROOT'];
00031 if (!preg_match("/\/$/",$SERVER_ROOT)) { $SERVER_ROOT .= "/";}
00032 $debugging = false ;
00033 $thedir="";
00034 $SIDname = "smumduser".$Version;
00035 $out = array(   "menu"=>"",
00036                                 "html"=>"", 
00037                                 "xml"=>"",
00038                                 "errors"=>""
00039                         );
00040 $used = array(  "root"=>$SERVER_ROOT.$INSTALL_DIR,
00041                                 "path"=>$SERVER_ROOT.$INSTALL_DIR. $FS .$OBSERVE_DIR, 
00042                                 "pathnow"=>"",
00043                                 "pathurl"=>"",
00044                                 "file"=>"",
00045                                 "sidurl"=>"",
00046                                 "sidfield"=>"",
00047                                 "protectiondb"=>$SERVER_ROOT.$INSTALL_DIR. $FS . $SECURE_DIR. $FS . $DB_FILE,
00048                                 "userlogindb"=>$SERVER_ROOT.$INSTALL_DIR. $FS . $SECURE_DIR. $FS . $USER_DB_FILE,
00049                                 "username"=>"Gast",
00050                                 "levelname"=>"Gast",
00051                                 "protectiondatas"=>array(),
00052                                 "logfile"=> $LOG_FILE,
00053                                 "logfilepath"=>$SERVER_ROOT.$INSTALL_DIR. $FS . $SECURE_DIR. $FS . $LOG_FILE,
00054                                 "userlevel" => 0,
00055                                 "images" => "/".$INSTALL_DIR."/".$IMAGES_DIR."/"
00056                         );
00057 ?>