mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-29 14:02:24 +00:00 
			
		
		
		
	Clean up
This commit is contained in:
		
							parent
							
								
									0b614070ab
								
							
						
					
					
						commit
						5e9b22465c
					
				
							
								
								
									
										20
									
								
								.idea/inspectionProfiles/Project_Default.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.idea/inspectionProfiles/Project_Default.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| <component name="InspectionProjectProfileManager"> | ||||
|   <profile version="1.0" is_locked="false"> | ||||
|     <option name="myName" value="Project Default" /> | ||||
|     <option name="myLocal" value="false" /> | ||||
|     <inspection_tool class="FieldMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" /> | ||||
|     <inspection_tool class="InnerClassMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" /> | ||||
|     <inspection_tool class="KeySetIterationMayUseEntrySet" enabled="true" level="WARNING" enabled_by_default="true" /> | ||||
|     <inspection_tool class="LengthOneStringInIndexOf" enabled="true" level="WARNING" enabled_by_default="true" /> | ||||
|     <inspection_tool class="LengthOneStringsInConcatenation" enabled="true" level="WARNING" enabled_by_default="true" /> | ||||
|     <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> | ||||
|       <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> | ||||
|       <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" /> | ||||
|     </inspection_tool> | ||||
|     <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false"> | ||||
|       <option name="processCode" value="true" /> | ||||
|       <option name="processLiterals" value="true" /> | ||||
|       <option name="processComments" value="true" /> | ||||
|     </inspection_tool> | ||||
|   </profile> | ||||
| </component> | ||||
							
								
								
									
										7
									
								
								.idea/inspectionProfiles/profiles_settings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.idea/inspectionProfiles/profiles_settings.xml
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| <component name="InspectionProjectProfileManager"> | ||||
|   <settings> | ||||
|     <option name="PROJECT_PROFILE" /> | ||||
|     <option name="USE_PROJECT_PROFILE" value="false" /> | ||||
|     <version value="1.0" /> | ||||
|   </settings> | ||||
| </component> | ||||
							
								
								
									
										124
									
								
								bans.php
									
									
									
									
									
								
							
							
						
						
									
										124
									
								
								bans.php
									
									
									
									
									
								
							| @ -1,74 +1,84 @@ | ||||
| <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/header.php'; ?>
 | ||||
|   <head> | ||||
| <head> | ||||
|     <title>Bans/Tempbans - <?php echo $name; ?></title>
 | ||||
|   </head> | ||||
| </head> | ||||
| <?php | ||||
| // <<-----------------mysql Database Connection------------>> //
 | ||||
| require 'includes/data/database.php'; | ||||
| 
 | ||||
| $sql = 'SELECT name, reason, banner, time, expires FROM bans ORDER BY time DESC LIMIT 20'; | ||||
| 
 | ||||
