This commit is contained in:
8chan 2015-04-25 01:06:21 +00:00
commit 26a2eade57
9 changed files with 24 additions and 14 deletions

View File

@ -56,7 +56,7 @@ A lot of the static pages (claim.html, boards.html, index.html) need to be regen
```cron ```cron
*/10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php */10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php > /srv/http/claim.html */5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php
*/20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");' */20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");'
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php */5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php
``` ```

View File

@ -58,4 +58,4 @@ foreach($boards as $board) {
} }
} }
$body = Element("8chan/claim.html", array("config" => $config, "delete" => $delete)); $body = Element("8chan/claim.html", array("config" => $config, "delete" => $delete));
echo Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))); file_write("claim.html", Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))));

View File

@ -166,7 +166,7 @@ Assuming the /b/ board, they are as follows:</p>
<h2>How do I donate?</h2> <h2>How do I donate?</h2>
<p>Donations can be sent to 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C (Bitcoin) or LUPgSCJt3iGeJXUETVhmnbQ89Riaq1yjZm (Litecoin).</p> <p>Donations can be sent to 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C (Bitcoin) or LUPgSCJt3iGeJXUETVhmnbQ89Riaq1yjZm (Litecoin).</p>
<p>I am also a big fan of Monero (XMR). You can send XMR to our <a href="http://openalias.org">OpenAlias</a> in the simplewallet client, or simply send to 49dBJhGhYFxJEfydS6hH6GRyg1W4cDgupdNVtw7j1WtcUY7xPXwNLw6fUVay644viaCcEhMFG1Z7SjjxRXEFDdNWJdvH9kS.</p> <p>I am also a big fan of Monero (XMR). You can send XMR to our <a href="http://openalias.org">OpenAlias</a> in the simplewallet client, or simply send to 49dBJhGhYFxJEfydS6hH6GRyg1W4cDgupdNVtw7j1WtcUY7xPXwNLw6fUVay644viaCcEhMFG1Z7SjjxRXEFDdNWJdvH9kS.</p>
<p>If you would like to support development of the engine that 8chan runs on (infinity), you may also <a href="https://gratipay.com/infinitechan">donate via Gratipay</a>.</p> <p>If you would like to support development of the engine that 8chan runs on (infinity), you may also <a href="https://flattr.com/submit/auto?user_id=copypaste&url=https%3A%2F%2F8ch.net%2Finfinity.html" target="_blank"><img src="//button.flattr.com/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0"></a>.</p>
<h2>Are you really a cripple?</h2> <h2>Are you really a cripple?</h2>
<p>Yes.</p> <p>Yes.</p>
<img src="/static/Mamoru.jpg" alt="Mamoru" style="width:128px"> <img src="/static/Mamoru.jpg" alt="Mamoru" style="width:128px">

View File

@ -166,7 +166,7 @@
$config['markup_paragraphs'] = true; $config['markup_paragraphs'] = true;
$config['markup_rtl'] = true; $config['markup_rtl'] = true;
$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-ban" title="Public ban list"></i>' => '/bans.html', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'news+', 'boards'), array('operate', 'meta'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan')); $config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-ban" title="Public ban list"></i>' => '/bans.html', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'n', 'boards'), array('operate', 'meta'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan'));
//$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array('v', 'a', 'tg', 'fit', 'pol', 'tech', 'mu', 'co', 'sp', 'boards'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan')); //$config['boards'] = array(array('<i class="fa fa-home" title="Home"></i>' => '/', '<i class="fa fa-tags" title="Boards"></i>' => '/boards.html', '<i class="fa fa-question" title="FAQ"></i>' => '/faq.html', '<i class="fa fa-random" title="Random"></i>' => '/random.php', '<i class="fa fa-plus" title="New board"></i>' => '/create.php', '<i class="fa fa-search" title="Search"></i>' => '/search.php', '<i class="fa fa-cog" title="Manage board"></i>' => '/mod.php', '<i class="fa fa-quote-right" title="Chat"></i>' => 'https://qchat.rizon.net/?channels=#8chan'), array('b', 'meta', 'int'), array('v', 'a', 'tg', 'fit', 'pol', 'tech', 'mu', 'co', 'sp', 'boards'), array('<i class="fa fa-twitter" title="Twitter"></i>'=>'https://twitter.com/infinitechan'));
$config['footer'][] = 'All posts on 8chan are the responsibility of the individual poster and not the administration of 8chan, pursuant to 47 U.S.C. &sect; 230.'; $config['footer'][] = 'All posts on 8chan are the responsibility of the individual poster and not the administration of 8chan, pursuant to 47 U.S.C. &sect; 230.';

View File

