-
Notifications
You must be signed in to change notification settings - Fork 51
/
auto_shout_scroll_get.php
41 lines (39 loc) · 1.93 KB
/
auto_shout_scroll_get.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
|--------------------------------------------------------------------------|
| https://github.com/Bigjoos/ |
|--------------------------------------------------------------------------|
| Licence Info: WTFPL |
|--------------------------------------------------------------------------|
| Copyright (C) 2010 U-232 V5 |
|--------------------------------------------------------------------------|
| A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon. |
|--------------------------------------------------------------------------|
| Project Leaders: Mindless, Autotron, whocares, Swizzles. |
|--------------------------------------------------------------------------|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \
( U | - | 2 | 3 | 2 )-( S | o | u | r | c | e )-( C | o | d | e )
\_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
*/
require_once (__DIR__ . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'bittorrent.php');
require_once (INCL_DIR . 'user_functions.php');
require_once (INCL_DIR . 'bbcode_functions.php');
dbconn(true);
loggedinorreturn();
echo "";
//Check for Auto Shouts and cache it
//$mc1->delete_value('auto_shoutbox_');
//== cache the data
if (($shouts = $mc1->get_value('auto_shoutbox_')) === false) {
$res = sql_query("SELECT text FROM shoutbox WHERE staff_shout ='no' AND autoshout ='yes' ORDER BY id DESC LIMIT 10") or sqlerr(__FILE__, __LINE__);
while ($shout = mysqli_fetch_assoc($res)) $shouts[] = $shout;
$mc1->cache_value('auto_shoutbox_', $shouts, $INSTALLER09['expires']['shoutbox']);
}
//Output the shouts
if (is_array($shouts)) {
foreach ($shouts as $arr) {
echo format_comment($arr["text"])." ";
}
}
?>