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>
|
||||
<strong>File:</strong> <input type="file" name="upfile"><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)) {
|
||||
$tags = [];
|
||||
foreach ($doc["tags"] as $tag) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<p class="tag-desc"><?= $tag["Description"] ?></p>
|
||||
<a class="tag-edit-link" href="?action=edit_tag&tag=<?= $tag["ID"] ?>">[edit tag]</a>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_GET["tag"] != "*" &&
|
||||
$_GET["tag"] != "_"): ?>
|
||||
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php foreach ($docs as $doc): ?>
|
||||
<div class="text doc-item">
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<li id="sidebar-taglist-top"><a href="?action=new_tag">ADD TAG</a></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<?
|
||||
<?php
|
||||
foreach ($tags as $tag) {
|
||||
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<?php if (!empty($doc["tags"])): ?>
|
||||
<h3 class="doc-taglist">Tags:
|
||||
<?
|
||||
<?php
|
||||
foreach ($doc["tags"] as $tag) {
|
||||
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">
|
||||
|
||||
<!-- 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>
|
||||
<body>
|
||||
|
||||
|
@ -38,10 +19,10 @@
|
|||
<div id="sidebar-taglist">
|
||||
<ul>
|
||||
<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>
|
||||
<? endif; ?>
|
||||
<?
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
foreach ($tags as $tag) {
|
||||
echo '<li><a href="?tag=' . $tag['name'] . "\">" . $tag['name'] . " (" . $tag['count'] . ")</a></li>";
|
||||
}
|
||||
|
@ -59,13 +40,13 @@
|
|||
<form method="get" action="admin.php">
|
||||
<button type="submit" id="login-button">enter admin interface</button>
|
||||
</form>
|
||||
<? else: ?>
|
||||
<?php else: ?>
|
||||
<form method="post" action="admin.php">
|
||||
<input type="text" name="username" id="login-user"></input>
|
||||
<input type="password" name="password" id="login-pass"></input>
|
||||
<button type="submit" id="login-button">></button>
|
||||
</form>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?
|
||||
<?php
|
||||
|
||||
class Uploader
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
}
|
||||
|
||||
body {
|
||||
font-family: Prociono, serif;
|
||||
font-family: Prociono;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
|
|
Loading…
Reference in a new issue