Posted by morbiuswilters on Wed 30 Apr 16:23
report abuse | View followups from Anonymous | download | new post
- #!/usr/bin/php
- <?php
- $night_int = 20;
- if ($min % $night_int) {
- }
- }
- $q = "SELECT * FROM prefs WHERE (name IN ('site_pass', 'site_cookie'))";
- $prefs[$a['name']] = $a['value'];
- }
- $resp = http('/users/list.php');
- if (!$pos4 || ($pos5 < $pos4)) {
- $pos4 = $pos5;
- }
- $users[$name] = $id;
- }
- }
- $q = "SELECT * FROM user_alerts";
- $tmp[] = $a;
- } else {
- }
- }
- foreach ($users as $user => $uid) {
- $ins = "INSERT INTO user_alerts (user, user_id) VALUES ('" . mysql_escape_string($user) . "', '" . mysql_escape_string($uid) . "')";
- }
- $users = $tmp;
- foreach ($users as $user) {
- $url = '/activity.php&uid=' . $user['user_id'];
- $data = http($url);
- $last_act = 0;
- if (!$last_act) {
- $last_act = $act_id;
- }
- if (!$user['last_activity'] || ($act_id == $user['last_activity'])) {
- break;
- }
- activity_alert($user['user'], $tmp);
- }
- if ($user['last_activity'] != $last_act) {
- $upd = "UPDATE user_alerts SET last_activity = '" . mysql_escape_string($last_act) . "' WHERE (user = '" . mysql_escape_string($user['user']) . "')";
- }
- }
- function activity_alert($user, $act)
- {
- static $sfd;
- }
- $msg = "RAW PRIVMSG #ColdFusionCoderz :Activity Alert! $user has done $act\r\n";
- }
- {
- login();
- }
- $type . ' ' . $url . ' HTTP/1.1',
- 'Host: www.coldfusioncoderz.com',
- 'Keep-Alive: 300',
- 'Connection: keep-alive',
- );
- $req[] = 'Cookie: ' . $GLOBALS['prefs']['site_cookie'];
- }
- $post_data = '';
- foreach ($post as $k => $v) {
- }
- $req[] = 'Content-Type: application/x-www-form-urlencoded';
- $req[] = "\r\n" . $post_data;
- }
- $resp = '';
- $chunked = false;
- $length = 0;
- while (1) {
- $resp .= $tmp;
- if (!$length && !$chunked) {
- $chunked = true;
- }
- }
- break;
- }
- }
- $read = 0;
- $to_read = 65000;
- while (1) {
- if ($length) {
- while ($read < $length) {
- $t = $length - $read;
- if ($t < $to_read) {
- $to_read = $t;
- }
- $resp .= $s;
- }
- $length = 0;
- } else if ($chunked) {
- $read = 0;
- $to_read = 65000;
- } else {
- return $resp;
- }
- }
- }
- function login()
- {
- 'username' => 'cold_fusion_rockz',
- 'password' => $GLOBALS['prefs']['site_pass'],
- );
- $login = http('/login.php', $post, true);
- }
- $cookie = "PHPSESSID=" . $tmp2[0];
- $del = "DELETE FROM prefs WHERE (name = 'site_cookie')";
- $ins = "INSERT INTO prefs (name, value) VALUES ('site_cookie', '" . mysql_escape_string($cookie) . "')";
- $GLOBALS['prefs']['site_cookie'] = $cookie;
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.