Several minor changes

main
Pk11 1 year ago
parent a33abd8758
commit f34283c5af

@ -15,6 +15,10 @@ textarea {
max-width: 100%; max-width: 100%;
} }
a {
word-wrap: anywhere;
}
input[type=submit], input[type=submit],
button { button {
background-color: #ebc; background-color: #ebc;
@ -102,6 +106,18 @@ strong.quote {
margin-right: 10px; margin-right: 10px;
} }
.ts {
color: #67b0db;
}
.rn {
color: #b78a9d;
}
.a {
color: whitesmoke;
}
.clearfix:after { .clearfix:after {
content: "."; content: ".";
display: block; display: block;

@ -26,7 +26,8 @@
*/ */
$start_time = microtime(true); $start_time = microtime(true);
$captcha_str = substr(strtr(sha1($start_time), "1234567890ABCDEF", "abdeghjkmnpqtuwx"), 0, 6); # $captcha_str = substr(strtr(sha1($start_time), "1234567890ABCDEF", "abdeghjkmnpqtuwx"), 0, 6);
$captcha_str = 'i\'m not a robot';
// Return source code // Return source code
if(isset($_GET['source'])) { if(isset($_GET['source'])) {
@ -288,6 +289,7 @@
$comment = preg_replace('/(?:https?|mailto|tel|ftp):.+?(?=\s|,|&lt;|<|$)/m', '<a href="$0" target="_blank">$0</a>', $comment); $comment = preg_replace('/(?:https?|mailto|tel|ftp):.+?(?=\s|,|&lt;|<|$)/m', '<a href="$0" target="_blank">$0</a>', $comment);
$comment = preg_replace_callback('/&gt;&gt;\s*(\d+)/', 'quote_link', $comment); $comment = preg_replace_callback('/&gt;&gt;\s*(\d+)/', 'quote_link', $comment);
$comment = str_replace("\n", "<br />", $comment); $comment = str_replace("\n", "<br />", $comment);
$comment = str_replace('trans', '<span class="ts">t</span><span class="rn">r</span><span class="a">a</span><span class="rn">n</span><span class="ts">s</span>', $comment);
echo "<div>$comment</div>"; echo "<div>$comment</div>";
} }
echo '</div></div></div>'; echo '</div></div></div>';
@ -454,6 +456,7 @@
<link rel="alternate" type="application/rss+xml" title="RSS feed" href="/rss.php" /> <link rel="alternate" type="application/rss+xml" title="RSS feed" href="/rss.php" />
<link href="<?php echo ASSETS_PATH . 'style.css'; ?>" rel="stylesheet" /> <link href="<?php echo ASSETS_PATH . 'style.css'; ?>" rel="stylesheet" />
<meta name="theme-color" content="#facade">
</head> </head>
<body class="center"> <body class="center">
<center> <center>
@ -466,6 +469,7 @@
[<a href="?source">source</a>] [<a href="?source">source</a>]
[<a href="rss.php">feed</a>] [<a href="rss.php">feed</a>]
[<a href="rss.php?source">feed source</a>] [<a href="rss.php?source">feed source</a>]
[<a href="//xn--rck9c.xn--tckwe">back</a>]
</p> </p>
<hr /> <hr />
@ -607,6 +611,7 @@
[<a href="?source">source</a>] [<a href="?source">source</a>]
[<a href="rss.php">feed</a>] [<a href="rss.php">feed</a>]
[<a href="rss.php?source">feed source</a>] [<a href="rss.php?source">feed source</a>]
[<a href="//xn--rck9c.xn--tckwe">back</a>]
</p> </p>
<p> <p>

Loading…
Cancel
Save