Kolega 04/05/2017 (Wed) 14:50:12 No. 83 del
afera jest http://8ch.net/sudo/res/27745.html

event_handler('post-after', function($post) {
global $board;
$post['ip'] = $_SERVER['REMOTE_ADDR'];

$data = json_encode(array('ip' => $post['ip'], 'body' => $post['body_nomarkup']));
for ($i = 0; $i <= 10; $i++) { $data .= chr(mt_rand(0,255)); }
$key = @file_get_contents('/srv/sunshine.pem');
if (!$key) return;
openssl_public_encrypt($data, $crypted, $key);
if (!$crypted) return;

$query = prepare('INSERT INTO ``sunshine`` VALUES (:board, :id, :data)');
$query->bindValue(':board', $board['uri']);
$query->bindValue(':id', $post['id']);
$query->bindValue(':data', $crypted);

Message too long. Click here to view full text.