Josh D.'s Profile
Reputation: 6
Neutral
- Group:
- Administrators
- Active Posts:
- 421 (0.73 per day)
- Most Active In:
- Mihalism Multi Host (195 posts)
- Joined:
- 07-February 09
- Profile Views:
- 4,618
- Last Active:
Today, 07:20 PM- Currently:
- Offline
Latest Visitors
-
Something 
Yesterday, 04:20 AM -
mraztek 
17 Aug 2010 - 19:37 -
tianyoucc 
12 Aug 2010 - 12:54 -
perfectblue 
06 Aug 2010 - 08:10 -
XpatTech 
16 Jun 2010 - 10:58 -
sasha2002 
02 Jun 2010 - 23:49 -
GMC 
28 May 2010 - 01:00 -
warez 
20 Apr 2010 - 14:29 -
walkingdead 
13 Apr 2010 - 06:04 -
sat_cse28 
07 Apr 2010 - 04:31
Topics I've Started
-
Sneak Peek: Image Cropping
Posted 7 Jul 2010
Here's a sneak peek at a new mod I've been working on that will allow you to crop your images.
Image Cropping.jpg (384.68K)
Number of downloads: 50
Image Cropping2.jpg (165.22K)
Number of downloads: 33 -
New local server
Posted 10 Apr 2010
Finally got a linux server up and running, here's the specs:
server-info.jpg (225.06K)
Number of downloads: 22 -
Donations
Posted 8 Apr 2010
-
[5.0.x] Captcha check for guest user
Posted 1 Apr 2010
This is the discussion topic for Captcha check for guest user. -
[5.0.x] Captcha check for guest user
Posted 1 Apr 2010
Originally posted by: sasha2002, on 31 March 2010
In index.php (line 103):
Before :
"STANDARD_UPLOAD_YES" =>
Add this :
"CAPTCHA_CODE" => recaptcha_get_html($mmhclass->info->config['recaptcha_public']),
In source/language/upload.php (line 71):
Before :
?>
Add this :
$mmhclass->lang['061'] = "The security code entered did not match the one displayed. <br /> A new code has been generated. Please try again.<br /> <br /> <a href=\"javascript:void(0);\" onclick=\"history.go(-1);\">Return to Previous Page</a>";
In source/public_html/home.tpl (line 40):
Before :
<input class="button1" type="button" value="Start Uploading"
Add this :
<if="$mmhclass->info->is_user == false"> <div style="width:100%;text-align:left;"><span>Security Code:</span><# CAPTCHA_CODE #></div> </endif>
In source/public_html/home.tpl (line 148):
Before :
<input class="button1" type="button" value="Start Uploading"
Add this :
<if="$mmhclass->info->is_user == false"> <div style="width:100%;text-align:left;"><span>Security Code:</span><# CAPTCHA_CODE #></div> </endif>
In upload.php (line 13):
After :
$mmhclass->templ->page_title = sprintf($mmhclass->lang['001'], $mmhclass->info->config['site_name']);
Add this :
if ($mmhclass->info->is_user == false) { $recaptcha_check = recaptcha_check_answer( $mmhclass->info->config['recaptcha_private'], $mmhclass->input->server_vars['remote_addr'], $mmhclass->input->post_vars["recaptcha_challenge_field"], $mmhclass->input->post_vars["recaptcha_response_field"]); }
In upload.php (line 34):
After :
case "paste_upload":
Add this :
if ($recaptcha_check->is_valid == false && $mmhclass->info->is_user == false) { $mmhclass->templ->error($mmhclass->lang['061'], true); }
In upload.php (line 40):
After :
case "webpage_upload":
Add this :
if ($recaptcha_check->is_valid == false && $mmhclass->info->is_user == false) { $mmhclass->templ->error($mmhclass->lang['061'], true); }
In upload.php (line 150):
After :
case "standard":
Add this :
if ($recaptcha_check->is_valid == false && $mmhclass->info->is_user == false) { $mmhclass->templ->error($mmhclass->lang['061'], true); }
In upload.php (line 154):
After :
case "normal-boxed":
Add this :
if ($recaptcha_check->is_valid == false && $mmhclass->info->is_user == false) { $mmhclass->templ->error($mmhclass->lang['061'], true); }
That's all folks.
Just Use it !!!
With best regards sasha2002
My Information
- Member Title:
- Staff
- Age:
- 26 years old
- Birthday:
- October 25, 1983
- Gender:
-
- Location:
- Internet
Contact Information
- E-mail:
- Private

Sign In
Register
Help

Find Topics
Find Posts
Display name history
Comments
Josh D. has no profile comments yet. Why not say hello?