Logo - MyWebsolution.de
User gesamt  :  2317180
User online  :  1
KubaSeoTräume, PHP Forum, PHP Community and more ... MyWebsolution.de!
   
   
 
Registrieren Login User F.A.Q Suche Home

eingeloggt bleiben

MyWebsolution.de Foren » Workshops » Loginsystem - Admin hat keine Berechtigung

Seite: 1 Posts pro Seite: 5 10 20
Autor Thread
20.11.2009 22:43 Uhr Loginsystem - Admin hat keine Berechtigung
946ben
User
 
registriert 20.11.2009
wohnt in
Beiträge 4
Ich habe das Problem, dass mein Admin keine Berechtigung hat den Admin-Index zu betreten.
Also hier mal der Code von meiner Datei badgemaster.php:
PHP:

<?php 
    error_reporting
(E_ALL); 

    
$MYSQL_HOST 'localhost'
    
$MYSQL_USER '*********'
    
$MYSQL_PASS '*********'
    
$MYSQL_DATA '*********'

    
$connid = @mysql_connect($MYSQL_HOST$MYSQL_USER$MYSQL_PASS) OR die("Error: ".mysql_error()); 
    
mysql_select_db($MYSQL_DATA) OR die("Error: ".mysql_error()); 

    
$sql "INSERT INTO 
                        User 
                        (Nickname, 
                         Email, 
                         Show_Email, 
                         Passwort, 
                         Registrierungsdatum 
                        ) 
            VALUES 
                        ('badgemaster', 
                         'nomail@nomail.no', 
                         '0', 
                         '"
.md5('badges')."', 
                         CURDATE() 
                        ) 
           "

    
mysql_query($sql); 

    
$sql "SELECT 
                        LAST_INSERT_ID() 
           "

    
$result mysql_query($sql); 
    
$ID mysql_result($result,0); 

    
$sql "INSERT INTO 
                        User_Rechte 
                        (UserID, 
                         Recht 
                        ) 
            VALUES 
                        ('"
.$ID."', 
                         'Adminbereich' 
                        ) 
           "

    
mysql_query($sql); 

    
$sql "INSERT INTO 
                        User_Rechte 
                        (UserID, 
                         Recht 
                        ) 
            VALUES 
                        ('"
.$ID."', 
                         'User administrieren' 
                        ) 
           "

    
mysql_query($sql); 
?>


Was ist daran falsch???

Dieser Beitrag wurde am 22.11.2009 um 13:44:20 Uhr von 946ben zum 1. Mal editiert.
Profil ansehen
19.04.2010 17:48 Uhr
Asgard
User
 
registriert 08.04.2010
wohnt in
Beiträge 1
hi @ all,
muss den fred mal ausbuddeln komm nimma weiter ;(
Das Script läuft soweit, nur wenn ich in den "admin" bereich will sagt er mir direkt Keine Zugangs berechtigung obwohl ich mich als Admin eingeloggt habe, jemand ne Idee? Hab alles so übernommen + einige zusatz php dateien zum testen *pfeiff *durchblickverlier
Desweiteren hab ich jetzt 15 gut gefüllt php Dateien im hauptordner drinne und weiß gar nicht mehr welche ich brauche bzw welche nu wichtig waren :rolleyes:
Gibts die Dateien als Download? Bzw hat die wer so mal eben gezipt auf der platte und könnt die mir schicken ?:mygod: *ganzliebguck Das wars erstmal von meiner Seite aus,

aber nochmal ganz großes Lob :)
Gruß
Asgard
Profil ansehen Mail senden
22.12.2011 03:08 Uhr
daxili
Forenposter
 
registriert 21.12.2011
wohnt in
Beiträge 50
certain in the before stochastic types (using good and bad reinforcement and attenuation of cooperative propensities in the simulated agents) is Macy (1991). illustrations of latest investigation on this area are Airiau et al., 2007; Banerjee & Sen, 2007.moncler boots women
moncler boots men
moncler boots on sale
moncler jackets men sale
moncler jackets men cheap
Profil ansehen
Seite: 1 no reply
Powered by Pascal Landau © 2006 MyWebsolution.de
Designed by Pascal Landau © 2006 MyWebsolution.de
 
 
 
 
Home Email Impressum Disclaimer Statistik