Jump to content

Problema index


SpargTot_LoL
 Share

Recommended Posts

Salut. Am si eu o problema cu indexul la un panel, adica imi apare doar asta: https://imgur.com/a/3KuVbw2
Si asta e pagina in php, nu imi arata si cati sunt online si cate case sunt etc

<?php

if(!defined('panel'))

	die('Nope.');



?>

<?php

$houses = Config::rows('houses');
$businesses = Config::rows('bizz');
$cars = Config::rows('cars');


if(isset($_POST['addninfo'])) {	

	$q = Config::$g_con->prepare('INSERT INTO `updates` (`text`, `byAdmin`, `For`) VALUES (?, ?, ?)');

	$q->execute(array($_POST['ninfo'],Config::getData('users','name',$_SESSION['user']),1));

}

if(isset($_POST['addsupdate'])) {	

	$q = Config::$g_con->prepare('INSERT INTO `updates` (`text`, `byAdmin`, `For`) VALUES (?, ?, ?)');

	$q->execute(array($_POST['supdate'],Config::getData('users','name',$_SESSION['user']),0));

}

?>

            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>Dashboard</h1>
            </section>

            <!-- Main content -->
            <section class="content">
            <?php 
        
        	if(isset($_SESSION['user'])) {
        
        		$q = Config::$g_con->prepare("SELECT * FROM `bans` WHERE `PlayerName`=:name AND `Active` = 1");
        
        		$q->execute(array(":name" => Config::getData('users', 'name', $_SESSION['user'])));
        
        		while($row = $q->fetch(PDO::FETCH_OBJ)) {
        
        	?>
            <div class="col-md-4">
              <div class="box box-solid box-danger">
                <div class="box-header">
                  <h3 class="box-title">Contul tau este banat!</h3>
                </div>
                <div class="box-body">
                  Banat de: <b><?php echo $row->AdminName ?></b> pe data de <b><?php echo $row->BanTimeDate ?></b>, motivul banului: <b><?php echo $row->Reason ?></b>.<br/>
                  Poti plati <b>50 puncte premium</b> pentru a fi debanat (automat). Tu ai <b><?php echo $data->PremiumPoints ?> puncte premium</b>.<br/>
                  <?php if($data->PremiumPoints < 50) { ?>Nu ai suficiente puncte premium in cont pentru a dona pentru unban. <a href="<?php echo Config::$_PAGE_URL; ?>premium"><font color="blue">click aici</font></a> a adauga mai multe puncte premium in contul tau.<?php } else {?>Ai suficiente puncte premium pentru a-ti plati banul. <?php } ?>
                  <br><br>Daca consideri ca ai fost sanctionat in mod gresit, poti crea o cerere de unban <a href='<?php echo Config::$_PAGE_URL; ?>unban'><font color="blue">aici</font></a><br>Daca ai folosit cheat-uri, nu te obosi sa faci cerere de unban. Cheaterii nu sunt debanati.<br>De asemenea, nu te obosi sa zici ca a fost altcineva pe contul tau. Tu trebuie sa ai grija de contul tau si tu esti responsabil de ceea ce se intampla cu contul tau.<br><br>Daca ai fost banat pentru autoclicker, asta inseamna ca ai folosit un program pentru a te tine online in joc sau ai pus un obiect pe o tasta pentru a face caracterul sa mearga in fata in joc. 99% din playerii care fac cerere de unban pentru autoclicker nu sunt debanati.<br/><br/>
                </div>
              </div>
            </div>
            <?php } }
            	if(isset($_SESSION['user']) && Config::getData('users','Email',$_SESSION['user']) == "[email protected]") {	?>
            	<h2>Seteaza o adresa de email!</h2>
            	<h3>Nu ai o adres&#259; de email setat&#259; pe contul t&#259;u.<br>Setarea unei adrese de email te ajut&#259; &#238;n cazul &#238;n care &#238;&#355;i e spart contul.<br>F&#259;r&#259; o adres&#259; de email setat&#259;, nu &#238;&#355;i vei putea recupera contul dac&#259; acesta este spart.<br>Click pe butonul de mai jos pentru a seta o adres&#259; de email!
                <p><a class="btn btn-default" href="changemail">Seteaz&#259; adresa de Email</a></p>
                <?php } ?>
                    <?php if(Config::getData('users','Admin',$_SESSION['user']) >= 6 || Config::getData('users','SecurityModeratorSupport',$_SESSION['user']) == 1) { ?>
                    <div class="col-md-4">
                      <div class="box box-solid box-primary">
                        <div class="box-header">
                          <h3 class="box-title">Status tickete</h3>
                        </div>
                        <div class="box-body">
                     <?php if(Config::getData('users','Admin',$_SESSION['user']) >= 6 || Config::getData('users','SecurityModeratorSupport',$_SESSION['user']) == 1) {
                        
                            $q = Config::$g_con->prepare("SELECT * FROM `tickets` WHERE `status` = 0 AND `time` = 0");
                        
                            $q->execute();  ?>
                        
                        <p>General: <a href="<?php echo Config::$_PAGE_URL; ?>tickets"><?php echo $q->rowCount(); ?></a></p>
                        
                        <?php
                        
                        	$q = Config::$g_con->prepare("SELECT * FROM `tickets` WHERE `status` = 0 AND `time` = 1");
                        
                        	$q->execute();	?>
                        
                        <p>Donatii: <a href="<?php echo Config::$_PAGE_URL; ?>tickets"><?php echo $q->rowCount(); ?></a></p>
                        
                        <hr />
                        
                        <?php
                        
                        	$q = Config::$g_con->prepare("SELECT * FROM `donate` WHERE `Status` = 0");
                        
                        	$q->execute();	?>
                        
                        <p>Donatii in asteptare: <a href="<?php echo Config::$_PAGE_URL; ?>donations"><?php echo $q->rowCount(); ?></a></p>
                        
                        </div>
                      </div>
                    </div>
                    <?php } } ?>
                <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">Server Stats</div>
                            <div class="panel-body">
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="info-box bg-red">
                                        <span class="info-box-icon"><i class="fa fa-user"></i></span>

                                        <div class="info-box-content">
                                            <span class="info-box-text">Online</span>
                                        	<?php 
                                        
                                        		$q = Config::$g_con->prepare("SELECT * FROM `users` WHERE `Status` > 0");
                                        
                                        		$q->execute();
                                        	?>
                                            <span class="info-box-number"><?php echo $q->RowCount() ?>/250</span>
                                        </div>
                                        <!-- /.info-box-content -->
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="info-box bg-green">
                                        <span class="info-box-icon"><i class="fa fa-home"></i></span>

                                        <div class="info-box-content">
                                            <span class="info-box-text">Houses</span>
                                            <span class="info-box-number"><?php echo $houses; ?></span>
                                        </div>
                                        <!-- /.info-box-content -->
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="info-box bg-yellow">
                                        <span class="info-box-icon"><i class="fa fa-building-o"></i></span>

                                        <div class="info-box-content">
                                            <span class="info-box-text">Business</span>
                                            <span class="info-box-number"><?php echo $businesses; ?></span>
                                        </div>
                                        <!-- /.info-box-content -->
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-6 col-xs-12">
                                    <div class="info-box bg-purple">
                                        <span class="info-box-icon"><i class="fa fa-truck"></i></span>

                                        <div class="info-box-content">
                                            <span class="info-box-text">Vehicles</span>
                                            <span class="info-box-number"><?php echo $cars; ?></span>
                                        </div>
                                        <!-- /.info-box-content -->
                                  . </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-8">
                        <div class="panel panel-default">
                            <div class="panel-heading">Ultimele actiuni</div>
                            <div class="panel-body">
                                <div class="hr hr8 hr-double"></div>
                                <ul class="timeline timeline-inverse">
                                         <?php
                                    
                                    		$q = Config::$g_con->prepare('SELECT * FROM `factionlog` WHERE `action` = 0 ORDER BY `id` DESC Limit 10');
                                    
                                    		$q->execute();
                                    
                                    		while($row = $q->fetch(PDO::FETCH_OBJ)) {
                                    
                                    
                                    
                                    		$value = $row->Text;
                                    
                                    		$tokens = explode(" ", $value);	
                                    
                                    
                                    
                                    
                                    			$qr = Config::$g_con->prepare('SELECT `Model` FROM `users` WHERE `name` = ?');
                                    
                                    			$qr->execute(array($tokens[0]));
                                    
                                    	?>
                                    <li>
                                        <i data-toggle="tooltip"><img class="img-circle" src="<?php echo Config::$_PAGE_URL; ?>assets/images/avatars/<?php echo Config::getID("users","Model",$tokens[0]); ?>.png"/></i>
                                        <div class="timeline-item">
                                            <span class="time"><i class="fa fa-clock-o"></i> <?php echo $row->time; ?></span>
                                            <div class="timeline-body">

                                                <?php 

                                                echo str_replace($tokens[0],"<a href='".Config::$_PAGE_URL."profile/".Config::getID('users','name',$tokens[0])."'>".$tokens[0]."</a>",$row->Text);
                                                
                                                ?> 
                                                <?php } ?>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                      <div class="col-md-4">
                                                <div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
