1
0

Update WebAdmin

All files have been updated to the latest version off the new WebAdmin
look.
This commit is contained in:
Ambushed91 2014-10-23 19:59:49 +02:00
parent b4170e3184
commit c23d87277d
18 changed files with 1705 additions and 407 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,5 @@
Hello Admin, this is a welcome message. You will see this because you didn't change the guest welcome message.<br><br>
To change the welcome message go to file: <b>files/guest.html</b> and change it!.<br><br>
This file is using html, for more information see: <a href="http://www.w3schools.com" target="blank">http://www.w3schools.com</a>

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

View File

@ -0,0 +1,442 @@
* {
margin: 0;
}
body {
font-family: 'Source Sans Pro', sans-serif;
-webkit-font-smoothing: antialiased;
background: #fff url(header.png) repeat-x top left;
width:100%;
min-width:100%;
overflow: hidden;
}
a:link {
color: #555;
text-decoration: none;
}
a:visited {
color: #444;
text-decoration: none;
}
a:hover, a:active {
color: #000;
text-decoration: underline;
}
img {
border: none;
}
h1 {
color:#006699;
}
.row1 {
border-bottom: 1px solid #000;
height:100px;
max-height:100px;
}
.row2 {
margin: 0 auto;
text-align: center;
vertical-align: middle;
}
.row3 {
margin: 0 auto;
text-align: center;
vertical-align: middle;
}
.contention {
color: #000;
text-align: left;
line-height: 1.4;
margin: 0;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
font-size: 13px;
}
button {
background: #ffffff;
color: #000000;
border: 1px solid #ccc;
padding: 3px;
font-family: Tahoma, Verdana, Arial, Sans-Serif;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
margin: -3px 0;
}
button:hover {
border-top-color: #28597a;
background: #28597a;
color: #ccc;
}
button:active {
border-top-color: #1b435e;
background: #1b435e;
}
.push10 {
padding-bottom:75px;
}
#panel ul.menu {
margin: 0;
padding: 0;
list-style: none;
}
#panel ul.menu li {
margin: 0 5px;
display: inline;
}
#panel ul.menu li a {
padding-left: 20px;
background-repeat: no-repeat;
background-position: left center;
}
#panel .upper ul.top_links {
float: right;
font-weight: bold;
}
#panel .upper ul.top_links a.search {
background-image: url(icons/search.gif);
}
#panel .upper ul.top_links a.memberlist {
background-image: url(icons/memberlist.gif);
}
#panel .upper ul.top_links a.calendar {
background-image: url(icons/calendar.gif);
}
#panel .upper ul.top_links a.help {
background-image: url(icons/help.gif);
}
#panel .upper a.logout {
font-weight: bold;
background: url(icons/logout.gif) right no-repeat;
padding-right: 20px;
margin-left: 10px;
}
#panel .upper a.login,
#panel .upper a.lost_password {
background: url(icons/login.gif) no-repeat;
padding-left: 20px;
margin-left: 10px;
font-weight: bold;
}
#panel .upper a.register {
background: url(icons/logout.gif) right no-repeat;
padding-right: 20px;
margin-left: 10px;
font-weight: bold;
}
#panel .lower ul.panel_links {
float: left;
}
#panel .lower ul.panel_links a.usercp {
background-image: url(icons/usercp.gif);
}
#panel .lower ul.panel_links a.modcp {
background-image: url(icons/modcp.gif);
}
#panel .lower ul.panel_links a.admincp {
background-image: url(icons/admincp.gif);
}
#panel .lower ul.user_links {
float: right;
}
#panel .lower ul.user_links li a {
padding: 0;
}
#panel .upper {
background: #dcdbdc url(tcat.png) repeat-x;
border-top: 1px solid #fff;
border-bottom: 1px solid #bbb;
padding: 7px;
}
#panel .lower {
background: #efefef;
color: #999;
border-top: 1px solid #fff;
border-bottom: 1px solid #ccc;
overflow: hidden;
padding: 5px;
}
#panel .lower a:link,
#panel .lower a:visited {
color: #666;
}
#panel .lower a:hover,
#panel .lower a:active {
color: #333;
text-decoration: none;
}
#panel .remember_me input {
vertical-align: middle;
margin: -3px 0 0 5px;
}
#panel input {
margin: -3px 0;
}
#panel input.button {
padding: 0;
}
#footer {
z-index:99999;
}
#footer ul.menu {
margin: 0;
padding: 0;
list-style: none;
}
#footer ul.menu li {
margin: 0 5px;
display: inline;
}
#footer .upper {
background: #dcdbdc url(tcat.png) repeat-x;
border-top: 1px solid #bbb;
padding: 6px;
overflow: hidden;
font-size: 12px;
}
#footer .upper .language {
float: right;
margin: -2px;
}
#footer .upper ul.bottom_links {
float: left;
margin: 3px 0 0 -5px;
}
#footer .lower {
background: #a1a2a2 url(thead.png) top left repeat-x;
color: #fff;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ddd;
overflow: hidden;
padding: 8px;
font-size: 11px;
}
#footer .lower a:link,
#footer .lower a:visited {
color: #fff;
font-weight: bold;
}
#footer .lower a:hover,
#footer .lower a:active {
color: #fff;
font-weight: bold;
}
#footer .lower #current_time {
float: right;
padding-right:6px;
}
.wrapper {
width: 85%;
min-width: 970px;
max-width: 1500px;
margin: auto auto;
}
#footer {
position:fixed;
left:0px;
bottom:0px;
height:60px;
width:100%;
background:#999;
border-top:1px #000 solid;
}
/* IE 6 */
* html #footer {
position:absolute;
top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px');
}
tr td.trow1:first-child,
tr td.trow2:first-child {
border-left: 0;
}
tr td.trow1:last-child,
tr td.trow2:last-child {
border-right: 0;
}
.tborder {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
}
.thead,
.rounded_top {
-moz-border-radius-topleft: 6px;
-moz-border-radius-topright: 6px;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.tfoot,
.rounded_bottom {
-moz-border-radius-bottomleft: 6px;
-moz-border-radius-bottomright: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
table {
color: #000000;
font-size: 13px;
}
.tborder {
background: #fff;
width: 100%;
margin: auto auto;
border: 1px solid #ccc;
padding: 1px;
}
.thead {
background: #a1a2a2 url(thead.png) top left repeat-x;
color: #fff;
border-bottom: 1px solid #8e8f8f;
padding: 8px;
}
.thead a:link {
color: #222;
text-decoration: none;
}
.thead a:visited {
color: #222;
text-decoration: none;
}
.thead a:hover, .thead a:active {
color: #222;
text-decoration: underline;
}
.tcat {
background: #dcdbdc url(tcat.png) repeat-x;
color: #fff;
border-bottom: 1px solid #bbb;
padding: 6px;
font-size: 12px;
}
.tcat a:link {
color: #000000;
}
.tcat a:visited {
color: #000000;
}
.tcat a:hover, .tcat a:active {
color: #000000;
}
.trow1 {
background: #f5f5f5;
border: 1px solid;
border-color: #fff #ddd #ddd #fff;
}
.trow2 {
background: #efefef;
border: 1px solid;
border-color: #fff #ddd #ddd #fff;
}
.trow_shaded {
background: #ffdde0;
border: 1px solid;
border-color: #fff #ffb8be #ffb8be #fff;
}
.trow_selected td {
background: #FFFBD9;
color: #000;
border-right-color: #F7E86A;
border-bottom-color: #F7E86A;
}
.trow_selected td a:link,
.trow_selected td a:visited,
.trow_selected td a:hover,
.trow_selected td a:active {
color: #000;
}
.trow_sep {
background: #ddd;
color: #000;
border-bottom: 1px solid #c5c5c5;
padding: 6px;
font-size: 12px;
font-weight: bold;
}
.tfoot {
background: #a1a2a2 url(thead.png) top left repeat-x;
color: #fff;
padding: 6px;
border-top: 1px solid #fff;
}
.tfoot a:link {
color: #fff;
text-decoration: none;
}
.tfoot a:visited {
color: #fff;
text-decoration: none;
}
.tfoot a:hover, .tfoot a:active {
color: #fff;
text-decoration: underline;
}
.thead input.textbox,
.thead select,
.tfoot input.textbox,
.tfoot select {
border: 1px solid #8e8f8f;
}
.padtopp {padding-top:25px;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

View File

@ -1,25 +1,69 @@
<html>
<!DOCTYPE html>
<head>
<title>MCServer WebAdmin - Login</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,300' rel='stylesheet' type='text/css'>
<link href='login.css' rel='stylesheet' type='text/css'>
<link rel="icon" href="favicon.ico">
<style type="text/css">
header {
margin: 0 auto;
text-align: center;
vertical-align: middle;
}
</style>
</head>
<body>
<header>
<img src="mc-logo.png" alt="MCServer Logo" class="logo">
<h1>MCServer - WebAdmin</h1>
<form method="get" action="webadmin/">
<input type="submit" value="Log in">
</form>
</header>
<div class="contention">
<div class="row1">
<div class="wrapper">
<img src="logo_login.png" alt="MCServer Logo" class="logo">
</div>
</div>
<div id="panel">
<div class="upper">
<div class="wrapper">
<div><form method="get" action="webadmin/"><button type="submit" value="Log in" style="width:150px;height:25px;font-family: 'Source Sans Pro', sans-serif;background:transparent;border:none!important;vertical-align: middle;"><strong><img src="login.gif" style="vertical-align: bottom;"/> WebAdmin Log in</strong></button></form></div>
</div>
</div>
</div>
<div class="row2 push10">
<div class="wrapper padtopp">
<table border="0" cellspacing="0" cellpadding="5" class="tborder" style="margin-bottom: 5px; " id="post_16419">
<tbody>
<tr>
<td class="thead rounded_top">
<div style="float:left!important;">
<strong>Welcome Guest</strong>
</div>
</td>
</tr>
<tr>
<td class="trow2 post_content ">
<div class="post_body" id="pid_16419">
<iframe width="100%" height="100%" style="border:none;min-height:350px;max-height:450%;" src="/guest.html"></iframe>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="footer">
<div class="upper">
<div class="wrapper">
<ul class="menu bottom_links">
<li><a href="http://www.mc-server.org" target="_blank">MCServer</a></li>
</ul>
</div>
</div>
<div class="lower">
<div class="wrapper">
<span id="current_time"><strong>FusionCare</strong> Web Developement</span>
<span id="copyright">
Powered By <a href="http://www.mc-server.org" target="_blank">MC Server</a>.
</span>
<span id="theme">
Theme created by Justin S.
</span>
</div>
</div>
</div>
</body>
</html>
</html>

100
MCServer/webadmin/temp.html Normal file
View File

@ -0,0 +1,100 @@
<table width="100%" border="0" align="center"><tbody>
<tr>
<!-- start: usercp_nav -->
<td width="180" valign="top">
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<tbody><tr>
<td class="thead"><strong>Menu</strong></td>
</tr>
<tr>
<td class="trow1 smalltext"><a href="usercp.php" class="usercp_nav_item usercp_nav_home">User CP Home</a></td>
</tr>
<!-- start: usercp_nav_messenger -->
<tr>
<td class="tcat">
<div class="expcolimage"><img src="images/clean/collapse.gif" id="usercppms_img" class="expander" alt="[-]" style="cursor: pointer;"></div>
<div><span class="smalltext"><strong>Messenger</strong></span></div>
</td>
</tr>
</tbody><tbody style="" id="usercppms_e">
<tr><td class="trow1 smalltext"><a href="private.php?action=send" class="usercp_nav_item usercp_nav_composepm">Compose</a></td></tr>
<tr>
<td class="trow1 smalltext">
<div><a href="private.php?fid=1" class="usercp_nav_item usercp_nav_pmfolder">Inbox</a></div>
<div><a href="private.php?fid=2" class="usercp_nav_item usercp_nav_sub_pmfolder">Sent Items</a></div>
<div><a href="private.php?fid=3" class="usercp_nav_item usercp_nav_sub_pmfolder">Drafts</a></div>
<div><a href="private.php?fid=4" class="usercp_nav_item usercp_nav_trash_pmfolder">Trash Can</a></div>
</td>
</tr>
<tr><td class="trow1 smalltext"><a href="private.php?action=tracking" class="usercp_nav_item usercp_nav_pmtracking">Tracking</a></td></tr>
<tr><td class="trow1 smalltext"><a href="private.php?action=folders" class="usercp_nav_item usercp_nav_pmfolders">Edit Folders</a></td></tr>
</tbody>
<!-- end: usercp_nav_messenger --><!-- start: usercp_nav_profile -->
<tbody><tr>
<td class="tcat">
<div class="expcolimage"><img src="images/clean/collapse.gif" id="usercpprofile_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div>
<div><span class="smalltext"><strong>Your Profile</strong></span></div>
</td>
</tr>
</tbody><tbody style="" id="usercpprofile_e">
<tr><td class="trow1 smalltext">
<div><a href="usercp.php?action=profile" class="usercp_nav_item usercp_nav_profile">Edit Profile</a></div>
<div><a href="usercp.php?action=password" class="usercp_nav_item usercp_nav_password">Change Password</a></div>
<div><a href="usercp.php?action=email" class="usercp_nav_item usercp_nav_email">Change Email</a></div>
<div><a href="usercp.php?action=avatar" class="usercp_nav_item usercp_nav_avatar">Change Avatar</a></div>
<!-- start: usercp_nav_editsignature -->
<div><a href="usercp.php?action=editsig" class="usercp_nav_item usercp_nav_editsig">Change Signature</a></div>
<!-- end: usercp_nav_editsignature -->
</td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=options" class="usercp_nav_item usercp_nav_options">Edit Options</a></td></tr>
</tbody>
<!-- end: usercp_nav_profile --><!-- start: usercp_nav_misc -->
<tbody><tr>
<td class="tcat">
<div class="expcolimage"><img src="images/clean/collapse.gif" id="usercpmisc_img" class="expander" alt="[-]" title="[-]" style="cursor: pointer;"></div>
<div><span class="smalltext"><strong>Miscellaneous</strong></span></div>
</td>
</tr>
</tbody><tbody style="" id="usercpmisc_e">
<tr><td class="trow1 smalltext"><a href="usercp.php?action=usergroups" class="usercp_nav_item usercp_nav_usergroups">Group Memberships</a></td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=editlists" class="usercp_nav_item usercp_nav_editlists">Buddy/Ignore List</a></td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=attachments" class="usercp_nav_item usercp_nav_attachments">Manage Attachments</a></td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=drafts" class="usercp_nav_item usercp_nav_drafts">Saved Drafts </a></td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=subscriptions" class="usercp_nav_item usercp_nav_subscriptions">Subscribed Threads</a></td></tr>
<tr><td class="trow1 smalltext"><a href="usercp.php?action=forumsubscriptions" class="usercp_nav_item usercp_nav_fsubscriptions">Forum Subscriptions</a></td></tr>
<tr><td class="trow1 smalltext"><a href="member.php?action=profile&amp;uid=2273" class="usercp_nav_item usercp_nav_viewprofile">View Profile</a></td></tr>
</tbody>
<!-- end: usercp_nav_misc -->
</table>
</td>
<!-- end: usercp_nav -->
<td valign="top">
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<tbody><tr>
<td class="thead" colspan="2"><strong>Your Account Summary</strong></td>
</tr>
<tr>
<!-- start: usercp_currentavatar -->
<td class="trow1" valign="middle" align="center" width="1"><div class="usercp_container"><img src="./uploads/avatars/avatar_2273.png?dateline=1413042790" alt="ambushed01" title="ambushed01" width="64" height="64"></div></td>
<!-- end: usercp_currentavatar -->
<td class="trow2">
<span class="largetext"><a href="http://forum.mc-server.org/member.php?action=profile&amp;uid=2273">ambushed01</a></span><br>
<strong>Posts:</strong> <a href="search.php?action=finduser&amp;uid=2273">25</a> (4.3 per day | 0.16 percent of total posts)<br>
<!-- start: usercp_reputation -->
<strong>Reputation:</strong> <strong class="reputation_neutral">0</strong> [<a href="reputation.php?uid=2273">Details</a>]<br>
<!-- end: usercp_reputation -->
<strong>Email:</strong> arianroeloffzen@gmail.com<br>
<strong>Registration Date:</strong> 10-10-2014, 09:07 PM<br>
<strong>Primary User Group:</strong> Registered<br>
<!-- start: usercp_referrals -->
<strong>Members Referred:</strong> 0<br>
<br>To refer a member to this board, direct them to http://forum.mc-server.org/member.php?action=register&amp;referrer=2273
<!-- end: usercp_referrals -->
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>

View File

@ -1,140 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<title>{TITLE} | {PLUGIN_NAME}</title>
<style type="text/css">
body {
line-height: 1;
background: #B8B8B8;
}
#maincontent {
padding: 0px 25px 10px 25px;
}
#wrapper {
min-width: 850px;
width: 75%;
margin: 10px auto;
background-color: white;
border: 4px #888888 solid;
border-radius: 10px;
font-family: Calibri, Trebuchet MS;
}
header {
text-align:center;
padding: 10px; 0px;
}
span {
text-align: right;
float: right;
border-left: 2px #C8C8C8 solid;
border-bottom: 2px #C8C8C8 solid;
padding: 2px 10px;
}
footer {
font-family: helvetica;
font-size: 10px;
text-align: center;
border-top: 1px #000 dotted;
padding: 1px 0px 1px 0px;
}
table {
border-collapse: collapse;
border-spacing: 10;
}
table {
border-top: 1px solid #ddd;
width: 700px;
}
table tr th {
text-align: left;
background: #f6f6f6;
padding: 0px 20px;
height: 25px;
line-height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
}
table tr td {
background: #f6f6f6;
padding: 0px 20px;
height: 29px;
line-height: 29px;
border: 1px solid #ddd;
border-radius: 3px;
}
#main table tr.odd td {
background: #fbfbfb;
}
table tr:hover td {
background: #fdfcf6;
}
table .action {
text-align: right;
padding: 0 20px 0 10px;
}
table tr .action a {
color: #9b9b9b;
}
#cssmenu{ height:10px; display:table; padding:0; margin: 0 auto; border:1px #707070 solid; border-radius:5px; }
#cssmenu > ul {list-style:inside none; padding:0; margin:0;}
#cssmenu > ul > li {list-style:inside none; padding:0; margin:0; float:left; display:block; position:relative;}
#cssmenu > ul > li > a{ outline:none; display:block; position:relative; color:#E8E8E8; padding:10px 10px; font:bold 13px/100% Arial, Helvetica, sans-serif; text-align:center; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.4); }
#cssmenu > ul > li:first-child > a{border-radius:5px 0 0 5px;}
/* #cssmenu > ul > li > a:after{ content:''; position:absolute; border-right:1px solid #FFFFFF; top:-1px; bottom:-1px; right:-2px; z-index:99; } */
#cssmenu ul li.has-sub:hover > a:after{top:0; bottom:0;}
#cssmenu > ul > li.has-sub > a:before{ content:''; position:absolute; top:18px; right:6px; border:5px solid transparent; border-top:5px solid #707070; }
#cssmenu > ul > li.has-sub:hover > a:before{top:19px;}
#cssmenu ul li.has-sub:hover > a{ background:#3f3f3f; border-color:#707070; padding-bottom:13px; padding-top:13px; top:-1px; z-index:999; }
#cssmenu ul li.has-sub:hover > ul, #cssmenu ul li.has-sub:hover > div{display:block;}
#cssmenu ul li.has-sub > a:hover{background:#3f3f3f; border-color:#3f3f3f;}
#cssmenu ul li > ul, #cssmenu ul li > div{ display:none; width:auto; position:absolute; top:38px; padding:10px 0; background:#3f3f3f; border-radius:0 0 5px 5px; z-index:999; }
#cssmenu ul li > ul{width:200px;}
#cssmenu ul li > ul li{display:block; list-style:inside none; padding:0; margin:0; position:relative;}
#cssmenu ul li > ul li a{ outline:none; display:block; position:relative; margin:0; padding:8px 20px; font:10pt Arial, Helvetica, sans-serif; color:#fff; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.5); }
#cssmenu, #cssmenu > ul > li > ul > li a:hover{ background:#C8C8C8;}
#cssmenu > ul > li > a { border-right:1px solid #707070; color:#FFFFFF; }
#cssmenu > ul > li > a:after { border-color:#707070; }
#cssmenu > ul > li > a:hover { background:#B8B8B8; }
</style>
<meta name="msapplication-tooltip" content="MCServer WebAdministrator"/>
<meta name="msapplication-navbutton-color" content="#B8B8B8" />
<link rel="shortcut icon" href="http://mc-server.org/favicon.ico" />
</head>
<body>
<div id="wrapper">
<span>
<b>Login: {USERNAME}</b>
</span>
<br />
<header>
<img alt="" src="files/logo.png" />
</header>
<nav id="cssmenu">
<ul>
{MENU}
</ul>
</nav>
<div id="maincontent">
{CONTENT}
</div>
<footer>
<p>MCServer is using {MEM}MB of memory, with {NUMCHUNKS} chunks loaded.</p>
<p>Web Design by <a href="https://github.com/WebFreak001"@WebFreak001</a></p>
</footer>
<head>
<title>{TITLE} | {PLUGIN_NAME}</title>
<style type="text/css">
body {
line-height: 1;
background: #B8B8B8;
}
#maincontent {
padding: 0px 25px 10px 25px;
}
#wrapper {
min-width: 850px;
width: 75%;
margin: 10px auto;
background-color: white;
border: 4px #888888 solid;
border-radius: 10px;
font-family: Calibri, Trebuchet MS;
}
header {
text-align:center;
padding: 10px; 0px;
}
span {
text-align: right;
float: right;
border-left: 2px #C8C8C8 solid;
border-bottom: 2px #C8C8C8 solid;
padding: 2px 10px;
}
footer {
font-family: helvetica;
font-size: 10px;
text-align: center;
border-top: 1px #000 dotted;
padding: 1px 0px 1px 0px;
}
table {
border-collapse: collapse;
border-spacing: 10;
}
table {
border-top: 1px solid #ddd;
width: 700px;
}
table tr th {
text-align: left;
background: #f6f6f6;
padding: 0px 20px;
height: 25px;
line-height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
}
table tr td {
background: #f6f6f6;
padding: 0px 20px;
height: 29px;
line-height: 29px;
border: 1px solid #ddd;
border-radius: 3px;
}
#main table tr.odd td {
background: #fbfbfb;
}
table tr:hover td { background: #fdfcf6; }
table .action {
text-align: right;
padding: 0 20px 0 10px;
}
table tr .action a { color: #9b9b9b; }
#cssmenu{ height:10px; display:table; padding:0; margin: 0 auto; border:1px #707070 solid; border-radius:5px; }
#cssmenu > ul {list-style:inside none; padding:0; margin:0;}
#cssmenu > ul > li {list-style:inside none; padding:0; margin:0; float:left; display:block; position:relative;}
#cssmenu > ul > li > a{ outline:none; display:block; position:relative; color:#E8E8E8; padding:10px 10px; font:bold 13px/100% Arial, Helvetica, sans-serif; text-align:center; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.4); }
#cssmenu > ul > li:first-child > a{border-radius:5px 0 0 5px;}
/* #cssmenu > ul > li > a:after{ content:''; position:absolute; border-right:1px solid #FFFFFF; top:-1px; bottom:-1px; right:-2px; z-index:99; } */
#cssmenu ul li.has-sub:hover > a:after{top:0; bottom:0;}
#cssmenu > ul > li.has-sub > a:before{ content:''; position:absolute; top:18px; right:6px; border:5px solid transparent; border-top:5px solid #707070; }
#cssmenu > ul > li.has-sub:hover > a:before{top:19px;}
#cssmenu ul li.has-sub:hover > a{ background:#3f3f3f; border-color:#707070; padding-bottom:13px; padding-top:13px; top:-1px; z-index:999; }
#cssmenu ul li.has-sub:hover > ul, #cssmenu ul li.has-sub:hover > div{display:block;}
#cssmenu ul li.has-sub > a:hover{background:#3f3f3f; border-color:#3f3f3f;}
#cssmenu ul li > ul, #cssmenu ul li > div{ display:none; width:auto; position:absolute; top:38px; padding:10px 0; background:#3f3f3f; border-radius:0 0 5px 5px; z-index:999; }
#cssmenu ul li > ul{width:200px;}
#cssmenu ul li > ul li{display:block; list-style:inside none; padding:0; margin:0; position:relative;}
#cssmenu ul li > ul li a{ outline:none; display:block; position:relative; margin:0; padding:8px 20px; font:10pt Arial, Helvetica, sans-serif; color:#fff; text-decoration:none; text-shadow:1px 1px 0 rgba(0,0,0, 0.5); }
#cssmenu, #cssmenu > ul > li > ul > li a:hover{ background:#C8C8C8;}
#cssmenu > ul > li > a{border-right:1px solid #707070; color:#FFFFFF;}
#cssmenu > ul > li > a:after{border-color:#707070;}
#cssmenu > ul > li > a:hover{background:#B8B8B8;}
</style>
<meta name="msapplication-tooltip" content="MCServer WebAdministrator"/>
<meta name="msapplication-navbutton-color" content="#B8B8B8" />
<link rel="shortcut icon" href="http://mc-server.org/favicon.ico" />
</head>
<body>
<div id="wrapper">
<span><b>Login: {USERNAME}</b></span><br />
<header>
<img alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAAkCAMAAAAXdeBDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuVQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs7OzAAAAAAAAoqKiAAAAvLy8AAAAlZWVtbW1j4+Pra2tiYmJp6enAAAAhISEoaGhAAAAgICAm5ube3t7lZWVd3d3kZGRc3NzjIyMbGxsg4ODgICAeHh43NzcdXV1cnJyy8vLWVlZbGxswcHB09PTvLy8uLi4tLS0sLCwvLy8uLi4tbW1oaGhnp6era2tm5ubqqqq39/f29vblZWV09PT4ODgz8/P3NzckZGRxcXF0tLSwsLCzs7Oy8vLyMjIt7e3vLy85ubm7u7u3d3d5+fn2tra5OTk19fX1dXV3t7e29vb2dnZ1tbW0dHRv7+/8PDw7u7u6+vr8fHx5ubm4+Pj7Ozs4eHh3t7e5+fn5OT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Flp5ztNDUEjuO6pXP4rtAaDp/rI5ETBKn5MRbDl2zyifUMrDFrFgdoeTuHQyrkz4hCcEcF29PMz4lXKlVAk8r3fXHtzey8rw+8JzTtsW5POH++9dkV7twM1ehtlH/w4K6duqteWLCgphiyyJeUd7cMAkDwK0AQ9D5psAuhN5NxpfMQ9jY/y07gsK6ucSSubL1UKWYttJ5UuBY5kruA4BWjf7IOXqxRaoLPJgK5Dh36j0Mo6EJjBEo9on9AifiQeG8BSLbSA7wbou7HHvYcsSUhZ9aQ9YYFN5CJbVRnJ6pLDxYzFLVM8dDkhykA6PSDDe91UQ39X7fV4i+gZ7ceA6tW/HviCVNumwAh4f3k/ljxvmAQBkSs7TpYKheLQnusVJIIMErqxr1TI5QqVvg0gZAjfNzBwH3Lfy0DJeod31ezBO9qXsfOPexqqnQlagGa8y1MJFqviB85bW1o+QiHNTHEENrn3tnZ1tb6RsmMBkyJUcznJ5PIyyRX8OtF+jEsGG/S/fPyIOdOtKZuf2+NhonAPBLqTI6qmKQTDLPhrmbjXjnPmuW60/wtqryt07/tp3oA8z8MdCHHXjBcC7mOd6Bfk7r3udC94aDf6/9T+AzWzIkAbVeu4AAAAAElFTkSuQmCC" />
</header>
<nav id="cssmenu">
<ul>
{MENU}
</ul>
</nav>
<div id="maincontent">
{CONTENT}
</div>
</body>
<footer><p>MCServer is using {MEM}MB of memory, with {NUMCHUNKS} chunks loaded.</p><p>Web Design by Tiger</p></footer>
</div>
</head>
</html>

View File

@ -23,30 +23,11 @@ end
function GetDefaultPage()
local PM = cRoot:Get():GetPluginManager()
local SubTitle = "Current Game"
local SubTitle = "Home"
local Content = ""
Content = Content .. "<h4>Server Name:</h4>"
Content = Content .. "<p>" .. cRoot:Get():GetServer():GetServerID() .. "</p>"
Content = Content .. "<h4>Home Home Home</h4><ul>I have no idea what this content should do.</ul>"
Content = Content .. "<h4>Plugins:</h4><ul>"
local AllPlugins = PM:GetAllPlugins()
for key,value in pairs(AllPlugins) do
if( value ~= nil and value ~= false ) then
Content = Content .. "<li>" .. key .. " V." .. value:GetVersion() .. "</li>"
end
end
Content = Content .. "</ul>"
Content = Content .. "<h4>Players:</h4><ul>"
local AddPlayerToTable = function( Player )
Content = Content .. "<li>" .. Player:GetName() .. "</li>"
end
cRoot:Get():ForEachPlayer( AddPlayerToTable )
Content = Content .. "</ul><br>";
return Content, SubTitle
end
@ -83,20 +64,47 @@ function ShowPage(WebAdmin, TemplateRequest)
Output([[
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" href="/favicon.ico">
<title>]] .. Title .. [[</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="/style.css">
<title>]] .. Title .. [[</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,300" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="icon" href="/favicon.ico">
</head>
<body>
<div id="wrapper">
<div id="containerHolder">
<a href="./" class="title light">MCServer</a>
<div id="container">
<div id="sidebar">
<ul class="sideNav">
<li class='link'><a href=']] .. BaseURL .. [['>Home</a></li>
<div class="contention">
<div class="pagehead">
<div class="row1">
<div class="wrapper">
<img src="/logo_login.png" alt="MCServer Logo" class="logo">
</div>
</div>
<div id="panel">
<div class="upper">
<div class="wrapper">
<ul class="menu top_links">
<li><a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></li>
</ul>
<div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong></div>
</div>
</div>
</div>
</div>
<div class="row2 push10">
<div class="wrapper padtopp">
<table width="100%" border="0" align="center"><tbody>
<tr>
<!-- start: usercp_nav -->
<td width="180" valign="top">
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<tbody><tr>
<td class="thead"><strong>Menu</strong></td>
</tr>
<tr>
<td class="trow1 smalltext"><a href=']] .. BaseURL .. [[' class='usercp_nav_item usercp_nav_home'>Home</a></td>
</tr>
<!-- start: usercp_nav_messenger -->
<tr><td class="tcat"><div><span class="smalltext"><strong>Server Management</strong></span></div></td></tr></tbody><tbody style="" id="usercppms_e"><tr><td class="trow1 smalltext">
]])
@ -105,32 +113,71 @@ function ShowPage(WebAdmin, TemplateRequest)
local PluginWebTitle = value:GetWebTitle()
local TabNames = value:GetTabNames()
if (GetTableSize(TabNames) > 0) then
Output("<li>"..PluginWebTitle.."</li>\n");
Output("<div><a class='usercp_nav_item usercp_nav_pmfolder' style='text-decoration:none;'><b>"..PluginWebTitle.."</b></a></div>\n");
for webname,prettyname in pairs(TabNames) do
Output("<li class='link'><a href='" .. BaseURL .. PluginWebTitle .. "/" .. webname .. "'>" .. prettyname .. "</a></li>\n")
Output("<div><a href='" .. BaseURL .. PluginWebTitle .. "/" .. webname .. "' class='usercp_nav_item usercp_nav_sub_pmfolder'>" .. prettyname .. "</a></div>\n")
end
Output("<br>\n");
end
end
Output([[
</ul>
Output([[</td></tr></tbody>
</table>
</td>
<!-- end: usercp_nav -->
<td valign="top" style='padding-left:25px;'>
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<tbody><tr>
<td class="thead" colspan="2"><strong>]] .. SubTitle .. [[</strong></td>
</tr>
<tr>
<td class="trow2">
]] .. PageContent .. [[
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
</div>
</div>
<div id="footer">
<div class="upper">
<div class="wrapper">
<ul class="menu bottom_links">
<li><a>Server Name: <strong>]] .. cRoot:Get():GetServer():GetServerID() .. [[</strong></a></li>
<li><a>Memory: <strong>]] .. MemoryUsageKiB / 1024 .. [[MB</strong></a></li>
<li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li>
<li><a><script type="text/javascript">
document.write ('Time: <strong><span id="date-time">', new Date().toLocaleString(), '<\/span><\/strong>')
if (document.getElementById) onload = function () {
setInterval ("document.getElementById ('date-time').firstChild.data = new Date().toLocaleString()", 50)
}
</script></a></li>
</ul>
<ul class="menu bottom_right">
</ul>
</div>
</div>
<div class="lower">
<div class="wrapper">
<span id="current_time"><strong>FusionCare</strong> Web Developement</span>
<span id="copyright">
Powered By <a href="http://www.mc-server.org" target="_blank">MC Server</a>.
</span>
<span id="theme">
Theme created by Justin S.
</span>
</div>
<div id="main" class="page-]] .. string.lower(PluginPage.PluginName .. "-" .. string.gsub(PluginPage.TabName, "[^a-zA-Z0-9]+", "-")) .. reqParamsClass .. [[">
<h2 class="welcome-msg">Welcome <span class="username">]] .. TemplateRequest.Request.Username .. [[</span></h2>
<hr/>
<h3>]] .. SubTitle .. [[</h3>
]] .. PageContent .. [[</div>
<div class="clear"></div>
</div>
</div>
<div id="footer"><div class="fleft">running MCServer using <span class="bold">]] .. MemoryUsageKiB / 1024 .. [[MB</span> of memory; <span class="bold">]] .. NumChunks .. [[</span> chunks</div><div class="fright">design by <a href="//www.github.com/WebFreak001">WebFreak001</a></div><div class="clear"></div></div>
</div>
</body>
</html>
]])