php forum
php mysql forum
php mysql smarty
 
Topic Options
#311792 - 10/20/06 10:02 AM External Page Loged Check
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
Hi this was a hack that i previously used in classic,
although it was an External Loggin i also used it
to only allow registered members to see certain web pages.
By removing the actual Login feilds and just ran
the check.

Is there a simular code for v7 Threads that i coud adopt?

This is the code i used previously.
UBB Classic.
Cookie.inc.php
Code:
 <script type="text/javascript">
<!--
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>


Cookiediplay.inc.php

Code:
 <script type="text/javascript">
<!--
var user_cookie = getCookie('ubberxxxxx.xxxx');
if(''==user_cookie ||  null==user_cookie) {
//document.writeln('<div class="small">You are not logged in.' , '<br />
<a href="http://www.xxxx/ultimatebb.cgi">Login</a> or 
<a href="http://www.xxxx/cgi-bin/ultimatebb.cgi?ubb=agree">Register</a></div>')
} else {
var user_array=user_cookie.split("&");
user_array[2] = unescape(user_array[2]);
document.writeln(user_array[2]);
//document.writeln('Hello, ', user_array[2]);
//document.writeln('<br />[<a title="Click here to log out.
" href="http://www.xxxx/cgi-bin/ultimatebb.cgi</cgi-bin/ultimatebb.cgi?ubb=logoff">','log out</a>]');
}
//-->
</script>



Any help would be appreciated thanks smile
As it can be handy smile

Top
#312243 - 12/12/06 12:14 PM Re: External Page Loged Check [Re: Mark_S]
cornish Offline
Lurker

Registered: 12/12/06
Posts: 1
i am looking for the answer to this post as well. anybody knows how the answer?

Top
#312245 - 12/12/06 05:55 PM Re: External Page Loged Check [Re: cornish]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
hmmm.. I need to find the answer for this as well - stay tuned smile
_________________________
- Allen wavey
- What Drives You?

Top
#312246 - 12/12/06 06:55 PM Re: External Page Loged Check [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I'm putting off until someone else figures it out wink hehe...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#312470 - 01/02/07 07:31 AM Re: External Page Loged Check [Re: Gizmo]
Mark_S Offline
Power User

Registered: 11/15/03
Posts: 86
Loc: UK
Little bit of a bump smile
Seeing that its New year.

Ive been digging around the files etc,
and dont be able to trace this?

If we all have a dig every now and then we should be able
to figure this out...

Unless its been done and its in another thread?

I get lost when javascript takes over frown

Top
#312477 - 01/03/07 02:33 PM Re: External Page Loged Check [Re: Mark_S]
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it's not practical to handle this via javascript.

I've been working on a user authorization class (mostly it's the user class from ubbthreads.inc.php, but I'm writing it from scratch to avoid any issues with distribution)

I've only got to work on permissions, I believe I can have it done later this week, but right now I gotta work on some other things

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks