Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

you can't use exit($h->endpage()); i assume as the header.php is the ingame layout and register and the login are outside the game (so header.php would not be included) exit and die are php functions and would still work to kill the page

Posted

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...

Posted

Is this occuring in all browsers?

Personally id avoid having any css in the files. Put it in an external css file and link to that. Much easier to then troubleshoot.

Also you should update your code. Align and postion by css rather than html center tags which is depreciated.

Posted

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 :)

Posted

lol cheers, i remembered awhile back when i helped someone on their game and they had few the same lines which was at the bottom of the register page under the parts like them lines i posted

if you know what i mean lol

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...