Last active
January 30, 2024 11:27
-
-
Save ingeniousambivert/6e45f45c47118887979849f074317cf0 to your computer and use it in GitHub Desktop.
Custom XAMPP Landing Page with useful links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>XAMPP Home</title> | |
</head> | |
<style type="text/css"> | |
body { | |
background: #fcfcfc; | |
color: #111; | |
font-family: verdana, sans-serif; | |
padding: 0; | |
margin: 0; | |
} | |
#main { | |
width: 100%; | |
position: relative; | |
} | |
.container { | |
padding: 1em; | |
} | |
#menu { | |
float: left; | |
width: 25%; | |
} | |
#menu ul { | |
padding: 0; | |
border-right: 3px solid white; | |
margin: 0; | |
} | |
#displaybox { | |
height: 45%; | |
overflow-y: scroll; | |
} | |
a { | |
text-decoration: none; | |
} | |
ul li { | |
list-style-type: none; | |
} | |
ul li a { | |
display: block; | |
background: #eee; | |
padding: 4px 7px; | |
border-top: 2px solid #fff; | |
} | |
.active { | |
background: #F29C33; | |
color: white; | |
} | |
ul li a:hover { | |
background: #F29C33; | |
color: white; | |
} | |
iframe { | |
border: 0 none; | |
overflow: hidden; | |
width: 74%; | |
height: 95%; | |
padding-left: 1%; | |
} | |
.clear-block { | |
width: 100%; | |
height: 1px; | |
clear: both; | |
} | |
#xamppLogo { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
</style> | |
<link rel="stylesheet" type="text/css" href="phpmyadmin/phpmyadmin.css.php"> | |
</script> | |
<body style="text-align: center;"> | |
<div id="main"> | |
<div class="container"> | |
<div id="menu"> | |
<img id="xamppLogo" src="/dashboard/images/xampp-logo.svg" /><br> | |
<br> | |
<ul> | |
<li><a class="active" href="#">Home</a></li> | |
<li><a target="_blank" href="http://localhost/dashboard/phpinfo.php">PHP Info</a></li> | |
<li><a target="_blank" href="http://localhost/dashboard/faq.html">FAQ</a></li> | |
<li><a target="_blank" href="http://localhost/dashboard/howto.html">How-To Guides</a></li> | |
</ul> | |
<hr> | |
<h3><strong>Web Documents (htdocs/)</strong></h3> | |
<div id="displaybox"> | |
<ul> | |
<?php | |
$www = $_SERVER['DOCUMENT_ROOT']; | |
$files = scandir($www); | |
usort($files, 'strcasecmp'); | |
foreach ($files as $key => $value) { | |
if (($value[0] != '.') && (is_dir($value)) && ($value != "dashboard")) | |
echo '<li><a target="_blank" href="/' . $value . '">' . $value . '</a></li>'; | |
} | |
?> | |
</ul> | |
</div> | |
</div> | |
<div> | |
<iframe src="http://localhost/phpmyadmin"></iframe> | |
</div> | |
<div class="clear-block"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add ->
$cfg['AllowThirdPartyFraming'] = true;
to the config.inc.php to allow the iframe access.Preview