!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/krupimhomecenter.com/office/   drwxr-xr-x
Free 237.97 GB of 981.82 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PhotosStore.php (4.49 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? 
include 'index_IncludeAdmin.php'
$_SESSION['page'] = 'PhotosStore.php';

if (
$_POST['PhotosStoreAdd']) {


    if(isset(
$_FILES['PhotosStoreFile']['name'])&&$_FILES['PhotosStoreFile']['name']!=''){

        
$Count count($_FILES['PhotosStoreFile']['name']);

        for (
$i=0$i $Count$i++) { 

            
$PhotosStoreFile rand().$_FILES["PhotosStoreFile"]["name"][$i];
            if(
move_uploaded_file($_FILES["PhotosStoreFile"]["tmp_name"][$i],"../Files/PhotosStoreFile/".$PhotosStoreFile)){
                
$PhotosStore_Add "INSERT INTO `PhotosStore` (`PhotosStoreFile`) VALUES ('$PhotosStoreFile')";
                
$PhotosStore_Reult mysqli_query($con,$PhotosStore_Add);
                if (!
$PhotosStore_Reult) {
                    echo
"<script>alert('Error PhotosStore');  </script>";
                }
            }
        }

        echo
"<script> window.location='PhotosStore.php?INSERT'; </script>";
    }


}


$Row "SELECT * FROM PhotosStore ";

$RowQuery mysqli_query($con,$Row) or die ("Error Query [".$Row."]");
$Num_Rows mysqli_num_rows($RowQuery);
$Per_Page 10;   // Per Page
$Page $_GET["Page"];
if(!
$_GET["Page"]){
    
$Page=1;
}
$Prev_Page $Page-1;
$Next_Page $Page+1;
$Page_Start = (($Per_Page*$Page)-$Per_Page);
if(
$Num_Rows<=$Per_Page){
    
$Num_Pages =1;
}
else if((
$Num_Rows $Per_Page)==0){
    
$Num_Pages =($Num_Rows/$Per_Page) ;
}
else{
    
$Num_Pages =($Num_Rows/$Per_Page)+1;
    
$Num_Pages = (int)$Num_Pages;
}
$i=$Page_Start+1;

$PhotosStore_SL $Row " ORDER BY PhotosStoreID DESC LIMIT $Page_Start , $Per_Page ";
$PhotosStore_QR     mysqli_query($con,$PhotosStore_SL);

?>

<!DOCTYPE html>
<html>
<head>
    <? include 'index_Head.php'?>
</head>
<body>

    <? include 'index_Navbar.php'?>    

    <div class="container-fluid">
        <div class="row">

            <div class="col-md-2" id="main-left">
                <div class="row">
                    <div class="col-md-12">
                        <? include 'index_AdminMenu.php'?>
                    </div>
                </div>
            </div>

            <div class="col-md-10">

                <div class="row">
                    <div class="col-md-12">
                        <h3>  จัดการไฟล์รูปภาพ  </h3>
                        <hr>
                    </div>
                </div>

                <? include 'index_Alerts.php'?>

                <div class="row">

                    <div class="col-md-12 br-margin2">
                        <form class="form-inline" enctype="multipart/form-data" method="post">
                            <div class="form-group">
                                <input type="file" class="form-control" required multiple="multiple" name="PhotosStoreFile[]">
                            </div>
                            <button type="submit"  class="btn btn-success">
                                <span class="glyphicon glyphicon-picture"></span> เพิ่มรูปภาพ
                            </button>
                            <input type="hidden" name="PhotosStoreAdd" value="x">
                        </form>
                    </div>

                    <div class="col-md-12">

                        <div class="panel panel-default">
                            <div class="panel-heading">
                                ไฟล์รูปภาพทั้งหมด <span class="badge"> <? echo "$Num_Rows"?></span> 
                            </div>
                            <div class="panel-body">

                                <div class="table-responsive">
                                    <table class="table table-striped">
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>รูปภาพ</th>
                                                <th>ลิ้งที่สามารถนำไปใช้</th>
                                                <th>ลบ</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?
                                            
while ($PhotosStore     mysqli_fetch_array($PhotosStore_QR)) {
                                                
?>
                                                <tr>
                                                    <td>
                                                        <p><?php echo $i?></p>
                                                    </td>
                                                    <td >
                                                        <img style="max-width: 500px;max-height: 300px;" src="../Files/PhotosStoreFile/<?php echo $PhotosStore[PhotosStoreFile]; ?>" class="boxsha"  />
                                                    </td>
                                                    <td>
                                                        <p title="สามารถก๊อบแล้วนำไปใช้ได้เลย" >http://<?php echo $fixed[fixed_website]; ?>/Files/PhotosStoreFile/<?php echo $PhotosStore[PhotosStoreFile]; ?></p>
                                                    </td>

                                                    <td>
                                                        <a href="PhotosStore_Del.php?PhotosStoreID=<?php echo $PhotosStore[PhotosStoreID]; ?>" class="btn btn-danger" onclick="return confirm(' ยืนยันการลบข้อมูล  ? ')"><span class="glyphicon glyphicon-trash"></span>  ลบ 
                                                        </a>
                                                    </td>
                                                </tr>
                                                <?php
                                                $i
++;
                                            }
                                            
?>
                                        </tbody>
                                    </table>
                                </div>

                            </div>
                            <div class="panel-footer">
                                <? include 'index_pagenum.php'?>
                            </div>
                        </div>

                    </div>
                    <!-- 12 -->
                </div>
                <!-- row -->
            </div>
            <!-- 10 -->
        </div>
        <!-- row -->
    </div>
    <!-- container -->
    
</body>
</html>



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0381 ]--