Advertisement
Guest User

Cod

a guest
Jul 5th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.71 KB | None | 0 0
  1.  
  2. <section class="content">
  3. <aside class="right-side">
  4. <?php
  5. if(!defined('rpg'))
  6.  
  7. die('Nope');
  8.  
  9.  
  10.  
  11. if(!isset($_SESSION['user']) && !isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\'.'.Config::$_PAGE_URL.'login\'/>';
  12.  
  13. if(isset(Config::$_url[1])) $user = (int)Config::$_url[1];
  14.  
  15. if(!isset(Config::$_url[1])) echo '<meta http-equiv="refresh" content="0;URL=\'.'.Config::$_PAGE_URL.'\'/>';
  16.  
  17. $q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ?');
  18.  
  19. $q->execute(array(Config::$_url[1]));
  20.  
  21.  
  22. if(!$q->rowCount()) {
  23.  
  24. echo '
  25.  
  26. <title>This user doesn\'t exist</title>
  27.  
  28. <div class="breadcrumbs" id="breadcrumbs">
  29.  
  30. <ul class="breadcrumb">
  31.  
  32. <li>
  33.  
  34. <i class="ace-icon fa fa-home home-icon"></i>
  35.  
  36. <a href="<?php echo Config::$_PAGE_URL; ?>">Home</a>
  37.  
  38. </li>
  39.  
  40. <li class="active">This user doesn\'t exist</li>
  41.  
  42. </ul><!-- /.breadcrumb -->
  43.  
  44.  
  45.  
  46.  
  47.  
  48. </div>
  49.  
  50. <div class="page-content"><div class="row-fluid"><div class="span12">
  51.  
  52. <div class="alert alert-danger">This user doesn\'t exist.</div>';
  53.  
  54. return;
  55.  
  56. }
  57.  
  58. $data = $q->fetch(PDO::FETCH_OBJ);
  59.  
  60.  
  61.  
  62. //include 'inc/config.php';
  63.  
  64. $respect = $data->Level*3+3;
  65.  
  66. ?>
  67.  
  68. <?php
  69.  
  70.  
  71. $q = Config::$g_con->prepare('SELECT * FROM `bans` WHERE `PlayerName` = ? AND `Active` = 1 LIMIT 1');
  72.  
  73.  
  74. $q->execute(array($data->name));
  75.  
  76. if($q->rowCount())
  77.  
  78. while($row = $q->fetch(PDO::FETCH_OBJ)) {
  79.  
  80. $date = $row->BanTimeDate;
  81.  
  82. if($row->Permanent == 1) {
  83.  
  84.  
  85. $expira = "Contul este banat permanent (banul nu va expira automat)";
  86.  
  87. }
  88.  
  89. else
  90.  
  91. {
  92.  
  93. $expira = "Banul expira pe data de <b>". gmdate("Y-m-d H:i:s", $row->Time) ."</b>";
  94.  
  95. }
  96.  
  97. $numeadmin = $row->AdminName; $motiv = $row->Reason;
  98.  
  99. echo "
  100.  
  101. <div class='alert alert-danger'>
  102.  
  103. <b>This account is banned.</b><br/><br/>
  104.  
  105. Banat de: <b>$numeadmin</b> pe data de <b>$date</b>, motivul banului: <b>$motiv</b>.<br/>
  106.  
  107. $expira.</div> ";
  108.  
  109. }
  110.  
  111. ?>
  112. <title><?php echo $data->name; ?>'s Profile - Reclama<form action="<?php echo Config::$_PAGE_URL; ?>search/" method="post" class="sidebar-form">
  113. <div class="input-group">
  114. <input type="text" name="search" class="form-control" placeholder="Search for a player..."/>
  115. <span class="input-group-btn">
  116. <button type='submit' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
  117. </span>
  118. </div>
  119. </form></title>
  120. <section class="content-header">
  121. <h1>
  122. <?php echo $data->name; ?>'s profile
  123. </h1>
  124. <ol class="breadcrumb">
  125. <li><a href="<?php echo Config::$_PAGE_URL; ?>"><i class="fa fa-home"></i> Home</a></li>
  126. <li class="active"><?php echo $data->name; ?>'s profile</li>
  127. </ol>
  128. </section>
  129. <div class="col-md-2" style="padding: 20px 15px;">
  130. <img src="<?php echo Config::$_PAGE_URL; ?>assets/img/skins/Skin_<?php echo $data->Model; ?>.png" style="height: 300px; border: 1px solid #E0E0E0;"/><br />
  131. </div>
  132. <div class="col-md-5" style="padding: 10px 7px;">
  133.  
  134.  
  135. </div>
  136. <div class="col-md-10">
  137. <div class="nav-tabs-custom">
  138. <ul class="nav nav-tabs">
  139. <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>
  140. <li class = ""><a href="#vehicles" data-toggle="tab" aria-expanded="false"><i class = "fa fa-car icon-blue"></i> Vehicles</a></li>
  141. <li class=""><a href="#properties" data-toggle="tab" aria-expanded="false"><i class = "fa fa-usd icon-blue"></i> Properties</a></li>
  142. <li class=""><a href="#timeline" data-toggle="tab" aria-expanded="false"><i class = "fa fa-users icon-green"></i> Faction History</a></li>
  143. </ul>
  144. <div class="tab-content">
  145.  
  146. <div class = "tab-pane active" id = "main">
  147. <table class="table table-responsive no-padding no-borders">
  148. <tbody>
  149. <tr>
  150. <td>Faction</td>
  151. <td><?php echo Config::$factions[$data->Member]; ?>
  152. <?php
  153. if(isset($_SESSION['user']) && Config::getData("users","Member",$_SESSION['user']) > 0 && Config::getData("users","Rank",$_SESSION['user']) > 5)
  154. { ?>
  155.  
  156. , Rank: <?php echo $data->Rank; ?><td>
  157. <?php } ?>
  158. </tr>
  159. <tr>
  160. <td>Level</td>
  161. <td><?php echo $data->Level; ?></td>
  162. </tr>
  163. <tr>
  164. <td>Playing hours</td>
  165. <td><?php echo $data->ConnectedTime; ?> hours</td>
  166. </tr>
  167.  
  168. <tr>
  169. <td>Phone number</td>
  170. <td><?php echo $data->PhoneNr; ?></td>
  171. </tr>
  172. <tr>
  173. <td>Joined</td>
  174. <td><?php echo $data->RegisterDate; ?></td>
  175. </tr>
  176. <tr>
  177. <td>Last online</td>
  178. <td><?php echo $data->lastOn; ?></td>
  179. </tr>
  180.  
  181. <tr>
  182. <?php
  183. if(isset($_SESSION['user']) && Config::getData("users","Member",$_SESSION['user']) > 0 && Config::getData("users","Rank",$_SESSION['user']) > 5)
  184. { ?>
  185. <td>Faction Warns</td>
  186. <td><?php echo $data->FWarn; ?>/3</td>
  187. <?php } ?>
  188. </tr>
  189. <tr>
  190. <td>Warnings</td>
  191. <td><?php echo $data->Warnings; ?>/3</td>
  192. </tr>
  193. <tr>
  194. <td>Job</td>
  195. <td><?php echo Config::$jobs[$data->Job]; ?></td>
  196.  
  197. </tr>
  198.  
  199. </tbody>
  200. </table>
  201. </div>
  202.  
  203. <div class="tab-pane" id="vehicles">
  204. <div class="row">
  205. <?php
  206. $q = Config::$g_con->prepare('SELECT * FROM `cars` WHERE `ID` = ?');
  207. $q->execute(array(Config::$_url[1]));
  208. $count=0;
  209. while($row = $q->fetch(PDO::FETCH_OBJ))
  210. { ?>
  211. <div class="col-md-6">
  212. <div class="thumbnail">
  213. <img src="<?php echo Config::$_PAGE_URL; ?>assets/img/vehicles/<?php echo $row->Model; ?>.png" alt="<?php echo $row->Model; ?>">
  214. <div class="caption">
  215. <p>Model: <font color="#bc3c3c"><?php echo $row->Model; ?></font></p>
  216. <p>Vehicle type: <font color="#bc3c3c">Personal</font></p>
  217. <p>Plate: <font color="#bc3c3c">Undefined</font></p>
  218. </div>
  219. </div>
  220. </div>
  221. <?php $count++; ?>
  222. <?php
  223. }
  224. echo "</div>";
  225. if(!$count) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' dosen\'t have any personal vehicles.</p>';
  226. ?>
  227. </div>
  228.  
  229. <div class="tab-pane" id="properties">
  230. <section class="content">
  231. <div class="row">
  232.  
  233. <?php
  234. $q = Config::$g_con->prepare('SELECT * FROM `bizz` WHERE `Owner` = ?');
  235. $q->execute(array(Config::getData("users","name",Config::$_url[1])));
  236. $count=0;
  237. while($row = $q->fetch(PDO::FETCH_OBJ))
  238. { ?>
  239. <div class="thumbnail">
  240.  
  241. <table class="table">
  242. <thead>
  243.  
  244. <tr>
  245. <th><i class="fa fa-sort-numeric-asc"></i>ID</th>
  246. <th><i class="fa fa-question-circle"></i>Owner</th>
  247. <th><i class="fa fa-hdd-o"></i> Title</th>
  248. <th><i class="fa fa-folder"></i> Details</th>
  249. <th><i class="fa fa-gear fa-spin"></i> Options</th>
  250. </tr>
  251. </thead>
  252. <tbody>
  253. <center>
  254.  
  255. <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>
  256. </center>
  257. </tbody>
  258. </table>
  259. </div>
  260. <?php $count++; ?>
  261. <?php
  262. }
  263. echo "</div>";
  264. if(!$count) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' nu detine un biz.</p>';
  265. ?>
  266. <div>
  267. <?php
  268. $q = Config::$g_con->prepare('SELECT * FROM `houses` WHERE `Owner` = ?');
  269. $q->execute(array(Config::getData("users","name",Config::$_url[1])));
  270. $counts=0;
  271. while($row = $q->fetch(PDO::FETCH_OBJ))
  272. { ?>
  273.  
  274. <div class="thumbnail">
  275. <table class="table">
  276. <thead>
  277. <tr>
  278. <th><i class="fa fa-sort-numeric-asc"></i>ID House</th>
  279. <th><i class="fa fa-question-circle"></i>House Owner</th>
  280. <th><i class="fa fa-hdd-o"></i> House Title</th>
  281. <th><i class="fa fa-folder"></i> House Details</th>
  282. <th><i class="fa fa-gear fa-spin"></i> House Options</th>
  283. </tr>
  284. </thead>
  285. <tbody>
  286. <center>
  287.  
  288. <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>
  289. </center>
  290. </tbody>
  291. </table>
  292. </div>
  293. <section class="content">
  294. <table class="table">
  295. <thead>
  296. <?php $counts++; ?>
  297. <?php
  298.  
  299. }
  300.  
  301. echo "</div>";
  302.  
  303. if(!$counts) echo '<p>'. Config::getData("users","name",Config::$_url[1]).' nu detine o casa.</p>';
  304. ?>
  305. </div>
  306. </div>
  307. </thead>
  308. <div class="tab-pane" id="tab_4">
  309.  
  310. </div>
  311.  
  312. </div>
  313. </div>
  314. </div>
  315. </aside>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement