1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 09:27:24 +01:00

Syslog to 8chan scripts

This commit is contained in:
8chan 2014-06-17 22:58:53 +00:00
parent f42e172cc6
commit e6995e42ee
3 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,7 @@ query(sprintf("UPDATE posts_%s SET ip = '127.0.0.1'", $board['uri']));
$query = prepare("DELETE FROM bans WHERE board = :board");
$query->bindValue(":board", $board['uri']);
$query->execute();
_syslog(LOG_NOTICE, "Board claimed: {$board['uri']}");
$body = "<p>Please read the following instructions carefully:</p>

View File

@ -106,6 +106,8 @@ rebuildThemes('boards');
query("INSERT INTO ``board_create``(uri) VALUES('$uri')") or error(db_error());
_syslog(LOG_NOTICE, "New board: $uri");
$body = <<<EOT
<p>Your new board is created and is live at <a href="/{$uri}">/{$uri}/</a>.</p>

View File

@ -126,6 +126,7 @@ foreach($delete as $i => $d){
rrmdir($board['uri'] . '/');
cache::delete('board_' . $board['uri']);
_syslog(LOG_NOTICE, "Board deleted: {$board['uri']}");
if ($d['mod']) {
$query = prepare('DELETE FROM ``mods`` WHERE `username` = :id');
$query->bindValue(':id', $d['mod']);