<?php
session_start();
if (empty($_SESSION['namauser']) AND empty($_SESSION['passuser'])){
	header('location:404.php');
}else{
$table1 = new PoTable('post');
$total1 = $table1->numRow();
$table2 = new PoTable('category');
$total2 = $table2->numRow();
$table3 = new PoTable('tag');
$total3 = $table3->numRow();
$table4 = new PoTable('media');
$total4 = $table4->numRow();
$table5 = new PoTable('pages');
$total5 = $table5->numRow();
$table6 = new PoTable('component');
$total6 = $table6->numRow();
$table7 = new PoTable('users');
$total7 = $table7->numRow();
include "po-component/po-home/traffic.php";
$visitorc = $currentStat3 + $currentStat4 + $currentStat5 + $currentStat6;
$hitsc = $sql_hits3 + $sql_hits4 + $sql_hits5 + $sql_hits6;
?>
	<div class="contentTop">
        <span class="pageTitle"><span class="icon-home"></span><?php echo $langhome1; ?></span>
        <ul class="quickStats">
            <li>
                <a href="" class="blueImg"><img src="images/icons/quickstats/plus.png" alt="" /></a>
                <div class="floatR"><strong class="blue"><?php echo $hitsc; ?></strong><span><?php echo $langhome14; ?></span></div>
            </li>
            <li>
                <a href="" class="redImg"><img src="images/icons/quickstats/user.png" alt="" /></a>
                <div class="floatR"><strong class="blue"><?php echo $visitorc; ?></strong><span><?php echo $langhome13; ?></span></div>
            </li>
        </ul>
        <div class="clear"></div>
    </div>
    <!-- Breadcrumbs line -->
    <div class="breadLine">
        <div class="bc">
            <ul id="breadcrumbs" class="breadcrumbs">
                <li><a href="admin.php?mod=home"><?php echo $langmenu1; ?></a></li>
                <li class="current"><a><?php echo $langhome2; ?></a></li>
            </ul>
        </div>
    </div>
    <!-- Main content -->
    <div class="wrapper">
        <ul class="middleNavR">
            <li><a href="admin.php?mod=post" title="<?php echo $langhome4; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe002;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total1; ?></strong></li>
            <li><a href="admin.php?mod=category" title="<?php echo $langhome5; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe1a4;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total2; ?></strong></li>
            <li><a href="admin.php?mod=tag" title="<?php echo $langhome6; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe1c3;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total3; ?></strong></li>
            <li><a href="admin.php?mod=library" title="<?php echo $langhome7; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe227;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total4; ?></strong></li>
			<li><a href="admin.php?mod=pages" title="<?php echo $langhome8; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe015;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total5; ?></strong></li>
            <li><a href="admin.php?mod=component" title="<?php echo $langhome9; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe065;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total6; ?></strong></li>
			<li><a href="admin.php?mod=user" title="<?php echo $langhome10; ?>" class="tipN"><div class='fs1 iconb' data-icon='&#xe1e1;' style='margin-top:20px; color:#888; font-size:25px;'></div></a><strong><?php echo $total7; ?></strong></li>
        </ul>
		<p>&nbsp;</p>
        <div class="widget chartWrapper">
            <div class="whead"><h6><?php echo $langhome11; ?></h6><div class="clear"></div></div>
			<div class="body"><div class="chart"></div></div>
		</div>
		<p>&nbsp;</p>
		<p align="right"><b>PopojiCMS &copy 2014. All Right Reserved. Buat Sendiri Rasa Webmu dengan PopojiCMS.</b><br /><small>Dwira Survivor (owner)</small></p>
	</div>
<?php
}
?>