<i class="icon fa fa-check"></i>Scripter-ul acestei comunitati este Marius</a>
</div>
                        <div class="box box-danger">
                            <div class="box-header with-border bg-red">
                                <h3 class="box-title">
                  <i class="fa fa-rss"></i>
                    Informatii server               </h3>
                            </div>
                            <div class="box-body">
                                <ul>
                                    <li>Marius's Project</li>
                                    <li>Versiunea 0.0.1</li>
                                </ul>
                                <br>
                            </div>
                        </div>
    <div class="box box-danger">
    <div class="box-header with-border bg-red">
    <h3 class="box-title">
    <i class="fa fa-facebook"></i>
    Facebook
    </h3>
    </div>
    <div class="box-body">
    <div class="fb-page" data-href="www.facebook.com/druggy.ro/" data-small-header="true" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="false"><blockquote cite="www.facebook.com/druggy.ro/" class="fb-xfbml-parse-ignore"><a href="www.facebook.com/druggy.ro/">druggy.ro</a></blockquote></div>
    </div>
    </div>
                            <div class="box box-danger">
                            <div class="box-header with-border bg-red">
                                <h3 class="box-title">
                  <i class="fa fa-rss"></i>
                    Staff Log               </h3>
                            </div>
                            <div class="box-body">
                                <ul>
                                    <?php
            
                                        $q = Config::$g_con->prepare('SELECT * FROM `log_admin` ORDER BY `ID` DESC Limit 10');
            
                                        $q->execute();
            
                                        while($row = $q->fetch(PDO::FETCH_OBJ)) {
            
                                    ?>
            
                                <li><?php echo $row->log ?></li>
            
                                <?php } ?>
                                </ul>
                                <br>
                            </div>
                        </div>

                        <div class="box box-danger">
                            <div class="box-header with-border bg-red">
                                <h3 class="box-title">
                  <i class="fa fa-rss"></i>
                    Server Updates              </h3>
                            </div>
                            <div class="box-body">
                                <ul>
                                    <li>Momentan nu a fost facut nici un update la server.</li>
                                    </ul>

                                <br>
                            </div>
                        </div>

                    </div>
                </div>

            </section>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.