php error after i added rechapta

hi please fix the issue on

@Fun4TubeGr said:
hi please fix the issue on

Can you post the php file and ill fix it for you? Or if you’d rather email it my email is [email protected]

@Fun4TubeGr said:
hi please fix the issue on

Please post your PHP File here.
Did you check the placement of the code?
Is there any gap you must fill?
Have you checked the documentation?

This is what I see on the URL:

Parse error: syntax error, unexpected '$fields_string' (T_VARIABLE), expecting '{' in /home/vol3_7/ on line 136

Your code is broken and you need to fix it.

Here is my php code

<?php require "mysql.php"; $apk_name = ['ClockPackage.apk'] ['name']; $odex_name = ['ClockPackage.odex'] ['name']; $framework_name = ['framework'] ['name']; $directory_apk = 'requests/$name/apk'; $directory_odex = 'requests/$name/odex'; $directory_framework = 'requests/$name/framework'; $target_apk = $directory_apk.$apk_name; $target_odex = $directory_odex.$odex_name; $target_framework = $directory_framework.$framework_name; if (isset($_POST['request'])) { function CheckCaptcha($userResponse) { $fields_string = ''; $fields = array( 'secret' => 'private key', 'response' => $userResponse ); foreach($fields as $key=>$value) $fields_string .= $key . '=' . $value . '&'; $fields_string = rtrim($fields_string, '&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ''); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, True); $res = curl_exec($ch); curl_close($ch); return json_decode($res, true); } // Call the function CheckCaptcha $result = CheckCaptcha($_POST['g-recaptcha-response']); if (empty($_POST['name'])) { echo "
Please enter a name
"; } else { $name = $_POST ['name']; } if (empty($_POST['email'])) { echo "
Please enter your email
"; } else { $email = $_POST ['email']; } if (empty($_POST['ClockPackage.apk'])) { echo "
Please upload your ClockPackage.apk to continue
"; } else { $clockapk = $_POST ['ClockPackage.apk']; } if (empty($_POST['ClockPackage.odex'])) { echo "
Please upload your ClockPackage.odex to continue
"; } else { $clockodex = $_POST ['ClockPackage.odex']; } if (empty($_POST['framework'])) { echo "
Please upload your framework to continue
"; } else { $framework = $_POST ['framework']; } if (empty($_POST['do_you_know_it'])) { echo "
Please chose a option
"; } else { $you_know_it = $_POST ['do_you_know_it']; } if ($result['success']) { //If the user has checked the Captcha box echo "
Captcha verified Successfully
"; } else { // If the CAPTCHA box wasn't checked echo "
you must verifay chaptcha
"; } } ?>

@Fun4TubeGr said:

The file you listed to is not public, so I can’t see it. A service like PasteBin usually works better for sharing code snippets, or you could just paste it in here.

also do not show us your private ReCaptcha key

The code looks OK. However, I see you’re building the POST query string manually, whereas the function http_build_query($fields) would do the same.

However, I checked the file in your account and I see you have this code on your page twice (once at the top, another time halfway down the page). In the second occurrence, the function does not have an opening bracket, so all the lines after the first are not part of the function.

Given how the code at the top looks valid, you can probably remove the second occurrence.