Skip to content

Commit

Permalink
Sync dev
Browse files Browse the repository at this point in the history
added robots.txt
added favicon
fix server name
fix parent redirect (iframe sandboxed)
  • Loading branch information
drAlberT committed Feb 1, 2016
1 parent fa0c3ad commit 08d962a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Installation:
- just clone the repo into your vhost root directory (**not the document root**)

```
composer create-project dralbert/php-admin-tk /var/www/your-admin-vhost [--ignore-platform-reqs]
composer create-project [--ignore-platform-reqs] dralbert/php-admin-tk /var/www/your-admin-vhost
```

# License
Expand Down
Binary file added httpdocs/favicon.ico
Binary file not shown.
6 changes: 4 additions & 2 deletions httpdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function ($dir) {
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="/favicon.ico">
<title><?php echo getenv('HOSTNAME') ?> admin console</title>
<style type="text/css">
* { margin:0; padding:0 }
Expand All @@ -44,7 +46,7 @@ function resizeIframe(obj) {
</head>
<body>
<header>
<h1><span class="server-name"><?php echo getenv('HOSTNAME') ?></span> admin console</h1>
<h1><span class="server-name"><?php echo php_uname('n') ?></span> admin console</h1>
<nav>
<ul>
<?php foreach ($tools as $tool): ?>
Expand All @@ -53,7 +55,7 @@ function resizeIframe(obj) {
</ul>
</nav>
</header>
<iframe id="appframe" src="" frameborder="0" scrolling="auto" onload="resizeIframe(this);"></iframe>
<iframe id="appframe" src="" frameborder="0" scrolling="auto" onload="resizeIframe(this);" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
<footer>
<a id="github" href="https://github.com/dralbert/php-admin-tk" target="_blank">drAlberT/php-admin-tk</a>
</footer>
Expand Down
2 changes: 2 additions & 0 deletions httpdocs/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /

0 comments on commit 08d962a

Please sign in to comment.