s9games

453443435

"Leere Eingabe fr 'Passwort' nicht erlaubt.\n", 2 => "Leere Eingabe fr 'Benutzer' nicht erlaubt.\n", 3 => "Passwortbesttigung stimmt nicht mit Passwort berein.\n", 4 => "Dieser Benutzer ist schreibgeschtzt.\n", 5 => "Keine \"".PASSWDFILE."\"-Datei vorhanden.\n", 6 => "Keine \"".ACCESSFILE."\"-Datei vorhanden.\n", 7 => "Keine Benutzer in \"".PASSWDFILE."\" eingetragen.\n", 8 => "Vorhandene Benutzer erfolgreich eingelesen.\n", 9 => "Noch keine Benutzer vorhanden.\n", 10 => ACCESSFILE."\" erfolgreich erstellt.\n", 12 => "Diese Funktion wurde deaktiviert.\n", 14 => "Passwortschutz deaktiviert.\n", 15 => "Sie haben keine Datei gewhlt.\n", 18 => "Upload der Datei ist gescheitert.\n", 16 => "Benutzer \"", 17 => "\" ist bereits vorhanden.\n", 19 => "Lschen von \"", 20 => "\" auf dem Webserver gescheitert - bitte manuell entfernen.\n", 11 => "Erfolgreiches Hinzufgen von \"", 13 => "Erfolgreiches Lschen des Benutzers \"", 21 => "Update des Kennwortes von \"", 22 => "\".\n", 100 => "Status :", 101 => "Server-Information und -Pfad :", 102 => "Vorhandene Benutzer :", 103 => "Neuen Benutzer anlegen :", 104 => "Besttigung :", 105 => "Passwort ndern :", 106 => "Benutzer lschen :", 107 => "Alle Benutzer lschen :", 108 => "Server:", 109 => "Pfad:", 110 => "Benutzer aus Datei importieren :", 112 => "[ Format: Benutzer,Kennwort ]", 111 => "Datei :", 200 => "Anlegen", 201 => "ndern", 202 => "Lschen", 203 => "Alle lschen", 204 => "Importieren", 300 => "PHPAccess-Login", 301 => "Login-Name", 302 => "Login-Kennwort", 303 => "Login" ); //endarray } elseif($languageselect == 2) { /* BIG5 Language Pack */ $languagearray = array ( 1 => "尚未輸入密碼.\n", 2 => "尚未輸入帳號.\n", 3 => "密碼確認失敗.\n", 4 => "此帳號為唯讀.\n", 5 => "此檔案 \"".PASSWDFILE."\"尚未被建立.\n", 6 => "此檔案 \"".ACCESSFILE."\"尚未被建立.\n", 7 => "尚未在 \"".PASSWDFILE."\"中建立帳號.\n", 8 => "匯入使用者成功.\n", 9 => "尚未建立使用者.\n", 10 => "此檔案 \"".ACCESSFILE."\"以建立成功.\n", 12 => "此功能已停止運作\n", 14 => "系統現處於未保護狀態.\n", 15 => "尚未選擇檔案.\n", 18 => "匯入檔案失敗.\n", 16 => "此帳號 \"", 17 => "\" 已經存在.\n", 19 => "自動刪除此檔案 \"", 20 => "\" 失敗 - 請手動將之移除.\n", 11 => "成功的新增使用者帳號 \"", 13 => "成功的刪除使用者帳號 \"", 21 => "成功的更新使用者密碼 \"", 22 => "\".\n", 100 => "狀態 :", 101 => "主機名稱 & 檔案路徑 :", 102 => "已存在的使用者 :", 103 => "建立新使用者 :", 104 => "再次確認密碼 :", 105 => "更新密碼 :", 106 => "刪除已存在的使用者 :", 107 => "刪除所有使用者 :", 108 => "主機名稱:", 109 => "檔案路徑:", 110 => "匯入使用者文字檔案 :", 112 => "[ 格式: 帳號,密碼 ]", 111 => "檔案 :", 200 => "建立", 201 => "更新", 202 => "刪除", 203 => "全部刪除", 204 => "匯入", 300 => "PHPAccess-登入", 301 => "登入帳號:", 302 => "登入密碼:", 303 => "登入" ); //endarray } elseif($languageselect == 3) { $languagearray = array ( 1 => "Campo no preenchido 'pass' isto no permitido.\n", 2 => "Campo no preenchido 'user' isto no permitido.\n", 3 => "Senha e Confirmao no so iguais.\n", 4 => "Este usurio j esta cadastrado.\n", 5 => "Sem \"".PASSWDFILE."\"-arquivo disponivel.\n", 6 => "Sem \"".ACCESSFILE."\"-arquivo disponivel.\n", 7 => "Sem lista de usurios internos \"".PASSWDFILE."\".\n", 8 => "Sucesso em importar os usurios cadastrados.\n", 9 => "Sem usurios cadastrados.\n", 10 => "Criado com sucesso \"".ACCESSFILE."\".\n", 12 => "Esta funo est desativada\n", 14 => "Segurana de senha desabilitada.\n", 15 => "Voc no selecionou o arquivo.\n", 18 => "Envio do arquivo falhou.\n", 16 => "Usurio \"", 17 => "\" j existe.\n", 19 => "Deletando \"", 20 => "\" no servidor falhou - por favor, remova manualmente.\n", 11 => "Usurio adicionado com sucesso \"", 13 => "Usurio deletado com sucesso \"", 21 => "Senha do usurio alterada com sucesso \"", 22 => "\".\n", 100 => "Status :", 101 => "Informao do Servidor e o caminho padro :", 102 => "Usurios existentes :", 103 => "Criar novo usurio :", 104 => "Confirmao :", 105 => "Alterar Senha :", 106 => "Usurio existente deletado :", 107 => "Deletar todos usurios :", 108 => "Servidor:", 109 => "Caminho:", 110 => "Importar usurios de um arquivo de texto :", 112 => "[ formatar: usurio,senha ]", 111 => "Arquivo :", 200 => "Criar", 201 => "Alterar", 202 => "Deletar", 203 => "Deletar todos", 204 => "Importar", 300 => "PHPAccess-Login", 301 => "Nome de usurio", 302 => "Senha", 303 => "Entrar" ); //endarray } elseif($languageselect == 4) { //Franais by PM3 $languagearray = array ( 1 => "Mot de passe vide non autoris.\n", 2 => "utilisateur vide non autoris.\n", 3 => "confirmation du mot de passe non valide.\n", 4 => "Utilisateur en lecture seule.\n", 5 => "Pas de fichier \"".PASSWDFILE."\" disponible.\n", 6 => "Pas de fichier \"".ACCESSFILE."\" disponible.\n", 7 => "Aucun utilisateur dans \"".PASSWDFILE."\".\n", 8 => "Utilisateurs imports avec succs.\n", 9 => "Pas d'utilisateurs disponibles.\n", 10 => "Fichier \"".ACCESSFILE."\" cr avec succs.\n", 12 => "Cette fonction a t dsactive\n", 14 => "Password-safety dsactiv.\n", 15 => "Aucun fichier selectionn.\n", 18 => "Problme d'upload.\n", 16 => "L'utilisateur \"", 17 => "\" existe dj.\n", 19 => "Effacement \"", 20 => "\" sur le serveur non-effectu - Supprimer le fichier manuellement.\n", 11 => "Utilisateur ajout avec succs \"", 13 => "Utilisateur supprim avec succs \"", 21 => "Utilisateur mis jour avec succs \"", 22 => "\".\n", 100 => "Status :", 101 => "Infos sur le serveur :", 102 => "Utilisateurs :", 103 => "Ajouter un utilisateur :", 104 => "Confirmation :", 105 => "Changer le mot de passe :", 106 => "Effacer un utilisateur :", 107 => "Effacer tous les utilisateurs :", 108 => "Serveur:", 109 => "Chemin:", 110 => "Importer depuis un fichier :", 112 => "[ format: user,pass ]", 111 => "Fichier :", 200 => "Crr", 201 => "Changer", 202 => "Effacer", 203 => "Tout effacer", 204 => "Importer", 300 => "PHPAccess-Login", 301 => "Login", 302 => "Mot de passe", 303 => "login" ); //endarray } elseif($languageselect == 5) { /* Italian Language Pack by Giuseppe Buttafuoco */ $languagearray = array ( 1 => "È necessario inserire 'pass'.\n", 2 => "È necessario inserire 'user'.\n", 3 => "Password e conferma password non sono uguali.\n", 4 => "Utente in sola lettura.\n", 5 => "Nessun \"".PASSWDFILE."\"-file disponibile.\n", 6 => "Nessun \"".ACCESSFILE."\"-file disponibile.\n", 7 => "Nessun utente in \"".PASSWDFILE."\".\n", 8 => "Utenti attuali importati con successo.\n", 9 => "Nessun utente disponibile.\n", 10 => "Creato con successo: \"".ACCESSFILE."\".\n", 12 => "Questa funzione è stata disattivata\n", 14 => "Password-sicurezza disabilitata.\n", 15 => "Non hai selezionato il file.\n", 18 => "Upload del file fallito.\n", 16 => "Utente \"", 17 => "\" già esistente.\n", 19 => "Cancellazione \"", 20 => "\" sul webserver fallita - rimuovere manualmente.\n", 11 => "Utente aggiunto con successo \"", 13 => "Utente cancellato con successo \"", 21 => "Password aggiornata con successo \"", 22 => "\".\n", 100 => "Stato :", 101 => "Server-info e posizione attuale :", 102 => "Utenti attuali :", 103 => "Crea un nuovo utente :", 104 => "Conferma :", 105 => "Modifica Password :", 106 => "Cancella utente attuale :", 107 => "Cancella tutti gli utenti :", 108 => "Server:", 109 => "Posizione:", 110 => "Importa utenti da file di testo :", 112 => "[ formato: user,pass ]", 111 => "File :", 200 => "Crea", 201 => "Modifica", 202 => "Cancella", 203 => "Cancella tutti", 204 => "Importa", 300 => "PHPAccess-Login", 301 => "Login-Name", 302 => "Login-Pass", 303 => "login" ); //endarray } elseif($languageselect == 6) { /* Spanish Language Pack by Jos Luis Oliveros */ $languagearray = array ( 1 => "Campo vaco para 'pass' no es permitido.\n", 2 => "Campo vaco para 'user' no es permitido.\n", 3 => "Contrasea y Confirmacin no son iguales.\n", 4 => "Usuario de solo lectura.\n", 5 => "Archivo \"".PASSWDFILE."\"-no disponible.\n", 6 => "Archivo \"".ACCESSFILE."\"-no disponible.\n", 7 => "Sem lista de usurios internos \"".PASSWDFILE."\".\n", 8 => "Usuarios importados satisfactoriamente.\n", 9 => "Sin usurios creados.\n", 10 => "Creado \"".ACCESSFILE."\" satisfactoriamente.\n", 12 => "Esta funcin est desactivada\n", 14 => "Seguridad de contrasea deshabilitada.\n", 15 => "No se ha selecionado ningn archivo.\n", 18 => "Envo de archivo fall.\n", 16 => "Usurio \"", 17 => "\" ya existe.\n", 19 => "Borrado \"", 20 => "\" en el servidor fall - por favor, borre manualmente.\n", 11 => "Usurio adicionado satisfactoriamente \"", 13 => "Usurio borrado com satisfactoriamente \"", 21 => "Contrasea cambiada satisfactoriamente \"", 22 => "\".\n", 100 => "Estado :", 101 => "Informacin de Servidor y o ruta :", 102 => "Usuarios existentes :", 103 => "Crear usurio nuevo :", 104 => "Confirmacin :", 105 => "Cambiar contrasea :", 106 => "Borrar usuario :", 107 => "Borrar todos los usuarios :", 108 => "Servidor:", 109 => "Ruta:", 110 => "Importar usurios de un archivo texto :", 112 => "[ formato: usuario,contrasea ]", 111 => "Archivo :", 200 => "Crear", 201 => "Modificar", 202 => "Borrar", 203 => "Borrar todos", 204 => "Importar", 300 => "PHPAccess-Login", 301 => "Usuario", 302 => "Contrasea", 303 => "Entrar" ); //endarray } elseif($languageselect == 7) { /* Japanese Language Pack by Yui Sugawara */ $languagearray = array ( 1 => "?????????ş??????Ş?????\n", 2 => "??????????ş??????Ş?????\n", 3 => "????????????????????????Ş?????\n", 4 => "?????????????????????\n", 5 => "??? \"".PASSWDFILE."\"-file ??????Ş?????\n", 6 => "??? \"".ACCESSFILE."\"-file ??????Ş?????\n", 7 => "\"".PASSWDFILE."\"??????????Ğ???????Ş?????\n", 8 => "???????????????İ??????Ş??????\n", 9 => "????????????????Ş?????\n", 10 => "\"".ACCESSFILE."\"???????Ş??????\n", 12 => "???ε???̵?????Ş??????\n", 14 => "?????????????????Ş?????\n", 15 => "????????????????\n", 18 => "?????????????????????Ş??????\n", 16 => "??????? \"", 17 => "\"??Ğ???????Ş????\n", 19 => "?õ???Ş????\"", 20 => "\" ??????Ğ????????Ş?????? - ???Ǻ????????????\n", 11 => "????????Ğ?????????Ş?????? \"", 13 => "????????κ?????????Ş?????? \"", 21 => "??????????????????????????????Ş?????? \"", 22 => "\".\n", 100 => "????????? :", 101 => "????Ğ???ğ ??????? :", 102 => "?????????? :", 103 => "?????????? :", 104 => "????????? :", 105 => "??????????? :", 106 => "???????????? :", 107 => "???????????? :", 108 => "????Ğ??:", 109 => "???:", 110 => "??????????????????????İ???????? :", 112 => "[ ????: user,pass ]", 111 => "?????? :", 200 => "?", 201 => "????", 202 => "?", 203 => "??ƺ?", 204 => "İ", 300 => "PHPAccessإ", 301 => "̾", 302 => "ѥ", 303 => "" ); //endarray } elseif($languageselect == { /* Dutch Language Pack by Grossard Werner, http://www.bstart.be */ $languagearray = array ( 1 => "Lege invoer voor 'pass' is niet toegelaten.\n", 2 => "Lege invoer voor 'user' is niet toegelaten.\n", 3 => "Wachtwoord en bevestiging zijn niet hetzelfde.\n", 4 => "Deze gebruiker is Alleen-lezen.\n", 5 => "Geen \"".PASSWDFILE."\"-bestand beschikbaar.\n", 6 => "Geen \"".ACCESSFILE."\"-bestand beschikbaar.\n", 7 => "Geen gebruiker lijst in \"".PASSWDFILE."\".\n", 8 => "Succesvol huidige gebruikers ingevoerd.\n", 9 => "Geen huidige gebruikers beschikbaar.\n", 10 => "Succesvol \"".ACCESSFILE."\" aangemaakt.\n", 12 => "Deze functie is uitgeschakeld\n", 14 => "Wachtwoord beveiliging uitgeschakeld.\n", 15 => "U hebt geen bestand geselecteerd.\n", 18 => "Upload van bestand is mislukt.\n", 16 => "Gberuiker \"", 17 => "\" bestaat al.\n", 19 => "Verwijderen \"", 20 => "\" op de webserver mislukt - verwijder het manueel a.u.b.\n", 11 => "Succesvol gebruiker toegevoegd \"", 13 => "Succesvol gebruiker verwijderd \"", 21 => "Succesvol gebruiker wachtwoord gewijzigd \"", 22 => "\".\n", 100 => "Status :", 101 => "Server-info en huidig pad:", 102 => "Bestaande Gebruikers :", 103 => "Nieuwe gebruiker aanmaken :", 104 => "Bevestiging :", 105 => "Wijzig Wachtwoord:", 106 => "Verwijder bestaande gebruikers :", 107 => "Verwijder alle gebruikers :", 108 => "Server:", 109 => "Pad:", 110 => "Gebruikers uit tekstbestand importeren :", 112 => "[ formaat: gebruiker,wachtwoord ]", 111 => "Bestand :", 200 => "Aanmaken", 201 => "Wijzigen", 202 => "Verwijderen", 203 => "Verwijder Alles", 204 => "Importeren", 300 => "PHPAccess-Inloggen", 301 => "Login-Naam", 302 => "Login-Wachtwoord", 303 => "login" ); //endarray } elseif($languageselect == 9) { /* Arabic Language Pack by amry */ $languagearray = array ( 1 => " İ Ş .\n", 2 => " İ Ş .\n", 3 => " İŞ .\n", 4 => "Ğ Ş İŞ.\n", 5 => " \"".PASSWDFILE."\"-İ İ.\n", 6 => " \"".ACCESSFILE."\"-İ İ.\n", 7 => " İ İ \"".PASSWDFILE."\".\n", 8 => " .\n", 9 => " .\n", 10 => " \"".ACCESSFILE."\".\n", 12 => "Ğ Ş İ \n", 14 => " İ .\n", 15 => " İ.\n", 18 => "İ İ İ İ.\n", 16 => " \"", 17 => "\" Ğ .\n", 19 => " \"", 20 => "\" İ İ İ İ.\n", 11 => " İ \"", 13 => " Ğ \"", 21 => " \"", 22 => "\".\n", 100 => " :", 101 => " İ :", 102 => " :", 103 => " :", 104 => " :", 105 => " :", 106 => " :", 107 => " :", 108 => "İ :", 109 => ":", 110 => " İ txt :", 112 => "[ : , ]", 111 => "File :", 200 => "", 201 => "", 202 => "", 203 => " ", 204 => " İ ", 300 => "PHPAccess-İ ", 301 => "", 302 => " ", 303 => " " ); //endarray } else { /* English Language Pack (=standard) */ $languagearray = array ( 1 => "Empty input for 'pass' isn't allowed.\n", 2 => "Empty input for 'user' isn't allowed.\n", 3 => "Pass and confirmation aren't equal.\n", 4 => "This user is read-only.\n", 5 => "No \"".PASSWDFILE."\"-file available.\n", 6 => "No \"".ACCESSFILE."\"-file available.\n", 7 => "No user listed in \"".PASSWDFILE."\".\n", 8 => "Successfully imported current users.\n", 9 => "No current users available.\n", 10 => "Successfully created \"".ACCESSFILE."\".\n", 12 => "This function has been deactivated\n", 14 => "Password-safety disabled.\n", 15 => "You didn't select a file.\n", 18 => "Upload of file failed.\n", 16 => "User \"", 17 => "\" already exists.\n", 19 => "Deleting \"", 20 => "\" on the webserver failed - please remove it manually.\n", 11 => "Successfully added user \"", 13 => "Successfully deleted user \"", 21 => "Successfully updated pass of user \"", 22 => "\".\n", 100 => "Status :", 101 => "Server-info and current path :", 102 => "Existing users :", 103 => "Create new user :", 104 => "Confirmation :", 105 => "Update Password :", 106 => "Delete existing user :", 107 => "Delete all users :", 108 => "Server:", 109 => "Path:", 110 => "Import users from textfile :", 112 => "[ format: user,pass ]", 111 => "File :", 200 => "Create", 201 => "Update", 202 => "Delete", 203 => "Delete all", 204 => "Import", 300 => "PHPAccess-Login", 301 => "Login-Name", 302 => "Login-Pass", 303 => "login" ); //endarray } // endif /*************/ /* VARIABLES */ /*************/ $status = ""; $existingusers = getusers($status); $newusers = ""; $language_array[0] = "English"; $language_array[1] = "Deutsch"; $language_array[2] = "Traditional Chinese (BIG-5)"; $language_array[3] = "Brazilian Portuguese"; $language_array[4] = "French"; $language_array[5] = "Italian"; $language_array[6] = "Spanish"; $language_array[7] = "Japanese (EUC-JP)"; $language_array[8] = "Dutch"; $language_array[9] = "Arabic"; if (!isset($PHP_SELF)) { $PHP_SELF = $_SERVER['PHP_SELF']; } /* if register_globals = Off (in php.ini) */ /********************/ /* FUNCTIONS */ /********************/ function getusers(&$status) { global $languagearray; if (file_exists(PASSWDFILE)){ /* .htpasswd existiert im Verzeichnis */ $fp = fopen(PASSWDFILE, "r"); while ($zeile = fgets($fp, 4096)) { /* htpasswd zeilenweise einlesen */ ereg ("(.*)(:)(.*)", $zeile, $passelements); /* Zeile in User, ":", Pass zerlegen */ $singleuser = $passelements[1]; $singlepass = $passelements[3]; $users[] = array('user' => $singleuser, 'pass' => $singlepass); } //endwhile fclose ($fp); clearstatcache(); if (file_exists(PASSWDFILE) and filesize(PASSWDFILE)<3) { /* Passwortdatei < 3 Byte */ $status .= $languagearray[7]; disablepasses($status); return false; } //endif $status .= $languagearray[8]; return $users; } else { /* htpasswd existiert NICHT im Verzeichnis */ $status .= $languagearray[9]; return false; /* FALSE, wenn keine .htpasswd-Datei */ } //endif $useranz = count ($users); /* Benutzer-Anzahl bestimmen */ if ($useranz == 0) { $status .= $languagearray[7]; return false; /* FALSE, wenn keine Benutzer definiert */ } //endif } //EndOfFunction function importcommaseparateddata($textfile, $textfile_name, &$status, &$newusers, $existingusers) { global $languagearray; if($textfile=="none" OR $textfile=="") { //No file selected $status .= $languagearray[15]; } else { /* File was selected correctly */ if(move_uploaded_file ($textfile, "./".$textfile_name)==true) { /* Upload okay */ createhtaccess($status); /* .htaccess anlegen */ $textfilehandle = fopen ($textfile_name, "r"); /* open transferred textfile */ while ($data = fgetcsv ($textfilehandle, 1000, ",")) { /* read and parse commaseparated data */ $newuser = $data[0]; $newpass = $data[1]; if (checkimports($newuser, $newpass, $status, $existingusers) == true) { /* Importierte Daten prfen */ adduser($newuser, $newpass, $status, $newusers); /* Userinfo in $newusers ablegen */ } //endif } //endwhile createhtpasswd($newusers, $status, $existingusers); /* user in .htpasswd eintragen */ fclose ($textfilehandle); if(unlink($textfile_name)==false ) { $status .= $languagearray[19].$textfile_name.$languagearray[20]; } //endif } else { $status .= $languagearray[18]; } //endif } //endif } //EndOfFunction function checkupdates($updatepass, $updatepass2, &$status) { global $languagearray; if ($updatepass == ""){ $status .= $languagearray[1]; return false; } //endif if ($updatepass2 != $updatepass) { /* Passwortbesttigung scheitert */ $status .= $languagearray[3]; return false; } //endif return true; } //EndOfFunction function checkimports($newuser, $newpass, &$status, $existingusers) { global $languagearray; $users = $existingusers; if ($newuser == "") { /* kein Benutzer eingegeben */ $status .= $languagearray[2]; return false; } //endif if ($newpass == "") { /* kein Passwort eingegeben */ $status .= $languagearray[1]; return false; } //endif if(is_array($users)) { while (list($key, $singleuser) = each($users)) { if ($singleuser['user'] == $newuser){ /* Benutzer schon vorhanden */ $status .= $languagearray[16].$newuser.$languagearray[17]; return false; } //endif } //endwhile } //endif return true; } //EndOfFunction function checkinputs($newuser, $newpass, $newpass2, &$status, &$existingusers) /* Benutzereingaben prfen */ { global $languagearray; $users = $existingusers; if ($newuser == "") { /* kein Benutzer eingegeben */ $status .= $languagearray[2]; return false; } //endif if ($newpass == "") { /* kein Passwort eingegeben */ $status .= $languagearray[1]; return false; } //endif if ($newpass2 != $newpass) { /* Passwortbesttigung scheitert */ $status .= $languagearray[3]; return false; } //endif if (is_array($users)) { while (list($key, $singleuser) = each($users)) { if ($singleuser['user'] == $newuser){ /* Benutzer schon vorhanden */ $status .= $languagearray[16].$newuser.$languagearray[17]; return false; } //endif } //endwhile } //endif return true; } //EndOfFunction function checkfiles(&$status) { global $languagearray; if (!file_exists(PASSWDFILE)){ /* .htpasswd existiert nicht */ $status .= $languagearray[5]; } //endif if (!file_exists(ACCESSFILE)){ /* .htaccess existiert nicht */ $status .= $languagearray[6]; } //endif if (file_exists(PASSWDFILE) and filesize(PASSWDFILE)<3) { /* .htpasswd < 3 Byte */ $status .= $languagearray[7]; disablepasses($status); } //endif } //EndOfFunction function getpath(&$status) { global $languagearray; $rawpath = getcwd(); $path = strtr($rawpath, "\\", "/"); return $path; } //EndOfFunction function parsepathforoutput($path) { $path = str_replace ("/", " / ", $path); Return $path; } //EndOfFunction function createhtaccess(&$status) { global $languagearray; if (!file_exists(ACCESSFILE)){ /* .htaccess existiert nicht, muss angelegt werden */ $path = getpath($status); $htaccess = "AuthName \"".AUTHNAME."\"\n"; $htaccess.= "AuthType Basic\n"; $htaccess.= "AuthUserFile ".$path."/.htpasswd\n"; $htaccess.= "require valid-user"; $filehandle = fopen(ACCESSFILE, "w"); fputs($filehandle, $htaccess); fclose($filehandle); $status .= $languagearray[10]; } //endif } //EndOfFunction function createhtpasswd(&$newusers, &$status, &$existingusers) { global $languagearrray; $filehandle = fopen(PASSWDFILE, "a"); fputs ($filehandle, $newusers); fclose($filehandle); $existingusers = getusers($status, 1); } //EndOfFunction function adduser($user, $pass, &$status, &$newusers) { global $languagearray; $cryptedpass = crypt($pass); $newline = $user.":".$cryptedpass."\n"; $newusers .= $newline; $status .= $languagearray[11].$user.$languagearray[22]; } //EndOfFunction function updatepass($user2update, $newpass, &$status, &$existingusers) { global $languagearray; $pwfilecontent = ""; $users = $existingusers; $filehandle = fopen(PASSWDFILE, "w"); /* Passwortdatei ffnen */ while (list($key, $singleuser) = each($users)){ if ($singleuser['user'] != $user2update) { /* Pass dieses Benutzers soll nicht gendert werden */ $pwfilecontent .= $singleuser['user'].":".$singleuser['pass']; } else { /* Pass des aktuellen Benutzers soll gendert werden */ $cryptedpass = crypt($newpass); $pwfilecontent .= $singleuser['user'].":".$cryptedpass."\n"; /* neues PW eintragen */ } //endif } //endwhile fputs ($filehandle, $pwfilecontent); fclose($filehandle); $status .= $languagearray[21].$user2update.$languagearray[22]; } //EndOfFunction function deleteuser($user2delete, &$status, &$existingusers) { global $languagearray; $users = $existingusers; $filehandle = fopen(PASSWDFILE, "w"); /* Passwortdatei ffnen */ $pwfilecontent = ""; while (list($key, $singleuser) = each($users)){ if ($singleuser['user'] != $user2delete) { /* User soll nicht gelscht werden */ $pwfilecontent .= $singleuser['user'].":".$singleuser['pass']; } //endif } //endwhile fputs ($filehandle, $pwfilecontent); fclose($filehandle); $status .= $languagearray[13].$user2delete.$languagearray[22]; } //EndOfFunction function printuserscombobox($boxname, $cssclass, $width, &$existingusers) { global $status; $users = $existingusers; echo ""; } //EndOfFunction function printoptionbox($boxname, $cssclass, $elementsarray, $kataktiv=1) { echo ""; } //EndOfFunction function disablepasses(&$status) { global $languagearray; if (file_exists(ACCESSFILE)) { chmod (ACCESSFILE, 0777); clearstatcache(); unlink(ACCESSFILE); } //endif if (file_exists(PASSWDFILE)) { chmod (PASSWDFILE, 0777); clearstatcache(); unlink(PASSWDFILE); } //endif $status .= $languagearray[14]; } //EndOfFunction ?> PHPAccess <?php echo SCRIPTVERSION; ?> on <?php echo SERVERNAME; ?> "; } elseif($languageselect == 7) { /* EUC-JP */ echo ""; } elseif($languageselect == 9) { /* Arabic */ echo ""; } else { /* europisch */ echo ""; } //endif ?>
 
Language:
 
phpaccess by krizleebear
0) {/* Benutzer sind vorhanden */ $currentusers = true; /* Benutzer vorhanden */ } else { $currentusers = false; /* Keine Benutzer vorhanden */ } //endif checkfiles($status); /* Existenz von ht...-files prfen */ /****************************/ /* Graphical User Interface */ /****************************/ ?>
phpaccess
Language:
 
 
 
 
 
user pass
 
 
 
user pass
 
 
 
 
 
 
phpaccess by krizleebear
Bugün 1 ziyaretçi (7 klik) kişi burdaydı!
sevebileceğin oyunlar
SEVEBİLECEĞİN OYUNLAR
=> Sen de ücretsiz bir internet sitesi kurmak ister misin? O zaman burayı tıkla! <=