@ -1,6 +1,6 @@
<?php <?php
include 'inc/functions.php'; include 'inc/functions.php';
$query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_news+` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC'); $query = query('SELECT np.* FROM newsplus np INNER JOIN `posts_n` p ON np.thread=p.id WHERE np.dead IS FALSE ORDER BY p.bump DESC');
if ($query) { if ($query) {
$newsplus = $query->fetchAll(PDO::FETCH_ASSOC); $newsplus = $query->fetchAll(PDO::FETCH_ASSOC);
} else { } else {
@ -10,4 +10,4 @@ if ($query) {
$index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus)); $index = Element("8chan/index.html", array("config" => $config, "newsplus" => $newsplus));
file_write('index.html', $index); file_write('index.html', $index);
echo $index; echo $index;

View File

@ -1034,12 +1034,12 @@ elseif (isset($_POST['post'])) {
event('post-after', $post); event('post-after', $post);
buildIndex();
// We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI) // We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI)
if (function_exists('fastcgi_finish_request')) { if (function_exists('fastcgi_finish_request')) {
@fastcgi_finish_request(); @fastcgi_finish_request();
} }
buildIndex();
if ($post['op']) { if ($post['op']) {
rebuildThemes('post-thread', $board['uri']); rebuildThemes('post-thread', $board['uri']);

View File

@ -1650,7 +1650,13 @@ td.board-tags a.tag-link {
display: none; display: none;
} }
<<<<<<< HEAD .announcement {
font-size: 75%;
padding-bottom: 1%;
margin-left: 25%;
margin-right: 25%;
}
/* Gallery view */ /* Gallery view */
#gallery_images { #gallery_images {
position: absolute; position: absolute;

View File

@ -209,18 +209,18 @@
<div class="col col-9 header_text"> <div class="col col-9 header_text">
<em>{% trans %}Welcome to 8chan, the infinitely expanding imageboard.{% endtrans %}</em> <em>{% trans %}Welcome to 8chan, the infinitely expanding imageboard.{% endtrans %}</em>
<br> <br>
<span>[ <a href="/b/">/b/ - Random</a> | <a href="/news+/">/news+/ - News</a> | <a href="/boards/">/boards/ - Boards</a>]</span> <span>[ <a href="/b/">/b/ - Random</a> | <a href="/n/">/n/ - News</a> | <a href="/boards/">/boards/ - Boards</a>]</span>
<br> <br>
<strong>{% trans %}Top 25 boards:{% endtrans %}</strong> <strong>{% trans %}Top 25 boards:{% endtrans %}</strong>
<span class="sub" data-description="3"></span> <span class="sub" data-description="3"></span>
<br> <!-- <br>
<strong> <strong>
{% trans %}Boards of the week:{% endtrans %}&nbsp;[&nbsp; {% trans %}Boards of the week:{% endtrans %}&nbsp;[&nbsp;
{% for board in config.boards_of_the_week %} {% for board in config.boards_of_the_week %}
<a href="/{{ board }}">{% if not loop.first %}&nbsp;{% endif %}{{ board }}</a>{% if not loop.last %} /{% endif %} <a href="/{{ board }}">{% if not loop.first %}&nbsp;{% endif %}{{ board }}</a>{% if not loop.last %} /{% endif %}
{% endfor %} {% endfor %}
&nbsp;] &nbsp;]
</strong> </strong> -->
</div> </div>
</header> </header>
@ -276,11 +276,11 @@
<a href="create.php" class="button">{% trans %}Create&nbsp;your&nbsp;board{% endtrans %}</a> <a href="create.php" class="button">{% trans %}Create&nbsp;your&nbsp;board{% endtrans %}</a>
<a href="boards.html" class="button">{% trans %}Browse&nbsp;existing&nbsp;boards{% endtrans %}</a> <a href="boards.html" class="button">{% trans %}Browse&nbsp;existing&nbsp;boards{% endtrans %}</a>
</div> </div>
<p><table><th><a href="/news+/">Latest headlines</a></th> <p><table><th><a href="/n/">Latest headlines</a></th>
<tr><td> <tr><td>
<ol style="padding-left:40px"> <ol style="padding-left:40px">
{% for n in newsplus[:15] %} {% for n in newsplus[:15] %}
<li><a href="/news+/res/{{ n.thread }}.html">{{ n.subject|e }}</a> (<a href="{{ n.link|e }}">link</a>)</li> <li><a href="/n/res/{{ n.thread }}.html">{{ n.subject|e }}</a> (<a href="{{ n.link|e }}">link</a>)</li>
{% endfor %} {% endfor %}
</ol> </ol>
</td></tr></table></p> </td></tr></table></p>

View File

@ -44,6 +44,10 @@
{% include 'attention_bar.html' %} {% include 'attention_bar.html' %}
{% if config.announcement %}
{{ config.announcement }}
{% endif %}
<div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a> <a class="unimportant" href="javascript:window.scrollTo(0,document.body.scrollHeight); <div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a> <a class="unimportant" href="javascript:window.scrollTo(0,document.body.scrollHeight);
">[{% trans %}Go to bottom {% endtrans %}]</a></div> ">[{% trans %}Go to bottom {% endtrans %}]</a></div>