| $retval = mysql_query( $sql, $conn ); | ||||
| if(! $retval ) | ||||
| { | ||||
|   die('Could not get data: ' . mysql_error( $sql, $conn )); | ||||
| $retval = mysql_query($sql, $conn); | ||||
| if (!$retval) { | ||||
|     die('Could not get data: ' . mysql_error($sql, $conn)); | ||||
| } | ||||
| ?>
 | ||||
|   <body> | ||||
|     <div class="container"> | ||||
|       <!-- Example row of columns --> | ||||
|       <div class="row"> | ||||
| <body> | ||||
| <div class="container"> | ||||
|     <!-- Example row of columns --> | ||||
|     <div class="row"> | ||||
| 
 | ||||
|         <div class="col-lg-12"> | ||||
|           <h1 class="page-header">Bans</h1> | ||||
|           <ol class="breadcrumb"> | ||||
|             <li><a href="index">Home</a></li> | ||||
|             <li class="active">Bans</li> | ||||
|           </ol> | ||||
|             <h1 class="page-header">Bans</h1> | ||||
|             <ol class="breadcrumb"> | ||||
|                 <li><a href="index.php">Home</a></li> | ||||
|                 <li class="active">Bans</li> | ||||
|             </ol> | ||||
|         </div> | ||||
| 
 | ||||
|       </div> | ||||
|       <div class="row" style="margin-bottom:60px;"> | ||||
|     </div> | ||||
|     <div class="row" style="margin-bottom:60px;"> | ||||
|         <div class="col-lg-12"> | ||||
| 						<table class="table table-hover table-bordered table-condensed"> | ||||
| 							<thead> | ||||
| 							<tr> | ||||
| 								<th><center>Name</center></th> | ||||
| 								<th><center>Banned By</center></th> | ||||
| 								<th><center>Reason</center></th> | ||||
| 								<th><center>Banned On</center></th> | ||||
| 								<th><center>Banned Until</center></th> | ||||
| 							</tr> | ||||
| 							</thead> | ||||
| 							<tbody> | ||||
| 							        <?php while($row = mysql_fetch_assoc($retval)) {  | ||||
| 									// <<-----------------Ban Date Converter------------>> //
 | ||||
| 									$timeEpoch = $row['time']; | ||||
| 									$timeConvert = $timeEpoch / 1000; | ||||
| 									$timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
| 									// <<-----------------Expiration Time Converter------------>> //
 | ||||
| 									$expiresEpoch = $row['expires']; | ||||
| 									$expiresConvert = $expiresEpoch / 1000; | ||||
| 									$expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
| 									?>
 | ||||
| 							<tr> | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name'];?></td>
 | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner'];?></td>
 | ||||
| 								<td style="width: 30%;"><?php echo $row['reason'];?></td>
 | ||||
| 								<td><?php echo $timeResult;?></td>
 | ||||
| 								<td><?php if($row['expires'] == 0) { | ||||
| 								echo 'Permanent Ban'; | ||||
| 								} else { | ||||
| 								echo $expiresResult; }?></td>
 | ||||
| 							</tr> | ||||
| <?php } | ||||
| mysql_close($conn); | ||||
| echo "</tbody></table>"; | ||||
| ?>
 | ||||
|  </div> | ||||
| </div> | ||||
| <?php | ||||
| include 'includes/footer.php'; | ||||
| ?>
 | ||||
|             <table class="table table-hover table-bordered table-condensed"> | ||||
|                 <thead> | ||||
|                 <tr> | ||||
|                     <th> | ||||
|                         <div style="text-align: center;">Name</div> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <div style="text-align: center;">Banned By</div> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <div style="text-align: center;">Reason</div> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <div style="text-align: center;">Banned On</div> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <div style="text-align: center;">Banned Until</div> | ||||
|                     </th> | ||||
|                 </tr> | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php while ($row = mysql_fetch_assoc($retval)) { | ||||
|                     // <<-----------------Ban Date Converter------------>> //
 | ||||
|                     $timeEpoch = $row['time']; | ||||
|                     $timeConvert = $timeEpoch / 1000; | ||||
|                     $timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
|                     // <<-----------------Expiration Time Converter------------>> //
 | ||||
|                     $expiresEpoch = $row['expires']; | ||||
|                     $expiresConvert = $expiresEpoch / 1000; | ||||
|                     $expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
|                     ?>
 | ||||
|                     <tr> | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name']; ?></td>
 | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner']; ?></td>
 | ||||
|                         <td style="width: 30%;"><?php echo $row['reason']; ?></td>
 | ||||
|                         <td><?php echo $timeResult; ?></td>
 | ||||
|                         <td><?php if ($row['expires'] <= 0) { | ||||
|                                 echo 'Permanent Ban'; | ||||
|                             } else { | ||||
|                                 echo $expiresResult; | ||||
|                             } ?></td>
 | ||||
|                     </tr> | ||||
|                 <?php } | ||||
|                 mysql_close($conn); | ||||
|                 echo "</tbody></table>"; | ||||
|                 ?>
 | ||||
|         </div> | ||||
|     </div> | ||||
|     <?php | ||||
|     include 'includes/footer.php'; | ||||
|     ?>
 | ||||
| </div> | ||||
							
								
								
									
										8126
									
								
								includes/css/bootstrap.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8126
									
								
								includes/css/bootstrap.css
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -1,3 +1,3 @@ | ||||
| body { | ||||
|   padding-top: 70px; | ||||
|     padding-top: 70px; | ||||
| } | ||||
|  | ||||
| @ -3,9 +3,8 @@ $dbhost = 'localhost'; | ||||
| $dbuser = 'root'; | ||||
| $dbpass = 'password'; | ||||
| $conn = mysql_connect($dbhost, $dbuser, $dbpass); | ||||
| if(! $conn ) | ||||
| { | ||||
|   die('Could not connect: ' . mysql_error()); | ||||
| if (!$conn) { | ||||
|     die('Could not connect: ' . mysql_error()); | ||||
| } | ||||
| mysql_select_db('maxbans'); | ||||
| ?>
 | ||||
| @ -1,46 +1,54 @@ | ||||
| <?php | ||||
|   $data = json_decode( file_get_contents('http://mcapi.ca/v2/query/info/?ip=' .$serverip ), true); | ||||
| $data = json_decode(file_get_contents('http://mcapi.ca/v2/query/info/?ip=' . $serverip), true); | ||||
| ?>
 | ||||
|     <div class="navbar navbar-default navbar-fixed-bottom" role="navigation"> | ||||
|       <div class="container"> | ||||
| <div class="navbar navbar-default navbar-fixed-bottom" role="navigation"> | ||||
|     <div class="container"> | ||||
|         <div class="navbar-header"> | ||||
|           <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||||
|             <span class="sr-only">Toggle navigation</span> | ||||
|             <span class="icon-bar"></span> | ||||
|             <span class="icon-bar"></span> | ||||
|             <span class="icon-bar"></span> | ||||
|           </button> | ||||
|          <p class="navbar-text" style="font-size:15px;color:white;">© <a href="http://dev.bukkit.org/profiles/netherfoam/" target="_blank">Plugin Creator</a> | <a href="http://dev.bukkit.org/profiles/YiveMe" target="_blank">PHP Script Creator</a></p> | ||||
|             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||||
|                 <span class="sr-only">Toggle navigation</span> | ||||
|                 <span class="icon-bar"></span> | ||||
|                 <span class="icon-bar"></span> | ||||
|                 <span class="icon-bar"></span> | ||||
|             </button> | ||||
|             <p class="navbar-text" style="font-size:15px;color:white;">© <a | ||||
|                     href="http://dev.bukkit.org/profiles/netherfoam/" target="_blank">Plugin Creator</a> | <a | ||||
|                     href="http://dev.bukkit.org/profiles/YiveMe" target="_blank">PHP Script Creator</a></p> | ||||
|         </div> | ||||
|         <div class="navbar-collapse collapse"> | ||||
|           <ul class="nav navbar-nav navbar-right"> | ||||
| 			 <p class="navbar-text" style="color:white;"><?php echo 'Players: ' . $data['players']['online'] . '/' . $data['players']['max']; ?> </p>
 | ||||
|           </ul> | ||||
|             <ul class="nav navbar-nav navbar-right"> | ||||
|                 <p class="navbar-text" | ||||
|                    style="color:white;"><?php echo 'Players: ' . $data['players']['online'] . '/' . $data['players']['max']; ?> </p>
 | ||||
|             </ul> | ||||
|         </div> | ||||
|       </div> | ||||
|     </div> | ||||
| <div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="aboutlabel" aria-hidden="true"> | ||||
|   <div class="modal-dialog"> | ||||
|     <div class="modal-content"> | ||||
|       <div class="modal-header"> | ||||
|         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|         <h4 class="modal-title" id="aboutlabel">About Script</h4> | ||||
|       </div> | ||||
|       <div class="modal-body"> | ||||
| <div class="well well-sm"> | ||||
|     <h4>Credits</h4> | ||||
|     <p><a href="http://dev.bukkit.org/profiles/netherfoam/" target="_blank">netherfoam - Plugin Developer</a> | ||||
| 	<br/> | ||||
| 	<a href="http://twitter.com/ItsYive" target="_blank">Yive - PHP Developer</a> | ||||
| 	<br/> | ||||
| 	<a href="https://twitter.com/boboman_13" target="_blank">boboman_13 - Helped with censoring IPs</a> | ||||
| </div> | ||||
|       </div> | ||||
|       <div class="modal-footer"> | ||||
|         <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> | ||||
|       </div> | ||||
|     </div><!-- /.modal-content --> | ||||
|   </div><!-- /.modal-dialog --> | ||||
| <div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="aboutlabel" aria-hidden="true"> | ||||
|     <div class="modal-dialog"> | ||||
|         <div class="modal-content"> | ||||
|             <div class="modal-header"> | ||||
|                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||||
|                 <h4 class="modal-title" id="aboutlabel">About Script</h4> | ||||
|             </div> | ||||
|             <div class="modal-body"> | ||||
|                 <div class="well well-sm"> | ||||
|                     <h4>Credits</h4> | ||||
| 
 | ||||
|                     <p><a href="http://dev.bukkit.org/profiles/netherfoam/" target="_blank">netherfoam - Plugin | ||||
|                             Developer</a> | ||||
|                         <br/> | ||||
|                         <a href="http://twitter.com/ItsYive" target="_blank">Yive - PHP Developer</a> | ||||
|                         <br/> | ||||
|                         <a href="https://twitter.com/boboman_13" target="_blank">boboman_13 - Helped with censoring | ||||
|                             IPs</a> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="modal-footer"> | ||||
|                 <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> | ||||
|             </div> | ||||
|         </div> | ||||
|         <!-- /.modal-content --> | ||||
|     </div> | ||||
|     <!-- /.modal-dialog --> | ||||
| </div><!-- /.modal --> | ||||
|     <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> | ||||
|     <script src="includes/js/bootstrap.min.js"></script> | ||||
| <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> | ||||
| <script src="includes/js/bootstrap.min.js"></script> | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| <?php | ||||
| include 'includes/data/settings.php'; | ||||
| ?>
 | ||||
|   <head> | ||||
| <head> | ||||
|     <meta charset="utf-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|     <meta name="description" content=""> | ||||
| @ -9,7 +9,9 @@ include 'includes/data/settings.php'; | ||||
|     <link rel="shortcut icon" href="includes/img/minecraft.ico"> | ||||
|     <link href="includes/css/bootstrap.css" rel="stylesheet"> | ||||
|     <link href="includes/css/navbar-fixed-top.css" rel="stylesheet"> | ||||
| 	<style> | ||||
| 	html { background-image: url('includes/img/377759.png'); } | ||||
| 	</style> | ||||
|   </head> | ||||
|     <style> | ||||
|         html { | ||||
|             background-image: url('includes/img/377759.png'); | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
| @ -1,28 +1,28 @@ | ||||
|     <div class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||||
|       <div class="container"> | ||||
| <div class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||||
|     <div class="container"> | ||||
|         <div class="navbar-header"> | ||||
|           <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||||
|             <span class="sr-only">Toggle navigation</span> | ||||
|             <span class="icon-bar"></span> | ||||
|             <span class="icon-bar"></span> | ||||
|             <span class="icon-bar"></span> | ||||
|           </button> | ||||
|           <a class="navbar-brand" href="#"><?php echo $name; ?></a>
 | ||||
|             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||||
|                 <span class="sr-only">Toggle navigation</span> | ||||
|                 <span class="icon-bar"></span> | ||||
|                 <span class="icon-bar"></span> | ||||
|                 <span class="icon-bar"></span> | ||||
|             </button> | ||||
|             <a class="navbar-brand" href="#"><?php echo $name; ?></a>
 | ||||
|         </div> | ||||
|         <div class="navbar-collapse collapse"> | ||||
|           <ul class="nav navbar-nav"> | ||||
|             <li><a href="index">Home</a></li> | ||||
|             <li><a data-toggle="modal" data-target="#about">About</a></li> | ||||
|             <li class="dropdown"> | ||||
|               <a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <b class="caret"></b></a> | ||||
|               <ul class="dropdown-menu"> | ||||
|                 <li><a href="bans">Bans</a></li> | ||||
|                 <li><a href="mutes">Mutes</a></li> | ||||
|                 <li><a href="ipbans">IP Bans</a></li> | ||||
|                 <li><a href="warnings">Warnings</a></li> | ||||
|               </ul> | ||||
|             </li> | ||||
|           </ul> | ||||
|             <ul class="nav navbar-nav"> | ||||
|                 <li><a href="index">Home</a></li> | ||||
|                 <li><a data-toggle="modal" data-target="#about">About</a></li> | ||||
|                 <li class="dropdown"> | ||||
|                     <a href="#" class="dropdown-toggle" data-toggle="dropdown">Categories <b class="caret"></b></a> | ||||
|                     <ul class="dropdown-menu"> | ||||
|                         <li><a href="bans">Bans</a></li> | ||||
|                         <li><a href="mutes">Mutes</a></li> | ||||
|                         <li><a href="ipbans">IP Bans</a></li> | ||||
|                         <li><a href="warnings">Warnings</a></li> | ||||
|                     </ul> | ||||
|                 </li> | ||||
|             </ul> | ||||
|         </div> | ||||
|       </div> | ||||
|     </div> | ||||
| </div> | ||||
							
								
								
									
										2928
									
								
								includes/js/bootstrap.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2928
									
								
								includes/js/bootstrap.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										599
									
								
								includes/js/bootstrap.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										599
									
								
								includes/js/bootstrap.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										22
									
								
								index.php
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								index.php
									
									
									
									
									
								
							| @ -1,19 +1,21 @@ | ||||
|  <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/header.php'; ?>
 | ||||
|  <head> | ||||
| <head> | ||||
|     <title>Index - <?php echo $name; ?></title>
 | ||||
|   </head> | ||||
|   <body> | ||||
| </head> | ||||
| <body> | ||||
| 
 | ||||
|     <div class="container"> | ||||
| <div class="container"> | ||||
| 
 | ||||
|       <!-- Main Page --> | ||||
|       <div class="jumbotron"> | ||||
|     <!-- Main Page --> | ||||
|     <div class="jumbotron"> | ||||
|         <h1>Welcome to <?php echo $name; ?>'s Ban List</h1>
 | ||||
|         <p>Here is where our Bans, IP-Bans, Mutes & Warnings are listed.</p> | ||||
|       </div> | ||||
| 
 | ||||
|     </div> <!-- /container --> | ||||
|         <p>Here is where our Bans, IP-Bans, Mutes & Warnings are listed.</p> | ||||
|     </div> | ||||
| 
 | ||||
| </div> | ||||
| <!-- /container --> | ||||
| <?php | ||||
| include 'includes/footer.php'; | ||||
| ?>
 | ||||
|  | ||||
							
								
								
									
										146
									
								
								ipbans.php
									
									
									
									
									
								
							
							
						
						
									
										146
									
								
								ipbans.php
									
									
									
									
									
								
							| @ -1,88 +1,98 @@ | ||||
| <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/header.php'; ?>
 | ||||
|   <head> | ||||
| <head> | ||||
|     <title>IP Bans - <?php echo $name; ?></title>
 | ||||
|   </head> | ||||
| </head> | ||||
| <?php | ||||
| // <<-----------------mysql Database Connection------------>> //
 | ||||
| require 'includes/data/database.php'; | ||||
| 
 | ||||
| $sql = 'SELECT ip, reason, banner, time, expires FROM ipbans ORDER BY time DESC LIMIT 20'; | ||||
| 
 | ||||
| $retval = mysql_query( $sql, $conn ); | ||||
| if(! $retval ) | ||||
| { | ||||
|   die('Could not get data: ' . mysql_error()); | ||||
| $retval = mysql_query($sql, $conn); | ||||
| if (!$retval) { | ||||
|     die('Could not get data: ' . mysql_error()); | ||||
| } | ||||
| ?>
 | ||||
|   <body> | ||||
|     <div class="container"> | ||||
|       <!-- Example row of columns --> | ||||
|       <div class="row"> | ||||
| <body> | ||||
| <div class="container"> | ||||
|     <!-- Example row of columns --> | ||||
|     <div class="row"> | ||||
| 
 | ||||
|         <div class="col-lg-12"> | ||||
|           <h1 class="page-header">IP Bans</h1> | ||||
|           <ol class="breadcrumb"> | ||||
|             <li><a href="index">Home</a></li> | ||||
|             <li class="active">IP Bans</li> | ||||
|           </ol> | ||||
|             <h1 class="page-header">IP Bans</h1> | ||||
|             <ol class="breadcrumb"> | ||||
|                 <li><a href="index">Home</a></li> | ||||
|                 <li class="active">IP Bans</li> | ||||
|             </ol> | ||||
|         </div> | ||||
| 
 | ||||
|       </div> | ||||
|       <div class="row" style="margin-bottom:60px;"> | ||||
|     </div> | ||||
|     <div class="row" style="margin-bottom:60px;"> | ||||
|         <div class="col-lg-12"> | ||||
| 						<table class="table table-hover table-bordered table-condensed"> | ||||
| 							<thead> | ||||
| 							<tr> | ||||
| 								<th><center>IP</center></th> | ||||
| 								<th><center>Banned By</center></th> | ||||
| 								<th><center>Reason</center></th> | ||||
| 								<th><center>Banned On</center></th> | ||||
| 								<th><center>Banned Until</center></th> | ||||
| 							</tr> | ||||
| 							</thead> | ||||
| 							<tbody> | ||||
| 							        <?php while($row = mysql_fetch_assoc($retval)) {  | ||||
| 									// <<-----------------Ban Date Converter------------>> //
 | ||||
| 									$timeEpoch = $row['time']; | ||||
| 									$timeConvert = $timeEpoch / 1000; | ||||
| 									$timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
| 									// <<-----------------Expiration Time Converter------------>> //
 | ||||
| 									$expiresEpoch = $row['expires']; | ||||
| 									$expiresConvert = $expiresEpoch / 1000; | ||||
| 									$expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
| 									?>
 | ||||
| 							<tr> | ||||
| 								<td> | ||||
| 								<?php | ||||
| 								$ip = $row['ip']; | ||||
|             <table class="table table-hover table-bordered table-condensed"> | ||||
|                 <thead> | ||||
|                 <tr> | ||||
|                     <th> | ||||
|                         <center>IP</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Banned By</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Reason</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Banned On</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Banned Until</center> | ||||
|                     </th> | ||||
|                 </tr> | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php while ($row = mysql_fetch_assoc($retval)) { | ||||
|                     // <<-----------------Ban Date Converter------------>> //
 | ||||
|                     $timeEpoch = $row['time']; | ||||
|                     $timeConvert = $timeEpoch / 1000; | ||||
|                     $timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
|                     // <<-----------------Expiration Time Converter------------>> //
 | ||||
|                     $expiresEpoch = $row['expires']; | ||||
|                     $expiresConvert = $expiresEpoch / 1000; | ||||
|                     $expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
|                     ?>
 | ||||
|                     <tr> | ||||
|                         <td> | ||||
|                             <?php | ||||
|                             $ip = $row['ip']; | ||||
| 
 | ||||
| 								$array = explode(".", $ip); | ||||
| 								$numbers = $array[0] . "." . $array[1] . "." . $array[2]; | ||||
| 								$numbers .= "."; | ||||
|                             $array = explode(".", $ip); | ||||
|                             $numbers = $array[0] . "." . $array[1] . "." . $array[2]; | ||||
|                             $numbers .= "."; | ||||
| 
 | ||||
| 								for($i = 0; $i < strlen($array[3]); $i++) { | ||||
| 								  $numbers .= "*"; | ||||
| 								} | ||||
|                             for ($i = 0; $i < strlen($array[3]); $i++) { | ||||
|                                 $numbers .= "*"; | ||||
|                             } | ||||
| 
 | ||||
| 								echo $numbers; | ||||
| 								?>
 | ||||
| 								</td> | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner'];?></td>
 | ||||
| 								<td style="width: 30%;"><?php echo $row['reason'];?></td>
 | ||||
| 								<td><?php echo $timeResult;?></td>
 | ||||
| 								<td><?php if($row['expires'] == 0) { | ||||
| 								echo 'Permanent Ban'; | ||||
| 								} else { | ||||
| 								echo $expiresResult; }?></td>
 | ||||
| 							</tr> | ||||
| <?php } | ||||
| mysql_close($conn); | ||||
| echo "</tbody></table>"; | ||||
| ?>
 | ||||
|  </div> | ||||
| </div> | ||||
| <?php | ||||
| include 'includes/footer.php'; | ||||
| ?>
 | ||||
|                             echo $numbers; | ||||
|                             ?>
 | ||||
|                         </td> | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner']; ?></td>
 | ||||
|                         <td style="width: 30%;"><?php echo $row['reason']; ?></td>
 | ||||
|                         <td><?php echo $timeResult; ?></td>
 | ||||
|                         <td><?php if ($row['expires'] == 0) { | ||||
|                                 echo 'Permanent Ban'; | ||||
|                             } else { | ||||
|                                 echo $expiresResult; | ||||
|                             } ?></td>
 | ||||
|                     </tr> | ||||
|                 <?php } | ||||
|                 mysql_close($conn); | ||||
|                 echo "</tbody></table>"; | ||||
|                 ?>
 | ||||
|         </div> | ||||
|     </div> | ||||
|     <?php | ||||
|     include 'includes/footer.php'; | ||||
|     ?>
 | ||||
| </div> | ||||
							
								
								
									
										8
									
								
								litebans-php.iml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								litebans-php.iml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <module type="WEB_MODULE" version="4"> | ||||
|   <component name="NewModuleRootManager" inherit-compiler-output="true"> | ||||
|     <exclude-output /> | ||||
|     <content url="file://$MODULE_DIR$" /> | ||||
|     <orderEntry type="sourceFolder" forTests="false" /> | ||||
|   </component> | ||||
| </module> | ||||
							
								
								
									
										114
									
								
								mutes.php
									
									
									
									
									
								
							
							
						
						
									
										114
									
								
								mutes.php
									
									
									
									
									
								
							| @ -1,74 +1,74 @@ | ||||
| <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/header.php'; ?>
 | ||||
|   <head> | ||||
| <head> | ||||
|     <title>Mutes/TempMutes - <?php echo $name; ?></title>
 | ||||
|   </head> | ||||
| </head> | ||||
| <?php | ||||
| // <<-----------------mysql Database Connection------------>> //
 | ||||
| require 'includes/data/database.php'; | ||||
| 
 | ||||
| $sql = 'SELECT name, reason, muter, time, expires FROM mutes ORDER BY time DESC LIMIT 20'; | ||||
| 
 | ||||
| $retval = mysql_query( $sql, $conn ); | ||||
| if(! $retval ) | ||||
| { | ||||
|   die('Could not get data: ' . mysql_error()); | ||||
| $retval = mysql_query($sql, $conn); | ||||
| if (!$retval) { | ||||
|     die('Could not get data: ' . mysql_error()); | ||||
| } | ||||
| ?>
 | ||||
|   <body> | ||||
|     <div class="container"> | ||||
|       <!-- Example row of columns --> | ||||
|       <div class="row"> | ||||
| <body> | ||||
| <div class="container"> | ||||
|     <!-- Example row of columns --> | ||||
|     <div class="row"> | ||||
| 
 | ||||
|         <div class="col-lg-12"> | ||||
|           <h1 class="page-header">Mutes</h1> | ||||
|           <ol class="breadcrumb"> | ||||
|             <li><a href="index">Home</a></li> | ||||
|             <li class="active">Mutes</li> | ||||
|           </ol> | ||||
|             <h1 class="page-header">Mutes</h1> | ||||
|             <ol class="breadcrumb"> | ||||
|                 <li><a href="index">Home</a></li> | ||||
|                 <li class="active">Mutes</li> | ||||
|             </ol> | ||||
|         </div> | ||||
| 
 | ||||
|       </div> | ||||
|       <div class="row" style="margin-bottom:60px;"> | ||||
|     </div> | ||||
|     <div class="row" style="margin-bottom:60px;"> | ||||
|         <div class="col-lg-12"> | ||||
| 						<table class="table table-hover table-bordered table-condensed"> | ||||
| 							<thead> | ||||
| 							<tr> | ||||
| 								<th><center>Name</center></th> | ||||
| 								<th><center>Muted By</center></th> | ||||
| 								<th><center>Reason</center></th> | ||||
| 								<th><center>Muted On</center></th> | ||||
| 								<th><center>Muted Until</center></th> | ||||
| 							</tr> | ||||
| 							</thead> | ||||
| 							<tbody> | ||||
| 							        <?php while($row = mysql_fetch_assoc($retval)) {  | ||||
| 									// <<-----------------Ban Date Converter------------>> //
 | ||||
| 									$timeEpoch = $row['time']; | ||||
| 									$timeConvert = $timeEpoch / 1000; | ||||
| 									$timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
| 									// <<-----------------Expiration Time Converter------------>> //
 | ||||
| 									$expiresEpoch = $row['expires']; | ||||
| 									$expiresConvert = $expiresEpoch / 1000; | ||||
| 									$expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
| 									?>
 | ||||
| 							<tr> | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name'];?></td>
 | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner'];?></td>
 | ||||
| 								<td style="width: 30%;"><?php echo $row['reason'];?></td>
 | ||||
| 								<td><?php echo $timeResult;?></td>
 | ||||
| 								<td><?php if($row['expires'] == 0) { | ||||
| 								echo 'Permanent Mute'; | ||||
| 								} else { | ||||
| 								echo $expiresResult; }?></td>
 | ||||
| 							</tr> | ||||
| <?php } | ||||
| mysql_close($conn); | ||||
| echo "</tbody></table>"; | ||||
| ?>
 | ||||
|  </div> | ||||
| </div> | ||||
| <?php | ||||
| include 'includes/footer.php'; | ||||
| ?>
 | ||||
|             <table class="table table-hover table-bordered table-condensed"> | ||||
|                 <thead> | ||||
|                 <tr> | ||||
|                     <th style="text-align: center;">Name</th> | ||||
|                     <th style="text-align: center;">Muted By</th> | ||||
|                     <th style="text-align: center;">Reason</th> | ||||
|                     <th style="text-align: center;">Muted On</th> | ||||
|                     <th style="text-align: center;">Muted Until</th> | ||||
|                 </tr> | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php while ($row = mysql_fetch_assoc($retval)) { | ||||
|                     // <<-----------------Ban Date Converter------------>> //
 | ||||
|                     $timeEpoch = $row['time']; | ||||
|                     $timeConvert = $timeEpoch / 1000; | ||||
|                     $timeResult = date('F j, Y, g:i a', $timeConvert); | ||||
|                     // <<-----------------Expiration Time Converter------------>> //
 | ||||
|                     $expiresEpoch = $row['expires']; | ||||
|                     $expiresConvert = $expiresEpoch / 1000; | ||||
|                     $expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
|                     ?>
 | ||||
|                     <tr> | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name']; ?></td>
 | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner']; ?></td>
 | ||||
|                         <td style="width: 30%;"><?php echo $row['reason']; ?></td>
 | ||||
|                         <td><?php echo $timeResult; ?></td>
 | ||||
|                         <td><?php if ($row['expires'] == 0) { | ||||
|                                 echo 'Permanent Mute'; | ||||
|                             } else { | ||||
|                                 echo $expiresResult; | ||||
|                             } ?></td>
 | ||||
|                     </tr> | ||||
|                 <?php } | ||||
|                 mysql_close($conn); | ||||
|                 echo "</tbody></table>"; | ||||
|                 ?>
 | ||||
|         </div> | ||||
|     </div> | ||||
|     <?php | ||||
|     include 'includes/footer.php'; | ||||
|     ?>
 | ||||
| </div> | ||||
							
								
								
									
										110
									
								
								warnings.php
									
									
									
									
									
								
							
							
						
						
									
										110
									
								
								warnings.php
									
									
									
									
									
								
							| @ -1,68 +1,76 @@ | ||||
| <?php include 'includes/head.php'; ?>
 | ||||
| <?php include 'includes/header.php'; ?>
 | ||||
|   <head> | ||||
| <head> | ||||
|     <title>Warnings - <?php echo $name; ?></title>
 | ||||
|   </head> | ||||
| </head> | ||||
| <?php | ||||
| // <<-----------------mysql Database Connection------------>> //
 | ||||
| require 'includes/data/database.php'; | ||||
| 
 | ||||
| $sql = 'SELECT name, reason, banner, expires FROM warnings ORDER BY expires DESC LIMIT 20'; | ||||
| 
 | ||||
| $retval = mysql_query( $sql, $conn ); | ||||
| if(! $retval ) | ||||
| { | ||||
|   die('Could not get data: ' . mysql_error()); | ||||
| $retval = mysql_query($sql, $conn); | ||||
| if (!$retval) { | ||||
|     die('Could not get data: ' . mysql_error()); | ||||
| } | ||||
| ?>
 | ||||
|   <body> | ||||
|     <div class="container"> | ||||
|       <!-- Example row of columns --> | ||||
|       <div class="row"> | ||||
| <body> | ||||
| <div class="container"> | ||||
|     <!-- Example row of columns --> | ||||
|     <div class="row"> | ||||
| 
 | ||||
|         <div class="col-lg-12"> | ||||
|           <h1 class="page-header">Warnings</h1> | ||||
|           <ol class="breadcrumb"> | ||||
|             <li><a href="index">Home</a></li> | ||||
|             <li class="active">Warnings</li> | ||||
|           </ol> | ||||
|             <h1 class="page-header">Warnings</h1> | ||||
|             <ol class="breadcrumb"> | ||||
|                 <li><a href="index">Home</a></li> | ||||
|                 <li class="active">Warnings</li> | ||||
|             </ol> | ||||
|         </div> | ||||
| 
 | ||||
|       </div> | ||||
|       <div class="row" style="margin-bottom:60px;"> | ||||
|     </div> | ||||
|     <div class="row" style="margin-bottom:60px;"> | ||||
|         <div class="col-lg-12"> | ||||
| 						<table class="table table-hover table-bordered table-condensed"> | ||||
| 							<thead> | ||||
| 							<tr> | ||||
| 								<th><center>Name</center></th> | ||||
| 								<th><center>Warned By</center></th> | ||||
| 								<th><center>Reason</center></th> | ||||
| 								<th><center>Warned Until</center></th> | ||||
| 							</tr> | ||||
| 							</thead> | ||||
| 							<tbody> | ||||
| 							        <?php while($row = mysql_fetch_assoc($retval)) {  | ||||
| 									// <<-----------------Expiration Time Converter------------>> //
 | ||||
| 									$expiresEpoch = $row['expires']; | ||||
| 									$expiresConvert = $expiresEpoch / 1000; | ||||
| 									$expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
| 									?>
 | ||||
| 							<tr> | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name'];?></td>
 | ||||
| 								<td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner'];?></td>
 | ||||
| 								<td style="width: 30%;"><?php echo $row['reason'];?></td>
 | ||||
| 								<td><?php if($row['expires'] == 0) { | ||||
| 								echo 'Permanent Warning'; | ||||
| 								} else { | ||||
| 								echo $expiresResult; }?></td>
 | ||||
| 							</tr> | ||||
| <?php } | ||||
| mysql_close($conn); | ||||
| echo "</tbody></table>"; | ||||
| ?>
 | ||||
|  </div> | ||||
| </div> | ||||
| <?php | ||||
| include 'includes/footer.php'; | ||||
| ?>
 | ||||
|             <table class="table table-hover table-bordered table-condensed"> | ||||
|                 <thead> | ||||
|                 <tr> | ||||
|                     <th> | ||||
|                         <center>Name</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Warned By</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Reason</center> | ||||
|                     </th> | ||||
|                     <th> | ||||
|                         <center>Warned Until</center> | ||||
|                     </th> | ||||
|                 </tr> | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                 <?php while ($row = mysql_fetch_assoc($retval)) { | ||||
|                     // <<-----------------Expiration Time Converter------------>> //
 | ||||
|                     $expiresEpoch = $row['expires']; | ||||
|                     $expiresConvert = $expiresEpoch / 1000; | ||||
|                     $expiresResult = date('F j, Y, g:i a', $expiresConvert); | ||||
|                     ?>
 | ||||
|                     <tr> | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['name'] . "&size=25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name']; ?></td>
 | ||||
|                         <td><?php echo "<img src='http://mineskin.ca/v2/avatar/?player=" . $row['banner'] . "&size=25'  style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner']; ?></td>
 | ||||
|                         <td style="width: 30%;"><?php echo $row['reason']; ?></td>
 | ||||
|                         <td><?php if ($row['expires'] == 0) { | ||||
|                                 echo 'Permanent Warning'; | ||||
|                             } else { | ||||
|                                 echo $expiresResult; | ||||
|                             } ?></td>
 | ||||
|                     </tr> | ||||
|                 <?php } | ||||
|                 mysql_close($conn); | ||||
|                 echo "</tbody></table>"; | ||||
|                 ?>
 | ||||
|         </div> | ||||
|     </div> | ||||
|     <?php | ||||
|     include 'includes/footer.php'; | ||||
|     ?>
 | ||||
| </div> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ruan
						Ruan