Skip to content

Commit

Permalink
Removed HTML from Admin Enviroment Check code (feature #717)
Browse files Browse the repository at this point in the history
  • Loading branch information
dengenxp committed Jan 7, 2017
1 parent 726717a commit d6b11b4
Show file tree
Hide file tree
Showing 22 changed files with 1,299 additions and 554 deletions.
730 changes: 379 additions & 351 deletions public_html/admin/envcheck.php

Large diffs are not rendered by default.

24 changes: 18 additions & 6 deletions public_html/layout/denim/admin/envcheck.thtml
Expand Up @@ -8,17 +8,29 @@

{filesystem_list}

{!if phpinfo}
<div class="block-center">
{!if phpinfo_content}
<section class="block-center">
{# Mimic ADMIN_simpleList function output #}
<h2>{lang_current_php_settings}</h2>
<div class="block-center-content">
<div id="toggle_phpinfo">{lang_showhide_phpinfo}</div>
<div id="panel_phpinfo">
{phpinfo}
</div>
<section id="panel_phpinfo">
<!--
<style>{phpinfo_style}</style>
-->
{phpinfo_content}
</section>
</div>
</div>
</section>
<script>
$(function() {
$("#panel_phpinfo table").addClass("uk-table").wrap("<div class='uk-overflow-container'></div>");
});
</script>
{!endif}

{# end {templatelocation} #}

<!-- BEGIN status -->
<span class="{status_class}">{status_value}</span>
<!-- END status -->
104 changes: 84 additions & 20 deletions public_html/layout/denim/css_ltr/style.almost-flat.css
Expand Up @@ -86,7 +86,6 @@ fieldset {
margin: 0 0 1em 0;
padding: 8px 12px;
border: 1px solid #CCC;
-webkit-border-radius: 4px;
border-radius: 4px;
}

Expand Down Expand Up @@ -233,7 +232,6 @@ input[type="reset"] {
text-decoration: none;
text-align: center;
border: 1px solid rgba(0,0,0,.06);
-webkit-border-radius: 4px;
border-radius: 4px;
text-shadow: 0 1px 0 #FFF;
}
Expand Down Expand Up @@ -291,7 +289,6 @@ input[type="reset"]:disabled {
.uk-button-group > div:not(:first-child):not(:last-child) input[type="reset"] {
border-left-color: rgba(0,0,0,.1);
border-right-color: rgba(0,0,0,.1);
-webkit-border-radius: 0;
border-radius: 0;
}

Expand Down Expand Up @@ -2663,7 +2660,6 @@ h4 img {
.block-message {
margin: 1.5em 0;
padding: 0;
-webkit-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
Expand All @@ -2682,7 +2678,6 @@ h4 img {
text-shadow: 0 1px 1px rgba(0,0,0,.3);
font-weight: bold;
border: 1px solid rgba(0,0,0,.2);
-webkit-border-radius: 6px 6px 0 0;
border-radius: 6px 6px 0 0;
}

Expand All @@ -2693,7 +2688,6 @@ h4 img {
color: #404040;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
border: 1px solid rgba(0,0,0,.2);
-webkit-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
}

Expand Down Expand Up @@ -3174,7 +3168,6 @@ div.third-party-login {
}

.gl-tooltip:hover span {
-webkit-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: 2px 2px 8px #666;
box-shadow: 2px 2px 8px #666;
Expand Down Expand Up @@ -3295,7 +3288,6 @@ span.warning em {
#commentbar {
padding: 3px;
background: none repeat scroll 0 0 #EEE;
-webkit-border-radius: 4px;
border-radius: 4px;
zoom: 1;
}
Expand Down Expand Up @@ -3920,7 +3912,6 @@ dd#profile-user_photo {
border: 1px solid rgba(0,0,0,.2);
padding: 10px;
line-height: 1.25;
-webkit-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
Expand Down Expand Up @@ -4353,14 +4344,7 @@ b.status_black {
color: #C00;
}

/* PHPInfo Panel style and button */
#panel_phpinfo {
padding: 5px;
width: 600px;
margin: auto;
text-align: center;
}

/* PHPInfo Button and Panel style */
#toggle_phpinfo {
padding: 5px;
width: 200px;
Expand All @@ -4370,8 +4354,90 @@ b.status_black {
}

#panel_phpinfo {
padding: 50px;
display: none;
font-size: 13px;
}

#panel_phpinfo pre {
margin: 0;
font-family: monospace;
}

#panel_phpinfo a:link {
color: #009;
text-decoration: none;
background-color: #FFF;
}

#panel_phpinfo a:hover {
text-decoration: underline;
}

#panel_phpinfo table {
border-collapse: collapse;
border: 0;
width: 100%;
}

#panel_phpinfo .center {
text-align: center;
}

#panel_phpinfo .center table {
margin: 1em auto;
text-align: left;
}

#panel_phpinfo .center th {
text-align: center !important;
}

#panel_phpinfo td,
#panel_phpinfo th {
border: 1px solid #666;
vertical-align: baseline;
padding: 4px 5px;
}

#panel_phpinfo .p {
text-align: left;
}

#panel_phpinfo .e {
background-color: #CCF;
width: 300px;
font-weight: bold;
}

#panel_phpinfo .h {
background-color: #99C;
font-weight: bold;
}

#panel_phpinfo .v {
background-color: #F0F0F0;
max-width: 300px;
overflow-x: auto;
word-wrap: break-word;
}

#panel_phpinfo .v i {
color: #999;
}

#panel_phpinfo .v p {
margin: 0;
}

#panel_phpinfo img {
float: right;
border: 0;
}

#panel_phpinfo hr {
background-color: #CCC;
border: 0;
height: 1px;
}

/*--------------------------------------
Expand Down Expand Up @@ -4556,7 +4622,6 @@ body.center-right #config_content {
display: inline-block;
border: 1px solid #666;
border-color: #BEDAF3;
-webkit-border-radius: 2px 2px 2px 2px;
border-radius: 2px 2px 2px 2px;
background: #E4EDF5;
color: #369;
Expand All @@ -4576,7 +4641,6 @@ body.center-right #config_content {
display: inline-block;
border: 1px solid #666;
border-color: #79B1E7;
-webkit-border-radius: 2px 2px 2px 2px;
border-radius: 2px 2px 2px 2px;
background: #A8C4E0;
color: #2A527A;
Expand Down
2 changes: 1 addition & 1 deletion public_html/layout/denim/css_ltr/style.almost-flat.min.css

Large diffs are not rendered by default.

0 comments on commit d6b11b4

Please sign in to comment.