Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php session_start(); function validate($data){ $data = trim($data); $data = ..

Decoded Output download

<?php 
session_start(); 
function validate($data){ 
    $data = trim($data); 
    $data = stripslashes($data); 
    $data = htmlspecialchars($data); 
    return $data; 
 } 
 
// Load configuration file 
$config = require 'config.php'; 
 
// Checking for new updates 
include('assets/includes/update_checker.php'); 
if ($_SESSION['update_available']) { 
    include 'assets/classes/update.class.php'; 
    exit; 
} 
 
// Redirect to the setup page if the setup is not complete 
if ($config['setup_complete'] == false) { 
    include "assets/classes/setup.class.php"; 
    exit; 
} 
 
if (!isset($_SESSION['authenticated']) || $_SESSION['authenticated'] !== true) { 
    include "assets/classes/verfication.class.php"; 
    exit; 
} 
 
if (isset($_GET['action']) == "logout") { 
    session_destroy(); 
    header('Location: ' . strtok($_SERVER['REQUEST_URI'], '?'));  
    exit; 
} 
?> 
<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="UTF-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    <title>APR Filmai discord sender</title> 
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> 
    <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script> 
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> 
</head> 
<body> 
    <div class="jumbotron text-center"> 
    <h1><?php echo $config['site_name']; ?> Discord sender</h1> 
    <p>Custom build to send content to the official discord server!</p> 
    <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#settings_modal">Settings</button> 
    <a href="?action=logout" class="btn btn-danger"><i class="fas fa-sign-out-alt"></i> Logout</a> 
    </div> 
 
    <div class="container"> 
        <?php if (isset($_GET['update-error'])) { ?> 
        <div class="alert alert-danger fade show text-center"><?php echo validate($_GET['update-error']); ?></div> 
        <?php } ?> 
        <?php if (isset($_GET['update-success'])) { ?> 
            <div class="alert alert-success fade show text-center"><?php echo validate($_GET['update-success']); ?></div> 
        <?php } ?> 
        <div class="alert alert-info fade show text-center"> 
            <strong>Important:</strong> Do not share the "config.php" file with anyone, as it contains sensitive information, including APIs and webhooks. 
        </div> 
        <div class="row"> 
            <div class="col-sm-4"> 
                <form action="assets/includes/movie_send.php" method="post"> 
                    <h3 class="text-center">Movie sender</h3> 
                    <?php if (isset($_GET['movie-error'])) { ?> 
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['movie-error']); ?></div> 
                    <?php } ?> 
                    <?php if (isset($_GET['movie-success'])) { ?> 
                        <div class="alert alert-success fade show"><?php echo validate($_GET['movie-success']); ?></div> 
                    <?php } ?> 
                    <div class="form-group"> 
                        <input name="tmdb_id" type="text" class="form-control" placeholder="TMDB movie id"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="url" type="text" class="form-control" placeholder="Watch url"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="trailer_url" type="text" class="form-control" placeholder="Trailer url"> 
                    </div> 
                    <div class="form-group"> 
                    <label for="sel1">Select streaming status:</label> 
                        <select class="form-control" name="status"> 
                            <option value="1">1</option> 
                            <option value="2" selected>2</option> 
                            <option value="3">3</option> 
                        </select> 
                    </div> 
                    <button type="submit" class="btn btn-primary btn-block">Send</button> 
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/movie.PNG" alt="Movie layout" width="350"> 
                </form> 
            </div> 
            <div class="col-sm-4"> 
                <form action="assets/includes/serie_send.php" method="post"> 
                    <h3 class="text-center">Serie sender</h3> 
                    <?php if (isset($_GET['serie-error'])) { ?> 
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['serie-error']); ?></div> 
                    <?php } ?> 
                    <?php if (isset($_GET['serie-success'])) { ?> 
                        <div class="alert alert-success fade show"><?php echo validate($_GET['serie-success']); ?></div> 
                    <?php } ?> 
                    <div class="form-group"> 
                        <input name="tmdb_id" type="text" class="form-control" placeholder="TMDB serie id"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="url" type="text" class="form-control" placeholder="Watch url"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="trailer_url" type="text" class="form-control" placeholder="Trailer url"> 
                    </div> 
                    <div class="form-group"> 
                    <label for="sel1">Select streaming status:</label> 
                        <select class="form-control" name="status"> 
                            <option value="1">1</option> 
                            <option value="2" selected>2</option> 
                            <option value="3">3</option> 
                        </select> 
                    </div> 
                    <button type="submit" class="btn btn-primary btn-block">Send</button> 
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/serie.PNG" alt="Movie layout" width="350"> 
                </form> 
            </div> 
            <div class="col-sm-4"> 
                <form action="assets/includes/tv_channel_send.php" method="post"> 
                    <h3 class="text-center">Tv-channel sender</h3> 
                    <?php if (isset($_GET['tv_channel-error'])) { ?> 
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['tv_channel-error']); ?></div> 
                    <?php } ?> 
                    <?php if (isset($_GET['tv_channel-success'])) { ?> 
                        <div class="alert alert-success fade show"><?php echo validate($_GET['tv_channel-success']); ?></div> 
                    <?php } ?> 
                    <div class="form-group"> 
                        <input name="name" type="text" class="form-control" placeholder="Channel Name"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="category" type="text" class="form-control" placeholder="Category"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="language" type="text" class="form-control" placeholder="Language"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="quality" type="text" class="form-control" placeholder="Streaming Quality"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="link" type="text" class="form-control" placeholder="Streaming Link"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="image_url" type="text" class="form-control" placeholder="Image url"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="thumbnail_url" type="text" class="form-control" placeholder="Thumnail url"> 
                    </div> 
                    <div class="form-group"> 
                        <input name="footer_text" type="text" class="form-control" placeholder="Footer text"> 
                    </div> 
                    <button type="submit" class="btn btn-primary btn-block">Send</button> 
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/tv_channel.png" alt="Movie layout" width="350"> 
                </form> 
            </div> 
        </div> 
    </div> 
    <div class=" text-center" style="margin-bottom:0; padding-top:40px;"> 
        <p>Copyright  2025 APR Filmai, script made with love by Ahmad.PR</p> 
    </div> 
 
    <!-- Start: Settings modal --> 
    <div class="modal fade" id="settings_modal" tabindex="-1" aria-labelledby="settings_modal" aria-hidden="true"> 
        <div class="modal-dialog"> 
            <div class="modal-content"> 
                <div class="container mt-3"> 
                    <div class="alert alert-info text-center" role="alert"> 
                        <h4 class="alert-heading">Coming Soon!</h4> 
                        <p>The <strong>Settings</strong> feature will be available in future updates. Stay tuned for exciting new functionalities!</p> 
                        <hr> 
                        <p class="mb-0">Thank you for your patience and support.</p> 
                    </div> 
                </div> 
                <p class="mb-3 text-center">Session information</p> 
                <p class="mb-1 text-center">IP address: <?php echo $_SESSION['user_info']['ip_address']; ?></p> 
                <p class="mb-1 text-center">Created at: <?php echo $_SESSION['user_info']['created_at']; ?></p> 
                <p class="mb-1 text-center">The referring URL: <?php echo $_SESSION['user_info']['referrer']; ?></p> 
                <p class="mb-1 text-center">Host name: <?php echo $_SESSION['user_info']['host']; ?></p> 
                <p class="mb-1 text-center">Server protocol: <?php echo $_SESSION['user_info']['protocol']; ?></p> 
            </div> 
        </div> 
    </div> 
    <!-- End: Settings modal --> 
 
