Jump to content
MakeWebGames

small help please?


Nicholas

Recommended Posts

hi, im wondering is there another way to end a page without using

exit;

$h->endpage;

echo("blah");

as i cant use $h->endpage; in register,php or login.php some reason... even when i put $h in correct spot for example

global $_config, $h;

and if i use exit; or the other one this is what happens to my layout.

normal page

http://img713.imageshack.us/i/45313025.png/

page with exit; or other way

http://img52.imageshack.us/i/52768617.png/

as you can see without the ending page function with exit; the page is fine

but with the endpage function exit;

it ruins my layout little, by pushing it to the right abit, which you can probably see...

is there another way to end the page on sertain line without my layout going like that?

if there is can you tell me please?

thanks Nicholas

Link to comment
Share on other sites

yeh kinda figured thats was the reason for $h->endpage; function

as the endpage function is at end of header.php

also this is a line for what i mean in register.php for example

 

if(file_exists('ipbans/'.$ip))
{
echo "<font color=red size=-1><center>Your IP has been banned.
There is no way around this.</center></font>";
exit;
}

the exit; bit pushing my layout out of its correct slot.

also return; doesnt end a page does it?

guess illl just have to put up with it i guess...

Link to comment
Share on other sites

once again something i have not messed with but exit is a function would

 

if(file_exists('ipbans/'.$ip))
{
exit("<font color=red size=-1><center>Your IP has been banned.
There is no way around this.</center></font>");
}

 

not work ? and i would also stop using depreciated tags :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...