php forum
php mysql forum
php mysql smarty
 
Topic Options
#93284 - 06/06/04 05:41 PM Redirect Script
DebbieH103 Offline
Member

Registered: 09/14/02
Posts: 34
My website relied heavily on Cyber-Junkie's redirect script. He has decided to disgrace it with a "donate page" that scares people and doesn't answer when I ask to buy the script. I need someone to write an alternative that will allow someone to click on a link in an option box and be redirected to the file itself. Please write me at DebbieH@tropictravelonline.com or DebbieH103@aol.com to discuss details and rate. I can pay via PayPal after completion of work.

Top
#93285 - 06/06/04 06:13 PM Re: Redirect Script
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
We'd need more details... how would you like this? ubb integrated, seperate page, etc? you can't just say "it needs to redirect a user to a file" we need to know everything you want it to be and everything you want it to do...
_________________________
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
#93286 - 06/06/04 07:33 PM Re: Redirect Script
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
thanks to google I was able to find the info.

all this seems to be is


http://www.domain.net/redirect.cgi?url=http://www.alforadmin.com

that would redirect to my site.

This is actually quite easy.

Debbie, did he also count the amount of times the redirect went to a certain page, or was it just the redirection?

If it's just the redirection, that's easy to do, and the logging wouldn't be that hard either

Top
#93287 - 06/11/04 06:17 PM Re: Redirect Script
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
http://www.alforadmin.com/redirect_script.php

I'm releasing the script I wrote for free. You can view the info at the above link.

Top
#93288 - 06/27/04 10:52 AM Re: Redirect Script
DebbieH103 Offline
Member

Registered: 09/14/02
Posts: 34
Ian, I tried to plug in your script - example section Report Links - Jamaica - Montego Bay Area Resorts in http://www.tropictravelonline.com/sandalsbeachesreports.html - the Ocho Rios section below is the old Cyber Junkie one. I don't care about counting redirects. I only want to have the menu option actually go to the web page of the trip report. I altered the redirect.cgi and put a path in, but it doesn't work. I'm playing with it right now.

Top
#93289 - 06/27/04 11:49 AM Re: Redirect Script
DebbieH103 Offline
Member

Registered: 09/14/02
Posts: 34
This particular page is not integrated w/ ubb. That would be nice in the future, but at the moment, it doesn't do that.

Top
#93290 - 06/27/04 12:15 PM Re: Redirect Script
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
#!/usr/bin/perl
# Ian's redirect script

use strict;
use CGI qw( :standard );
use Fcntl;

use vars qw(%in);
use constant SEVENSEVENSEVEN => 0777;
use constant SIXSIXSIX => 0666;

%in = map{
	my @z = param($_);
	( scalar(@z) > 1 ?
		( $_ => join(",", @z) ) :
		( $_ => $z[0] )
		)
	} param();

print redirect($in{url});

exit(0);
is all your should need for that.

Top
#93291 - 06/27/04 03:06 PM Re: Redirect Script
DebbieH103 Offline
Member

Registered: 09/14/02
Posts: 34
I got what I had to work. I didn't have the cgi file chmod at 755. I will save this one, too! Thanks!

Top
#93292 - 08/25/04 04:03 PM Re: Redirect Script
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I've also released a PHP version which can be found at the same link.

Top
#93293 - 08/25/04 10:16 PM Re: Redirect Script
RoxSeibert Offline
Member

Registered: 02/20/03
Posts: 178
Loc: highspire, pa
sweeet- this would solve a problem nicely for me as well. is there any advantage to using the php version over the perl version?
_________________________
~=Rox
http://dragboatalley.com/cgi-bin/ultimatebb.cgi

dangerously inspired by ubbdev,
but i still absolutely HATE perl.

Top
#93294 - 08/25/04 10:42 PM Re: Redirect Script
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
If used a lot, the php version could be less server intensive. The file is also a little smaller, and could be nice for anyone with cgi. Of course this means you need PHP installed.

Both versions now include the ability to not log, just forward.

Top
#93295 - 08/26/04 03:51 AM Re: Redirect Script
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
How about a PHP/MySQL vesion wink .. flat files == dying :-x
_________________________
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



Moderator:  Deb 
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