</body> 
</html>

Did this file decode correctly?

Original Code

<?php
session_start();
function validate($data){
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    return $data;
 }

// Load configuration file
$config = require 'config.php';

// Checking for new updates
include('assets/includes/update_checker.php');
if ($_SESSION['update_available']) {
    include 'assets/classes/update.class.php';
    exit;
}

// Redirect to the setup page if the setup is not complete
if ($config['setup_complete'] == false) {
    include "assets/classes/setup.class.php";
    exit;
}

if (!isset($_SESSION['authenticated']) || $_SESSION['authenticated'] !== true) {
    include "assets/classes/verfication.class.php";
    exit;
}

if (isset($_GET['action']) == "logout") {
    session_destroy();
    header('Location: ' . strtok($_SERVER['REQUEST_URI'], '?')); 
    exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>APR Filmai discord sender</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
    <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
    <div class="jumbotron text-center">
    <h1><?php echo $config['site_name']; ?> Discord sender</h1>
    <p>Custom build to send content to the official discord server!</p>
    <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#settings_modal">Settings</button>
    <a href="?action=logout" class="btn btn-danger"><i class="fas fa-sign-out-alt"></i> Logout</a>
    </div>

    <div class="container">
        <?php if (isset($_GET['update-error'])) { ?>
        <div class="alert alert-danger fade show text-center"><?php echo validate($_GET['update-error']); ?></div>
        <?php } ?>
        <?php if (isset($_GET['update-success'])) { ?>
            <div class="alert alert-success fade show text-center"><?php echo validate($_GET['update-success']); ?></div>
        <?php } ?>
        <div class="alert alert-info fade show text-center">
            <strong>Important:</strong> Do not share the "config.php" file with anyone, as it contains sensitive information, including APIs and webhooks.
        </div>
        <div class="row">
            <div class="col-sm-4">
                <form action="assets/includes/movie_send.php" method="post">
                    <h3 class="text-center">Movie sender</h3>
                    <?php if (isset($_GET['movie-error'])) { ?>
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['movie-error']); ?></div>
                    <?php } ?>
                    <?php if (isset($_GET['movie-success'])) { ?>
                        <div class="alert alert-success fade show"><?php echo validate($_GET['movie-success']); ?></div>
                    <?php } ?>
                    <div class="form-group">
                        <input name="tmdb_id" type="text" class="form-control" placeholder="TMDB movie id">
                    </div>
                    <div class="form-group">
                        <input name="url" type="text" class="form-control" placeholder="Watch url">
                    </div>
                    <div class="form-group">
                        <input name="trailer_url" type="text" class="form-control" placeholder="Trailer url">
                    </div>
                    <div class="form-group">
                    <label for="sel1">Select streaming status:</label>
                        <select class="form-control" name="status">
                            <option value="1">1</option>
                            <option value="2" selected>2</option>
                            <option value="3">3</option>
                        </select>
                    </div>
                    <button type="submit" class="btn btn-primary btn-block">Send</button>
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/movie.PNG" alt="Movie layout" width="350">
                </form>
            </div>
            <div class="col-sm-4">
                <form action="assets/includes/serie_send.php" method="post">
                    <h3 class="text-center">Serie sender</h3>
                    <?php if (isset($_GET['serie-error'])) { ?>
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['serie-error']); ?></div>
                    <?php } ?>
                    <?php if (isset($_GET['serie-success'])) { ?>
                        <div class="alert alert-success fade show"><?php echo validate($_GET['serie-success']); ?></div>
                    <?php } ?>
                    <div class="form-group">
                        <input name="tmdb_id" type="text" class="form-control" placeholder="TMDB serie id">
                    </div>
                    <div class="form-group">
                        <input name="url" type="text" class="form-control" placeholder="Watch url">
                    </div>
                    <div class="form-group">
                        <input name="trailer_url" type="text" class="form-control" placeholder="Trailer url">
                    </div>
                    <div class="form-group">
                    <label for="sel1">Select streaming status:</label>
                        <select class="form-control" name="status">
                            <option value="1">1</option>
                            <option value="2" selected>2</option>
                            <option value="3">3</option>
                        </select>
                    </div>
                    <button type="submit" class="btn btn-primary btn-block">Send</button>
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/serie.PNG" alt="Movie layout" width="350">
                </form>
            </div>
            <div class="col-sm-4">
                <form action="assets/includes/tv_channel_send.php" method="post">
                    <h3 class="text-center">Tv-channel sender</h3>
                    <?php if (isset($_GET['tv_channel-error'])) { ?>
                        <div class="alert alert-danger fade show"><?php echo validate($_GET['tv_channel-error']); ?></div>
                    <?php } ?>
                    <?php if (isset($_GET['tv_channel-success'])) { ?>
                        <div class="alert alert-success fade show"><?php echo validate($_GET['tv_channel-success']); ?></div>
                    <?php } ?>
                    <div class="form-group">
                        <input name="name" type="text" class="form-control" placeholder="Channel Name">
                    </div>
                    <div class="form-group">
                        <input name="category" type="text" class="form-control" placeholder="Category">
                    </div>
                    <div class="form-group">
                        <input name="language" type="text" class="form-control" placeholder="Language">
                    </div>
                    <div class="form-group">
                        <input name="quality" type="text" class="form-control" placeholder="Streaming Quality">
                    </div>
                    <div class="form-group">
                        <input name="link" type="text" class="form-control" placeholder="Streaming Link">
                    </div>
                    <div class="form-group">
                        <input name="image_url" type="text" class="form-control" placeholder="Image url">
                    </div>
                    <div class="form-group">
                        <input name="thumbnail_url" type="text" class="form-control" placeholder="Thumnail url">
                    </div>
                    <div class="form-group">
                        <input name="footer_text" type="text" class="form-control" placeholder="Footer text">
                    </div>
                    <button type="submit" class="btn btn-primary btn-block">Send</button>
                    <img style="margin-top: 10px; margin-bottom: 10px; box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); border-radius: 5px;" src="assets/img/tv_channel.png" alt="Movie layout" width="350">
                </form>
            </div>
        </div>
    </div>
    <div class=" text-center" style="margin-bottom:0; padding-top:40px;">
        <p>Copyright  2025 APR Filmai, script made with love by Ahmad.PR</p>
    </div>

    <!-- Start: Settings modal -->
    <div class="modal fade" id="settings_modal" tabindex="-1" aria-labelledby="settings_modal" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="container mt-3">
                    <div class="alert alert-info text-center" role="alert">
                        <h4 class="alert-heading">Coming Soon!</h4>
                        <p>The <strong>Settings</strong> feature will be available in future updates. Stay tuned for exciting new functionalities!</p>
                        <hr>
                        <p class="mb-0">Thank you for your patience and support.</p>
                    </div>
                </div>
                <p class="mb-3 text-center">Session information</p>
                <p class="mb-1 text-center">IP address: <?php echo $_SESSION['user_info']['ip_address']; ?></p>
                <p class="mb-1 text-center">Created at: <?php echo $_SESSION['user_info']['created_at']; ?></p>
                <p class="mb-1 text-center">The referring URL: <?php echo $_SESSION['user_info']['referrer']; ?></p>
                <p class="mb-1 text-center">Host name: <?php echo $_SESSION['user_info']['host']; ?></p>
                <p class="mb-1 text-center">Server protocol: <?php echo $_SESSION['user_info']['protocol']; ?></p>
            </div>
        </div>
    </div>
    <!-- End: Settings modal -->

</body>
</html>

Function Calls

session_start 1

Variables

None

Stats

MD5 fa4c42c7f33be21d5cc9cdb5a3bb3542
Eval Count 0
Decode Time 75 ms