|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
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. Tested under UBB 6.02 with mod_Perl Download Philipp [ April 02, 2001: Message edited by: Philipp ]
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
|
|
|
|
Joined: Nov 2000
Posts: 915
Developer
|
Developer
Joined: Nov 2000
Posts: 915 |
excellent man, love it 
|
|
|
|
Joined: Mar 2001
Posts: 25
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 25 |
thats great! vbulletin has something like that. 
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
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?
|
|
|
|
Joined: Jan 2000
Posts: 313
Member
|
Member
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
Joined: Jul 2000
Posts: 80 |
Ok, I need a drink. I redownloaded it and its there... Hmmm, that was weird 
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
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
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
Joined: Sep 2000
Posts: 91 |
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: No, this hack is only mod_perl compatible but doesn't require it.
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
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  ?
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
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
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
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
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
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
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  Thanks for the assist.
|
|
|
|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
Joined: Sep 2000
Posts: 91 |
Did you upload cp_vars_server_load.pl into your template folder?
|
|
|
|
Joined: Mar 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 29 |
everything seems ok, but "your current load" doesn't display anything ??? i'm wrong anywhere ? 
|
|
|
|
Joined: Sep 2000
Posts: 91
Power User
|
Power User
Joined: Sep 2000
Posts: 91 |
Is your board on a dedicated server?
|
|
|
|
Joined: Mar 2001
Posts: 29
Junior Member
|
Junior Member
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 ? 
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
Should. Hypermart and Virtualave are on UNIX.
|
|
|
|
Joined: Nov 2000
Posts: 168
Member
|
Member
Joined: Nov 2000
Posts: 168 |
But they prolly don't support mod_perl....
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
This hack doesnt REQUIRE mod_perl.
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
Joined: Jul 2000
Posts: 80 |
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
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
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
Joined: Sep 2000
Posts: 91 |
This hack is mainly for dedicated servers (=your own server) and not for virtual accounts. Sorry Tim. Just updated the instructions. BTW ask Ben to install mod_perl on the server because UBB6 runs much faster under mod_perl 
|
|
|
|
Joined: Jul 2000
Posts: 80
Member
|
Member
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  [ April 04, 2001: Message edited by: Tim 3dfiles ]
|
|
|
|
Joined: Jan 2000
Posts: 34
Member
|
Member
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
Joined: Nov 2001
Posts: 6 |
can someone fix the download link
|
|
|
|
Joined: Nov 2001
Posts: 6
Junior Member
|
Junior Member
Joined: Nov 2001
Posts: 6 |
|
|
|
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.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|