From d8c385176ceaff6ced9b74cecc3750c45caa5d01 Mon Sep 17 00:00:00 2001
From: 8chan
Were you inactive for longer than one week? Were there no posts on the board for 72 hours?
+As of November 13th, 2014, board expiration no longer occurs.
-If either of those is true, the board was deleted automatically. You are free to recreate it. I cannot restore it, so don't bother emailing me about it.
+You still may lose access to your board, however, if you fail to log in for two weeks or it receives no posts for a week. See here for a list of boards that are available for reclaiming.
Make sure you are using the volunteer interface to view your board. The URL of your browser should be https://8chan.co/mod.php?/yourboard.
@@ -47,7 +47,7 @@ $body = <<If the owner of the board is inactive or the board is broken due to bad CSS, sure. Send me an email.
+If the owner of the board is inactive or the board is broken due to bad CSS, sure. Send me an email. You can see a list of boards that qualify for being taken over here.
Open a Github issue. Better yet, write it yourself and open a pull request.
diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php
index 6b7f97b8..1073f3ba 100644
--- a/inc/8chan-mod-pages.php
+++ b/inc/8chan-mod-pages.php
@@ -49,6 +49,38 @@
$config['mod']['ban_appeals'] = BOARDVOLUNTEER;
$config['mod']['view_ban_appeals'] = BOARDVOLUNTEER;
$config['mod']['view_ban'] = BOARDVOLUNTEER;
+ $config['mod']['reassign_board'] = ADMIN;
+
+ $config['mod']['custom_pages']['/reassign/(\%b)'] = function($b) {
+ global $board, $config;
+
+ if (!openBoard($b))
+ error("Could not open board!");
+
+ if (!hasPermission($config['mod']['reassign_board'], $b))
+ error($config['error']['noaccess']);
+
+ $query = query("SELECT id, username FROM mods WHERE boards = '$b' AND type = 20");
+ $mods = $query->fetchAll();
+
+ if (!$mods) {
+ error('No mods?');
+ }
+
+ $password = base64_encode(openssl_random_pseudo_bytes(9));
+ $salt = generate_salt();
+ $hashed = hash('sha256', $salt . sha1($password));
+
+ $query = prepare('UPDATE ``mods`` SET `password` = :hashed, `salt` = :salt WHERE BINARY username = :mod');
+ $query->bindValue(':hashed', $hashed);
+ $query->bindValue(':salt', $salt);
+ $query->bindValue(':mod', $mods[0]['username']);
+ $query->execute();
+
+ $body = "Thanks for your interest in this board. Kindly find the username and password below. You can login at 8chan.co/mod.php.
Username: {$mods[0]['username']}
Password: {$password}
Thanks for using 8chan.co!";
+
+ mod_page(_('Edit reassign'), 'blank.html', array('board'=>$board,'token'=>make_secure_link_token('reassign/'.$board['uri']),'body'=>$body));
+ };
$config['mod']['custom_pages']['/volunteers/(\%b)'] = function($b) {
global $board, $config, $pdo;
diff --git a/templates/8chan/index.html b/templates/8chan/index.html
index dc120787..61cd051c 100644
--- a/templates/8chan/index.html
+++ b/templates/8chan/index.html
@@ -295,7 +295,7 @@
{% trans %}On ∞chan, you can create your own imageboard for free with no experience or programming knowledge needed. As long as the admin logs in once per week and it gets one new post every 72 hours, the board will be hosted forever.{% endtrans %}
+{% trans %}On ∞chan, you can create your own imageboard for free with no experience or programming knowledge needed. As long as the board has unobtrusive CSS, the owner doesn't ban more than half the users, the owner logs in once every two weeks and it gets one new post every week, you will retain the board forever.{% endtrans %}
{% trans %}Warning: Some boards on this site might contain content of an adult or offensive nature. Please cease use of this site if it is illegal for you to view such content. The boards on this site are made entirely by the users and do not represent the opinions of the administration of 8chan.co. In the interest of free speech, only content that directly violates the DMCA or other US laws is deleted.{% endtrans %}