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:
parent
f42e172cc6
commit
e6995e42ee
@ -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 = prepare("DELETE FROM bans WHERE board = :board");
|
||||||
$query->bindValue(":board", $board['uri']);
|
$query->bindValue(":board", $board['uri']);
|
||||||
$query->execute();
|
$query->execute();
|
||||||
|
_syslog(LOG_NOTICE, "Board claimed: {$board['uri']}");
|
||||||
|
|
||||||
$body = "<p>Please read the following instructions carefully:</p>
|
$body = "<p>Please read the following instructions carefully:</p>
|
||||||
|
|
||||||
|
@ -106,6 +106,8 @@ rebuildThemes('boards');
|
|||||||
|
|
||||||
query("INSERT INTO ``board_create``(uri) VALUES('$uri')") or error(db_error());
|
query("INSERT INTO ``board_create``(uri) VALUES('$uri')") or error(db_error());
|
||||||
|
|
||||||
|
_syslog(LOG_NOTICE, "New board: $uri");
|
||||||
|
|
||||||
$body = <<<EOT
|
$body = <<<EOT
|
||||||
|
|
||||||
<p>Your new board is created and is live at <a href="/{$uri}">/{$uri}/</a>.</p>
|
<p>Your new board is created and is live at <a href="/{$uri}">/{$uri}/</a>.</p>
|
||||||
|
@ -126,6 +126,7 @@ foreach($delete as $i => $d){
|
|||||||
rrmdir($board['uri'] . '/');
|
rrmdir($board['uri'] . '/');
|
||||||
cache::delete('board_' . $board['uri']);
|
cache::delete('board_' . $board['uri']);
|
||||||
|
|
||||||
|
_syslog(LOG_NOTICE, "Board deleted: {$board['uri']}");
|
||||||
if ($d['mod']) {
|
if ($d['mod']) {
|
||||||
$query = prepare('DELETE FROM ``mods`` WHERE `username` = :id');
|
$query = prepare('DELETE FROM ``mods`` WHERE `username` = :id');
|
||||||
$query->bindValue(':id', $d['mod']);
|
$query->bindValue(':id', $d['mod']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user