Jump to content

Problema logare & profile


DarkWind
 Share

Recommended Posts

  • Username: DarkWind
  • Problema: nu ma pot loga pe panel si cand intru la profil vad blank page.
  • Imagini/Videoclipuri cu problema: https://imgur.com/a/NfEfr0d
  • Cod sursă: 
  • Header ( Unde se afla login-ul)
    <?php
    
    ob_start();
    
    error_reporting(0);
    
    if(!file_exists('inc/pages/' . self::$_url[0] . '.p.php') && strlen(self::$_url[0])) Config::gotoPage("");
    
    $_SESSION['render'] = microtime(true);
    
    
    
    $co = Config::$g_con->prepare('SELECT `ID` FROM `wcode_complaints` WHERE `Status` = 0'); $co->execute();
    
    if(!Config::isLogged()) { $tickets = 0; $unban = 0; $complaints = 0; }
    
    else {
    
    	if(Config::isAdmin(Config::getUser())) {
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_tickets` WHERE `Status` = 0'); $get->execute();
    
    		$tickets = $get->rowCount();
    
    		
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_unban` WHERE `Status` = 0'); $get->execute();
    
    		$unban = $get->rowCount();
    
    		
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_complaints` WHERE `Status` = 0'); $get->execute();
    
    		$complaints = $get->rowCount();
    
    	} else {
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_tickets` WHERE `Status` = 0 AND `UserID` = ?'); $get->execute(array(Config::getUser()));
    
    		$tickets = $get->rowCount();
    
    		
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_unban` WHERE `Status` = 0 AND `UserID` = ?'); $get->execute(array(Config::getUser()));
    
    		$unban = $get->rowCount();
    
    		
    
    		$get = Config::$g_con->prepare('SELECT `ID` FROM `wcode_complaints` WHERE `Status` = 0 AND `UserID` = ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));
    
    		$complaints = $get->rowCount();
    
    	}
    
    }
    
    ?>
    
    <!doctype html>
    
    <html lang="en">
    
    	
    
    <head>
    
    		<title>Your Panel</title>
    
    		<meta charset="utf-8">
    
    		<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    
    		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    
    		<!-- VENDOR CSS -->
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/bootstrap/css/bootstrap.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/font-awesome/css/font-awesome.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/themify-icons/css/themify-icons.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/pace/themes/orange/pace-theme-minimal.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/css/vendor/animate/animate.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/x-editable/bootstrap3-editable/css/bootstrap-editable.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/bootstrap-tour/css/bootstrap-tour.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/jqvmap/jqvmap.min.css">
    
    		
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/toastr/toastr.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/sweetalert2/sweetalert2.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/vendor/bootstrap-markdown/bootstrap-markdown.min.css">
    
    		<!-- MAIN CSS -->
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/css/main.min.css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/css/skins/sidebar-nav-darkgray.css" type="text/css">
    
    		<link rel="stylesheet" href="<?php echo Config::$_PAGE_URL; ?>assets/css/skins/navbar3.css" type="text/css">
    
    		<!-- ICONS -->
    
    		<link rel="apple-touch-icon" sizes="76x76" href="<?php echo Config::$_PAGE_URL; ?>assets/img/apple-icon.png">
    
    		<link rel="icon" type="image/png" sizes="96x96" href="<?php echo Config::$_PAGE_URL; ?>assets/img/favicon.png">
    
    		<script src="<?php echo Config::$_PAGE_URL ?>assets/vendor/jquery/jquery.min.js"></script>
    
    		<script src="<?php echo Config::$_PAGE_URL; ?>assets/vendor/bootstrap/js/bootstrap.min.js"></script>
    
    		<script src="<?php echo Config::$_PAGE_URL ?>assets/js/bootbox.min.js"></script>
    
    	</head>
    
    	<body>
    
    	<?php
    
    	if(isset($_GET['n_seen']) && isset($_GET['n_id']) && Config::isLogged()) {
    
    		if($_GET['n_seen'] == "on" && is_numeric($_GET['n_id'])) {
    
    			$check = Config::$g_con->prepare('SELECT `ID` FROM `wcode_notifications` WHERE `ID` = ?');
    
    			$check->execute(array($_GET['n_id']));
    
    			if($check->rowCount()) {
    
    				$nread = Config::$g_con->prepare('UPDATE `wcode_notifications` SET `Seen` = 1 WHERE `ID` = ?');
    
    				$nread->execute(array($_GET['n_id']));
    
    			}
    
    		}
    
    	}
    
    	if(!Config::isLogged()) 
    
    	{
    
    		if(isset($_POST['recover_submit'])) {
    
    
    
    			$wc = Config::$g_con->prepare('SELECT `id`,`name`,`Email` FROM `users` WHERE `Email` = ?');
    
    			$wc->execute(array($_POST['email']));
    
    			if($wc->rowCount()) {
    
    				$email = $wc->fetch(PDO::FETCH_OBJ);
    
    				
    
    				$wcodero = Config::$g_con->prepare('DELETE FROM `wcode_recover` WHERE `email` = ?');
    
    				$wcodero->execute(array($email->Email));
    
    
    
    				$getcode = Config::generateRandomString(20);
    
    				$em = Config::$g_con->prepare('INSERT INTO `wcode_recover` (`user`,`username`,`email`,`token`,`time`) VALUES (?,?,?,?,?)');
    
    				$em->execute(array($email->id,$email->name,$email->Email,$getcode,time()+3600));
    
    				
    
    				$to = $email->Email;
    
    				$from = "Shaden.ro SAMP<admin@shaden.ro>";
    
    				$subject = "Recover your password";
    
    				$message = "This is an automatically email so please do not reply! To reset your sa:mp account from our server you must click on following link: ".Config::$_PAGE_URL."validate/recover/".$getcode."";
    
    
    
    				$headers = "From: $from"; 
    
    				$ok = @mail($to, $subject, $message, $headers, "-f " . $from); 
    
    
    
    				Config::createSN("success","An email that is active <b>one hour</b> has been sended to account's email if exists! Please check Index and Spam category for the email!");
    
    			} else Config::createSN("danger","Please provide an correct email address!");
    
    		}
    
    	}
    
    	if(isset($_POST['login_submit']) && !Config::isLogged()) {
    
    		if(strlen($_POST['username']) && md5($_POST['password']))
    
    
    		{
    
    			$wcodero = Config::$g_con->prepare('SELECT `id`,`IP` FROM `users` WHERE `name` = ? AND `password` = ?');
    
    			$wcodero->execute(array($_POST['username'],hash("whirlpool",$_POST['password'])));
    
    			if($wcodero->rowCount()) {
    
    				$account = $wcodero->fetch(PDO::FETCH_OBJ);
    
    				$c = Config::$g_con->prepare("SELECT `Text` FROM `wcode_editables` WHERE `Form` = 'login' AND `Text` = 'secured'"); $c->execute();
    
    				if($c->rowCount()) {
    
    					if($account->IP == $_SERVER['REMOTE_ADDR']) {
    
    						Config::createSN("success","You've been logged in with success!");
    
    						$_SESSION['account_panel'] = $account->id;
    
    					} else Config::createSN("info","Your IP must be the same as the one you had last time in game!"); //nu apare mesajul
    
    				} else {
    
    					Config::createSN("success","You've been logged in with success!");
    
    					$_SESSION['account_panel'] = $account->id;
    
    				}
    
    			}
    
    			else Config::createSN("danger","Please provide valid username and password!");
    
    		}
    
    	}
    
    	?>
    
    		<!-- LOGIN SECURE -->
    
    		<div id="small-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    
    			<div class="modal-dialog modal-sm" role="document">
    
    				<div class="modal-content">
    
    					<div class="modal-body">
    
    						<p>Login into your account</p>
    
    						<form method="post" action="#">
    
    						<div class="input-group">
    
    							<span class="input-group-addon"><i class="fa fa-user"></i></span>
    
    							<input class="form-control" placeholder="Username" type="text" name="username" required>
    
    						</div><br>
    
    						<div class="input-group">
    
    							<span class="input-group-addon"><i class="fa fa-lock"></i></span>
    
    							<input class="form-control" placeholder="Password" type="password" name="password" required>
    
    						</div>
    
    						<center><button type="button" class="btn btn-link active" data-toggle="modal" data-target="#recoverpass" style="color: #000;"><small>Forgot your password</small></button></center>
    
    						
    
    						<button type="submit" name="login_submit" class="btn btn-primary btn-block"><i class="fa fa-check-circle"></i> LOGIN</button>
    
    						</form>
    
    					</div>
    
    				</div>
    
    			</div>
    
    		</div>
    
    		<div id="recoverpass" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    
    			<div class="modal-dialog modal-large" role="document">
    
    				<div class="modal-content">
    
    					<div class="modal-body"><br><br><br>
    
    						<p>Recover your account</p>
    
    						<form method="post" action="">
    
    						<div class="input-group">
    
    							<span class="input-group-addon"><i class="fa fa-user"></i></span>
    
    							<input class="form-control" placeholder="Email of your account" type="text" name="email" required>
    
    						</div><br>
    
    						<button type="submit" name="recover_submit" class="btn btn-primary btn-block"><i class="fa fa-envelope-open-o"></i> RECOVER</button>
    
    						</form><br><br><br>
    
    					</div>
    
    				</div>
    
    			</div>
    
    		</div>
    
    		<!-- WRAPPER -->
    
    		<div id="toastr-demo">
    
    		<div id="wrapper">
    
    			<!-- NAVBAR -->
    
    			<nav class="navbar navbar-default navbar-fixed-top">
    
    				<div class="brand">
    
    					<a href="<?php echo Config::$_PAGE_URL; ?>">
    
    						<img src="<?php echo Config::$_PAGE_URL; ?>assets/img/shaden.png" style="height: 50px; margin-right: 39px;margin-top:-15px" alt="Klorofil Pro Logo" class="img-responsive logo">
    
    					</a>
    
    				</div>
    
    				<div class="container-fluid">
    
    					<div id="tour-fullwidth" class="navbar-btn">
    
    						<button type="button" class="btn-toggle-fullwidth"><i class="ti-arrow-circle-left"></i></button>
    
    					</div>
    
    					<form class="navbar-form navbar-left search-form" method="post" action="search">
    
    						<input type="text" class="form-control" placeholder="Search players..." name="search_num">
    
    						<button type="submit" class="btn btn-default" name="search_sub"><i class="fa fa-search"></i></button>
    
    					</form>
    
    					<div id="navbar-menu">
    
    						<ul class="nav navbar-nav navbar-right">
    
    							<?php 
    
    							if(!Config::isLogged())
    
    								echo '<li><a href="" data-toggle="modal" data-target="#small-modal">Login</a></li>';
    
    							else {
    
    								$notif_unread = Config::$g_con->prepare('SELECT * FROM `wcode_notifications` WHERE `UserID` = ? AND `Seen` = 0');
    
    								$notif_unread->execute(array(Config::getUser()));
    
    								
    
    								echo '<li class="dropdown">
    
    									<a href="#" class="dropdown-toggle icon-menu" data-toggle="dropdown" aria-expanded="false">
    
    										'.(!$notif_unread->rowCount() ? '<i class="ti-bell"></i>' : '<i class="ti-bell"></i><span class="badge bg-danger">'.$notif_unread->rowCount().'</span>').'
    
    									</a>
    
    									<ul class="dropdown-menu notifications">
    
    										<li>You have '.$notif_unread->rowCount().' new notifications</li>
    
    										<li>';
    
    										$notif = Config::$g_con->prepare('SELECT * FROM `wcode_notifications` WHERE `UserID` = ? AND `Seen` = 0 ORDER BY `ID` DESC LIMIT 5');
    
    										$notif->execute(array(Config::getUser()));
    
    										$count = 0;
    
    										while($no = $notif->fetch(PDO::FETCH_OBJ)) {
    
    											echo '<a href="'.$no->Link.'?n_seen=on&n_id='.$no->ID.'" class="notification-item" style="background-color: #f9f8ff">
    
    												<i class="fa fa-location-arrow custom-bg-orange"></i>
    
    												<p>
    
    													<span class="text">'.$no->Notification.'</span>
    
    													<span class="timestamp">'.Config::timeAgo($no->Date, false).'</span>
    
    												</p>
    
    											</a>';
    
    											$count++;
    
    										}
    
    										$limit = 5 - $count;
    
    										$notif = Config::$g_con->prepare('SELECT * FROM `wcode_notifications` WHERE `UserID` = ? AND `Seen` = 1 ORDER BY `ID` DESC LIMIT '.$limit.'');
    
    										$notif->execute(array(Config::getUser()));
    
    										$count = 0;
    
    										while($no = $notif->fetch(PDO::FETCH_OBJ)) {
    
    											echo '<a href="'.$no->Link.'" class="notification-item">
    
    												<i class="fa fa fa-check custom-bg-green"></i>
    
    												<p>
    
    													<span class="text">'.$no->Notification.'</span>
    
    													<span class="timestamp">'.Config::timeAgo($no->Date, false).'</span>
    
    												</p>
    
    											</a>';
    
    											$count++;
    
    										}
    
    										echo '</li>
    
    									</ul>
    
    								</li>';
    
    								
    
    								echo '<li class="dropdown">
    
    									<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
    
    										<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.Config::getData("users","Model",Config::getUser()).'.png" alt="Avatar">
    
    										<span>'.Config::getNameFromID(Config::getUser()).'</span>
    
    									</a>
    
    									<ul class="dropdown-menu logged-user-menu">
    
    										<li><a href="'.Config::$_PAGE_URL.'profile/'.Config::getNameFromID(Config::getUser()).'"><i class="ti-user"></i> <span>My Profile</span></a></li>
    
    										<li><a href="'.Config::$_PAGE_URL.'logout"><i class="ti-power-off"></i> <span>Logout</span></a></li>
    
    									</ul>
    
    								</li>';
    
    							}
    
    							?>
    
    							
    
    						</ul>
    
    					</div>
    
    				</div>
    
    			</nav>
    
    			<!-- END NAVBAR -->
    
    			<!-- LEFT SIDEBAR -->
    
    			<div id="sidebar-nav" class="sidebar">
    
    				<nav>
    
    					<ul class="nav" id="sidebar-nav-menu">
    
    					<?php 
    
    					if(Config::isAdmin(Config::getUser()))
    
    						echo '<li><a href="'.Config::$_PAGE_URL.'adminpanel" '.Config::isActive("adminpanel").'><i class="ti-world"></i> <span class="title">Admin board</span></a></li>';
    
    					if(Config::isLogged() && Config::getData("users","Member",Config::getUser()) != 0 && Config::getData("users","Rank",Config::getUser()) >= Config::$_LEADER_RANK) { ?>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>leaderpanel" <?php echo Config::isActive("leaderpanel"); ?>><i class="ti-hummer"></i> <span class="title">Leader board</span></a></li>
    
    					<?php } ?>	
    
    						<li class="menu-group">Main</li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>" <?php echo Config::isActive(""); ?>><i class="ti-home"></i> <span class="title">Dashboard</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>search" <?php echo Config::isActive("search"); ?>><i class="ti-search"></i> <span class="title">Cauta un jucator</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>online" <?php echo Config::isActive("online"); ?>><i class="ti-headphone-alt"></i> <span class="title">Jucatori online</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>payment" <?php echo Config::isActive("payment"); ?>><i class="fa fa-paper-plane-o"></i> <span class="title">Shop</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>staff" <?php echo Config::isActive("staff"); ?>><i class="ti-shield"></i> <span class="title">Staff</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>clans" <?php echo Config::isActive("clans"); ?>><i class="ti-comments"></i> <span class="title">Clan-uri</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>banned" <?php echo Config::isActive("banned"); ?>><i class="ti-wheelchair"></i> <span class="title">Jucatori banati</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>factions" <?php echo Config::isActive("factions"); ?>><i class="ti-layout-tab"></i> <span class="title">Factiuni</span></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>complaints" <?php echo Config::isActive("complaints"); ?>><i class="ti-signal"></i> <span class="title">Reclamatii</span> <?php echo ($complaints ? '<span class="badge">'.$complaints.'</span>' : ''); ?></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>tickets" <?php echo Config::isActive("tickets"); ?>><i class="ti-support"></i> <span class="title">Tickete</span> <?php echo ($tickets ? '<span class="badge">'.$tickets.'</span>' : ''); ?></a></li>
    
    						<li><a href="<?php echo Config::$_PAGE_URL; ?>unban" <?php echo Config::isActive("unban"); ?>><i class="ti-face-sad"></i> <span class="title">Cereri debanare</span> <?php echo ($unban ? '<span class="badge">'.$unban.'</span>' : ''); ?></a></li>
    
    						<li class="panel">
    
    							<a href="#map" data-toggle="collapse" data-parent="#sidebar-nav-menu" class="collapsed" aria-expanded="false"><i class="ti-world"></i> <span class="title">Harta</span> <i class="icon-submenu ti-angle-left"></i></a>
    
    							<div id="map" class="collapse" aria-expanded="false" style="height: 0px;">
    
    								<ul class="submenu">
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>navigate/house">Case</a></li>
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>navigate/bizz">Afaceri</a></li>
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>navigate/war">Turf-uri</a></li>
    
    								</ul>
    
    							</div>
    
    						</li>
    
    						<li class="panel">
    
    							<a href="#tables" data-toggle="collapse" data-parent="#sidebar-nav-menu" class="collapsed" aria-expanded="false"><i class="ti-key"></i> <span class="title">Statistici</span> <i class="icon-submenu ti-angle-left"></i></a>
    
    							<div id="tables" class="collapse" aria-expanded="false" style="height: 0px;">
    
    								<ul class="submenu">
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>top">Top jucatori</a></li>
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>dealership">Dealership</a></li>
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>properties/houses">Case</a></li>
    
    									<li><a href="<?php echo Config::$_PAGE_URL; ?>/properties/businesses">Afaceri</a></li>
    
    								</ul>
    
    							</div>
    
    						</li>
    
    						<li><a href="http://forum.shaden.ro/" target="_blank"><i class="fa fa-paper-plane-o"></i> <span class="title">Forum</span></a></li>
    
    					</ul>
    
    					<button type="button" class="btn-toggle-minified" title="Toggle Minified Menu"><i class="ti-arrows-horizontal"></i></button>
    
    				</nav>
    
    			</div>
    
    			<!-- END LEFT SIDEBAR -->
    
    			<!-- MAIN -->
    
    			<div class="main">
    
    				<!-- MAIN CONTENT -->
    
    				<div class="main-content">
    
    					<div class="content-heading clearfix">
    
    						<div class="heading-left">
    
    							<p class="page-subtitle" style="margin-top: 12px"><?php 
    
    							if(!isset(Config::$_url[1]))
    
    								echo ucfirst(Config::$_url[0]); 
    
    							else
    
    								echo ucfirst(Config::$_url[0]) . ' <i>('.Config::$_url[1].')</i>'; 
    
    							?></p>
    
    						</div>
    
    						<small><ul class="breadcrumb">
    
    							<li><i class="fa fa-home"></i> Home</li>
    
    							<li><?php 
    
    							if(!strlen(Config::$_url[0])) echo 'Dashboard';
    
    							else echo ucfirst(Config::$_url[0]); 
    
    							?></li>
    
    						</ul></small>
    
    					</div>
    
    					<div class="container-fluid">
    
    <?php
    
    echo Config::showSN();
    
    
    
    if(Config::isLogged()) {
    
    	$sus = Config::$g_con->prepare('SELECT * FROM `wcode_suspend` WHERE `Userid` = ?');
    
    	$sus->execute(array(Config::getUser()));
    
    	if($sus->rowCount()) { 
    
    		$suspend = $sus->fetch(PDO::FETCH_OBJ);
    
    		if($suspend->Expire_unix > time()) {
    
    			if(self::$_url[0] == "" || self::$_url[0] == "profile" || self::$_url[0] == "adminpanel") { }
    
    			else { Config::gotoPage("",0,"danger","You cannot access this page because your access on this panel is forbidden for most of pages! Check profile for informations."); }
    
    		}
    
    	}
    
    }
    
    ?>

    Profile

  • <?php 
    $w = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ?');
    $w->execute(array(Config::$_url[1]));
    if(!$w->rowCount()) Config::gotoPage("");
    else $profile = $w->fetch(PDO::FETCH_OBJ);
    
    if(Config::isAdmin(Config::getUser())) {
    	if(isset($_POST['unban'])) {
    		$w = Config::$g_con->prepare('DELETE FROM `bans` WHERE `PlayerName` = ?');
    		$w->execute(array($profile->name));
    		$notif = 'You\'ve been unbanned by '.Config::getData("users","name",Config::getUser()).'!';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		Config::gotoPage("profile/".$profile->name."",0,"success","Player has been unbanned with success!");
    	}
    	
    	if(isset($_POST['unsuspend'])) {
    		$w = Config::$g_con->prepare('DELETE FROM `wcode_suspend` WHERE `User` = ?');
    		$w->execute(array($profile->name));
    		$notif = 'You\'ve been unsuspended by '.Config::getData("users","name",Config::getUser()).'!';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		Config::gotoPage("profile/".$profile->name."",0,"success","Player has been unsuspended with success!");
    	}
    	
    	if(isset($_POST['s_permanent']) && strlen($_POST['s_res'])) {
    		if(Config::isAdmin($profile->id) && Config::getData("users","Admin",$profile->id) > Config::getData("users","Admin",Config::getUser())) {
    			Config::gotoPage('profile/'.$profile->name.'',0,'danger','You are not allowed to punish higher admins!');
    			$notif = 'Admin '.Config::getName(Config::getUser(),false).' attempted to suspend you.';
    			$link = Config::$_PAGE_URL.'profile/' . Config::getName(Config::getUser(),false);
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			return;
    		}
    		$w = Config::$g_con->prepare('INSERT INTO `wcode_suspend` (`User`,`Userid`,`Admin`,`Adminid`,`Date_unix`,`Reason`) VALUES (?,?,?,?,?,?)');
    		$w->execute(array($profile->name,$profile->id,Config::getData("users","name",Config::getUser()),Config::getUser(),time(),$_POST['s_res']));
    		
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' suspended permanently player '.$profile->name.' for '.$_POST['s_res'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You\'ve been permanently suspended from panel!';
    		$link = Config::$_PAGE_URL.'';
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		Config::gotoPage('profile/'.$profile->name.'',0,'success','Player has been suspended from panel permanently!');
    	}
    	if(isset($_POST['s_temp']) && strlen($_POST['s_res']) && strlen($_POST['s_days']) && is_numeric($_POST['s_days'])) {
    		if(Config::isAdmin($profile->id) && Config::getData("users","Admin",$profile->id) > Config::getData("users","Admin",Config::getUser())) {
    			Config::gotoPage('profile/'.$profile->name.'',0,'danger','You are not allowed to punish higher admins!');
    			$notif = 'Admin '.Config::getName(Config::getUser(),false).' attempted to suspend temporarly you.';
    			$link = Config::$_PAGE_URL.'profile/' . Config::getName(Config::getUser(),false);
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			return;
    		}
    		$expire = time() + (86400 * $_POST['s_days']);
    		$w = Config::$g_con->prepare('INSERT INTO `wcode_suspend` (`User`,`Userid`,`Admin`,`Adminid`,`Date_unix`,`Reason`,`Days`,`Expire_unix`,`Expire`) VALUES (?,?,?,?,?,?,?,?,?)');
    		$w->execute(array($profile->name,$profile->id,Config::getData("users","name",Config::getUser()),Config::getUser(),time(),$_POST['s_res'],$_POST['s_days'],$expire,gmdate("Y-m-d H:i:s", $expire)));
    		
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' suspende temporary for '.$_POST['days'].' days, player '.$profile->name.' for '.$_POST['s_res'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You\'ve been suspended temporary!';
    		$link = Config::$_PAGE_URL.'unban';
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		Config::gotoPage('profile/'.$profile->name.'',0,'success','Player has been suspended temporary for '.$_POST['s_days'].' days!');
    	}
    	
    	if(isset($_POST['permanent']) && strlen($_POST['ban_res'])) {
    		$w = Config::$g_con->prepare('INSERT INTO `bans` (`PlayerName`,`AdminName`,`Reason`,`IP`) VALUES (?,?,?,?)');
    		$w->execute(array($profile->name,Config::getName(Config::getUser(), false),$_POST['ban_res'],$profile->IP));
    		Config::gotoPage('profile/'.$profile->name.'',0,'success','Player has been banned permanent!');
    		
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' banned permanent player '.$profile->name.' for '.$_POST['ban_res'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You\'ve been permanently banned!';
    		$link = Config::$_PAGE_URL.'unban';
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    	}
    	if(isset($_POST['temp']) && strlen($_POST['ban_res']) && strlen($_POST['days']) && is_numeric($_POST['days'])) {
    		$w = Config::$g_con->prepare('INSERT INTO `bans` (`PlayerName`,`AdminName`,`Reason`,`IP`,`Days`) VALUES (?,?,?,?,?)');
    		$w->execute(array($profile->name,Config::getName(Config::getUser(), false),$_POST['ban_res'],$profile->IP,$_POST['days']));
    		Config::gotoPage('profile/'.$profile->name.'',0,'success','Player has been banned temporary for '.$_POST['days'].' days!');
    		
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' banned temporary for '.$_POST['days'].' days player '.$profile->name.' for '.$_POST['ban_res'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You\'ve been banned temporary!';
    		$link = Config::$_PAGE_URL.'unban';
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    	}
    	
    	if(isset($_POST['submit_action'])) {
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' reseted '.$_POST['submit_action'].' field of player '.$profile->name.'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You have no more '.$_POST['submit_action'].' points thanks to '.Config::getName(Config::getUser(),false).'.';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		$w = Config::$g_con->prepare('UPDATE `users` SET `'.$_POST['submit_action'].'` = 0 WHERE `id` = ?');
    		$w->execute(array($profile->id));
    		$var = intval($_POST['submit_action']);
    		$profile->$var = 0;
    		echo Config::csSN("success","Pharameter(".$_POST['submit_action'].") has been reseted with succes!");
    	}
    	
    	if(isset($_POST['warnup'])) {
    		if(Config::isAdmin($profile->id) && Config::getData("users","Admin",$profile->id) > Config::getData("users","Admin",Config::getUser())) {
    			Config::gotoPage('profile/'.$profile->name.'',0,'danger','You are not allowed to punish higher admins!');
    			$notif = 'Admin '.Config::getName(Config::getUser(),false).' attempted to warn you up.';
    			$link = Config::$_PAGE_URL.'profile/' . Config::getName(Config::getUser(),false);
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			return;
    		}
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' gave one Warning Point to player '.$profile->name.' for: '.$_POST['reason'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You received +1 WarnPoint from '.Config::getName(Config::getUser(),false).' for '.$_POST['reason'].'.';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		$w = Config::$g_con->prepare('UPDATE `users` SET `Warnings` = `Warnings`+1 WHERE `id` = ?');
    		$w->execute(array($profile->id));
    		if($profile->Warnings == 2) {
    			$notif = 'After acumulating 3/3 points you\'ve been banned for 7 days.';
    			$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			
    			$w = Config::$g_con->prepare('INSERT INTO `bans` (`PlayerName`,`AdminName`,`Reason`,`IP`) VALUES (?,?,?,?)');
    			$w->execute(array($profile->name,"AdmBot","3/3 warns",$profile->IP));
    			
    			$w = Config::$g_con->prepare('UPDATE `users` SET `Warnings` = 0 WHERE `id` = ?');
    			$w->execute(array($profile->id));
    			
    			Config::gotoPage("profile/".$profile->name."",0,"success","This player has been banned for acumulating 3/3 warn points. Last reason being: ".$_POST['reason']."");
    		} else Config::gotoPage("profile/".$profile->name."",0,"success","Player got a new warn point for reason: ".$_POST['reason'].".");
    	}
    	if(isset($_POST['unmute'])) {
    		$w = Config::$g_con->prepare('UPDATE `users` SET `Muted` = 0, `MuteTime` = 0 WHERE `id` = ?');
    		$w->execute(array($profile->id));
    		$notif = 'You\'ve been unmuted by '.Config::getData("users","name",Config::getUser()).'!';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		Config::gotoPage("profile/".$profile->name."",0,"success","Player has been unmuted with success!");
    	}
    	if(isset($_POST['mute_action']) && strlen($_POST['mute_res'])) {	
    		if(Config::isAdmin($profile->id) && Config::getData("users","Admin",$profile->id) > Config::getData("users","Admin",Config::getUser())) {
    			Config::gotoPage('profile/'.$profile->name.'',0,'danger','You are not allowed to punish higher admins!');
    			$notif = 'Admin '.Config::getName(Config::getUser(),false).' attempted to mute you.';
    			$link = Config::$_PAGE_URL.'profile/' . Config::getName(Config::getUser(),false);
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			return;
    		}	
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' muted('.$_POST['mute_min'].' minutes) player '.$profile->name.' for '.$_POST['mute_res'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You\'ve been muted for '.$_POST['mute_min'].' minutes!';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		$w = Config::$g_con->prepare('UPDATE `users` SET `Muted` = 1, `MuteTime` = ? WHERE `id` = ?');
    		$w->execute(array($_POST['mute_min']*60,$profile->id));
    		Config::gotoPage("profile/".$profile->name."",0,"success","Player have been muted(".$_POST['mute_min']." minutes) for reason: ".$_POST['mute_res'].".");
    	}
    	if(isset($_POST['warndown'])) {
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' took one Warning Point to player '.$profile->name.' for: '.$_POST['reason'].'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		
    		$notif = 'You have one WarnPoint less from '.Config::getName(Config::getUser(),false).' for '.$_POST['reason'].'.';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		
    		$w = Config::$g_con->prepare('UPDATE `users` SET `Warnings` = `Warnings`-1 WHERE `id` = ?');
    		$w->execute(array($profile->id));
    		Config::gotoPage("profile/".$profile->name."",0,"success","Player have less one warn point for reason: ".$_POST['reason'].".");
    	}
    	
    	if(isset($_POST['delete_ac'])) {
    		$w = Config::$g_con->prepare('DELETE FROM `factionlog` WHERE `ID` = ?');
    		$w->execute(array($_POST['delete_ac']));
    		$log = 'Admin '.Config::getData("users","name",Config::getUser()).' deleted log ID #'.$_POST['delete_ac'].' from faction history of '.$profile->name.'.';
    		Config::insertLog(Config::getUser(),Config::getData("users","name",Config::getUser()),$log,$profile->id,$profile->name);
    		echo Config::csSN("success","Faction history line #".$_POST['delete_ac']." has been deleted!");
    	}
    	if(isset($_POST['mon_submit']) && Config::isAdmin(Config::getUser(), 6))
    	{
    		$notif = 'Your money state('.Config::formatNumber($_POST['money_n']).' / '.Config::formatNumber($_POST['bank_n']).') has been updated by Admin '.Config::getName(Config::getUser(),false).'.';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		$w = Config::$g_con->prepare('UPDATE `users` SET `Money` = ?, `Bank` = ? WHERE `id` = ?');
    		$w->execute(array($_POST['money_n'],$_POST['bank_n'],$profile->id));
    		$profile->Money = $_POST['money_n'];
    		$profile->Bank = $_POST['bank_n'];
    		echo Config::csSN("success","Money got updated with succes!");
    		
    	}
    	if(isset($_POST['ppr_submit']) && Config::isAdmin(Config::getUser(), 6))
    	{
    		$notif = 'Your premium points('.$_POST['pointsp'].') has been updated by Admin '.Config::getName(Config::getUser(),false).'.';
    		$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    		Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    		$w = Config::$g_con->prepare('UPDATE `users` SET `PremiumPoints` = ? WHERE `id` = ?');
    		$w->execute(array($_POST['pointsp'],$profile->id));
    		$profile->PremiumPoints = $_POST['pointsp'];
    		echo Config::csSN("success","Premium Points has been updated with success!");
    
    	}
    }
    $config = HTMLPurifier_Config::createDefault();
    $purifier = new HTMLPurifier($config);
    if(Config::isLogged(Config::getUser()) && (Config::isAdmin(Config::getUser()) || $profile->id == Config::getUser())) { 
    	if(isset($_POST['email_submit']))
    	{
    		if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL))
    		{
    			$notif = 'Your email has been changed by '.Config::getName(Config::getUser(),false).'.';
    			$link = Config::$_PAGE_URL.'profile/' . $profile->name;
    			Config::makeNotification($profile->id,$profile->name,$notif,Config::getUser(),Config::getData("users","name",Config::getUser()),$link);
    			
    			$w = Config::$g_con->prepare('UPDATE `users` SET `Email` = ? WHERE `id` = ?');
    			$w->execute(array($_POST['email'],$profile->id));
    			$profile->email = $_POST['email'];
    			echo Config::csSN("success","Email has been changed with success!");
    		} else echo Config::csSN("danger","Please insert an valid email form!");
    	}
    }
    
    if(Config::isLogged() && Config::getData("users","Admin",Config::getUser())) {
    ?>
    <div id="givewarn" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<form method="post"><center>
    				<?php
    					if($profile->Warnings < 3) echo '<button type="submit" class="btn btn-success" title="up" name="warnup"><i class="fa fa-plus"></i><span class="sr-only">up</span></button>';
    					if($profile->Warnings > 0) echo ' <button type="submit" class="btn btn-danger" title="down" name="warndown"><i class="fa fa-minus"></i><span class="sr-only">down</span></button>';
    				?>
    					<br><br><input class="form-control" placeholder="Reason" type="text" name="reason" required>
    				</center></form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="suspend" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<h5><i class="fa fa-warning"> </i> Suspend player's access to panel</h5>
    				<form method="post">
    					<input class="form-control input-sm" placeholder="Reason" type="text" name="s_res" required><br>
    					<center>
    						<input class="form-control input-sm" placeholder="Days" type="text" style="width: 20%" name="s_days"><br>					
    						<button type="submit" name="s_permanent" class="btn btn-success btn-xs" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="No need to complete with days!" data-original-title="">Permanent</button>
    						<button type="submit" name="s_temp" class="btn btn-primary btn-xs" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="Be sure you completed for how many days!" data-original-title="">Temporary</button>
    					</center>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="givemute" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<h5><i class="fa fa-legal"> </i> Mute this player</h5>
    				<form method="post">
    					<input class="form-control input-sm" placeholder="Reason" type="text" name="mute_res" required><br>
    					<center>
    						<input class="form-control input-sm" placeholder="Time in minutes" type="text" name="mute_min" required><br>					
    						<button type="submit" name="mute_action" class="btn btn-success btn-xs" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="No need to complete with days!" data-original-title="">Mute</button>
    					</center>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="tagadd" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<h5><i class="fa fa-code"> </i> Add TAG</h5>
    				<form method="post">
    					<center><input type="color" value="#ff0000" name="color"><bR>
    					<i class="fa fa-info-circle"></i><small> Pick background of tag </small> </center><br>
    					
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-gear" type="radio" checked>
    						<span><i></i><o class="fa fa-gear"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-sitemap" type="radio">
    						<span><i></i><o class="fa fa-sitemap"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-comments" type="radio">
    						<span><i></i><o class="fa fa-comments"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-shield" type="radio">
    						<span><i></i><o class="fa fa-shield"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-legal" type="radio">
    						<span><i></i><o class="fa fa-legal"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-bug" type="radio">
    						<span><i></i><o class="fa fa-bug"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-code" type="radio">
    						<span><i></i><o class="fa fa-code"></o></span>
    					</label>
    					<label class="fancy-radio">
    						<input name="icon" value="fa fa-star" type="radio">
    						<span><i></i><o class="fa fa-star"></o></span>
    					</label>
    					
    					<p><input type="text" class="form-control" placeholder="TAG Name" name="tag"></p>
    					
    					<center><button type="submit" name="insert" class="btn btn-default btn-xs">INSERT TAG</button></center>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="ban" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<h5><i class="fa fa-legal"> </i> Ban this player</h5>
    				<form method="post">
    					<input class="form-control input-sm" placeholder="Reason" type="text" name="ban_res" required><br>
    					<center>
    						<input class="form-control input-sm" placeholder="Days" type="text" style="width: 20%" name="days"><br>					
    						<button type="submit" name="permanent" class="btn btn-success btn-xs" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="No need to complete with days!" data-original-title="">Permanent</button>
    						<button type="submit" name="temp" class="btn btn-primary btn-xs" data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="Be sure you completed for how many days!" data-original-title="">Temporary</button>
    					</center>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <?php 
    }
    if(Config::isLogged(Config::getUser()) && (Config::isAdmin(Config::getUser()) || $profile->id == Config::getUser())) { ?>
    <div id="moneym" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<p>Changing of Money</p>
    				<form method="post" action="#">
    					<div class="input-group">
    						<span class="input-group-addon">Money</span>
    						<input class="form-control" value="<?php echo $profile->Money ?>" type="text" name="money_n" required>
    					</div><br>
    					<div class="input-group">
    						<span class="input-group-addon">Bank</span>
    						<input class="form-control" value="<?php echo $profile->Bank ?>" type="text" name="bank_n" required>
    					</div>
    					<small><i class="fa fa-info-circle"></i> User will receive a notifications after the changes!</small>
    					<br><br>
    					<button type="submit" name="mon_submit" class="btn btn-warning btn-block"><i class="fa fa-legal"></i> Update</button>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="premiumed" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<p>Changing of Premium Points</p>
    				<form method="post" action="#">
    					<div class="input-group">
    						<span class="input-group-addon"><i class="fa fa-pencil"></i></span>
    						<input class="form-control" placeholder="<?php echo $profile->PremiumPoints ?>" type="text" name="pointsp" required>
    					</div>
    					<small><i class="fa fa-info-circle"></i> User will receive a notifications after the changes!</small>
    					<br><br>
    					<button type="submit" name="ppr_submit" class="btn btn-warning btn-block"><i class="fa fa-legal"></i> Update</button>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="small-modals" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-sm" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<p>Insert carefully the email!</p>
    				<form method="post" action="#">
    					<div class="input-group">
    						<span class="input-group-addon"><i class="fa fa-pencil"></i></span>
    						<input class="form-control" placeholder="New email" type="text" name="email" required>
    					</div>
    					<small><i class="fa fa-info-circle"></i> User will receive a notifications after the changes!</small>
    					<br><br>
    					<button type="submit" name="email_submit" class="btn btn-primary btn-block"><i class="fa fa-check-circle"></i> CHANGE</button>
    				</form>
    			</div>
    		</div>
    	</div>
    </div>
    <?php } ?>
    
    <div class="col-md-3">
    	<div class="panel" style="min-height: 400px; margin-bottom:5px">
    		<div class="panel-body" style="overflow:hidden">
    			<a href=""><img src="<?php echo Config::$_PAGE_URL; ?>assets/img/skins/Skin_<?php echo $profile->Model; ?>.png" style="width: 70%; margin-left: 25px"></a>
    			<center>
    				<?php echo ($profile->Status ? '<span class="label label-success label-transparent">ONLINE</span>' : '<span class="label label-danger label-transparent">OFFLINE</span>')?>
    				<h5><?php echo $profile->name; ?></h5><form method="post">
    				<?php
    				$wd = Config::$g_con->prepare('SELECT `ID`,`Color`,`Icon`,`Tag` FROM `wcode_functions` WHERE `UserName` = ?');
    				$wd->execute(array($profile->name));
    				if($wd->rowCount()) {
    					$text = '';
    					while($r_data = $wd->fetch(PDO::FETCH_OBJ)) {
    						if(Config::isLogged() && Config::getData("users","Admin",Config::getUser()))
    							$text = $text . '<span class="label label-primary" style="background-color: '.$r_data->Color.'"> <i class="'.$r_data->Icon.'"></i> '.$purifier->purify(Config::xss(Config::clean($r_data->Tag))).' <button type="submit" name="delete_tag" value="'.$r_data->ID.'" style="background-color: #0000; border: 0px solid #fff; padding-left: 0px; padding-right: 0px;"><i class="fa fa-close"></i></button></span> ';
    						else
    							$text = $text . '<span class="label label-primary" style="background-color: '.$r_data->Color.'"> <i class="'.$r_data->Icon.'"></i> '.$purifier->purify(Config::xss(Config::clean($r_data->Tag))).'</span> ';
    					}
    					echo $text;
    				}
    				?></form>
    				<?php 
    				if($profile->Admin) echo '<span class="label label-primary" style="background-color: orange"> <i class="fa fa-shield"></i> Admin</span> ';
    				if($profile->Helper) echo '<span class="label label-primary" style="background-color: #44bb35"> <i class="fa fa-gear"></i> Helper</span> ';
    				if($profile->Premium) echo '<span class="label label-primary" style="background-color: #fff92a; color: #696969; border: 1px solid #e8d707;"> <i class="fa fa-star"></i> Premium</span> ';
    				?>
    			
    			<?php if(Config::getUser() != $profile->id) { ?>
    			<hr><a href="<?php echo ''.Config::$_PAGE_URL . 'complaints/create/' . $profile->name ?>"><button type="button" class="btn btn-danger" title="Create"><i class="ti-pencil"></i>Raporteaza jucator</button></a>
    			<?php } ?>
    			</center>
    		</div>
    	</div>
    	<?php
    	if(Config::isLogged() && Config::getData("users","Admin",Config::getUser())) {
    		if(isset($_POST['delete_tag'])) {
    			$wcs = Config::$g_con->prepare('DELETE FROM `wcode_functions` WHERE `ID` = ?');
    			$wcs->execute(array($_POST['delete_tag']));
    			Config::gotoPage("profile/".$profile->name."",0,"success","The TAG has been removed!");
    		}
    		if(isset($_POST['insert']) && strlen($_POST['tag']) > 0) {
    			$wcs = Config::$g_con->prepare('INSERT INTO `wcode_functions` (`UserID`,`UserName`,`Tag`,`Color`,`Icon`) VALUES (?,?,?,?,?)');
    			$wcs->execute(array($profile->id,$profile->name,$_POST['tag'],$_POST['color'],$_POST['icon']));
    			Config::gotoPage("profile/".$profile->name."",0,"success","New TAG has been setted!");
    		}
    		 
    	?>
    		<div class="panel">
    			<div class="panel-body" style="overflow:hidden; padding-top:10px; padding-bottom:10px;">
    				<center><form method="post">
    					<?php
    					if(Config::getData("users","Admin",Config::getUser()) > 0) echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#tagadd"><i class="fa fa-code"> </i>Add TAG</button>';
    					if(Config::getData("users","Admin",Config::getUser()) > 0 && Config::getData("users","Admin",$profile->id) <= 5) {
    						$ban = Config::$g_con->prepare('SELECT * FROM `bans` WHERE `PlayerName` = ?');
    						$ban->execute(array($profile->name));
    						if(!$ban->rowCount())
    							echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#ban" style="color: red"><i class="fa fa-legal"> </i>Ban player</button>';
    						else
    							echo '<button type="submit" name="unban" class="btn btn-link active" style="color: red"><i class="fa fa-legal"> </i>Unban player</button>';
    					}
    					if(!$profile->Muted)
    						echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#givemute" style="color: orange"><i class="fa fa-warning"> </i>Mute player</button>';
    					else
    						echo '<button type="submit" name="unmute" class="btn btn-link active" style="color: green"><i class="fa fa-check"> </i>Unmute player</button>';
    					if(Config::getData("users","Admin",Config::getUser()) >= Config::getData("users","Admin",$profile->id)) {
    						$suss = Config::$g_con->prepare('SELECT * FROM `wcode_suspend` WHERE `User` = ?');
    						$suss->execute(array($profile->name));
    						if(!$suss->rowCount())
    							echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#suspend" style="color: red"><i class="fa fa-warning"> </i>Suspend player</button>';
    						else
    							echo '<button type="submit" name="unsuspend" class="btn btn-link active" style="color: red"><i class="fa fa-warning"> </i>Unsuspend player</button>';
    					
    					}
    					?>
    				</form></center>
    			</div>
    		</div>
    	<?php
    		
    	}
    	?>
    </div>
    
    <div class="col-md-9">
    	<?php 
    	$ban = Config::$g_con->prepare('SELECT * FROM `bans` WHERE `PlayerName` = ?');
    	$ban->execute(array($profile->name));
    	if($ban->rowCount()) { 
    		$ba = $ban->fetch(PDO::FETCH_OBJ);
    	?>
    	<div class="alert alert-danger alert-dismissible" role="alert">
    		<i class="fa fa-times-circle"></i> This account has been banned <?php echo ($ba->Days ? 'temporary' : '<b>permanent</b>'); ?> by Admin <?php echo Config::formatName($ba->AdminName) ?> for <?php echo $purifier->purify(Config::xss(Config::clean($ba->Reason))) ?>. (<?php echo $ba->BanTimeDate ?>) 
    		<?php if(Config::isLogged() && $ba->PlayerName == Config::getNameFromID(Config::getUser())) { ?>
    			<a href="<?php echo Config::$_PAGE_URL ?>unban/create"><span class="label label-default label-transparent"><i class="fa fa-mail-forward"></i> UNBAN REQ</span></a>
    		<?php } ?>
    	</div>
    	<?php }
    	$sus = Config::$g_con->prepare('SELECT * FROM `wcode_suspend` WHERE `User` = ?');
    	$sus->execute(array($profile->name));
    	if($sus->rowCount()) { 
    		$ss = $sus->fetch(PDO::FETCH_OBJ);
    	?>
    	<div class="alert alert-danger alert-dismissible" role="alert">
    		<i class="fa fa-times-circle"></i> This account has been suspended from panel <?php echo ($ss->Days ? '<i>temporary ('.$ss->Days.' days)</i> until <i>'.$ss->Expire.'</i>' : '<b>permanent</b>'); ?> by Admin <?php echo Config::formatName($ss->Admin) ?> for <?php echo Config::xss(Config::clean($ss->Reason)) ?>. <small>(<?php echo $ss->Date ?>)</small>
    	</div>
    	<?php } ?>
    	<ul class="nav nav-tabs" role="tablist">
    		<li class="active"><a href="#profile" role="tab" data-toggle="tab">Profile</a></li>
    		<li><a href="#owne" role="tab" data-toggle="tab">Properties</a></li>
    		<li><a href="#veh" role="tab" data-toggle="tab">Vehicles</a></li>
    		<li><a href="#fhistory" role="tab" data-toggle="tab">Faction History</a></li>
    		<?php 
    		if(Config::isAdmin(Config::getUser())) echo '<li><a href="#ulog" role="tab" data-toggle="tab">User Logs</a></li>';
    		?>
    	</ul>
    	<div class="tab-content" style="background-color: white">
    		<div class="tab-pane fade in active" id="profile">
    			<table class="table table-minimal">
    				<thead>
    					<tr><th style="width:50%"></th><th style="width:50%"></th></tr>
    				</thead>
    				<tbody><form method="post">
    					<tr><td><strong style="font-weight: 500;">Clan</strong></td><td><?php echo Config::getfullData("clans","clanName","clanID",$profile->Clan) ? Config::getfullData("clans","clanName","clanID",$profile->Clan) : "No clan" ?></td></tr>
    					<tr><td><strong style="font-weight: 500;">Faction</strong></td><td><?php echo Config::factionName($profile->name,$profile->Member) ?></td></tr>
    					<tr>
    						<td><strong style="font-weight: 500;">Faction Warns</strong></td>
    						<td>
    							<?php echo Config::getData("users","FWarn",$profile->id) ?>/3
    							<?php if(Config::isLogged(Config::getUser()) && Config::isAdmin(Config::getUser())) echo '<button type="submit" class="btn btn-link active" name="submit_action" value="FWarn">Reset</button>'; ?>
    						</td>
    					</tr>
    					<tr>
    						<td><strong style="font-weight: 500;">Faction Punish</strong></td>
    						<td>
    							<?php echo Config::getData("users","FPunish",$profile->id) ?>/30
    							<?php if(Config::isLogged(Config::getUser()) && Config::isAdmin(Config::getUser())) echo '<button type="submit" class="btn btn-link active" name="submit_action" value="FPunish">Reset</button>'; ?>
    						</td>
    					</tr>
    					<tr><td><strong style="font-weight: 500;">Level</strong></td><td><?php echo Config::getData("users","Level",$profile->id) ?> <i>( Respect Points <?php echo Config::getData("users","Respect",$profile->id) ?> )</i></td></tr>
    					<tr><td><strong style="font-weight: 500;">Hours Played</strong></td><td><?php echo Config::getData("users","ConnectedTime",$profile->id) ?></td></tr>
    					<tr><td><strong style="font-weight: 500;">Joined on</strong></td><td><?php echo Config::getData("users","RegisterDate",$profile->id) ?></td></tr>
    					<?php if(Config::isLogged() && (Config::isAdmin(Config::getUser()) || $profile->id == Config::getUser())) { ?>
    						<tr>
    							<td><strong style="font-weight: 500;">Money</strong></td>
    							<td>
    								<?php echo Config::formatNumber($profile->Money) . ' / ' . Config::formatNumber($profile->Bank)  ?>
    								<?php if(Config::isLogged(Config::getUser()) && Config::isAdmin(Config::getUser(),6)) echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#moneym">Modify</button>'; ?>
    							</td>
    						</tr>
    						<tr>
    							<td><strong style="font-weight: 500;">Premium Points</strong></td>
    							<td>
    								<?php echo Config::getData("users","PremiumPoints",$profile->id) ?>
    								<?php if(Config::isLogged(Config::getUser()) && Config::isAdmin(Config::getUser(),6)) echo '<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#premiumed">Modify</button>'; ?>
    							</td>
    						</tr>
    						<tr>
    							<td><strong style="font-weight: 500;">Email</strong></td>
    							<td>
    								<?php echo $purifier->purify(Config::xss(Config::clean(Config::getData("users","Email",$profile->id)))) ?>
    								<button type="button" class="btn btn-link active" data-toggle="modal" data-target="#small-modals">Modify</button>
    							</td>
    						</tr>
    					<?php } ?>
    					<tr><td><strong style="font-weight: 500;">Last login</strong></td><td><?php echo Config::timeAgo(Config::getData("users","lastOn",$profile->id)) ?></td></tr>
    					<tr><td><strong style="font-weight: 500;">Job</strong></td><td><?php echo Config::jobName($profile->name,$profile->Job) ?></td></tr>
    					<tr>
    						<td><strong style="font-weight: 500;">Warnings</strong></td>
    						<td>
    							<?php echo Config::getData("users","Warnings",$profile->id) ?>/3
    							<?php if(Config::isLogged(Config::getUser()) && Config::isAdmin(Config::getUser())) echo '<button type="button" class="btn btn-link active" value="Warnings" data-toggle="modal" data-target="#givewarn">Manage</button> <button type="submit" class="btn btn-link active" name="submit_action" value="Warnings">Reset</button>'; ?>
    						</td>
    					</tr>
    				</form></tbody>
    			</table>
    		</div>
    		<div class="tab-pane fade" id="owne">
    			<div class="col-md-6">
    				<?php
    				$wcode = Config::$g_con->prepare('SELECT * FROM `houses` WHERE `Owner` = ?');
    				$wcode->execute(array($profile->name));
    				if(!$wcode->rowCount()) echo Config::csSN("warning","No houses owned.",false);
    				else {
    					while($house = $wcode->fetch(PDO::FETCH_OBJ)) {
    						echo '
    						<div class="widget">
    							<h5>House ID #'.$house->ID.''; ?>
    								<a onclick = "morty_ey(<?php echo $house->Entrancex; ?>,<?php echo $house->Entrancey; ?>)"><i class="fa fa-map-marker"></i></a> <?php
    							echo '<h5>
    							<hr style="margin-top: 2px">
    							<p><b class="pull-right">'.$house->Discription.'</b>#Name</p>
    							<p><b class="pull-right">'.Config::formatNumber($house->Rent).'</b>#Rent Price</p>
    							<p><b class="pull-right">'.Config::formatNumber($house->Value).'</b>#House Value</p>
    							<p><b class="pull-right">'.($house->Lockk ? '<span class="label label-warning label-transparent">Locked</span>' : '<span class="label label-success label-transparent">Opened</span>').'</b>#Status</p>
    						</div>
    						';
    					}
    				}
    				?>
    			</div>
    			<div class="col-md-6">
    				<?php
    				$wcode = Config::$g_con->prepare('SELECT * FROM `bizz` WHERE `Owner` = ?');
    				$wcode->execute(array($profile->name));
    				if(!$wcode->rowCount()) echo Config::csSN("warning","No businesses owned.",false);
    				else {
    					while($bizz = $wcode->fetch(PDO::FETCH_OBJ)) {
    						echo '
    						<div class="widget">
    							<h5>Business ID #'.$bizz->ID.''; ?>
    								<a onclick = "morty_ey(<?php echo $bizz->EntranceX; ?>,<?php echo $bizz->EntranceY; ?>)"><i class="fa fa-map-marker"></i></a>
    							<?php echo '<h5><hr style="margin-top: 2px">
    							<p><b class="pull-right">'.$bizz->Message.'</b>#Name</p>
    							<p><b class="pull-right">'.Config::formatNumber($bizz->EntranceCost).'</b>#Entrance</p>
    							<p><b class="pull-right">'.Config::formatNumber($bizz->BuyPrice).'</b>#Bizz Value</p>
    							<p><b class="pull-right">'.$bizz->Products.'</b>#Products</p>
    							<p><b class="pull-right">'.($bizz->Locked ? '<span class="label label-warning label-transparent">Locked</span>' : '<span class="label label-success label-transparent">Opened</span>').'</b>#Status</p>
    						</div>
    						';
    					}
    				}
    				?>
    			</div>
    			<div class="clearfix"></div>
    		</div>
    		<div class="tab-pane fade" id="veh">
    			<?php
    			$wcode = Config::$g_con->prepare('SELECT * FROM `cars` WHERE `Owner` = ?');
    			$wcode->execute(array($profile->name));
    			if(!$wcode->rowCount()) echo Config::csSN("warning","This user has no personal vehicles.",false);
    			else {
    				echo '<table class="table table-minimal">
    						<thead>
    							<tr>
    								<th>IMAGE</th>
    								<th>NAME</th>
    								<th>PRICE</th>
    								<th>KM</th>
    								<th>COLORS</th>
    								<th>VIP</th>
    							</tr>
    						</thead>
    						<tbody>';
    				while($car = $wcode->fetch(PDO::FETCH_OBJ)) {
    					echo '
    						<tr>
    							<td><img src="'.Config::$_PAGE_URL.'assets/img/vehicles/'.$car->Model.'.jpg" style="height: 60px"></td>
    							<td>'.Config::$_vehicles[$car->Model].''; ?>
    								<a onclick = "morty_ey(<?php echo $car->Locationx; ?>,<?php echo $car->Locationy; ?>)"><i class="fa fa-map-marker"></i></a>
    							<?php echo '</td>
    							<td>'.Config::formatNumber($car->Value).'</td>
    							<td>'.$car->KM.'</td>
    							<td><font color="'.Config::$_vehColors[$car->ColorOne].'">'.$car->ColorOne.'</font> , <font color="'.Config::$_vehColors[$car->ColorTwo].'">'.$car->ColorTwo.'</font></td>
    							<td>'.($car->Text != "-" ? '<b>' . $car->Text . '</b>' : 'No').'</td>
    						</tr>
    					';
    				}
    				echo '</tbody></table>';
    			}
    			?>
    		</div>
    		<div class="tab-pane fade" id="fhistory">
    			<ul class="list-unstyled list-contacts">
    			<?php
    			$wcs = Config::$g_con->prepare('SELECT * FROM `faction_logs` WHERE `player` = ? ORDER BY `id` DESC LIMIT 50');
    			$wcs->execute(array($profile->id));
    			while($fhistory = $wcs->fetch(PDO::FETCH_OBJ)) {
    				echo '
    					<li>
    						<div class="media">
    							<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.$profile->Model.'.png" class="picture" alt="" style="border: 1px solid #f1f1f1">
    							<span class="status '.($profile->Status ? 'online' : '').'"></span>
    						</div>
    						<div class="info">
    							<span class="name">'.$fhistory->Text.'</span>
    							<span class="email">'.Config::timeAgo($fhistory->time).'</span>
    						</div>';
    						if(Config::isAdmin(Config::getUser())) {
    							echo '<form method="post"><div class="controls">
    								<div class="btn-group">
    									<button type="submit" class="btn btn-default btn-xs" title="Delete" name="delete_ac" value="'.$fhistory->ID.'"><i class="fa fa-trash"></i><span class="sr-only">Delete</span></button>
    								</div>
    							</div></form>';
    						}
    					echo '</li>';
    			}
    			?>
    			</ul>
    		</div>
    		<?php if(Config::isAdmin(Config::getUser())) { ?>
    		<div class="tab-pane fade" id="ulog">
    			<div class="col-md-8" style="padding-left: 4px; padding-right: 4px">
    				<table class="table table-minimal">
    					<thead>
    						<tr>
    							<th>LOG</th>
    						</tr>
    					</thead>
    					<tbody>
    					<?php
    					$jj = Config::$g_con->prepare("SELECT * FROM `wcode_logs` WHERE `UserName` = ? OR `VictimName` = ? ORDER BY `ID` DESC");
    					$jj->execute(array($profile->name,$profile->name));
    					while($logs = $jj->fetch(PDO::FETCH_OBJ)) {
    						echo '<tr>
    							<td>'.$logs->Log.' <small><i>('.$logs->Date.')</i></small></td>
    						</tr>';
    					}
    					?>
    					</tbody>
    				</table>
    			</div>
    			<div class="col-md-4" style="padding-left: 4px; padding-right: 4px">
    				<h5>View logs</h5>
    				<li><a href="#" data-toggle="modal" data-target="#chatlogs">chat logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#killlogs">kill logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#carlogs">car logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#punishlogs">punish logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#shoplogs">shop logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#sulogs">su logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#giftlogs">giftbox logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#reportlogs">report logs</a></li>
    				<li><a href="#" data-toggle="modal" data-target="#newbielogs">newbie logs</a></li>
    			</div>
    			<div class="clearfix"></div>
    		</div>
    		<?php } ?>
    	</div>
    </div>
    <?php if(Config::isAdmin(Config::getUser())) { ?>
    <div id="chatlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<ul class="list-unstyled list-contacts">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `chat_logs` WHERE `playerid` = ? ORDER BY `ID` DESC LIMIT 50');
    				$pl->execute(array($profile->id));
    				while($plogs = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '
    						<li>
    							<div class="media">
    								<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.$profile->Model.'.png" class="picture" alt="" style="border: 1px solid #f1f1f1">
    								<span class="status '.($profile->Status ? 'online' : '').'"></span>
    							</div>
    							<div class="info" style="width: 90%">
    								<span class="name">'.$plogs->text.'</span>
    								<span class="email">'.$plogs->time.'</span>
    							</div>';
    						echo '</li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="killlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<ul class="list-unstyled list-contacts">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `kill_logs` WHERE `playerid` = ? OR `killerid` = ? ORDER BY `ID` DESC LIMIT 50');
    				$pl->execute(array($profile->id,$profile->id));
    				while($plogs = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '
    						<li>
    							<div class="media">
    								<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.$profile->Model.'.png" class="picture" alt="" style="border: 1px solid #f1f1f1">
    								<span class="status '.($profile->Status ? 'online' : '').'"></span>
    							</div>
    							<div class="info" style="width: 90%">
    								<span class="name">'.$plogs->playername.' has been killed by '.$plogs->killername.' with weapon '.$plogs->reason.'.</span>
    								<span class="email">'.$plogs->time.'</span>
    							</div>';
    						echo '</li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="carlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<ul class="list-unstyled list-contacts">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `cars_logs` WHERE `playerid` = ? OR `giverid` = ? ORDER BY `ID` DESC LIMIT 50');
    				$pl->execute(array($profile->id,$profile->id));
    				while($plogs = $pl->fetch(PDO::FETCH_OBJ)) {
    					if(!strlen($plogs->action)) continue;
    					echo '
    						<li>
    							<div class="media">
    								<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.$profile->Model.'.png" class="picture" alt="" style="border: 1px solid #f1f1f1">
    								<span class="status '.($profile->Status ? 'online' : '').'"></span>
    							</div>
    							<div class="info" style="width: 90%">
    								<span class="name">'.$plogs->action.'</span>
    								<span class="email">'.$plogs->time.'</span>
    							</div>';
    						echo '</li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="punishlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<ul class="list-unstyled list-contacts">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `punishlogs` WHERE `playerid` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id));
    				$type = array(
    					0 => 'None',
    					1 => 'kicked',
    					2 => 'banned',
    					3 => 'jailed',
    					4 => 'warned',
    					5 => 'muted',
    					6 => 'permanently suspended',
    					7 => 'temporary suspended'
    				);
    				while($ppunish = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '
    						<li>
    							<div class="media">
    								<img src="'.Config::$_PAGE_URL.'assets/img/avatars/'.$profile->Model.'.png" class="picture" alt="" style="border: 1px solid #f1f1f1">
    								<span class="status '.($profile->Status ? 'online' : '').'"></span>
    							</div>
    							<div class="info" style="width: 90%">
    								<span class="name">'.$ppunish->playername.' has been '.$type[$ppunish->actionid].' by <a href="'.Config::$_PAGE_URL.'profile/'.$ppunish->givername.'">'.$ppunish->givername.'</a> with following reason: '.$ppunish->reason.'.</span>
    								<span class="email">'.$ppunish->time.'</span>
    							</div>';
    						echo '</li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="shoplogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `shop_logs` WHERE `playerid` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id));
    				while($shop = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '<li><i>('.$shop->time.')</i> '.$shop->Message.' </li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="sulogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `su_logs` WHERE `playerid` = ? OR `giverid` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id,$profile->id));
    				while($shop = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '<li><i>('.$shop->time.')</i> '.$shop->sumessage.' </li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="giftlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `giftbox_logs` WHERE `PlayerID` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id));
    				while($shop = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '<li><i>('.$shop->time.')</i> '.$shop->text.' </li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="reportlogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `report_logs` WHERE `playerid` = ? OR `adminid` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id,$profile->id));
    				while($shop = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '<li><i>('.$shop->times.')</i> '.$shop->problem.' </li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    			</div>
    		</div>
    	</div>
    </div>
    <div id="newbielogs" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    	<div class="modal-dialog modal-large" role="document">
    		<div class="modal-content">
    			<div class="modal-body">
    				<?php
    				$pl = Config::$g_con->prepare('SELECT * FROM `newbie_logs` WHERE `playerid` = ? OR `adminid` = ? ORDER BY `id` DESC LIMIT 50');
    				$pl->execute(array($profile->id,$profile->id));
    				while($shop = $pl->fetch(PDO::FETCH_OBJ)) {
    					echo '<li><i>('.$shop->times.')</i> '.$shop->question.' </li>';
    				}
    				if(!$pl->rowCount()) echo "<center><small><i>No recent history</i></small></center>";
    				?>
    			</div>
    		</div>
    	</div>
    </div>
    
    <?php } ?>
    <script src="<?php echo Config::$_PAGE_URL; ?>assets/vendor/jquery/jquery.min.js"></script>
    <script src="<?php echo Config::$_PAGE_URL; ?>assets/js/map.min.js"></script>
    <script>
    $(function()
    {
    	$('[data-toggle="tooltip"]').tooltip();
    	$('[data-toggle="popover"]').popover();
    });
    </script>

     

  • Alte detalii: baza de date este bigzone (am adaugat tot ce tine de wcode_ in baza de date, iar panelul este wcode 9)

Ko62bp8.png

Link to comment
Share on other sites

1 oră în urmă, OLTEANuadv a spus:

La logare exista 2 posibilitati: 1.Numele coloanei ce detine parola este diferit fata de coloana din executarea mysql din php.

2.Nu ai parola in baza criptata md5.

pai am incercat pe alt panel si mergea cu md5, am scos si verificarea cu md5 si tot la fel imi face....
Am facut eu o tentativa de conectare, iar acum nu imi mai apare nimic absolut nimic..
ga407Lx.png

Ko62bp8.png

Link to comment
Share on other sites

nu cred ca are nici o treaba, dar in fine...

[Fri Oct 11 21:38:46.465332 2019] [ssl:warn] [pid 6972:tid 240] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 11 21:38:46.628341 2019] [core:warn] [pid 6972:tid 240] AH00098: pid file D:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Oct 11 21:38:46.632341 2019] [ssl:warn] [pid 6972:tid 240] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 11 21:38:46.726346 2019] [mpm_winnt:notice] [pid 6972:tid 240] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.1.1c PHP/7.3.8 configured -- resuming normal operations
[Fri Oct 11 21:38:46.726346 2019] [mpm_winnt:notice] [pid 6972:tid 240] AH00456: Apache Lounge VC15 Server built: May 29 2019 11:22:50
[Fri Oct 11 21:38:46.726346 2019] [core:notice] [pid 6972:tid 240] AH00094: Command line: 'd:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Fri Oct 11 21:38:46.735347 2019] [mpm_winnt:notice] [pid 6972:tid 240] AH00418: Parent: Created child process 5616
[Fri Oct 11 21:38:48.667457 2019] [ssl:warn] [pid 5616:tid 252] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 11 21:38:48.758463 2019] [ssl:warn] [pid 5616:tid 252] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 11 21:38:48.953474 2019] [mpm_winnt:notice] [pid 5616:tid 252] AH00354: Child: Starting 150 worker threads.

 

Ko62bp8.png

Link to comment
Share on other sites

  • s0nyx locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...