|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
Hmm..Well, I'm recreating an old useful hack of mine, but I seem to have forgotten how to make a website like this.. If I were to have a URL that was.. Http://www.website.com/cgi-bin/ultimatebb.cgi?ubb=blah How do I make the ubb so when I type a link in (for ultimatebb.cgi?ubb=****) it pops up a page that I want? Lord Dexter tried to explain but I didnt get it well
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
if ($ubb eq 'name here') { &RequireCode("$vars_config{CGIPath}/name of .cgi file you are linking from"); &name of sub you want the code called from; exit(0); } #end name here Just edit all those areas in that code.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
This is what I have..
if ($ubb eq 'fader') { open(F,"$vars_config{nonCGIURL)/fader.html") or die $!; print while(); close(F); exit(0);
} # End Text Color Fader
And I need to make it complient with templates..
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Do not use open() alone. Use FileHandler or an OpenFileAs* routine.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
I'm completely stupid with stuff like that So I have no idea what you mean
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
He means don't use
open(F,"$vars_config{nonCGIURL)/fader.html")
Use something like:
OpenFileAs(F,"$vars_config{nonCGIURL)/fader.html")
So, change the method of opening that file.
Sorry if I misunderstood what ya meant.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
I'm getting this error.. Bareword "F" not allowed while "strict subs" in use at ultimatebb.cgi line 239. Execution of ultimatebb.cgi aborted due to compilation errors.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
:rolleyes: if ($ubb eq 'fader') { print &OpenFileAsString("$vars_config{NonCGIPath)/fader.html"); exit(0); } # End Text Color Fader
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
^^^ I corrected the } for up there, but I get an internal server error..
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
LD, stop making a fool out of yourself. Le sigh.
Halobreak, do you have access to the server error log?
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
edit: I just asked my host via aim..Hold on.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
[Fri Aug 2 10:59:32 2002] [error] [client 204.xxx.xxx.xx] malformed header from script. Bad header=: /home/halo/public_html/cgi-bin/UBB/ultimatebb.cgi
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Can you try to CHMOD fader.html to 777?
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
I CHMODed the fader.html and it still gives me an internal server error
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Try:
print header() . &OpenFileAsString("$vars_config{NonCGIPath)/fader.html");
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Sep 2001
Posts: 71
Member
|
Member
Joined: Sep 2001
Posts: 71 |
Yes! It worked! Thank you Charles, thank you very much. And thank you all who helped (or tried.. ).
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
quote: Originally posted by Charles Capps: LD, stop making a fool out of yourself. Le sigh.
Like I said, I wasn't quite sure.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|