Thread: Miscellaneous Hacks - reCAPTCHA!vB - Stop spam. Read books.
View Single Post
  #57  
Old 13 Feb 2008, 04:49
Doctor Dan Doctor Dan is offline
 
Join Date: Dec 2007
Lightbulb

For those who would like to use "Method A" (the register.patch file) to modify their register.php file but do not have shell access (e.g. hosting services that only provide cPanel access), you may find this "trick" useful:

1. Upload the register.patch file to your forum's root directory.

2. Create a plain text file called runpatch.pl with the following contents:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


save it, and upload it to your forum's root directory.

3. Change the permissions on the runpatch.pl file that you just uploaded to 0755 so that you can execute the script.

4. In a web browser, type:

http://yourdomain/yourforum/runpatch.pl

The perl script will run, which in turn runs the patch command.

5. Delete the runpatch.pl file from your forum's root directory.

N.B.: This technique assumes that you can run perl scripts with system calls on the server where your forum resides, which is usually the case.

- Dan
Reply With Quote