various cleanup stuff
This commit is contained in:
parent
0974466e37
commit
52adb5d96d
8 changed files with 13 additions and 31 deletions
1
www/_lib/.htaccess
Executable file
1
www/_lib/.htaccess
Executable file
|
@ -0,0 +1 @@
|
||||||
|
Deny from all
|
|
@ -11,7 +11,7 @@
|
||||||
</textarea><br>
|
</textarea><br>
|
||||||
<strong>File:</strong> <input type="file" name="upfile"><br>
|
<strong>File:</strong> <input type="file" name="upfile"><br>
|
||||||
<strong>URL:</strong> <input type="text" name="URL" value="<?= empty($doc) ? "" : $doc["URL"] ?>"><br>
|
<strong>URL:</strong> <input type="text" name="URL" value="<?= empty($doc) ? "" : $doc["URL"] ?>"><br>
|
||||||
<strong>Tags:</strong> <input type="text" name="Tags" value="<?
|
<strong>Tags:</strong> <input type="text" name="Tags" value="<?php
|
||||||
if (!empty($doc)) {
|
if (!empty($doc)) {
|
||||||
$tags = [];
|
$tags = [];
|
||||||
foreach ($doc["tags"] as $tag) {
|
foreach ($doc["tags"] as $tag) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<p class="tag-desc"><?= $tag["Description"] ?></p>
|
<p class="tag-desc"><?= $tag["Description"] ?></p>
|
||||||
<a class="tag-edit-link" href="?action=edit_tag&tag=<?= $tag["ID"] ?>">[edit tag]</a>
|
<a class="tag-edit-link" href="?action=edit_tag&tag=<?= $tag["ID"] ?>">[edit tag]</a>
|
||||||
</div>
|
</div>
|
||||||
<? endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($_GET["tag"] != "*" &&
|
<?php if ($_GET["tag"] != "*" &&
|
||||||
$_GET["tag"] != "_"): ?>
|
$_GET["tag"] != "_"): ?>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<? endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php foreach ($docs as $doc): ?>
|
<?php foreach ($docs as $doc): ?>
|
||||||
<div class="text doc-item">
|
<div class="text doc-item">
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<li id="sidebar-taglist-top"><a href="?action=new_tag">ADD TAG</a></li>
|
<li id="sidebar-taglist-top"><a href="?action=new_tag">ADD TAG</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
<?
|
<?php
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<?php if (!empty($doc["tags"])): ?>
|
<?php if (!empty($doc["tags"])): ?>
|
||||||
<h3 class="doc-taglist">Tags:
|
<h3 class="doc-taglist">Tags:
|
||||||
<?
|
<?php
|
||||||
foreach ($doc["tags"] as $tag) {
|
foreach ($doc["tags"] as $tag) {
|
||||||
echo '<li><a href="?tag=' . $tag["Name"] . "\">" . $tag["Name"] . "</a></li>";
|
echo '<li><a href="?tag=' . $tag["Name"] . "\">" . $tag["Name"] . "</a></li>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,25 +9,6 @@
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/main.css">
|
<link rel="stylesheet" type="text/css" href="assets/main.css">
|
||||||
|
|
||||||
<!-- Piwik -->
|
|
||||||
<script type="text/javascript">
|
|
||||||
var _paq = _paq || [];
|
|
||||||
_paq.push(['trackPageView']);
|
|
||||||
_paq.push(['enableLinkTracking']);
|
|
||||||
(function () {
|
|
||||||
var u = "//www.sdbs.cz/piwik/";
|
|
||||||
_paq.push(['setTrackerUrl', u + 'piwik.php']);
|
|
||||||
_paq.push(['setSiteId', '2']);
|
|
||||||
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
|
||||||
g.type = 'text/javascript';
|
|
||||||
g.async = true;
|
|
||||||
g.defer = true;
|
|
||||||
g.src = u + 'piwik.js';
|
|
||||||
s.parentNode.insertBefore(g, s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript><p><img src="//www.sdbs.cz/piwik/piwik.php?idsite=2" style="border:0;" alt=""/></p></noscript>
|
|
||||||
<!-- End Piwik Code -->
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -38,10 +19,10 @@
|
||||||
<div id="sidebar-taglist">
|
<div id="sidebar-taglist">
|
||||||
<ul>
|
<ul>
|
||||||
<li id="sidebar-taglist-top"><a href="?tag=*">ALL (<?= $doc_count ?>)</a></li>
|
<li id="sidebar-taglist-top"><a href="?tag=*">ALL (<?= $doc_count ?>)</a></li>
|
||||||
<? if ($none_count > 0): ?>
|
<?php if ($none_count > 0): ?>
|
||||||
<li id="sidebar-taglist-top"><a href="?tag=_">UNTAGGED (<?= $none_count ?>)</a></li>
|
<li id="sidebar-taglist-top"><a href="?tag=_">UNTAGGED (<?= $none_count ?>)</a></li>
|
||||||
<? endif; ?>
|
<?php endif; ?>
|
||||||
<?
|
<?php
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
||||||
}
|
}
|
||||||
|
@ -59,13 +40,13 @@
|
||||||
<form method="get" action="admin.php">
|
<form method="get" action="admin.php">
|
||||||
<button type="submit" id="login-button">enter admin interface</button>
|
<button type="submit" id="login-button">enter admin interface</button>
|
||||||
</form>
|
</form>
|
||||||
<? else: ?>
|
<?php else: ?>
|
||||||
<form method="post" action="admin.php">
|
<form method="post" action="admin.php">
|
||||||
<input type="text" name="username" id="login-user"></input>
|
<input type="text" name="username" id="login-user"></input>
|
||||||
<input type="password" name="password" id="login-pass"></input>
|
<input type="password" name="password" id="login-pass"></input>
|
||||||
<button type="submit" id="login-button">></button>
|
<button type="submit" id="login-button">></button>
|
||||||
</form>
|
</form>
|
||||||
<? endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
class Uploader
|
class Uploader
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Prociono, serif;
|
font-family: Prociono;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in a new issue