403Webshell
Server IP : 74.208.236.18  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux infong654 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64
User : u39365822 ( 135825)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/7/d147067425/htdocs/client_user_2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/7/d147067425/htdocs/client_user_2/pmg.php
<?php 
session_start();
include("includes/db_con_get.php");
if(!isset($_SESSION['loggedinC']) && @$_SESSION['loggedinC'] != '1'):
header("Location:index.php");
endif;
$chkA = $con->query("SELECT `id`, `option_value` FROM `client_options` WHERE 
                    `client_id` = '".@$_SESSION['CURRENT_CLIENT']['UserID']."' AND `option_name` = 'pmg_auth_reports'");
$row = $chkA->fetch_array(MYSQLI_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
    <?php include("includes/header.php"); ?>
    <body class="sb-nav-fixed">
        <style>
        .table a{
        display:block;
        text-decoration:none;
        }    
        </style>   
    <?php include("includes/topnavbar.php"); ?>
    <div id="layoutSidenav">
        <?php include("includes/sidenavbar.php"); ?>
        <div id="layoutSidenav_content">
            <div class="container-fluid px-4">
                <h3 class="mt-4">Problem Management Guide</h3>
                </br>
                <ul class="nav nav-tabs" id="myTab" role="tablist">
                    <li class="nav-item" role="presentation">
                        <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">PMG Form</button>
                    </li>
                    <li class="nav-item" role="presentation">
                        <button class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">Submission History</button>
                    </li>
                
                </ul>
                <div class="tab-content" id="myTabContent" style="min-height:60vh">
                    <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
                        <div class="col-xs-12 px-3 py-3">
                            <p><input type="checkbox" name="iAuthorize" value="tAuth" onchange="return tAuth()" 
                            <?php echo @$row['option_value'] == 'Authorized' ? 'checked': ''?>/> I authorize my therapist, counselor, or coach to access my reports.</p>
                            <button class="btn btn-success" id="btnShowPmgForm">Show Problem Management Guide Form</button>
                        </div>
                        <p style="font-style:italic; color:green" id="authMsg"></p>
                        <div class="loaderDiv" style="display:none">Loading...</div>
                        <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src=""
                            frameborder="0" style="width:100%; height:1500px; border:none;" scrolling="yes"></iframe>
                    </div>
                    <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">...</div>
                </div>
            <?php include("includes/footer.php"); ?>
            </div>
        </div>
    </div>    
<?php include("includes/footer_js.php"); ?>
<script>
    function tAuth() {
        let check = $("input[name=iAuthorize]").is(':checked');
        $.ajax({
            url: "includes/ajax-handler.php",
            cache: false,
            type: "POST",
            data: {task: "auth_pmg", check},
            success: function (res) {                                                                                        
                $('#authMsg').html(res);
                $(".loaderDiv").css('display', 'none');
            },
            error: function (reponse) {
                console.log("Please contact support team");
            },
            beforeSend: function() { 
                $(".loaderDiv").css('display', 'block');
            }
        });
    }
    $(document).ready(function () {

        $("#btnShowPmgForm").click(function () {
            let check = $("input[name=iAuthorize]").is(':checked');
            if(!check) {
                alert("Please check the authorize button in order to access form.");
                return false;
            }
            $.ajax({
                url: "includes/ajax-handler.php",
                cache: false,
                type: "POST",
                data: {task: "show_pmg_form"},
                success: function (res) {
                    response = JSON.parse(res);
                    console.log(response);
                    console.log(response.FormSourceLink);                                                                                           
                    if (response.IsSubmissionAvailable) {
                        $("#JotFormIFrame").attr('src', response.FormSourceLink);
                    }
                    else {
                        alert(response.message);
                    }
                    $(".loaderDiv").css('display', 'none');
                },
                error: function (reponse) {
                    alert("Please contact support team");
                },
                beforeSend: function() { 
                    $(".loaderDiv").css('display', 'block');
                }
            });
            
        });

    });
</script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit