Glaube ich eher nicht nutze das MVR Script und das UCP von No Name Life
Und es gibt 2 Configs.
PHP
<?php
function clean_it($dirty)
{
if (get_magic_quotes_gpc())
{
$clean = mysql_real_escape_string(stripslashes(htmlspecialchars($dirty)));
}
else
{
$clean = mysql_real_escape_string(htmlspecialchars($dirty));
}
return $clean;
}
function getsex($sex)
{
if ($sex == 1) {return "Male";}
if ($sex == 2) {return "Famale";}
}
function getjob($job)
{
if ($job == 1) {return "Detektiv";}
if ($job == 2) {return "Anwalt";}
if ($job == 3) {return "Zugfahrer";}
if ($job == 4) {return "Drogen Dealer";}
if ($job == 9) {return "Waffen Dealer";}
if ($job == 14) {return "Busfahrer";}
if ($job == 16) {return "Pilot";}
if ($job == 17) {return "Müllmann";}
}
function authgroup($admin)
{
switch($admin) {
case '0': $group = 'User'; break;
case '1': $group = 'Moderator'; break;
case '2': $group = 'Admin'; break;
case '4': $group = 'Admin'; break;
case '1337': $group = 'Administrator'; break;
case '1338': $group = 'High Admin'; break;
case '2000': $group = 'High Admin'; break;
case '2001': $group = 'Co-Owner'; break;
case '2002': $group = 'Owner'; break;
default: $group = 'Kein Rang'; break;
}
return $group;
}
function fraktion($fraktion_name)
{
switch($fraktion_name) {
case '1': $name = 'San Andreas Police Department'; break;
case '2': $name = 'Federal Bureau of Investigation'; break;
case '4': $name = 'Sanitäter'; break;
case '5': $name = 'La Cosa Nostra'; break;
case '6': $name = 'Yakuza'; break;
case '8': $name = 'Hitman'; break;
case '9': $name = 'News Reporter'; break;
case '13': $name = 'reen Street Knights'; break;
case '14': $name = 'Cuban Assassins'; break;
case '23': $name = 'Russen Mafia'; break;
case '24': $name = 'Ordnungsamt'; break;
default: $name = 'Kein Leader'; break;
}
return $name;
}
?>
Alles anzeigen
PHP
<?php
if(isset($_POST['submit'])){
$log_user = clean_it($_POST['name']);
$log_pass = clean_it($_POST['password']);
$login = @mysql_query("SELECT id FROM accounts WHERE Name='".$log_user."' AND Passwort='".$log_pass."'");
$admin = @mysql_query("SELECT Adminlevel FROM accounts WHERE Name='".$log_user."'");
if(@mysql_num_rows($login) > 0)
{
$row = @mysql_fetch_object($login);
$row1 = @mysql_fetch_object($admin);
$_SESSION['login'] = $row->id;
$_SESSION['admin'] = $row1->Adminlevel;
$_SESSION['user'] = $log_user;
print '<meta http-equiv="refresh" content="0; URL=index.php?site=home">';
}
else
{
echo ('Logindaten fehlerhaft ...');
}
}
echo '
<form method="post">
<table id="login">
<tr><td>Username:</td><td><input type="text" name="name"></td></tr>
<tr><td>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td></td><td><input type="submit" name="submit" value="Login" style="margin-left:10px;margin-top:2px;"></td></tr>
</table>
</form>
';
?>
Alles anzeigen