-
Posts
259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by DarkWind
-
VEHICLE UPGRADE SYSTEM -> basic first version
DarkWind replied to Wildo's topic in Proiecte în dezvoltare
bomba cu cias -
Problema Nu pot accesa Profile-ul.
DarkWind replied to DarkWind's topic in Problems (Warnings, Errors)
Rezolvat. T/C -
Nu ma mai chinui. T/C.
-
Username: DarkWind Problema: nu pot apasa pe Faction History, vehicles si restu, Admin Tool. Imagini/Videoclipuri cu problema: https://imgur.com/a/giBFVaq Cod sursă: Panel Bluffs v3. Alte detalii: <?php if(!defined('panel')) 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 = 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 ' <section class="content"> <div class="page-content"><div class="row-fluid"><div class="span12"> <div class="alert alert-danger">This user doesn\'t exist.</div></section>'; return; } $data = $q->fetch(PDO::FETCH_OBJ); //include 'inc/config.php'; $respect = $data->Level*3+3; ?> <title><?php echo Config::$_SITE_NAME; ?> - <?php echo $user;?>'s profile</title> <section class='content'> <?php if(isset($_POST['jail'])) { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) if(!$_POST['reason'] && !$_POST['duration']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>'; else { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) echo '<div class="alert alert-success">Jucatorul a primit jail cu succes.</div>'; if($_POST['duration']) { $duration = $_POST['duration']; } if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) $q = Config::$g_con->prepare('INSERT INTO `panelactions` (`complaintid`, `actiontime`, `actionid`, `playerid`, `playername`, `giverid`, `givername`, `reason`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array(0,$duration,3,Config::getID('users','id',Config::$_url[1]),Config::getID('users','name',Config::$_url[1]),Config::getData('users','id',$_SESSION['user']),Config::getData('users','name',$_SESSION['user']),$_POST['reason'])); $q = Config::$g_con->prepare('UPDATE `users` SET `Jailed` = ? AND `JailTime` = ? WHERE `id` = ?'); $q->execute(array(2,Config::getID('users','JailTime',Config::$_url[1])+$duration,Config::getID('users','id',Config::$_url[1]))); echo '<meta http-equiv="refresh" content="2">'; } } if(isset($_POST['panelblock'])) { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) if(Config::getID('users','panelblock',Config::$_url[1]) == 1 || Config::getID('users','Admin',Config::$_url[1]) > Config::getData('users','Admin',$_SESSION['user'])) echo '<div class="alert alert-danger">Contul este deja suspendat.</div>'; else if(!$_POST['reason'] && !$_POST['duration']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>'; else { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) echo '<div class="alert alert-success">Jucatorul a primit suspend cu succes.</div>'; $duration = $_POST['duration']; if($duration != 0) $duration = time()+$duration*86400; if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) $q = Config::$g_con->prepare('INSERT INTO `panelactions2` (`complaintid`, `actiontime`, `actionid`, `playerid`, `playername`, `giverid`, `givername`, `reason`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array(0,$duration,69,Config::getID('users','id',Config::$_url[1]),Config::getID('users','name',Config::$_url[1]),Config::getData('users','id',$_SESSION['user']),Config::getData('users','name',$_SESSION['user']),$_POST['reason'])); $q = Config::$g_con->prepare('UPDATE `users` SET `panelblock` = 1 WHERE `id` = ?'); $q->execute(array(Config::getID('users','id',Config::$_url[1]))); echo '<meta http-equiv="refresh" content="2">'; } } if(isset($_POST['ban'])) { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1 && Config::getID('users','Admin',Config::$_url[1]) < Config::getData('users','Admin',$_SESSION['user'])) if(!$_POST['reason'] && !$_POST['duration']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>'; else { echo '<div class="alert alert-success">Jucatorul a primit ban cu succes.</div>'; if($_POST['duration'] == 0) { $permanentban = 1; $duration = 0; } else { $permanentban = 0; $duration = $_POST['duration']; } if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) $q = Config::$g_con->prepare('INSERT INTO `panelactions` (`complaintid`, `actiontime`, `actionid`, `playerid`, `playername`, `giverid`, `givername`, `reason`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array(0,$duration,1,Config::getID('users','id',Config::$_url[1]),Config::getID('users','name',Config::$_url[1]),Config::getData('users','id',$_SESSION['user']),Config::getData('users','name',$_SESSION['user']),$_POST['reason'])); $q = Config::$g_con->prepare('INSERT INTO `bans` ( `IP`, `Active`, `Permanent`, `IPBan`, `Time`, `PlayerName`, `Days`, `AdminName`, `Reason` ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array( Config::getID('users','IP',Config::$_url[1]), 1, $permanentban, $_POST['banip'], (time()+$duration*86400), Config::getID('users','name',Config::$_url[1]), $duration, Config::getData('users','name',$_SESSION['user']), $_POST['reason'] )); if($_POST['duration'] == 0) { $durata = "permanent"; } else { $durata = "". $_POST['duration'] ." days"; } echo '<meta http-equiv="refresh" content="2">'; } } if(isset($_POST['warn'])) { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) if(!$_POST['reason'] && !$_POST['duration']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>'; else { echo '<div class="alert alert-success">Jucatorul a primit warn cu succes.</div>'; if($_POST['duration']) { $duration = 0; } else { $duration = 0; } $q = Config::$g_con->prepare('INSERT INTO `panelactions` (`complaintid`, `actiontime`, `actionid`, `playerid`, `playername`, `giverid`, `givername`, `reason`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array(0,$duration,4,Config::getID('users','id',Config::$_url[1]),Config::getID('users','name',Config::$_url[1]),Config::getData('users','id',$_SESSION['user']),Config::getData('users','name',$_SESSION['user']),$_POST['reason'])); $q = Config::$g_con->prepare('UPDATE `users` SET `Warnings` = ? WHERE `id` = ?'); $q->execute(array(Config::getID('users','Warnings',Config::$_url[1])+1,Config::getID('users','id',Config::$_url[1]))); echo '<meta http-equiv="refresh" content="2">'; } } if(isset($_POST['mute'])) { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) if(!$_POST['reason'] && !$_POST['duration']) echo '<div class="alert alert-danger">Ai lasat campuri necompletate.</div>'; else { if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) echo '<div class="alert alert-success">Jucatorul a primit mute cu succes.</div>'; if($_POST['duration']) { $duration = $_POST['duration']; } $q = Config::$g_con->prepare('INSERT INTO `panelactions` (`complaintid`, `actiontime`, `actionid`, `playerid`, `playername`, `giverid`, `givername`, `reason`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)'); $q->execute(array(0,$duration,5,Config::getID('users','id',Config::$_url[1]),Config::getID('users','name',Config::$_url[1]),Config::getData('users','id',$_SESSION['user']),Config::getData('users','name',$_SESSION['user']),$_POST['reason'])); $q = Config::$g_con->prepare('UPDATE `users` SET `Muted` = ? AND `MuteTime` = ? WHERE `id` = ?'); $q->execute(array(1,Config::getID('users','MuteTime',Config::$_url[1])+$duration,Config::getID('users','id',Config::$_url[1]))); echo '<meta http-equiv="refresh" content="2">'; } } ?> <?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", $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> "; } ?> <?php $q = Config::$g_con->prepare('SELECT * FROM `panelactions2` WHERE `actionid` = 69 AND `playername` = ?'); $q->execute(array($data->name)); if($q->rowCount()) while($row = $q->fetch(PDO::FETCH_OBJ)) { if($row->actiontime == 0) { $expira = "Contul este suspendat permanent (suspend-ul nu va expira automat)"; } else { $expira = "Suspend-ul expira pe data de <b>". gmdate("Y-m-d H:i", $row->actiontime) ."</b>"; } $numeadmin = $row->givername; $motiv = $row->reason; echo " <div class='alert alert-danger'> <b>This account is suspended.</b><br/><br/> Suspended by: <b>$numeadmin</b>, motivul suspend-ului: <b>$motiv</b>.<br/> $expira.</div> "; } ?> <div class = "row"> <div class="col-md-12"> <div class="col-md-3"> <div class="box box-primary" id="newboxstyle"> <div class="box-body"> <div class="col-xs-12" style="padding-bottom: 5%;"> <div class="" style="display:block; white-space: nowrap;"> <div class="col-md-12"> <center> <div> <img src="<?php echo Config::$_PAGE_URL; ?>assets/images/avatars/<?php echo Config::getID('users','Model',$data->name); ?>.png" class="user-image" width="50px" height="50px" alt="User Image"> </div> <h3 class="profile-username"> <?php echo (!$data->Status ? "<i class='fa fa-circle text-danger' data-toggle='tooltip' title='offline'></i> " : "<i class='fa fa-circle text-success data-toggle='tooltip' title='offline''></i> "); ?> <?php echo $data->name; ?> </h3> </center> </div> <div class="col-md-12 col-lg-12"> <center> <?php if($data->name == "Ionut") { ?> <span class="label bg-green"> <font style="font-family:verdana;"><i class="fa fa-code"></i> scripter </font></span><br> <?php } if($data->Admin == 7 && $data->name != "Ionut") { ?> <span class="label bg-green"><font style="font-family:verdana;"><i class="fa fa-shield"></i> owner </font></span><br> <?php } else if($data->Admin > 0 ) { ?> <span class="label bg-black"> <font style="font-family:verdana;"><i class="fa fa-cogs"></i> admin level <?php echo $data->Admin; ?></font></span><br> <?php } if($data->Helper > 0 ) { ?> <span class="label bg-black"><font style="font-family:verdana;"><i class="fa fa-comment"></i> helper level <?php echo $data->Helper; ?></font></span><br> <?php } if($data->Premium == 1) { ?> <span class="label bg-yellow"><font style="font-family:verdana;"><i class="fa fa-star"></i> premium user</font></span><br> <?php } if($data->Premium == 2 ) { ?> <span class="label bg-yellow"><font style="font-family:verdana;"><i class="fa fa-star"></i> vip user</font></span><br> <?php } if($data->CRank == 7) { ?> <span class="label" style="background: #00aa00"><font style="font-family:verdana;"><a href="<?php echo Config::$_PAGE_URL; ?>clan/<?php echo $data->Clan ?>" style="color: #FFF"><i class="fa fa-group"></i> clan owner</a> </font> </span> <br/> <?php } if(isset($_SESSION['user']) && Config::$_url[1] != Config::getData('users','name',$_SESSION['user'])) { ?> <hr style="border:0.7px solid #000"> <a href="<?php echo Config::$_PAGE_URL; ?>createcomplaint/<?php echo $data->id?>" target="_blank" class="btn btn-danger btn-block"><b>reclama player</b></a> <?php }?> </center> </div> </div> </div> </div> </div> </div> <div class="nav-tabs-custom col-md-8"> <ul class="nav nav-tabs"> <li class="active"><a href="#maininfo" data-toggle="tab" aria-expanded="false"><i class = "fa fa-bullseye"></i> Main Info</a></li> <li class=""><a href="#factionhistory" data-toggle="tab" aria-expanded="false"><i class = "fa fa-feed"></i> Faction History</a></li> <li class=""><a href="#properties" data-toggle="tab" aria-expanded="false"><i class = "fa fa-usd"></i> Properties</a></li> <li class=""><a href="#vehicles" data-toggle="tab" aria-expanded="false"><i class = "fa fa-car"></i> Vehicles</a></li> <?php if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) { ?> <li class=""><a href="#admintools" data-toggle="tab" aria-expanded="false"><i class = "fa fa-fw fa-wrench"></i> Admin Tools</a></li> <?php } if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 1) { ?> <li class=""><a href="#ppunish" data-toggle="tab" aria-expanded="false"><i class = "fa fa-fw fa-wrench"></i> Player Punish</a></li> <?php } if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 3) { ?> <li class=""><a href="#piplogs" data-toggle="tab" aria-expanded="false"><i class = "fa fa-fw fa-wrench"></i> Player IP Logs</a></li> <?php } ?> </ul> <hr style="border:0.7px solid #000"> <div class="tab-content"> <div class="tab-pane active" id="maininfo"> <div class="box-body table-responsive no-padding"> <table class="table table-striped"> <tbody> <ul class="list-group"> <li class="list-group-item"> <b>Faction</b> <a class="pull-right"><?php echo Config::$factions[$data->Member] ?><?php if($data->Member >=1) { ?>, rank <?php echo $data->Rank; ?> <?php } ?></a> </li> <li class="list-group-item"> <b>Level</b> <a class="pull-right"><?php echo $data->Level; ?></a> </li> <li class="list-group-item"> <b>Played Hours</b> <a class="pull-right"><?php echo number_format($data->ConnectedTime, 2, '.', ''); ?></a> </li> <?php if($data->Clan>0) { ?> <li class="list-group-item"> <b>Clan</b> <a href="<?php echo Config::$_PAGE_URL; ?>clan/<?php echo $data->Clan ?>" class="pull-right"><?php echo Config::getClan('clans','clanName',$data->Clan)?>, rank <?php echo $data->CRank?></a> </li> <?php }?> <li class="list-group-item"> <b>Phone number</b> <a class="pull-right"> <?php echo $data->PhoneNr; ?></a> </li> <li class="list-group-item"> <b>Registered</b> <a class="pull-right"><?php $date = date_create($data->RegisterDate); echo Config::time_elapsed_string(date_format($date, 'd-M-Y H:i:s'), false); ?></a> </li> <li class="list-group-item"> <b>Last Online</b> <a class="pull-right"><?php $date = date_create($data->lastOn); echo Config::time_elapsed_string(date_format($date, 'd-M-Y H:i:s'), false); ?></a> </li> <li class="list-group-item"> <b>Faction Punish</b> <a class="pull-right"><?php echo $data->FPunish; ?></a> </li> <li class="list-group-item"> <b>Warnings</b> <a class="pull-right"><?php echo $data->Warnings; ?>/3</a> </li> <li class="list-group-item"> <b>Job</b> <a class="pull-right"><?php echo Config::$jobs[$data->Job]; ?></a> </li> <?php if(isset($_SESSION['user']) && ($data->name) == Config::getData('users','name',$_SESSION['user'])) { ?> <li class="list-group-item"> <b>Premium</b> <a class="pull-right"><?php echo (!$data->Premium ? "No ($data->PremiumPoints premium points)" : "Yes ($data->PremiumPoints premium points)"); ?></a> </li> <?php } if(isset($_SESSION['user'])&& ($data->name) != Config::getData('users','name',$_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) > 1) { ?> <li class="list-group-item"> <b>Premium</b> <a class="pull-right"><?php echo (!$data->Premium ? "No ($data->PremiumPoints premium points)" : "Yes ($data->PremiumPoints premium points)"); ?></a> </li> <?php } if(isset($_SESSION['user'])&& ($data->name) != Config::getData('users','name',$_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) > 1) { ?> <li class="list-group-item"> <b>IP/GPCI</b> <a class="pull-right"><?php echo $data->IP; ?> / <?php echo $data->gpci; ?></a> </li> <?php } if(isset($_SESSION['user']) && ($data->name) == Config::getData('users','name',$_SESSION['user'])) { ?> <li class="list-group-item"> <b>Email</b> <a class="pull-right"><?php if($data->Email == "email@yahoo.com") { echo "(UNCONFIRMED)"; } else echo $data->Email; ?> <a href="<?php echo Config::$_PAGE_URL; ?>changemail"><i class="ace-icon fa fa-edit"></i></a></a> </li> <?php } if(isset($_SESSION['user'])&& ($data->name) != Config::getData('users','name',$_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) > 1) { ?> <li class="list-group-item"> <b>Email</b> <a class="pull-right"><?php if($data->Email == "email@yahoo.com") { echo "(UNCONFIRMED)"; } else echo $data->Email; ?></a> </li> <?php } if(isset($_SESSION['user']) && ($data->name) == Config::getData('users','name',$_SESSION['user'])) { ?> <li class="list-group-item"> <b>Money</b> <a class="pull-right">$<?php echo number_format($data->Money,0,'.','.'); ?> / $<?php echo number_format($data->Bank,0,'.','.'); ?></a> </li> <?php } if(isset($_SESSION['user'])&& ($data->name) != Config::getData('users','name',$_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) > 1) { ?> <li class="list-group-item"> <b>Money</b> <a class="pull-right">$<?php echo number_format($data->Money,0,'.','.'); ?> / $<?php echo number_format($data->Bank,0,'.','.'); ?></a> </li> <?php } if(isset($_SESSION['user']) && ($data->name) == Config::getData('users','name',$_SESSION['user'])) { ?> <li class="list-group-item"> <?php $nrz = 0; $countz = 0; $q = Config::$g_con->prepare('SELECT * FROM `timeplayed` WHERE `pid` = ?'); $q->execute(array(Config::getID('users','id',Config::$_url[1]))); while($row = $q->fetch(PDO::FETCH_OBJ)) if($row->unixtime) { $now = time(); // or your date as well $your_date = $row->unixtime; $datediff = $now - $your_date; $countz = floor($datediff / (60*60*24) ); if($countz <= 7) $nrz+=$row->time; } $nrz/=3600; ?> <b>Last 7 days activity</b> <a class="pull-right"><?php echo number_format($nrz, 2, '.', ''); ?> hours</a> </li> <?php } if(isset($_SESSION['user'])&& ($data->name) != Config::getData('users','name',$_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) > 1) { ?> <li class="list-group-item"> <?php $nrz = 0; $countz = 0; $q = Config::$g_con->prepare('SELECT * FROM `timeplayed` WHERE `pid` = ?'); $q->execute(array(Config::getID('users','id',Config::$_url[1]))); while($row = $q->fetch(PDO::FETCH_OBJ)) if($row->unixtime) { $now = time(); // or your date as well $your_date = $row->unixtime; $datediff = $now - $your_date; $countz = floor($datediff / (60*60*24) ); if($countz <= 7) $nrz+=$row->time; } $nrz/=3600; ?> <b>Last 7 days activity</b> <a class="pull-right"><?php echo number_format($nrz, 2, '.', ''); ?> hours</a> </li> <?php } ?> </ul> </tbody> </table> </div> </div> <div class="tab-pane" id="factionhistory"> <div class="box-body table-responsive no-padding"> <table class="table table-striped"> <tbody> <ul class="timeline timeline-danger"> <li class="time-label"> <span class="bg-blue"> <?php echo date("d M Y"); ?> </span> </li> <?php $s = Config::$g_con->prepare('SELECT * FROM `faction_logs` WHERE `player` = ? ORDER BY `id` DESC'); $s->execute(array(Config::getID('users','id',$data->name))); while($flog = $s->fetch(PDO::FETCH_OBJ)) { ?> <?php if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 3){ ?> <?php if($flog->deleted == 1 && isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 3) { ?> <?php } else { ?> <?php } ?> <li> <?php if(strpos($flog->Text, 'is now the leader') == true) echo "<i data-toggle='tooltip' title='joined' class='fa fa-chevron-circle-up bg-green'></i>"; else if(strpos($flog->Text, 'joined the group') == true) echo "<i data-toggle='tooltip' title='joined' class='fa fa-chevron-circle-up bg-green'></i>"; else echo "<i data-toggle='tooltip' title='uninvited' class='fa fa-chevron-circle-down bg-red'></i>"; ?> <div class="timeline-item"> <span class="time"><i class="fa fa-clock-o"></i> <?php echo $flog->time; ?></span> <div class="timeline-body"> <?php echo $flog->Text; ?> <?php if(isset($_SESSION['user']) && Config::getData('users','Admin',$_SESSION['user']) >= 3) { ?> <a href="<?php echo Config::$_PAGE_URL; ?>editfh/<?php echo $flog->id; ?>" class="ace-icon fa fa-edit" title="Edit FH"></a> </div> </div> </li> <?php } ?> <?php } else { ?> <?php if($flog->deleted == 0) { ?> <li> <?php if(strpos($flog->Text, 'is now the leader') == true) echo "<i data-toggle='tooltip' title='joined' class='fa fa-chevron-circle-up bg-green'></i>"; else if(strpos($flog->Text, 'joined the group') == true) echo "<i data-toggle='tooltip' title='joined' class='fa fa-chevron-circle-up bg-green'></i>"; else echo "<i data-toggle='tooltip' title='uninvited' class='fa fa-chevron-circle-down bg-red'></i>"; ?> <div class="timeline-item"> <span class="time"><i class="fa fa-clock-o"></i> <?php echo $flog->time; ?></span> <div class="timeline-body"> <?php echo $flog->Text; ?> </div> </div> </li> <?php } ?> <?php } ?> <?php } ?> <li> <i data-toggle="tooltip" title="<?php $date = date_create(Config::getData('users','RegisterDate',$_SESSION['user'])); echo date_format($date, 'd M Y'); ?>" class="fa fa-clock-o bg-gray"> </i> </li> </ul> </tbody> </table> </div> </div> <div class="tab-pane" id="properties"> <div class="box-body"> <div class="info-box"> <br><left><span class="info-box-number"><small> <?php if($user != Config::getData('houses','Owner',$data->House)) { if(isset($_SESSION['user']) && (Config::getData('users','name',$_SESSION['user']) == $user)) echo 'You don\'t have a house.'; else echo 'This user doesn\'t have a house.'; } else { $s = Config::$g_con->prepare('SELECT * FROM `houses` WHERE `Owner` = ?'); $s->execute(array($data->name)); while($house = $s->fetch(PDO::FETCH_OBJ)) { ?> <div class="box box-primary" id="newboxstyle"> <div class="box-header"> <h3 class="box-title"> House </h3> </div> <div class="box-body table-responsive"> <table class="table table-condensed table-hover"> <thead> <tr> <td>#ID</td> <td>Rent</td> <td>Price</td> <td>Type</td> <td>Options</td> </tr> </thead> <tbody> <tr> <td><b><?php echo $house->ID ?></b></td> <td><b>$<?php echo number_format($house->Rent,0,'.','.') ?></b></td> <td><b><?php if($house->Owned==0) { ?>$<?php echo number_format($row->Value,0,'.','.') ?><?php }?> <?php if($house->Owned==1) { ?>Not for sale<?php }?></b></td> <td><b><?php if($house->InteriorType==0) { ?>Small<?php }?> <?php if($house->InteriorType==1) { ?>Medium<?php }?> <?php if($house->InteriorType==2) { ?>Big<?php }?></b></td> <td><a href="#" type="button" data-toggle="modal" data-target="#modal<?php echo $house->ID ?>">Display on map</a> <div id="modal<?php echo $house->ID ?>" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <center><h2 class="modal-title">House <?php echo $house->ID ?></h2></center> </div> <div class="modal-body"> <center><img src="<?php echo Config::$_PAGE_URL; ?>map?x=<?php echo $house->Entrancex ?>&y=<?php echo $house->Entrancey ?>" alt="Smiley face" height="500" width="550"></center> </div> <div class="modal-footer"> <center><button type="button" class="btn btn-primary" data-dismiss="modal">Close</button></center> </div> </div> </div> </div></td> </tr> </tbody> </table> </div> </div> <?php }}?> </small></span></center> </div> <div class=""> <div class="info-box"> <div class = ""> <?php if($data->Bizz == 255) { if(isset($_SESSION['user']) && (Config::getData('users','name',$_SESSION['user']) == $user)) echo '<b>You don\'t have a business.</b>'; else echo '<b>This user doesn\'t have a business.</b>'; } else { $s = Config::$g_con->prepare('SELECT * FROM `bizz` WHERE `Owner` = ?'); $s->execute(array($data->name)); while($bizz = $s->fetch(PDO::FETCH_OBJ)) { ?> <b><div class="box box-primary"> <div class="box-header"> <h3 class="box-title"> Business </h3> </div> <div class="box-body table-responsive"> <table class="table table-condensed table-hover"> <thead> <tr> <td>#ID</td> <td>Fee</td> <td>Price</td> <td>Options</td> </tr> </thead> <tbody> <tr> <td><b><?php echo $bizz->ID ?></b></td> <td><b>$<?php echo number_format($bizz->EntranceCost,0,'.','.') ?></b></td> <td><b><?php echo $bizz->BuyPrice ?></b></td> <td><a href="#" type="button" data-toggle="modal" data-target="#modalb<?php echo $bizz->ID ?>">Display on map</a> <div id="modalb<?php echo $bizz->ID ?>" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content" id="clan_descedit"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <center> <h2 class="modal-title">House <?php echo $bizz->ID ?></h2> </center> </div> <div class="modal-body"> <center><img src="<?php echo Config::$_PAGE_URL; ?>map?x=<?php echo $bizz->EntranceX ?>&y=<?php echo $bizz->EntranceY ?>" alt="Smiley face" height="500" width="550"></center> </div> <div class="modal-footer"> <center><button type="button" class="btn btn-primary" data-dismiss="modal">Close</button></center> </div> </div> </div> </div></td> </tr> </tbody> </table> </div> <center></center> </div></b> <?php } } ?> </div> </div> </div> </div> </div> <div class="tab-pane" id="vehicles"> <div class="box-body table-responsive no-padding"> <table class="table table-striped"> <tbody> <?php $q = Config::$g_con->prepare('SELECT * FROM `cars` WHERE `Owner` = ? AND `Active` = 1'); $q->execute(array($data->name)); if(!$q->rowCount()) { if(!isset($_SESSION['user'])) echo '<p>This user has no vehicles.</p>'; else if(isset($_SESSION['user']) && ($_SESSION['user'] === $user)) echo '<p>You have no vehicles.</p>'; else echo '<p>No personal vehicles owned.</p>'; } else { echo ' <table class="table table-striped"> <thead> <tr> <th>Image</th> <th class="hidden-480">Vehicle Name</th> <th class="hidden-100">Age</th> <th class="hidden-100">Odometer</th> <th class="hidden-100">Colours</th> <th class="center">Neon</th> <th class="center">Options</th> </tr> </thead> <tbody>'; $s = Config::$g_con->prepare('SELECT * FROM `cars` WHERE `Owner` = ? AND `Active` = 1'); $s->execute(array($data->name)); while($car = $s->fetch(PDO::FETCH_OBJ)) { ?> <?php if($car->VIP >= 1) { ?> <tr class="danger"> <?php } else { ?> <tr> <?php } ?> <td class="center"> <img src="<?php echo Config::$_PAGE_URL ?>assets/images/vehicles/Vehicle_<?php echo $car->Model ?>.jpg" alt="490" style="height: 65px"/> </td> <td> <?php echo Config::$namevehicles[$car->Model]; ?> (ID: <?php echo $car->ID ?>) <?php if($car->VIP >=1) { ?> <p> <br> <b class="text-warning">VIP</b> <br> <?php if(!is_null($car->VipText)) { ?> Text: <?php echo $car->VipText;?> <?php } } ?> </td> <td> <?php $then = gmdate("Y-m-d", $car->BuyTime); $then = strtotime($then); $now = time(); $difference = $now - $then; $days = floor($difference / (60*60*24) ); echo $days; ?> days </td> <td> <?php echo number_format($car->KM,0,'.','.') ?> km </td> <td> <i class="fa fa-square" style="color: <?php echo Config::$vehColors[$car->ColorOne] ?>; font-weight: bold;" data-toggle="tooltip" title="<?php echo $car->ColorOne ?>"></i> <i class="fa fa-square" style="color: <?php echo Config::$vehColors[$car->ColorTwo] ?>; font-weight: bold;" data-toggle="tooltip" title="<?php echo $car->ColorTwo ?>"></i> </td> <td> <?php if($car->Neon == 1) echo "<font color='E02121'>red</font>"; else if($car->Neon == 2) echo "<font color='28E128'>green</font>"; else if($car->Neon == 3) echo "<font color='DCE617'>yellow</font>"; else if($car->Neon == 4) echo "<font color='E617CA'>pink</font>"; else if($car->Neon == 5) echo "<font color='1E5EE0'>blue</font>"; else echo "none"; ?> <?php ?> </td> <td> <a href="#" type="button" data-toggle="modal" data-target="#modalv<?php echo $car->ID ?>">display on map</a> <div id="modalv<?php echo $car->ID ?>" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content" id="clan_descedit"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h2 class="modal-title"> <center><?php echo Config::$namevehicles[$car->Model]; ?> (ID: <?php echo $car->ID ?>) location</center> </h2> </div> <div class="modal-body"> <center> <img src="<?php echo Config::$_PAGE_URL; ?>map?x=<?php echo $car->Locationx ?>&y=<?php echo $car->Locationy ?>" alt="Smiley face" height="550" width="500"> </center> </div> <div class="modal-footer"> <center><button type="button" class="btn btn-primary" data-dismiss="modal">Close</button></center> </div> </div> </div> </div><br> </td> </tr> <?php } echo ' </tbody> </table>'; } ?> </tbody> </table> </div> </div> <div class="tab-pane" id="admintools"> <div class="box-body table-responsive no-padding"> <table class="table table-striped"> <tbody> <ul> <div class="box box-primary" id="newboxstyle"> <div class="box-header"> <h3 class="box-title"> Actions </h3> </div> <form method="POST" action="" disabled> <div class="box-body table-responsive"> <div class="col-sm-5"> Reason: <br/> <input name="reason" type="text" class="col-xs-10 col-sm-10" /> </div> <div class="col-sm-5"> Time: <br/> <input name="duration" type="text" class="col-xs-10 col-sm-10" /> </div> <div class="col-sm-10"><br /> Time 0 pentru permanent<br /> Tip:<br> <select name="banip" class="col-xs-10 col-sm-10"> <option value="0">Cont</option> <option value="1">IP</option> </select> </div> <div class="col-sm-10"><br /> <input type="submit" name="warn" class="btn btn-small btn-purple" value="warn"/> <input type="submit" name="ban" class="btn btn-small btn-danger" value="ban"/> <input type="submit" name="mute" class="btn btn-small btn-grey" value="mute"/> <input type="submit" name="jail" class="btn btn-small btn-pink" value="jail"/> <input type="submit" name="panelblock" class="btn btn-small btn-pink" value="panel suspend"/> </div> </div> </form> <li><a href="<?php echo Config::$_PAGE_URL;?>playerlogs/<?php echo Config::$_url[1];?>">View player logs</a><br> <li><a href="<?php echo Config::$_PAGE_URL;?>removesuspend/<?php echo Config::$_url[1];?>">remove suspend</a> (only player is suspended, abuse of this function is sanctionated)<br> <li><a href="<?php echo Config::$_PAGE_URL;?>unbanp/<?php echo Config::$_url[1];?>">unban</a> (only player is banned, abuse of this function is sanctionated)<br> <li><a href="<?php echo Config::$_PAGE_URL;?>kick/<?php echo Config::$_url[1];?>">kick</a> </div> </ul> </tbody> </table> </div> </div> <div class="tab-pane" id="ppunish"> <div class="box box-primary" id="newboxstyle"> <div class="box-header"> <h3 class="box-title"> Punish logs </h3> </div> <div class="box-body table-responsive"> <table class="table table-condensed table-hover"> <thead> <tr> <td>ID SQL</td> <td>Action</td> <td>Admin</td> <td>Reason</td> <td>Time</td> </tr> </thead> <tbody> <tr> <?php $q = Config::$g_con->prepare('SELECT * FROM `punishlogs` WHERE `playername` = ? ORDER BY `id` DESC'); $q->execute(array($data->name)); while($row = $q->fetch(PDO::FETCH_OBJ)) { echo "<tr> <td>{$row->id}</td>";?> <td> <?php if($row->actionid==2) { ?> ban <?php } ?> <?php if($row->actionid==1) { ?> permanent ban <?php } ?> <?php if($row->actionid==6) { ?> jail <?php } ?> <?php if($row->actionid==5) { ?> warn <?php } ?> <?php if($row->actionid==7) { ?> mute <?php } ?> <?php if($row->actionid==8) { ?> relase jail <?php } ?> <?php if($row->actionid==3) { ?> permanent ban IP <?php } ?> <?php if($row->actionid==4) { ?> ban IP <?php } ?> </td> <?php echo" <td><a href='".Config::$_PAGE_URL.'profile/'.$row->givername."'>{$row->givername}</a></td> <td>{$row->reason}</td> <td>{$row->time}</td> <td>"; } ?> </tr> </tbody> </table> </div> <center></center> </div> </div> <div class="tab-pane" id="piplogs"> <div class="box box-primary" id="newboxstyle"> <div class="box-header"> <h3 class="box-title"> IP logs </h3> </div> <div class="box-body table-responsive"> <table class="table table-condensed table-hover"> <thead> <tr> <td>ID Sesiune</td> <td>IP</td> <td>Time</td> </tr> </thead> <tbody> <?php $q = Config::$g_con->prepare('SELECT * FROM `playerconnections` WHERE `playerid` = ? ORDER BY `id` DESC LIMIT 20'); $q->execute(array($data->id)); while($row = $q->fetch(PDO::FETCH_OBJ)) { echo "<tr> <td>{$row->id}</td> <td>{$row->ip}</td> <td>{$row->time2}</td> <td>"; } ?> </tbody> </table> </div> <center></center> </div> </div> </div> </div> </div> </div> </section>
-
astea-s toate, de cand am intrat in panel si logat. https://pastebin.com/ZmJQPvRx
-
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.
-
ty
-
up
-
thx
-
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..
-
UP
-
= <
-
test
-
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)
-
Cer T/C rezolvat. Multumesc din suflet s0nyx.
-
Username: DarkWind Problema: logare parola Imagini/Videoclipuri cu problema -: Cod sursă: <title>Login - <?php echo Config::$_SITE_NAME; ?></title> </div> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs" id="breadcrumbs"> <script type="text/javascript"> try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){} </script> <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">Login page</li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form method="POST" action="<?php echo Config::$_PAGE_URL; ?>search"> <span class="input-icon"> <input type="text" placeholder="Search ..." name="sname" id="username" type="submit" class="nav-search-input" autocomplete="on"> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div> <!-- /.nav-search --> </div> <div class="page-content"> <div class="row-fluid"> <div class="span12"> <?php if(!defined('panel')) die('Nope.'); if(isset($_SESSION['user'])) echo '<script> location.replace("'.Config::$_PAGE_URL.'"); </script>'; if(isset($_POST['submit'])) { if(!$_POST['username_'] || !$_POST['password_']) { echo '<div class="alert alert-block alert-danger"><button type="button" class="close" data-dismiss="alert"><i class="ace-icon fa fa-times"></i></button>Complete all fields.</div>'; } else { $q = Config::$g_con->prepare('SELECT * FROM `users` WHERE `name` = ? AND `password` = ?'); $q->execute(array($_POST['username_'],$_POST['password_'])); if($q->rowCount()) { $d = Config::$g_con->prepare('SELECT * FROM `panel_restrict` WHERE `PlayerName` = ?'); $d->execute(array($_POST['username_'])); $row1 = $d->fetch(PDO::FETCH_OBJ); if($d->rowCount() && date("Y-m-d H:i:s") <= gmdate("Y-m-d H:i:s", $row1->Time)) { if($row1->Permanent == 1) { $expira = "<b>permanent</b>"; } else { $expira = "pana la data de <b>". gmdate("Y-m-d H:i:s", $row1->Time) ."</b>"; } echo '<div class="alert alert-block alert-danger"> Contul tau este suspendat '.$expira.'.<br /> Motiv: <b>'.$row1->Reason.'</b><br /> Banat pe data de <b>'.$row1->BanTimeDate.'</b></div>'; } else { $dele = Config::$g_con->prepare("DELETE FROM panel_restrict WHERE PlayerName = ?"); $dele->execute(array($_POST['username_'])); $row = $q->fetch(PDO::FETCH_OBJ); $_SESSION['user'] = $row->id; echo '<script> location.replace("'.Config::$_PAGE_URL.'"); </script>'; //setcookie ("user",$_POST['username_'],time()+3600*24*60); //setcookie ("password",$_POST['password_'],time()+3600*24*60); //header ('Location: ' . $_PAGE_URL); } } else echo '<div class="alert alert-block alert-danger"><button type="button" class="close" data-dismiss="alert"><i class="ace-icon fa fa-times"></i></button>Invalid username or password.</div>'; } } ?> <center> <h3>UltraWhite RPG : Login</h2> <form method="post" action=""> <br /> Username:<br> <input type="text" name="username_"/><br/> <br>Password:<br> <input type="password" name="password_"/><br/> <br> <input type="submit" name="submit" value="login" class="btn btn-inverse"> </form> <br/> Forgot your password? Click <a href="<?php echo Config::$_PAGE_URL; ?>recover">here</a>! </center> <br/><br/> Alte detalii: Salut, cum pot face cand ma loghez in panel sa ma pot loga cu parola md5 ca in baza de date asa se insereaza parolele in md5 si in panel trb sa ma loghez cum e in baza de date de ex "B008708SWWTWTT" ..
-
thx
-
mz
-
k
-
hmm
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.