Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="content">
- <aside class="right-side">
- <?php
- if(!defined('rpg'))
- die('Nope');
- if(!isset($_SESSION['user']) && !isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\'.'.Config::$_PAGE_URL.'login\'/>';
- if(isset(Config::$_url[1])) $user = (int)Config::$_url[1];
- if(!isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\'.'.Config::$_PAGE_URL.'\'/>';
- $q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ?');
- $q->execute(array(Config::$_url[1]));
- if(!$q->rowCount()) {
- echo '
- <title>This user doesn\'t exist</title>
- <div class="breadcrumbs" id="breadcrumbs">
- <ul class="breadcrumb">
- <li>
- <i class="ace-icon fa fa-home home-icon"></i>
- <a href="<?php echo Config::$_PAGE_URL; ?>">Home</a>
- </li>
- <li class="active">This user doesn\'t exist</li>
- </ul><!-- /.breadcrumb -->
- </div>
- <div class="page-content"><div class="row-fluid"><div class="span12">
- <div class="alert alert-danger">This user doesn\'t exist.</div>';
- return;
- }
- $data = $q->fetch(PDO::FETCH_OBJ);
- //include 'inc/config.php';
- $respect = $data->Level*3+3;
- ?>
- <?php
- $q = Config::$g_con->prepare('SELECT * FROM `bans` WHERE `PlayerName` = ? AND `Active` = 1 LIMIT 1');
- $q->execute(array($data->name));
- if($q->rowCount())
- while($row = $q->fetch(PDO::FETCH_OBJ)) {
- $date = $row->BanTimeDate;
- if($row->Permanent == 1) {
- $expira = "Contul este banat permanent (banul nu va expira automat)";
- }
- else
- {
- $expira = "Banul expira pe data de <b>". gmdate("Y-m-d H:i:s", $row->Time) ."</b>";
- }
- $numeadmin = $row->AdminName; $motiv = $row->Reason;
- echo "
- <div class='alert alert-danger'>
- <b>This account is banned.</b><br/><br/>
- Banat de: <b>$numeadmin</b> pe data de <b>$date</b>, motivul banului: <b>$motiv</b>.<br/>
- $expira.</div> ";
- }
- ?>
- <title><?php echo $data->name; ?>'s Profile - Reclama<form action="<?php echo Config::$_PAGE_URL; ?>search/" method="post" class="sidebar-form">
- <div class="input-group">
- <input type="text" name="search" class="form-control" placeholder="Search for a player..."/>
- <span class="input-group-btn">
- <button type='submit' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
- </span>
- </div>
- </form></title>
- <section class="content-header">
- <h1>
- <?php echo $data->name; ?>'s profile
- </h1>
- <ol class="breadcrumb">
- <li><a href="<?php echo Config::$_PAGE_URL; ?>"><i class="fa fa-home"></i> Home</a></li>
- <li class="active"><?php echo $data->name; ?>'s profile</li>
- </ol>
- </section>
- <div class="col-md-2" style="padding: 20px 15px;">
- <img src="<?php echo Config::$_PAGE_URL; ?>assets/img/skins/Skin_<?php echo $data->Model; ?>.png" style="height: 300px; border: 1px solid #E0E0E0;"/><br />
- </div>
- <div class="col-md-5" style="padding: 10px 7px;">
- </div>
- <div class="col-md-10">
- <div class="nav-tabs-custom">
- <ul class="nav nav-tabs">
- <li class = "active"><a href="#main" data-toggle="tab" aria-expanded="false"><i class = "fa fa fa-user icon-purple"></i> Main info</a></li>
- <li class = ""><a href="#vehicles" data-toggle="tab" aria-expanded="false"><i class = "fa fa-car icon-blue"></i> Vehicles</a></li>
- <li class=""><a href="#properties" data-toggle="tab" aria-expanded="false"><i class = "fa fa-usd icon-blue"></i> Properties</a></li>
- <li class=""><a href="#timeline" data-toggle="tab" aria-expanded="false"><i class = "fa fa-users icon-green"></i> Faction History</a></li>
- </ul>
- <div class="tab-content">
- <div class = "tab-pane active" id = "main">
- <table class="table table-responsive no-padding no-borders">
- <tbody>
- <tr>
- <td>Faction</td>
- <td><?php echo Config::$factions[$data->Member]; ?>
- <?php
- if(isset($_SESSION['user']) && Config::getData("users","Member",$_SESSION['user']) > 0 && Config::getData("users","Rank",$_SESSION['user']) > 5)
- { ?>
- , Rank: <?php echo $data->Rank; ?><td>
- <?php } ?>
- </tr>
- <tr>
- <td>Level</td>
- <td><?php echo $data->Level; ?></td>
- </tr>
- <tr>
- <td>Playing hours</td>
- <td><?php echo $data->ConnectedTime; ?> hours</td>
- </tr>
- <tr>
- <td>Phone number</td>
- <td><?php echo $data->PhoneNr; ?></td>
- </tr>
- <tr>
- <td>Joined</td>
- <td><?php echo $data->RegisterDate; ?></td>
- </tr>
- <tr>
- <td>Last online</td>
- <td><?php echo $data->lastOn; ?></td>
- </tr>
- <tr>
- <?php
- if(isset($_SESSION['user']) && Config::getData("users","Member",$_SESSION['user']) > 0 && Config::getData("users","Rank",$_SESSION['user']) > 5)
- { ?>
- <td>Faction Warns</td>
- <td><?php echo $data->FWarn; ?>/3</td>
- <?php } ?>
- </tr>
- <tr>
- <td>Warnings</td>
- <td><?php echo $data->Warnings; ?>/3</td>
- </tr>
- <tr>
- <td>Job</td>
- <td><?php echo Config::$jobs[$data->Job]; ?></td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="tab-pane" id="vehicles">
- <div class="row">
- <?php
- $q = Config::$g_con->prepare('SELECT * FROM `cars` WHERE `ID` = ?');
- $q->execute(array(Config::$_url[1]));
- $count=0;
- while($row = $q->fetch(PDO::FETCH_OBJ))
- { ?>
- <div class="col-md-6">
- <div class="thumbnail">
- <img src="<?php echo Config::$_PAGE_URL; ?>assets/img/vehicles/<?php echo $row->Model; ?>.png" alt="<?php echo $row->Model; ?>">
- <div class="caption">
- <p>Model: <font color="#bc3c3c"><?php echo $row->Model; ?></font></p>
- <p>Vehicle type: <font color="#bc3c3c">Personal</font></p>
- <p>Plate: <font color="#bc3c3c">Undefined</font></p>
- </div>
- </div>
- </div>
- <?php $count++; ?>
- <?php
- }
- echo "</div>";
- if(!$count) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' dosen\'t have any personal vehicles.</p>';
- ?>
- </div>
- <div class="tab-pane" id="properties">
- <section class="content">
- <div class="row">
- <?php
- $q = Config::$g_con->prepare('SELECT * FROM `bizz` WHERE `Owner` = ?');
- $q->execute(array(Config::getData("users","name",Config::$_url[1])));
- $count=0;
- while($row = $q->fetch(PDO::FETCH_OBJ))
- { ?>
- <div class="thumbnail">
- <table class="table">
- <thead>
- <tr>
- <th><i class="fa fa-sort-numeric-asc"></i>ID</th>
- <th><i class="fa fa-question-circle"></i>Owner</th>
- <th><i class="fa fa-hdd-o"></i> Title</th>
- <th><i class="fa fa-folder"></i> Details</th>
- <th><i class="fa fa-gear fa-spin"></i> Options</th>
- </tr>
- </thead>
- <tbody>
- <center>
- <tr><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->ID; ?></font></td><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->Owner; ?></font></td><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->Message; ?></font></td><td style="vertical-align:middle">Level: <font color="#bc3c3c"><?php echo $row->LevelNeeded; ?></font><br>Price: <font color="#bc3c3c"><?php echo $row->BuyPrice; ?></font></td><td style="vertical-align:middle"><a href = "#" onclick = "showMap(-314.047,1774.72)">display location</a></td></tr>
- </center>
- </tbody>
- </table>
- </div>
- <?php $count++; ?>
- <?php
- }
- echo "</div>";
- if(!$count) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' nu detine un biz.</p>';
- ?>
- <div>
- <?php
- $q = Config::$g_con->prepare('SELECT * FROM `houses` WHERE `Owner` = ?');
- $q->execute(array(Config::getData("users","name",Config::$_url[1])));
- $counts=0;
- while($row = $q->fetch(PDO::FETCH_OBJ))
- { ?>
- <div class="thumbnail">
- <table class="table">
- <thead>
- <tr>
- <th><i class="fa fa-sort-numeric-asc"></i>ID House</th>
- <th><i class="fa fa-question-circle"></i>House Owner</th>
- <th><i class="fa fa-hdd-o"></i> House Title</th>
- <th><i class="fa fa-folder"></i> House Details</th>
- <th><i class="fa fa-gear fa-spin"></i> House Options</th>
- </tr>
- </thead>
- <tbody>
- <center>
- <tr><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->ID; ?></font></td><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->Owner; ?></font></td><td style="vertical-align:middle"><font color="#bc3c3c"><?php echo $row->Message; ?></font></td><td style="vertical-align:middle">Level: <font color="#bc3c3c"><?php echo $row->LevelNeeded; ?></font><br>Price: <font color="#bc3c3c"><?php echo $row->BuyPrice; ?></font></td><td style="vertical-align:middle"><a href = "#" onclick = "showMap(-314.047,1774.72)">display location</a></td></tr>
- </center>
- </tbody>
- </table>
- </div>
- <section class="content">
- <table class="table">
- <thead>
- <?php $counts++; ?>
- <?php
- }
- echo "</div>";
- if(!$counts) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' nu detine o casa.</p>';
- ?>
- </div>
- </div>
- </thead>
- <div class="tab-pane" id="tab_4">
- </div>
- </div>
- </div>
- </div>
- </aside>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement