|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 183
Members: 0
Total: 183
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Urgent Please Decode it :( ... |
|
Posted: Thu Mar 03, 2011 3:35 pm |
|
|
omer_razzak |
Beginner |
|
|
Joined: Mar 03, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
Please Someone Decode this php fast :(
Code: | <?php if(!function_exists("TC9A16C47DA8EEE87")){function TC9A16C47DA8EEE87($T059EC46CFE335260){$T059EC46CFE335260=base64_decode($T059EC46CFE335260);$TC9A16C47DA8EEE87=0;$TA7FB8B0A1C0E2E9E=0;$T17D35BB9DF7A47E4=0;$T65CE9F6823D588A7=(ord($T059EC46CFE335260[1])<<8)+ord($T059EC46CFE335260[2]);$TBF14159DC7D007D3=3;$T77605D5F26DD5248=0;$T4A747C3263CA7A55=16;$T7C7E72B89B83E235="";$T0D47BDF6FD9DDE2E=strlen($T059EC46CFE335260);$T43D5686285035C13=__FILE__;$T43D5686285035C13=file_get_contents($T43D5686285035C13);$T6BBC58A3B5B11DC4=0;preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"),$T43D5686285035C13,$T6BBC58A3B5B11DC4);for(;$TBF14159DC7D007D3<$T0D47BDF6FD9DDE2E;){if(count($T6BBC58A3B5B11DC4)) exit;if($T4A747C3263CA7A55==0){$T65CE9F6823D588A7=(ord($T059EC46CFE335260[$TBF14159DC7D007D3++])<<8);$T65CE9F6823D588A7+=ord($T059EC46CFE335260[$TBF14159DC7D007D3++]);$T4A747C3263CA7A55=16;}if($T65CE9F6823D588A7&0x8000){$TC9A16C47DA8EEE87=(ord($T059EC46CFE335260[$TBF14159DC7D007D3++])<<4);$TC9A16C47DA8EEE87+=(ord($T059EC46CFE335260[$TBF14159DC7D007D3])>>4);if($TC9A16C47DA8EEE87){$TA7FB8B0A1C0E2E9E=(ord($T059EC46CFE335260[$TBF14159DC7D007D3++])&0x0F)+3;for($T17D35BB9DF7A47E4=0;$T17D35BB9DF7A47E4<$TA7FB8B0A1C0E2E9E;$T17D35BB9DF7A47E4++)$T7C7E72B89B83E235[$T77605D5F26DD5248+$T17D35BB9DF7A47E4]=$T7C7E72B89B83E235[$T77605D5F26DD5248-$TC9A16C47DA8EEE87+$T17D35BB9DF7A47E4];$T77605D5F26DD5248+=$TA7FB8B0A1C0E2E9E;}else{$TA7FB8B0A1C0E2E9E=(ord($T059EC46CFE335260[$TBF14159DC7D007D3++])<<8);$TA7FB8B0A1C0E2E9E+=ord($T059EC46CFE335260[$TBF14159DC7D007D3++])+16;for($T17D35BB9DF7A47E4=0;$T17D35BB9DF7A47E4<$TA7FB8B0A1C0E2E9E;$T7C7E72B89B83E235[$T77605D5F26DD5248+$T17D35BB9DF7A47E4++]=$T059EC46CFE335260[$TBF14159DC7D007D3]);$TBF14159DC7D007D3++;$T77605D5F26DD5248+=$TA7FB8B0A1C0E2E9E;}}else $T7C7E72B89B83E235[$T77605D5F26DD5248++]=$T059EC46CFE335260[$TBF14159DC7D007D3++];$T65CE9F6823D588A7<<=1;$T4A747C3263CA7A55--;if($TBF14159DC7D007D3==$T0D47BDF6FD9DDE2E){$T43D5686285035C13=implode("",$T7C7E72B89B83E235);$T43D5686285035C13="?".">".$T43D5686285035C13;return $T43D5686285035C13;}}}}eval(TC9A16C47DA8EEE87("QAIAPD9waHAgABBpbmNsdWRlKCIBGGhlYWRlci4BcCIpOwGQADJpZigAACRfU0VTU0lPTlsnbG9nZ2UAAGRfaW4nXSA9PSAxICYmICQAAF9HRVRbJ2pvYl9pZCddKXsQACAgCQNiMjA3REYxNjRBNUZGAAA1QjRBQUMyNjYxQzRFODc3AAA2ODlDWydzZXR0aW5nX2FwAIBwX3N0YXR1cwWDImRlb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QWkCIgVXNlcnM6OODfgAQPBAwiLTCx9C1S0t/S2wcfIC49ICIgUB93YWdlByIEHwQcBywcFF+pMgXvBeNGrwAtUA0g8gAC+wTMEDQRAl9E+tA5MEEwNzE0MUMCADM2NTU5MfwwMDcwRDAzODZBAAYxKCJQb3N0ZWQgdG8gE9WJcCKAjABBU1VDQ0VTUwCxSk9CAHBFYmlk/gx2URLjGhAiozkPOQp8wF90aW1lGXAwAXNxT8FsAOEuIji/OLjEQRjhJQjCOWFsd2F5fmAB2GN0aXZlICEBsA8iCQ9FUiFSt3N0YS4CdHVaYScFlgh/CHggZWNobyAiECAgAF1DT01QTEVURUQXISAVzxXOA1ssLdD8AABAFX8G4xVzeeUHZ0JBVENIIFJVTiAPR0RPTkUHsg5fDl8OVHDV0GluZw4/B1OCg8dwDL8Mv09CIAisDMAhUCINDwWzDQMgIH0="));?> |
|
|
|
|
|
|
|
|
|
Posted: Fri Mar 04, 2011 12:00 am |
|
|
tsabitah |
Valuable expert |
|
|
Joined: Jul 07, 2010 |
Posts: 328 |
Location: surabaya |
|
|
|
|
|
|
Code: | <?php
include("header.php");
if ($_SESSION['logged_in'] == 1 && $_GET['job_id']) {
if ($_207DF164A5FF5B4AAC2661C4E877689C['setting_app_status'] == "deleted") {
echo("Sorry! This App has been deleted. \n\n App ID : " . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "");
exit;
}
$job_id = $_GET['job_id'];
$_C0620F86D47501F4D76DD2888AF0B03D = mysql_fetch_assoc(mysql_query("SELECT * FROM jobs WHERE job_id = $job_id"));
if ($_C0620F86D47501F4D76DD2888AF0B03D['job_status'] != "running") {
_762FE66E0465552B74FFB122B4CB17C7($_C0620F86D47501F4D76DD2888AF0B03D);
}
} else {
$h = date("G");
$_8F38B7B0391ACE28AF6E9666011DC24B = mysql_query("SELECT NULL FROM jobs WHERE job_status = 'pending' AND job_parallel == 1");
$_3F873ECC5D59863B1BB3BF49F255D079 = mysql_query("SELECT job_id, job_setting_id FROM jobs WHERE job_status = 'running' AND job_parallel != 1");
if (!mysql_num_rows($_8F38B7B0391ACE28AF6E9666011DC24B) && mysql_num_rows($_3F873ECC5D59863B1BB3BF49F255D079) > 0) {
while ($_AC2980CDB4A4F19AF1F01C13512E287B = mysql_fetch_assoc($_3F873ECC5D59863B1BB3BF49F255D079)) {
$job_ids[] = $_AC2980CDB4A4F19AF1F01C13512E287B['job_id'];
$setting_ids[] = $_AC2980CDB4A4F19AF1F01C13512E287B['job_setting_id'];
}
echo(mysql_num_rows($_3F873ECC5D59863B1BB3BF49F255D079) . " Non-Parallel Job(s) currently running. <br />Job IDs : " . implode(", ", $job_ids) . " <br />Setting IDs : " . implode(", ", $setting_ids));
exit;
}
$_0BC6DEA7268039D7312C7DDFBB58281E = " AND setting_app_id != '' AND setting_app_secret != '' AND setting_app_canvas_page != '' AND setting_app_status = 'live' AND (job_usercount = 0 OR ( SELECT COUNT(*) FROM users WHERE user_appid = setting_app_id) >= job_usercount)";
$_1FE77DB5AD9B94C801A40C410B5F2A4D = mysql_query("SELECT NULL FROM jobs LEFT JOIN settings ON setting_id = job_setting_id WHERE job_status = 'pending' AND job_lastran = 0 AND (job_lastran_time IS NULL OR TIMESTAMPDIFF(MINUTE, job_lastran_time, '$sqltime') > job_batch_interval) AND ( (job_run_time_from IS NULL AND job_run_time_to IS NULL) OR (job_run_time_from IS NOT NULL AND job_run_time_to IS NOT NULL AND (job_run_time_from <= $h OR job_run_time_to >= $h)) ) $_0BC6DEA7268039D7312C7DDFBB58281E") or die(db_error());
if (!mysql_num_rows($_1FE77DB5AD9B94C801A40C410B5F2A4D)) {
mysql_query("UPDATE jobs SET job_lastran = 0 WHERE job_status = 'pending' AND (job_lastran_time IS NULL OR TIMESTAMPDIFF(MINUTE, job_lastran_time, '$sqltime') > job_batch_interval) AND ( (job_run_time_from IS NULL AND job_run_time_to IS NULL) OR (job_run_time_from IS NOT NULL AND job_run_time_to IS NOT NULL AND (job_run_time_from <= $h OR job_run_time_to >= $h)) )");
}
$_1FE77DB5AD9B94C801A40C410B5F2A4D = mysql_query("SELECT * FROM jobs LEFT JOIN settings ON setting_id = job_setting_id WHERE job_status = 'pending' AND job_lastran = 0 AND (job_lastran_time IS NULL OR TIMESTAMPDIFF(MINUTE, job_lastran_time, '$sqltime') > job_batch_interval) AND ( (job_run_time_from IS NULL AND job_run_time_to IS NULL) OR (job_run_time_from IS NOT NULL AND job_run_time_to IS NOT NULL AND (job_run_time_from <= $h OR job_run_time_to >= $h)) ) $_0BC6DEA7268039D7312C7DDFBB58281E ORDER BY job_parallel DESC LIMIT 1");
if (mysql_num_rows($_1FE77DB5AD9B94C801A40C410B5F2A4D) != 1) {
echo("No Pending Jobs Found.");
exit;
} else {
$_C0620F86D47501F4D76DD2888AF0B03D = mysql_fetch_assoc($_1FE77DB5AD9B94C801A40C410B5F2A4D);
$_207DF164A5FF5B4AAC2661C4E877689C = mysql_fetch_assoc(mysql_query("SELECT * FROM settings WHERE setting_id = '" . $_C0620F86D47501F4D76DD2888AF0B03D['job_setting_id'] . "'"));
if ($_207DF164A5FF5B4AAC2661C4E877689C['setting_app_status'] == "deleted") {
echo("Sorry! This App has been deleted. \n\n App ID : " . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "");
exit;
}
_762FE66E0465552B74FFB122B4CB17C7($_C0620F86D47501F4D76DD2888AF0B03D);
}
}
function _762FE66E0465552B74FFB122B4CB17C7(&$_C0620F86D47501F4D76DD2888AF0B03D)
{
global $_207DF164A5FF5B4AAC2661C4E877689C, $job_id, $sqltime;
$batch_size = $_C0620F86D47501F4D76DD2888AF0B03D['job_batch_size'];
$job_id = $_C0620F86D47501F4D76DD2888AF0B03D['job_id'];
$job_setting_id = $_C0620F86D47501F4D76DD2888AF0B03D['job_setting_id'];
$job_batch_size = $_C0620F86D47501F4D76DD2888AF0B03D['job_batch_size'];
$job_always_active = $_C0620F86D47501F4D76DD2888AF0B03D['job_always_active'];
$job_lastran = $_C0620F86D47501F4D76DD2888AF0B03D['job_lastran'];
$job_message = $_C0620F86D47501F4D76DD2888AF0B03D['job_message'];
$job_name = $_C0620F86D47501F4D76DD2888AF0B03D['job_name'];
$job_caption = $_C0620F86D47501F4D76DD2888AF0B03D['job_caption'];
$job_link = $_C0620F86D47501F4D76DD2888AF0B03D['job_link'];
$job_description = $_C0620F86D47501F4D76DD2888AF0B03D['job_description'];
$job_picture = $_C0620F86D47501F4D76DD2888AF0B03D['job_picture'];
$job_users = $_C0620F86D47501F4D76DD2888AF0B03D['job_users'];
$job_user_friends = $_C0620F86D47501F4D76DD2888AF0B03D['job_user_friends'];
$job_friends = $_C0620F86D47501F4D76DD2888AF0B03D['job_friends'];
$job_friends_count = $_C0620F86D47501F4D76DD2888AF0B03D['job_friends_count'];
$job_pages = $_C0620F86D47501F4D76DD2888AF0B03D['job_pages'];
$job_pages_fans = $_C0620F86D47501F4D76DD2888AF0B03D['job_pages_fans'];
$job_status = $_C0620F86D47501F4D76DD2888AF0B03D['job_status'];
$job_parallel = $_C0620F86D47501F4D76DD2888AF0B03D['job_parallel'];
$job_last_users = $_C0620F86D47501F4D76DD2888AF0B03D['job_last_users'];
$job_last_pages = $_C0620F86D47501F4D76DD2888AF0B03D['job_last_pages'];
$job_last_friends = $_C0620F86D47501F4D76DD2888AF0B03D['job_last_friends'];
$job_updated = $_C0620F86D47501F4D76DD2888AF0B03D['job_updated'];
$job_countries = $_C0620F86D47501F4D76DD2888AF0B03D['job_countries'];
$job_run_time_from = $_C0620F86D47501F4D76DD2888AF0B03D['job_run_time_from'];
$job_run_time_to = $_C0620F86D47501F4D76DD2888AF0B03D['job_run_time_to'];
if ($_207DF164A5FF5B4AAC2661C4E877689C['setting_app_canvas_page'] != "" && strpos(curl_get($_207DF164A5FF5B4AAC2661C4E877689C['setting_app_canvas_page']), "URL returned error: 404") > 0) {
$_F1E3AEFE842DF71A713D242A04C1315C = "UPDATE `settings` SET `setting_app_status` = 'deleted' WHERE `setting_id` = {$_207DF164A5FF5B4AAC2661C4E877689C['setting_id']}";
mysql_query($_F1E3AEFE842DF71A713D242A04C1315C) or db_error($_F1E3AEFE842DF71A713D242A04C1315C);
$_F1E3AEFE842DF71A713D242A04C1315C = "SELECT `admin_email` FROM `admins`";
$_1FE77DB5AD9B94C801A40C410B5F2A4D = mysql_query($_F1E3AEFE842DF71A713D242A04C1315C);
while ($_AC2980CDB4A4F19AF1F01C13512E287B = mysql_fetch_assoc($_1FE77DB5AD9B94C801A40C410B5F2A4D)) {
$message = "Sorry to inform you that Facebook deleted you App! :( \n\n App ID : " . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . " \n App Canvas : {$_207DF164A5FF5B4AAC2661C4E877689C['setting_app_canvas_page']}";
mail($_AC2980CDB4A4F19AF1F01C13512E287B['admin_email'], "iNeoApp : Your app deleted :(", $message);
}
echo("Sorry! This App has been deleted. \n\n App ID : " . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "");
exit;
}
mysql_query("UPDATE jobs SET job_status = 'running', job_lastran = 1 WHERE job_id = $job_id");
_D51790A07141C365591799070D0386A1("JOB BATCH RUN STARTED", "", "SUCCESS", "JOB", $job_id);
$job_link = urldecode(db_unescape($job_link));
$job_picture = urldecode(db_unescape($job_picture));
if ($job_countries != "") {
$job_countries = db_unescape($job_countries);
$job_countries = str_replace("'", "\'", $job_countries);
$job_countries = explode(",", $job_countries);
$job_countries = implode("','", $job_countries);
}
$completed = 1;
if ($job_users == 1) {
if ($job_user_friends > 0) {
$_0BC6DEA7268039D7312C7DDFBB58281E = " AND user_friends >= " . $job_user_friends;
}
if ($job_countries != "") {
$_0BC6DEA7268039D7312C7DDFBB58281E .= " AND user_country IN ('$job_countries')";
}
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT user_id, user_uid, user_accesstoken FROM users WHERE user_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND user_id > $job_last_users AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E ORDER BY user_id ASC LIMIT $batch_size");
if (mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$_279DCC8EF089A4EE009B7CE89ACFE803 = 0;
while ($user = mysql_fetch_assoc($_7ABF72D74896D7A6B4E4A33071D6E549)) {
feed_post($user['user_uid'], $user['user_accesstoken'], $job_message, $job_link, $job_picture, $job_name, $job_caption, $job_description, "USER");
$job_last_users = $user['user_id'];
if ($_279DCC8EF089A4EE009B7CE89ACFE803 % 50 == 0) {
mysql_query("UPDATE jobs SET job_last_users = '$job_last_users' WHERE job_id = $job_id");
}
$_279DCC8EF089A4EE009B7CE89ACFE803++;
}
mysql_query("UPDATE jobs SET job_last_users = '$job_last_users' WHERE job_id = '$job_id'");
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT NULL FROM users WHERE user_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND user_id > $job_last_users AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E LIMIT 1");
if (mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$completed = 0;
}
}
$_0BC6DEA7268039D7312C7DDFBB58281E = "";
}
$job_status = mysql_result(@mysql_query("SELECT job_status FROM jobs WHERE job_id = $job_id"), 0, 0);
if ($job_status == "running" && $job_pages == 1) {
if ($job_pages_fans > 0) {
$_0BC6DEA7268039D7312C7DDFBB58281E = " AND page_fans >= " . $job_pages_fans;
}
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT page_id, page_pid, page_accesstoken FROM pages LEFT JOIN users ON user_id = page_user_id WHERE page_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND page_id > $job_last_pages AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E ORDER BY page_id ASC LIMIT $batch_size");
if (mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$_D6B4866DE799951786FDAED18597880B = 0;
while ($page = mysql_fetch_assoc($_7ABF72D74896D7A6B4E4A33071D6E549)) {
feed_post($page['page_pid'], $page['page_accesstoken'], $job_message, $job_link, $job_picture, $job_name, $job_caption, $job_description, "PAGE");
$job_last_pages = $page['page_id'];
if ($_D6B4866DE799951786FDAED18597880B % 50 == 0) {
mysql_query("UPDATE jobs SET job_last_pages = '{$page['page_id']}' WHERE job_id = $job_id");
}
$_D6B4866DE799951786FDAED18597880B++;
}
mysql_query("UPDATE jobs SET job_last_pages = '$job_last_pages' WHERE job_id = $job_id");
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT NULL FROM pages WHERE page_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND page_id > $job_last_pages AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E LIMIT 1");
if (mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$completed = 0;
}
}
$_0BC6DEA7268039D7312C7DDFBB58281E = "";
}
$job_status = mysql_result(@mysql_query("SELECT job_status FROM jobs WHERE job_id = $job_id"), 0, 0);
if ($job_status == "running" && $job_friends == 1 && $job_friends_count > 0) {
if ($job_countries != "") {
$_0BC6DEA7268039D7312C7DDFBB58281E = " AND user_country IN ('$job_countries')";
}
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT friend_id, friend_fids, user_accesstoken AS friend_accesstoken FROM friends LEFT JOIN users ON user_id = friend_user_id WHERE friend_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND friend_id > $job_last_friends AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E ORDER BY friend_id ASC LIMIT $batch_size");
if (mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$friends_count = 0;
while ($_674FD624627783E3C3A67A4B9DBACD48 = mysql_fetch_assoc($_7ABF72D74896D7A6B4E4A33071D6E549)) {
$friend_fids = explode(",", $_674FD624627783E3C3A67A4B9DBACD48['friend_fids']);
if (sizeof($friend_fids) < $job_friends_count) {
$_721BA534AA98B5D45F718DA5892AA532 = sizeof($friend_fids);
} else {
$_721BA534AA98B5D45F718DA5892AA532 = $job_friends_count;
}
$_EA4DFAC84463D5F50C51CCA3FB74B868 = array_rand($friend_fids, $_721BA534AA98B5D45F718DA5892AA532);
if (!is_array($_EA4DFAC84463D5F50C51CCA3FB74B868)) {
feed_post($friend_fids[$_EA4DFAC84463D5F50C51CCA3FB74B868], $_674FD624627783E3C3A67A4B9DBACD48['friend_accesstoken'], $job_message, $job_link, $job_picture, $job_name, $job_caption, $job_description, "FRIEND");
$friends_count++;
} else {
foreach ($_EA4DFAC84463D5F50C51CCA3FB74B868 as $_03693FD24BA83452D5BC6EE20DEB8273) {
feed_post($friend_fids[$_03693FD24BA83452D5BC6EE20DEB8273], $_674FD624627783E3C3A67A4B9DBACD48['friend_accesstoken'], $job_message, $job_link, $job_picture, $job_name, $job_caption, $job_description, "FRIEND");
$friends_count++;
}
}
$job_last_friends = $_674FD624627783E3C3A67A4B9DBACD48['friend_id'];
if ($friends_count % 50 == 0) {
mysql_query("UPDATE jobs SET job_last_friends = '$job_last_friends' WHERE job_id = $job_id");
}
if ($friends_count >= $batch_size) {
break;
}
if ($_721BA534AA98B5D45F718DA5892AA532 >= 20 && is_array($_EA4DFAC84463D5F50C51CCA3FB74B868)) {
sleep(60);
}
}
mysql_query("UPDATE jobs SET job_last_friends = '$job_last_friends' WHERE job_id = $job_id");
$_7ABF72D74896D7A6B4E4A33071D6E549 = mysql_query("SELECT NULL FROM friends WHERE friend_appid = '" . $_207DF164A5FF5B4AAC2661C4E877689C['setting_app_id'] . "' AND friend_id > $job_last_friends AND user_enabled = 1 $_0BC6DEA7268039D7312C7DDFBB58281E LIMIT 1");
if (@mysql_num_rows($_7ABF72D74896D7A6B4E4A33071D6E549) > 0) {
$completed = 0;
}
}
$_0BC6DEA7268039D7312C7DDFBB58281E = "";
}
if ($_279DCC8EF089A4EE009B7CE89ACFE803 > 0) {
$message = " Users: $_279DCC8EF089A4EE009B7CE89ACFE803 ";
}
if ($_D6B4866DE799951786FDAED18597880B > 0) {
$message .= " Pages: $_D6B4866DE799951786FDAED18597880B ";
}
if ($friends_count > 0) {
$message .= " Friends: $friends_count ";
}
if ($message) {
_D51790A07141C365591799070D0386A1("Posted to $message", "", "SUCCESS", "JOB", $job_id);
}
mysql_query("UPDATE jobs SET job_lastran_time = '" . $sqltime . "' WHERE job_id = $job_id");
if ($completed == 1 && $job_always_active != 1) {
mysql_query("UPDATE jobs SET job_status = 'completed' WHERE job_id = $job_id");
echo "JOB COMPLETED";
_D51790A07141C365591799070D0386A1("JOB COMPLETED", "", "SUCCESS", "JOB", $job_id);
} else {
echo "JOB BATCH RUN DONE";
mysql_query("UPDATE jobs SET job_status = 'pending' WHERE job_id = $job_id");
_D51790A07141C365591799070D0386A1("JOB BATCH RUN DONE", "", "SUCCESS", "JOB", $job_id);
}
}
?> |
|
|
|
|
|
|
|
|
|
Posted: Fri Mar 04, 2011 6:14 am |
|
|
omer_razzak |
Beginner |
|
|
Joined: Mar 03, 2011 |
Posts: 2 |
|
|
|
|
|
|
|
I am unable to see reply :S
please upload it some where else ( |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|