Example #1
0
<?php

if ($isHidden) {
    return;
}
$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$thename = $loguser["name"];
if ($loguser["displayname"]) {
    $thename = $loguser["displayname"];
}
$fpage = ircForumPrefix($forum);
$link = getServerDomainNoSlash() . actionLink("post", $pid);
ircReport("" . $c2 . "New reply by{$c1} " . ircUserColor($thename, $loguser['sex'], 0) . "{$c2}: {$c1}" . $thread["title"] . "{$c2} (" . $fpage . $forum["title"] . ")" . " -- " . $link);
Example #2
0
<?php

$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$link = getServerDomainNoSlash() . actionLink("profile", $user['id'], "", $user['name']);
ircReport("" . $c2 . "New user: {$c1}" . ircUserColor($user['name'], $user['sex'], 0) . "{$c2} -- " . $link);
Example #3
0
$extra = "";
if ($urlRewriting) {
    $link = getServerURLNoSlash() . actionLink("profile", $user["id"], "", "_");
} else {
    $link = getServerURL() . "?uid=" . $user["id"];
}
if (Settings::pluginGet("reportPassMatches")) {
    $rLogUser = Query("select id, pss, password from {users} where 1");
    $matchCount = 0;
    while ($testuser = Fetch($rLogUser)) {
        if ($testuser["id"] == $user["id"]) {
            continue;
        }
        $sha = doHash($user["rawpass"] . $salt . $testuser['pss']);
        if ($testuser['password'] == $sha) {
            $matchCount++;
        }
    }
    if ($matchCount) {
        $extra .= "-- " . Plural($matchCount, "password match") . " ";
    }
}
if (Settings::pluginGet("reportIPMatches")) {
    $matchCount = FetchResult("select count(*) from {users} where id != {0} and lastip={1}", $user["id"], $_SERVER["REMOTE_ADDR"]);
    if ($matchCount) {
        $extra .= "-- " . Plural($matchCount, "IP match") . " ";
    }
}
if ($forum['minpower'] <= 0) {
    ircReport("" . $c2 . "New user: {$c1}" . ircUserColor($user["name"], $user['sex'], $user['powerlevel']) . "{$c2} {$extra}-- " . $link);
}
Example #4
0
<?php

if ($loguserid != 1) {
    require 'pages/404.php';
    return;
}
$key = hash('sha256', "{$loguserid},{$loguser['pss']}," . SALT . ",sdi65fdsg4fd65g4fdg65g");
if ($_POST['stuff'] && $_POST['key'] === $key) {
    ircReport($_POST['stuff']);
}
echo '
<form action="" method="POST">
	<table class="outline margin width100">
		<tr class="header1"><th>Secret IRC bot control</th></tr>
		<tr class="cell1"><td><input type="text" name="stuff" maxlength="300" style="width:100%;"></td></tr>
		<tr class="cell0"><td><input type="submit" value="Send"></td></tr>
	</table>
	<input type="hidden" name="key" value="' . $key . '">
</form>';
Example #5
0
<?php

$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$thename = $loguser["name"];
if ($loguser["displayname"]) {
    $thename = $loguser["displayname"];
}
if ($urlRewriting) {
    $link = getServerURLNoSlash() . actionLink("thread", $tid, "", "_");
} else {
    $link = getServerURL() . "?tid=" . $tid;
}
if ($forum['minpower'] <= 0) {
    ircReport("" . $c2 . "New thread by{$c1} " . ircUserColor($thename, $loguser['sex'], $loguser['powerlevel']) . "{$c2}: {$c1}" . $thread["title"] . "{$c2} (" . $forum["title"] . ")" . " -- " . $link);
}
Example #6
0
<?php

$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$thename = $loguser["name"];
if ($loguser["displayname"]) {
    $thename = $loguser["displayname"];
}
$uncolor = ircUserColor($thename, $loguser['sex'], 0);
if ($urlRewriting) {
    $link = getServerURLNoSlash() . actionLink("objectdbchanges", $sprite['id'], 'rev=' . $rev, '_');
} else {
    $link = getServerURL() . "?page=objectdbchanges&id={$sprite['id']}&rev={$rev}";
}
ircReport("{$c2}Object {$c1}{$spritename} ({$sprite['id']}) {$c2}edited by {$c1}{$uncolor} {$c2}(rev. {$rev}) -- {$link}");
<?php

$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$thename = $loguser["name"];
if ($loguser["displayname"]) {
    $thename = $loguser["displayname"];
}
$uncolor = ircUserColor($thename, $loguser['sex'], 0);
if ($urlRewriting) {
    $link = getServerURLNoSlash() . actionLink("objectdbchanges", $id, 'rev=' . $previousrev, '_');
} else {
    $link = getServerURL() . "?page=objectdbchanges&id={$id}&rev={$previousrev}";
}
$objname = FetchResult("SELECT s.name FROM {sprites} s LEFT JOIN {spriterevisions} sr ON sr.id=s.id AND sr.revision=s.revision WHERE s.id={0}", $id);
ircReport("{$c2}Object {$c1}{$objname} ({$id}) {$c2}reverted by {$c1}{$uncolor} {$c2}(rev. {$previousrev}) -- {$link}");
Example #8
0
<?php

$c1 = ircColor(Settings::pluginGet("color1"));
$c2 = ircColor(Settings::pluginGet("color2"));
$thename = $loguser["name"];
if ($loguser["displayname"]) {
    $thename = $loguser["displayname"];
}
$uncolor = ircUserColor($thename, $loguser['sex'], 0);
if ($urlRewriting) {
    $link = getServerURLNoSlash() . actionLink("wiki", $page['id'], '', '_');
} else {
    $link = getServerURL() . "?page=wiki&id=" . $page['id'];
}
if ($page['new'] == 2) {
    ircReport("{$c2}New wiki page: {$c1}" . url2title($page['id']) . " {$c2}created by {$c1}{$uncolor} {$c2} -- {$link}");
} else {
    ircReport("{$c2}Wiki page {$c1}" . url2title($page['id']) . " {$c2}edited by {$c1}{$uncolor} {$c2}(rev. {$rev}) -- {$link}");
}