mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +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>
|
68
bans.php
68
bans.php
@ -1,29 +1,28 @@
|
||||
<?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">
|
||||
<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><a href="index.php">Home</a></li>
|
||||
<li class="active">Bans</li>
|
||||
</ol>
|
||||
</div>
|
||||
@ -34,15 +33,25 @@ if(! $retval )
|
||||
<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>
|
||||
<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)) {
|
||||
<?php while ($row = mysql_fetch_assoc($retval)) {
|
||||
// <<-----------------Ban Date Converter------------>> //
|
||||
$timeEpoch = $row['time'];
|
||||
$timeConvert = $timeEpoch / 1000;
|
||||
@ -53,22 +62,23 @@ if(! $retval )
|
||||
$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) {
|
||||
<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>
|
||||
echo $expiresResult;
|
||||
} ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
1356
includes/css/bootstrap.css
vendored
1356
includes/css/bootstrap.css
vendored
File diff suppressed because it is too large
Load Diff
@ -3,8 +3,7 @@ $dbhost = 'localhost';
|
||||
$dbuser = 'root';
|
||||
$dbpass = 'password';
|
||||
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
|
||||
if(! $conn )
|
||||
{
|
||||
if (!$conn) {
|
||||
die('Could not connect: ' . mysql_error());
|
||||
}
|
||||
mysql_select_db('maxbans');
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?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="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">
|
||||
@ -10,15 +10,18 @@
|
||||
<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>
|
||||
<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>
|
||||
<p class="navbar-text"
|
||||
style="color:white;"><?php echo 'Players: ' . $data['players']['online'] . '/' . $data['players']['max']; ?> </p>
|
||||
</ul>
|
||||
</div>
|
||||
</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">
|
||||
@ -27,20 +30,25 @@
|
||||
<h4 class="modal-title" id="aboutlabel">About Script</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="well well-sm">
|
||||
<div class="well well-sm">
|
||||
<h4>Credits</h4>
|
||||
<p><a href="http://dev.bukkit.org/profiles/netherfoam/" target="_blank">netherfoam - Plugin Developer</a>
|
||||
|
||||
<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>
|
||||
<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-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="">
|
||||
@ -10,6 +10,8 @@ include 'includes/data/settings.php';
|
||||
<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'); }
|
||||
html {
|
||||
background-image: url('includes/img/377759.png');
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</head>
|
@ -1,4 +1,4 @@
|
||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<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">
|
||||
@ -25,4 +25,4 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
138
includes/js/bootstrap.js
vendored
138
includes/js/bootstrap.js
vendored
@ -4,7 +4,9 @@
|
||||
* Licensed under http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
|
||||
if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }
|
||||
if (typeof jQuery === "undefined") {
|
||||
throw new Error("Bootstrap requires jQuery")
|
||||
}
|
||||
|
||||
/* ========================================================================
|
||||
* Bootstrap: transition.js v3.0.3
|
||||
@ -26,7 +28,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
||||
// ============================================================
|
||||
@ -35,15 +38,15 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
var el = document.createElement('bootstrap')
|
||||
|
||||
var transEndEventNames = {
|
||||
'WebkitTransition' : 'webkitTransitionEnd'
|
||||
, 'MozTransition' : 'transitionend'
|
||||
, 'OTransition' : 'oTransitionEnd otransitionend'
|
||||
, 'transition' : 'transitionend'
|
||||
'WebkitTransition': 'webkitTransitionEnd'
|
||||
, 'MozTransition': 'transitionend'
|
||||
, 'OTransition': 'oTransitionEnd otransitionend'
|
||||
, 'transition': 'transitionend'
|
||||
}
|
||||
|
||||
for (var name in transEndEventNames) {
|
||||
if (el.style[name] !== undefined) {
|
||||
return { end: transEndEventNames[name] }
|
||||
return {end: transEndEventNames[name]}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -51,8 +54,12 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
// http://blog.alexmaccaw.com/css-transitions
|
||||
$.fn.emulateTransitionEnd = function (duration) {
|
||||
var called = false, $el = this
|
||||
$(this).one($.support.transition.end, function () { called = true })
|
||||
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
||||
$(this).one($.support.transition.end, function () {
|
||||
called = true
|
||||
})
|
||||
var callback = function () {
|
||||
if (!called) $($el).trigger($.support.transition.end)
|
||||
}
|
||||
setTimeout(callback, duration)
|
||||
return this
|
||||
}
|
||||
@ -83,7 +90,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// ALERT CLASS DEFINITION
|
||||
// ======================
|
||||
@ -182,7 +190,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// BUTTON PUBLIC CLASS DEFINITION
|
||||
// ==============================
|
||||
@ -298,7 +307,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// CAROUSEL CLASS DEFINITION
|
||||
// =========================
|
||||
@ -349,7 +359,9 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
if (pos > (this.$items.length - 1) || pos < 0) return
|
||||
|
||||
if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) })
|
||||
if (this.sliding) return this.$element.one('slid.bs.carousel', function () {
|
||||
that.to(pos)
|
||||
})
|
||||
if (activeIndex == pos) return this.pause().cycle()
|
||||
|
||||
return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
|
||||
@ -395,7 +407,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
isCycling && this.pause()
|
||||
|
||||
var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
|
||||
var e = $.Event('slide.bs.carousel', {relatedTarget: $next[0], direction: direction})
|
||||
|
||||
if ($next.hasClass('active')) return
|
||||
|
||||
@ -419,7 +431,9 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
$next.removeClass([type, direction].join(' ')).addClass('active')
|
||||
$active.removeClass(['active', direction].join(' '))
|
||||
that.sliding = false
|
||||
setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0)
|
||||
setTimeout(function () {
|
||||
that.$element.trigger('slid.bs.carousel')
|
||||
}, 0)
|
||||
})
|
||||
.emulateTransitionEnd(600)
|
||||
} else {
|
||||
@ -516,7 +530,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// COLLAPSE PUBLIC CLASS DEFINITION
|
||||
// ================================
|
||||
@ -696,7 +711,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// DROPDOWN CLASS DEFINITION
|
||||
// =========================
|
||||
@ -763,7 +779,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
if (e.keyCode == 38 && index > 0) index-- // up
|
||||
if (e.keyCode == 40 && index < $items.length - 1) index++ // down
|
||||
if (!~index) index=0
|
||||
if (!~index) index = 0
|
||||
|
||||
$items.eq(index).focus()
|
||||
}
|
||||
@ -825,9 +841,11 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
$(document)
|
||||
.on('click.bs.dropdown.data-api', clearMenus)
|
||||
.on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
|
||||
.on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
|
||||
.on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
|
||||
.on('click.bs.dropdown.data-api', '.dropdown form', function (e) {
|
||||
e.stopPropagation()
|
||||
})
|
||||
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
||||
.on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]', Dropdown.prototype.keydown)
|
||||
|
||||
}(jQuery);
|
||||
|
||||
@ -851,7 +869,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// MODAL CLASS DEFINITION
|
||||
// ======================
|
||||
@ -877,7 +896,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
Modal.prototype.show = function (_relatedTarget) {
|
||||
var that = this
|
||||
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
|
||||
var e = $.Event('show.bs.modal', {relatedTarget: _relatedTarget})
|
||||
|
||||
this.$element.trigger(e)
|
||||
|
||||
@ -908,7 +927,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
that.enforceFocus()
|
||||
|
||||
var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
|
||||
var e = $.Event('shown.bs.modal', {relatedTarget: _relatedTarget})
|
||||
|
||||
transition ?
|
||||
that.$element.find('.modal-dialog') // wait for modal to slide in
|
||||
@ -1013,7 +1032,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
} else if (!this.isShown && this.$backdrop) {
|
||||
this.$backdrop.removeClass('in')
|
||||
|
||||
$.support.transition && this.$element.hasClass('fade')?
|
||||
$.support.transition && this.$element.hasClass('fade') ?
|
||||
this.$backdrop
|
||||
.one($.support.transition.end, callback)
|
||||
.emulateTransitionEnd(150) :
|
||||
@ -1061,7 +1080,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
var $this = $(this)
|
||||
var href = $this.attr('href')
|
||||
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
|
||||
var option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
||||
var option = $target.data('modal') ? 'toggle' : $.extend({remote: !/#/.test(href) && href}, $target.data(), $this.data())
|
||||
|
||||
e.preventDefault()
|
||||
|
||||
@ -1073,8 +1092,12 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
})
|
||||
|
||||
$(document)
|
||||
.on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
|
||||
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
|
||||
.on('show.bs.modal', '.modal', function () {
|
||||
$(document.body).addClass('modal-open')
|
||||
})
|
||||
.on('hidden.bs.modal', '.modal', function () {
|
||||
$(document.body).removeClass('modal-open')
|
||||
})
|
||||
|
||||
}(jQuery);
|
||||
|
||||
@ -1099,7 +1122,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// TOOLTIP PUBLIC CLASS DEFINITION
|
||||
// ===============================
|
||||
@ -1150,7 +1174,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
}
|
||||
|
||||
this.options.selector ?
|
||||
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
|
||||
(this._options = $.extend({}, this.options, {trigger: 'manual', selector: ''})) :
|
||||
this.fixTitle()
|
||||
}
|
||||
|
||||
@ -1213,7 +1237,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
}
|
||||
|
||||
Tooltip.prototype.show = function () {
|
||||
var e = $.Event('show.bs.'+ this.type)
|
||||
var e = $.Event('show.bs.' + this.type)
|
||||
|
||||
if (this.hasContent() && this.enabled) {
|
||||
this.$element.trigger(e)
|
||||
@ -1236,7 +1260,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
$tip
|
||||
.detach()
|
||||
.css({ top: 0, left: 0, display: 'block' })
|
||||
.css({top: 0, left: 0, display: 'block'})
|
||||
.addClass(placement)
|
||||
|
||||
this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
|
||||
@ -1272,7 +1296,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
}
|
||||
}
|
||||
|
||||
Tooltip.prototype.applyPlacement = function(offset, placement) {
|
||||
Tooltip.prototype.applyPlacement = function (offset, placement) {
|
||||
var replace
|
||||
var $tip = this.tip()
|
||||
var width = $tip[0].offsetWidth
|
||||
@ -1323,7 +1347,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
if (replace) $tip.offset(offset)
|
||||
}
|
||||
|
||||
Tooltip.prototype.replaceArrow = function(delta, dimension, position) {
|
||||
Tooltip.prototype.replaceArrow = function (delta, dimension, position) {
|
||||
this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
|
||||
}
|
||||
|
||||
@ -1381,10 +1405,13 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
}
|
||||
|
||||
Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
|
||||
return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
|
||||
placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
|
||||
placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
|
||||
/* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
|
||||
return placement == 'bottom' ? {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2} :
|
||||
placement == 'top' ? {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2} :
|
||||
placement == 'left' ? {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth} :
|
||||
/* placement == 'right' */ {
|
||||
top: pos.top + pos.height / 2 - actualHeight / 2,
|
||||
left: pos.left + pos.width
|
||||
}
|
||||
}
|
||||
|
||||
Tooltip.prototype.getTitle = function () {
|
||||
@ -1485,7 +1512,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// POPOVER PUBLIC CLASS DEFINITION
|
||||
// ===============================
|
||||
@ -1496,11 +1524,14 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
|
||||
|
||||
Popover.DEFAULTS = $.extend({} , $.fn.tooltip.Constructor.DEFAULTS, {
|
||||
Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
|
||||
placement: 'right'
|
||||
, trigger: 'click'
|
||||
, content: ''
|
||||
, template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
||||
,
|
||||
trigger: 'click'
|
||||
,
|
||||
content: ''
|
||||
,
|
||||
template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
|
||||
})
|
||||
|
||||
|
||||
@ -1603,7 +1634,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// SCROLLSPY CLASS DEFINITION
|
||||
// ==========================
|
||||
@ -1647,9 +1679,11 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
return ($href
|
||||
&& $href.length
|
||||
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
|
||||
&& [[$href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href]]) || null
|
||||
})
|
||||
.sort(function (a, b) {
|
||||
return a[0] - b[0]
|
||||
})
|
||||
.sort(function (a, b) { return a[0] - b[0] })
|
||||
.each(function () {
|
||||
self.offsets.push(this[0])
|
||||
self.targets.push(this[1])
|
||||
@ -1673,7 +1707,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
activeTarget != targets[i]
|
||||
&& scrollTop >= offsets[i]
|
||||
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
||||
&& this.activate( targets[i] )
|
||||
&& this.activate(targets[i])
|
||||
}
|
||||
}
|
||||
|
||||
@ -1762,7 +1796,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// TAB CLASS DEFINITION
|
||||
// ====================
|
||||
@ -1846,7 +1881,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
|
||||
var old = $.fn.tab
|
||||
|
||||
$.fn.tab = function ( option ) {
|
||||
$.fn.tab = function (option) {
|
||||
return this.each(function () {
|
||||
var $this = $(this)
|
||||
var data = $this.data('bs.tab')
|
||||
@ -1898,7 +1933,8 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) { "use strict";
|
||||
+function ($) {
|
||||
"use strict";
|
||||
|
||||
// AFFIX CLASS DEFINITION
|
||||
// ======================
|
||||
@ -1953,7 +1989,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
|
||||
this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : ''))
|
||||
|
||||
if (affix == 'bottom') {
|
||||
this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
|
||||
this.$element.offset({top: document.body.offsetHeight - offsetBottom - this.$element.height()})
|
||||
}
|
||||
}
|
||||
|
||||
|
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
14
index.php
14
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">
|
||||
<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 -->
|
||||
</div>
|
||||
<!-- /container -->
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
|
64
ipbans.php
64
ipbans.php
@ -1,22 +1,21 @@
|
||||
<?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 )
|
||||
{
|
||||
$retval = mysql_query($sql, $conn);
|
||||
if (!$retval) {
|
||||
die('Could not get data: ' . mysql_error());
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
<div class="container">
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- Example row of columns -->
|
||||
<div class="row">
|
||||
|
||||
@ -34,15 +33,25 @@ if(! $retval )
|
||||
<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>
|
||||
<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)) {
|
||||
<?php while ($row = mysql_fetch_assoc($retval)) {
|
||||
// <<-----------------Ban Date Converter------------>> //
|
||||
$timeEpoch = $row['time'];
|
||||
$timeConvert = $timeEpoch / 1000;
|
||||
@ -61,28 +70,29 @@ if(! $retval )
|
||||
$numbers = $array[0] . "." . $array[1] . "." . $array[2];
|
||||
$numbers .= ".";
|
||||
|
||||
for($i = 0; $i < strlen($array[3]); $i++) {
|
||||
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) {
|
||||
<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>
|
||||
echo $expiresResult;
|
||||
} ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</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>
|
54
mutes.php
54
mutes.php
@ -1,22 +1,21 @@
|
||||
<?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 )
|
||||
{
|
||||
$retval = mysql_query($sql, $conn);
|
||||
if (!$retval) {
|
||||
die('Could not get data: ' . mysql_error());
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
<div class="container">
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- Example row of columns -->
|
||||
<div class="row">
|
||||
|
||||
@ -34,15 +33,15 @@ if(! $retval )
|
||||
<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>
|
||||
<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)) {
|
||||
<?php while ($row = mysql_fetch_assoc($retval)) {
|
||||
// <<-----------------Ban Date Converter------------>> //
|
||||
$timeEpoch = $row['time'];
|
||||
$timeConvert = $timeEpoch / 1000;
|
||||
@ -53,22 +52,23 @@ if(! $retval )
|
||||
$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) {
|
||||
<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>
|
||||
echo $expiresResult;
|
||||
} ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
58
warnings.php
58
warnings.php
@ -1,22 +1,21 @@
|
||||
<?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 )
|
||||
{
|
||||
$retval = mysql_query($sql, $conn);
|
||||
if (!$retval) {
|
||||
die('Could not get data: ' . mysql_error());
|
||||
}
|
||||
?>
|
||||
<body>
|
||||
<div class="container">
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- Example row of columns -->
|
||||
<div class="row">
|
||||
|
||||
@ -34,35 +33,44 @@ if(! $retval )
|
||||
<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>
|
||||
<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)) {
|
||||
<?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) {
|
||||
<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>
|
||||
echo $expiresResult;
|
||||
} ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
<?php }
|
||||
mysql_close($conn);
|
||||
echo "</tbody></table>";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
include 'includes/footer.php';
|
||||
?>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user