Ban system doesnt work for unbaned people,shows blank screen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

adamb10
Forum Commoner
Posts: 91
Joined: Sat Jun 24, 2006 7:44 pm

Post by adamb10 »

Yeah I tried exit, and die. While they do work, I would like it to be more prettier(tho not required). If it requires a extensive amounts of lines like an if statement, i'll let it be the way it is now probobly. With die,exit, no css appears to load. I just get the message on white background.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

What are you getting just a blank page? no css? cause that shouldn't happen, the CSS are already sent
adamb10
Forum Commoner
Posts: 91
Joined: Sat Jun 24, 2006 7:44 pm

Post by adamb10 »

Just a blank page with text saying your banned, yes.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Can you post the sorce code on the banned ip page?
adamb10
Forum Commoner
Posts: 91
Joined: Sat Jun 24, 2006 7:44 pm

Post by adamb10 »

Code: Select all

function error($message){
	echo '
	<br><br><br><br>
	
	<table class="border" style="width: 40%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="4" cellspacing="1"  align="center">
	    <tr class="titlebg">

	      <td><b>Error!</b></td>

	    </tr>

	    <tr class="windowbg2">

	     <td>
	'.$message.'
	</td>
	</tr>
	</table>
	';
}
I use the error function to display the ban message.
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

whats the HTML of the output page.
Post Reply