Ok I've parsed the post count.
Anyone got a plain php way to read the board cookie for user name without using any includes...just straight up read the cookie, grab the display name...etc. no noncgi paths, var_config includes...just straight up reading it and displaying it.
Basically the PHP equivalent of this:
<script language="Javascript1.1" type="text/javascript">
<!--
var session_cookie = getCookie('session2453335.1958');
if (session_cookie == null) {
var session_dt = "0";
var session_j = "0";
} else {
var session_array = session_cookie.split("&");
var session_dt = session_array[0];
var session_j = session_array[1];
}
function getCookie(name) {
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) {
end = dc.length;
} // end if
return (dc.substring(begin, end));
} // end if
} // end if
return null;
}
//-->
</script>
<script language="Javascript" type="text/javascript">
<!--
var user_cookie = getCookie('ubber2453335.1958');
if(''==user_cookie || null==user_cookie) {
document.writeln('You are not logged in.' , ' <a class="top" href="http://www.poorreflection.com/cgi-bin/ultimatebb.cgi?ubb=login">Login</a> or <a class="top" href="http://www.poorreflection.com/cgi-bin/ultimatebb.cgi?ubb=agree">register</a>')
} else {
var user_array=user_cookie.split("&");
user_array[2] = unescape(user_array[2]);
document.writeln('Hello, ', user_array[2]);
document.writeln('[ <a class="top" href="http://www.poorreflection.com/cgi-bin/ultimatebb.cgi?ubb=logoff">'
,'<acronym title="Click here to log out.">'
,'log out</acronym></a> ]');
}
//-->
</script>
I've tried several ways and it keeps displaying nothing.
Thanks everyone - a lot of good posts in this forum - i think i've worn out the search button.