Simple Multi User Managed Directory 0.00063
SMUMD
source/install/index.php
gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*! \mainpage Simple Multi User Managed Directory
00003  *      by Sascha Heinatz * sascha.heinatz@alice.de
00004  *      Copyright 2011. 
00005  * 
00006  *      This file is part of Simple Multi User Managed Directory - SMUMD.
00007  *      
00008  *      Simple Multi User Managed Directory - SMUMD 
00009  *      is free software: you can redistribute it and/or modify
00010  *      it under the terms of the GNU Lesser General Public License as published by
00011  *      the Free Software Foundation, either version 3 of the License, or
00012  *      (at your option) any later version.
00013  *      
00014  *      Simple Multi User Managed Directory - SMUMD 
00015  *      is distributed in the hope that it will be useful,
00016  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *      GNU Lesser General Public License for more details.
00019  *      
00020  *      You should have received a copy of the GNU Lesser General Public License
00021  *      along with Simple Multi User Managed Directory - SMUMD.  
00022  *      If not, see <http://www.gnu.org/licenses/>.
00023  *      <hr>
00024  */
00025 /*! set Verison */
00026 $Version = "00063";
00027 /*! \brief ausgabe Program History 
00028  *      \param $Version Version des Programms
00029  *      \param $INSTALL_DIR Installations Verzeichniss 
00030  *      \return $history HTML ausgabe der History
00031  */
00032 $old = umask(0);
00033 /*! set prefix dir  */
00034 include "init.php";
00035 /*! include the settings for the project */
00036 include $SECURE_DIR."/init.php";
00037 /*! Include Funktions Core */
00038 include $SECURE_DIR."/smumd-core.php";
00039 /*! manage session and login */
00040 include $SECURE_DIR."/session-login.php";
00041 /*! get path from parameter */
00042 include $SECURE_DIR."/getpath.php";
00043 /*! do order post */
00044 include $SECURE_DIR."/doorder.php";
00045 /*! menu  erzeugen */
00046 getactionmenue();
00047 /*! Direktory vom aktuellen Pfad lesen */
00048 $thedir = getDir($used["pathnow"]);
00049 /*! header ausgeben für HTML mit UTF-8 */
00050 header("Content-Type: text/html; charset=utf-8");
00051 /*! HTML AUSGABE */
00052 ?><!DOCTYPE HTML>
00053 <html>
00054 <head>
00055 <title>SMUMD Version : <?php echo $Version; ?> - Simple Multi User Managed Directory</title>
00056 <meta http-equiv="expires" content="<?php echo date("D, j M Y H:i:s P ",time());?>" />
00057 <meta http-equiv="pragma" content="no-cache" />
00058 <meta http-equiv="cache-control" content="no-cache" />
00059 <meta name="robots" content="index,follow" /> 
00060 <meta name="description" content="Simple Multi User Managed Directory" />
00061 <meta name="author" content="webmaster@legioneuropa.de" />
00062 <meta name="keywords" content="Simple Multi User Managed Directory" />
00063 <meta name="date" content="<?php echo date("Y-m-d",time()); ?>" />
00064 <meta name="generator" content="notepad++" />
00065 <meta name="revisit-after" content="1 days" />
00066 <link rel="shortcut icon" href="favicon.ico" />
00067 <style type="text/css">
00068 html,body,p {margin:0px; padding:0px; font-family:Arial}
00069 body {width:1200px;}
00070 td {text-align:right; white-space:nowrap;}
00071 form {margin:0; padding:0;}
00072 .dateitabelle {margin-top: 15px; width:1200px;}
00073 .dateizeile {border: border:1px solid black;}
00074 .dateiname {width:130px; text-align:left; padding-left:5px;}
00075 .dateigroesse {width:40px; text-align:right; font-size:13px;}
00076 .benutzer  {width:90px; font-size:14px;}
00077 .datum  {width:40px; font-size:9px;}
00078 .zeit {width:40px; font-size:9px;}
00079 .permission {width:10px; font-size:8px;}
00080 .lastlogseit {width:100px; text-align:right; font-size:12px;}
00081 .lastloguser {width:90px; text-align:left; font-size:14px;}
00082 .lastlogaction {width:100px; text-align:right; font-size:14px;}
00083 .sperrung {width:40px; font-size:9px;}
00084 .dateiupdate {width:236px; text-align:right; font-size:10px;}
00085 .dateiicon {width:20px;}
00086 .optiondelete {width:40px; text-align:right;}
00087 .aktuellpfadmenu {clear:left; width:1200px; border:1px solid black;}
00088 form.newfolderupload { }
00089 table {clear:both; border:1px solid black;}
00090 td {border:1px solid white;}
00091 .maintietel {float:left; background:url(<?php echo $used["images"]?>smumdbanner_nice.jpg) no-repeat; width:580px; padding-left:120px; padding-top:65px; padding-bottom:10px; padding-right:0px; margin-top:0px; margin-bottom:10px;}
00092 .mainlogin {height:50px; margin-top:10px; float:left; text-align:center; vertical-align:bottom;}
00093 .gastlogin {clear:left;}
00094 .userlogout {display:block; }
00095 .yellowbk {background-color:#FFFFAA; font-weight:bold; padding-top:3px; padding-bottom:3px;}
00096 .greybk {background-color:lightgrey;}
00097 .adminbox {width:1200px; border: thin solid black; margin-top:15px;}
00098 </style>
00099 </head>
00100 <body>
00101 <h4 class="maintietel"> Version : <?php echo $Version; ?></h4>
00102 <?php
00103 echo $out["errors"];
00104 /*! HTML START FOR VALID USERS */
00105 if ($used["userlevel"] > 99) {
00106         /*! Wenn userlevel im Administratoren Bereich liegt dann ist der LevelName 'Admin' */
00107         if ($used["userlevel"] > 99 and $used["userlevel"] < 499) { $used["levelname"] = "Admin";}
00108         /*! Wenn userlevel im Benutzer Bereich liegt dann ist der LevelName 'User'  */
00109         if ($used["userlevel"] > 499 ) { $used["levelname"] = "User";}
00110         /*! Anzeige Login Status */
00111         ?>      <div class="mainlogin">Eingelogt ist <?php echo $used["username"]; ?> mit <?php echo $used["levelname"]; ?> Zugriff.   
00112         <FORM ID="userlogout" name="userlogout" ACTION="?" METHOD="POST">
00113         <INPUT ID="logoutwhat" NAME="what" VALUE="log" TYPE="HIDDEN"  />
00114         <INPUT ID="logoutaction" NAME="action" VALUE="out" TYPE="HIDDEN"  />
00115         <?php
00116         echo $used["sidfield"];
00117         ?>
00118         <INPUT ID="LOGOUT" NAME="LOGOUT" TYPE="SUBMIT" VALUE="LogOut" />
00119         </FORM>
00120         <FORM ID="changeuserpass" name="changeuserpass" ACTION="?" METHOD="POST">
00121         <INPUT ID="changeuserwhat" NAME="what" VALUE="userlogin" TYPE="HIDDEN"  />
00122         <INPUT ID="changeuseraction" NAME="action" VALUE="changepass" TYPE="HIDDEN"  />
00123         <INPUT ID="changeuserpassold" NAME="login" VALUE="login" TYPE="TEXT" size="10" />
00124         <INPUT ID="changeuserpassold" NAME="passold" VALUE="oldpass" TYPE="TEXT" size="10" />
00125 <INPUT ID="changeuserpassnew" NAME="passnew" VALUE="newpass" TYPE="TEXT" size="10"  /><INPUT ID="changeuserpassnewverify" NAME="passverify" VALUE="newpass" TYPE="TEXT" size="10"  />
00126         <?php
00127         echo $used["sidfield"];
00128         ?>
00129         <INPUT ID="changeit" NAME="changeit" TYPE="SUBMIT" VALUE="set pass" />
00130         </FORM>
00131 </div>
00132         <?php
00133         /*! HTML ausgabe aktueller Pfad , Tabellen Überschriftgruppen */
00134         ?> <div id="aktuellpfadmenu" class="aktuellpfadmenu">
00135         <p class="yellowbk pfadtietel">Aktueller Pfad :<?php    echo $used["pathnow"]; ?> &nbsp;&nbsp;&nbsp; Anzeige vom : <?php echo date("Y-m-d H:i:s"); ?> server zeit</p><?php
00136         /*! menu ausgabe */
00137         echo $out["menu"];
00138         ?>
00139         </div><?php
00140         echo dirHTML($thedir); 
00141         echo getactionadminmenue();
00142         /*! END ONLY FOR USERS */
00143 } else {
00144         /*! START ONLY FOR GUEST */
00145         echo "<h3  class=\"mainlogin\" >Hallo ".$used["username"]."</h3>";
00146         echo userloginForm();
00147 }
00148 /*! END ONLY FOR GUEST */
00149 /*! stuff all user should see */
00150 if ($used["userlevel"] > 99 ) {
00151         ?>
00152         <h5>link to files used by this program</h5>
00153         <p><?php echo formlink("link","downloaduserlog","downloaduserlog","download","userlog","dowload user access log","","0"); ?></p>
00154         <?php 
00155 }
00156 /*! stuff only loged admins should see */
00157 if ($used["userlevel"] > 99 and $used["userlevel"] < 500 ) { 
00158         ?>
00159         <p><a href="/<?php echo $INSTALL_DIR. $FS . $SECURE_DIR. $FS . $DB_FILE; ?>" target="protectionfile">dbProtectionFile</a> (secure folder access needed)</p>
00160         <?php 
00161 } 
00162 ?>
00163 </body>
00164 </html>
00165 <?php
00166 umask($old);
00167 ?>