Autor: Tobias (dastiac.de.gg
Downloadlink: filezilla.fi.funpic.de/ilch/index.php?downloads-show-15
Problem:
Hallo erstmal!
ich habe ein Problem mit diesem Modul. Ich kann im Adminbereich
den User banen, aber wenn ich dann mich mit dem gebanten Acc. einloggen will geht das und meine Frage ist könnt ihr mir vlt. sagen wo das Problem liegt???
Währe euch sehr dankbar wen ihr mir helfen könnt, habe leider keine Programmierkenntnisse nur bisschen (html).
Vielen Dank schon im Voraus!
Mit freundlichen Grüßen
Delgado1
Hier mal die codes:
changes.txt
SteamID.Banlist by www.dastiac.de.gg ------------------------------------ ------------------------------------------------------ 1.2 -> 2.0 ------------------------------------------------------ Added: * Edit Function Fixed: * / Changed: * Delete Function is now easier! ------------------------------------------------------ 1.1 -> 1.2 ------------------------------------------------------ Added: * banned.cfg view * Copyright :> Fixed: * / Changed: * Only two php Files ------------------------------------------------------ 1.0 -> 1.1 ------------------------------------------------------ Added: * Delete function Fixed: * Fixed empty boxes while viewing ban list Changed: * Form and delete page are in the admin area now ------------------------------------------------------
install.php
<?php include ("include/includes/config.php"); mysql_connect(DBHOST, DBUSER, DBPASS) or die ('ERROR: keine verbindung zu mysql'); mysql_select_db(DBDATE) or die ('ERROR: konnte nicht zu datenbank "'.DBDATE.'" verbinden'); mysql_query("DROP TABLE IF EXISTS ".DBPREF."bans"); mysql_query("CREATE TABLE `".DBPREF."bans` ( `id` MEDIUMINT( 8 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `nickname` VARCHAR( 50 ) NOT NULL , `steamid` VARCHAR( 20 ) NOT NULL , `vergehen` VARCHAR( 75 ) NOT NULL , `admin` VARCHAR( 75 ) NOT NULL ) ENGINE = MYISAM ;"); mysql_query("INSERT INTO ".DBPREF."modules VALUES ('bans','bans','Bans', 1, 1, 0)"); echo "Installation Erfolgreich.<br>Bitte umgehend die install.php löschen!"; ?>
include/admin/bans.php
<?php # Copyright by: Tobias Schwarz # Support: www.dastiac.de.gg defined ('main') or die ( 'no direct access' ); defined ('admin') or die ( 'only admin access' ); $design = new design ( 'Admins Area', 'Admins Area', 2 ); $design->header(); echo '<center><a href="?bans&action=add">Add a Ban</a> | <a href="?bans&action=delete">Delete a Ban</a></center>'; if($_GET['action'] == "delete") { $abf31 = "SELECT * FROM ".DBPREF."bans ORDER BY id DESC"; $erg31 = mysql_query($abf31); while($row = db_fetch_assoc($erg31)) { echo '<center><table class="Cnorm" width="90%" cellpadding="1" border="1" cellspacing="1">'; echo '<tr>'; echo '<td width="35%" align="left">'; echo '<table class="Cmite" width="90%" cellpadding="1" border="0" cellspacing="1">'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>Nickname:</b></legend>',$row['nickname'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>SteamID:</b></legend>',$row['steamid'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>Admin:</b></legend>',$row['admin'],'</fieldset></td>'; echo '</tr>'; echo '</table>'; echo '</td>'; echo '<td valign="top" class="Cmite">'; echo '<table class="Cnorm" cellpadding="1" border="0" cellspacing="1">'; echo '<tr>'; echo '<td class="Cmite" valign="top" width="65%">'; echo '<fieldset><legend><b>Vergehen:</b></legend>',$row['vergehen'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite" valign="top">'; echo '<fieldset><legend><b>Banlist:</b></legend>banid 0.0 STEAM_',$row['steamid'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite" valign="top">'; echo '<fieldset><legend><b>Ban ID:</b></legend>Ban Nr.: ',$row['id'],'</fieldset></td>'; echo '</tr>'; echo '</table>'; echo '</td>'; echo '</tr>'; echo '</table></center><hr>'; } echo '<form name="form2" method="post" action="admin.php?bans&action=save1">Type Ban Nr. to delete Ban: <input type="text" name="nr"><br><input type="submit" value="Are you sure?"></form>'; } if($_GET['action'] == "add") { echo '<form name="form1" method="post" action="?bans&action=save2"> <table width="90%" cellpadding="1" border="0" cellspacing="1"> <tr> <td width="35%" align="left" valign="top"> <table width="90%" cellpadding="1" border="0" cellspacing="1"> <tr> <td><fieldset><legend><b>Nickname:</b></legend><input type="text" name="nickname"></fieldset></td> </tr> <tr> <td><fieldset><legend><b>SteamID:</b></legend><input type="text" name="steamid"></fieldset></td> </tr> <tr> <td><fieldset><legend><b>Admin:</b></legend><input type="text" name="admin"></fieldset></td> </tr> </table> </td> <td rowspan="3" valign="top" align="left"> <fieldset><legend><b>Vergehen:(Max. 75 letters)</b></legend><textarea name="vergehen" rows="6" cols="60"></textarea></fieldset><br> <input type="submit" value="Absenden"> </td> </tr> </table> </form>'; } if($_GET['action'] == "save1") { $id = $_POST['nr']; echo 'Ban Nr.: '.$id.' gelöscht'; $delete = "DELETE FROM ".DBPREF."bans WHERE id = ".$id." LIMIT 1"; $erg = mysql_query($delete); echo ' <html><div align="center"> <a href="admin.php?bandelete">Back</a> </div></html>'; } if($_GET['action'] == "save2"){ $nickname = $_POST['nickname']; $steamid = $_POST['steamid']; $vergehen = $_POST['vergehen']; $admin = $_POST['admin']; if($nickname == "" or $steamid == "" or $vergehen == "") { echo 'Ban wurde <u>NICHT</u> Eingetragen. Bitte alles ausfüllen.'; exit; } else { $save = "INSERT INTO ".DBPREF."bans (nickname, steamid, vergehen, admin) VALUES ('$nickname', '$steamid', '$vergehen', '$admin')"; $erg = mysql_query($save); echo '<a href="admin.php?bans">Back to Admin Area</a>'; } } echo '<div align="center"><span style="color:#ff0000;">[./</span>banlist.Script by <a href="http://www.dastiac.de.gg">dastiac.de.gg</a><span style="color:#ff0000;">\.]</span>'; $design->footer(); ?>
include/contens/bans.php
<?php # Copyright by: Tobias Schwarz # Support: www.dastiac.de.gg defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Banlist'; $hmenu = 'Banlist'; $design = new design ( $title , $hmenu ); $design->header(); echo ' <a href="?bans&action=details">Ban Details</a> | <a href="?bans&action=banlist">Banlist for banned.cfg</a>'; if($_GET['action'] == "details") { $abf31 = "SELECT * FROM ".DBPREF."bans ORDER BY id DESC"; $erg31 = mysql_query($abf31); while($row = db_fetch_assoc($erg31)) { echo '<center><table class="Cnorm" width="90%" cellpadding="1" border="1" cellspacing="1">'; echo '<tr>'; echo '<td width="35%" align="left">'; echo '<table class="Cmite" width="90%" cellpadding="1" border="0" cellspacing="1">'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>Nickname:</b></legend>',$row['nickname'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>SteamID:</b></legend>',$row['steamid'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite"><fieldset><legend><b>Admin:</b></legend>',$row['admin'],'</fieldset></td>'; echo '</tr>'; echo '</table>'; echo '</td>'; echo '<td valign="top" class="Cmite">'; echo '<table class="Cnorm" cellpadding="1" border="0" cellspacing="1">'; echo '<tr>'; echo '<td class="Cmite" valign="top" width="65%">'; echo '<fieldset><legend><b>Vergehen:</b></legend>',$row['vergehen'],'</fieldset></td>'; echo '</tr>'; echo '<tr>'; echo '<td class="Cmite" valign="top">'; echo '<fieldset><legend><b>Banlist:</b></legend>banid 0.0 STEAM_',$row['steamid'],'</fieldset></td>'; echo '</tr>'; echo '</table>'; echo '</td>'; echo '</tr>'; echo '</table></center><hr>'; } } if ($_GET['action'] == "banlist") { $abf11 = "SELECT * FROM ".DBPREF."bans ORDER BY id DESC"; $erg11 = mysql_query($abf11); echo '<center><table width="90%" border="0" cellpadding="1" cellspacing="1">'; while($row = db_fetch_assoc($erg11)) { echo '<tr>'; echo '<td class="Cmite">'; echo 'banid 0.0 STEAM_',$row['steamid'],'</td>'; echo '</tr>'; } echo '</table></center><br>'; } echo '<div align="center"><span style="color:#ff0000;">[./</span>banlist.Script by <a href="http://www.dastiac.de.gg">dastiac.de.gg</a><span style="color:#ff0000;">\.]</span>'; $design->footer(); ?>
verwendete ilchClan Version: 1.1
betroffene Homepage: feyyaz2.kilu.de