The strange thing is, as soon as I do that, the login won't work
Here's my fill code now:
PHP Code:
<?php
chdir('/home/pzone/public_html/forum/');
require_once('global.php');
?>
<script type="text/javascript" src="forum/clientscript/vbulletin_md5.js?v=367"></script>
<form action="forum/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<table cellpadding="0" cellspacing="0" border="1">
<tr>
<td>User Name</td>
<td><input type="text" name="vb_login_username" /></td>
<td><input type="checkbox" name="cookieuser" />Remember?</td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="vb_login_password" /></td>
<td><input type="submit" value="Log in" /></td>
</tr>
</table>
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<?
if($vbulletin->userinfo['userid']!=0){echo "yes";}else{echo "no";}
?>
Now, if I remove the PHP at the top, the login works (I only know by viewing the actual forum, the $vbulletin->userinfo thing always shows no).
As I say though, when I add that PHP at the top, it doesn't even login. Any help would be greatly appreciated.
I'm actually beginning to wonder if this is possible? It must be though.