Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
This hack allows UBB to determine the load on the server and to turn away further users if the server load is too high.

[Linked Image]

Tested under UBB 6.02 with mod_Perl

Download

Philipp

[ April 02, 2001: Message edited by: Philipp ]

Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Nice job there Phillip!

Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
excellent man, love it smile

Joined: Mar 2001
Posts: 25
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 25
thats great!

vbulletin has something like that. smile

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
The words:

document.writeln

Do not exist at all in my cp_common.pl

I have Whos Online hack on, I dont think that wiped it out though... Any ideas?

Sponsored Links
Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
It has to be there, that's where your control panel links are.

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Ok, I need a drink. I redownloaded it and its there... Hmmm, that was weird wink

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Great:

You do not have permission to access this area.
» Use your browser's back button to return.


Probably because I am not using Mod Perl, wasnt sure if it work at all.

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Tim - Double-check that you edited the cp.cgi file correctly.

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Code
quote:</font><HR>You do not have permission to access this area.
» Use your browser's back button to return.<HR></BLOCKQUOTE>

In control panel? Did you add the follow lines in cp.cgi:

Quote
code:


quote:

No, this hack is only mod_perl compatible but doesn't require it.
Sponsored Links
Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Yup, I got:


if (($ubb eq 'set_vars_display') && ($status eq 'Administrator')) {
&set_vars_display; exit;
} #end set_vars_display

if (($ubb eq 'vars_server_load') && ($status eq 'Administrator')) {
&view_vars("server_load"); exit;
} #end vars_server_load

if (($ubb eq 'set_vars_server_load') && ($status eq 'Administrator')) {
require "$vars_config{CGIPath}/cp_server_load.cgi";
&set_server_load; exit;
} #end set_server_load

Ill clear cache or something smile ?

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Reuploaded everything and now when I click it, it just refreshes page and theres nothing there, but the words "Date & Time Settings". Everything else still seems to work.... Ill recheck my hacking, I usually never have a problem, so I am missing something small.

Thanks for any help you can give.

Update: Now redid whole hack from scratch, same problem.

[ April 02, 2001: Message edited by: Tim 3dfiles ]

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Seems obvious, but you did upload the files contained in the zip and chmoded them correctly right?

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
You know, thats the first thing that comes to mind and I think I forgot to chmod them... Damn, all the hacks ive installed and I finally did that. Im sure I upload ascii, forgot permissions.


Ok, this sucks, thanks man!

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Nope, tried 777 and 775, its not mentioned in the read me what to set them at.

Guess ill give up

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
Wait wait, try this.

CHMOD the ones in the CGI-BIN folder to 755.

CHMOD the ones in the TEMPLATES folder to 777 (even though it shouldn't matter).

CHMOD the file in the VARIABLES folder to 777.

See what happens.

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
No go, shouldnt matter, I run everything from one directory (cgi-bin) rather then a seperate cgi-bin directory. Anyhow, getting late so I quit for now smile

Thanks for the assist.

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Quote
quote:
Did you upload cp_vars_server_load.pl into your template folder?

Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 29
everything seems ok, but "your current load" doesn't display anything ???

i'm wrong anywhere ?

tipsy

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Quote
quote:
Is your board on a dedicated server?

Joined: Mar 2001
Posts: 29
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 29
euhhhh... what do you mean with dedicated server ?

my board is on hypermart or virtualave

does this hack work on such servers ?

tipsy

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Should. Hypermart and Virtualave are on UNIX.

Joined: Nov 2000
Posts: 168
Member
Member
Offline
Joined: Nov 2000
Posts: 168
But they prolly don't support mod_perl....

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
This hack doesnt REQUIRE mod_perl.

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Quote
quote:
Possibly missed it, the file names wrong in instructions or something, theres no cp_vars_server_load.pl mentioned in directions, unless ones ot assume, but ill check it out:


First you need to upload the follow files:
cgi-bin/cp_server_load.cgi -> To your UBB CGI directory
cgi-bin/ubb_server_load.cgi -> To your UBB CGI directory
variables/vars_server_load.cgi -> To your variables folder
variables/vars_wordlets_load.cgi -> To your variables folder
Templates/cp_server_load.cgi -> To your template folder

Joined: Jan 2000
Posts: 313
Member
Member
Offline
Joined: Jan 2000
Posts: 313
He mislabeled the template file .cgi instead of .pl in the directions, but it is .pl in the zip.

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Yup and I somehow didnt read it properly and theres the problem.

Working like a charm now.

Thanks all.

Joined: Sep 2000
Posts: 91
Power User
Power User
Offline
Joined: Sep 2000
Posts: 91
Quote
quote:
This hack is mainly for dedicated servers (=your own server) and not for virtual accounts.

Quote
quote:
Sorry Tim. Just updated the instructions.

BTW ask Ben to install mod_perl on the server because UBB6 runs much faster under mod_perl smile

Joined: Jul 2000
Posts: 80
Member
Member
Offline
Joined: Jul 2000
Posts: 80
Phillip,

Called Ben, turns out we ARE already using mod_perl.


No prob on the instructions, I do everything one step at a time and I knew something was wrong, I was confused and could not figure out why!!! But, you know me, love to install them beta hacks smile

[ April 04, 2001: Message edited by: Tim 3dfiles ]

Joined: Jan 2000
Posts: 34
Member
Member
Offline
Joined: Jan 2000
Posts: 34
Anyone got a working d/l - link for this?

Thanks!


Gruß/Regards
Stefan
Infopop Deutschland
Joined: Nov 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 6
can someone fix the download link

Joined: Nov 2001
Posts: 6
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 6
purty please? haha


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)