VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/formeditor/latest/demo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/formeditor/latest/demo/index.php
<?php
    if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") {
        $location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
        header('HTTP/1.1 301 Moved Permanently');
        header('Location: ' . $location);
        exit;
    }
?>
<!DOCTYPE html>
<html>

<head>
    <title>Explore</title>
    <style type="text/css">
        .ae-block {
            box-sizing: border-box;
            height: 3em;
            position: relative;
            padding-left: 3.5em;
            border: 1px solid #ddd;
            margin-bottom: 0.25em;
        }

        .ae-icon {
            position: absolute;
            font-size: inherit;
            left: calc(0.25em - 1px);
            top: calc(0.25em - 1px);
            height: 2.5em;
            width: 2.5em;
        }

        .ae-name {
            font-size: 1em;
        }

        .ae-created,
        .ae-modified {
            font-size: 0.5em;
            color: rgb(70, 70, 72);
        }

        a {
          text-decoration: none ;
        }

    </style>
</head>
<body>
    <script type="text/javascript">
        function defaultImg(elt){
            elt.src = "/exticons/square-o/default.svg";
        }
    </script>
    <?php
        set_error_handler(function() { /* ignore errors */ });
        $temp = scandir(".");
        $l = count($temp);
        for ($i = 0; $i < $l; $i++){
            $name = $temp[$i];
            if ($name == "." || (substr($name, 0, 1) =="." && $name != "..")) continue;
            try{
                $finfo = stat($name);
            }
            catch (Exception $error){
                $finfo = null;
            }

            if ($finfo == null) continue;


            if (is_dir($temp[$i]))
            {
               $iconSrc = "/exticons/square-o/folder.svg";
            }
            else{
                $namep = split("[\.]", strtolower($name));
                $iconSrc = "/exticons/square-o/". $namep[count($namep) - 1].".svg";
            }

    ?>
    <a href="./<?php echo $name; ?>">
        <div class="ae-block">
            <img class="ae-icon" src="<?php echo $iconSrc;?>" onerror="defaultImg(this)"></img>
            <div class="ae-name"><?php echo $name; ?></div>
            <div class="ae-created"><label>Created: </label> <?php echo date('d-m-Y  h:i:sa', $finfo["ctime"]) ?></div>
            <div class="ae-modified"><label>Modified: </label> <?php echo date('d-m-Y  h:i:sa', $finfo["mtime"]) ?></div>
        </div>
    </a>
    <?php
        }
    ?>
</body>

</html>

VaKeR 2022