本文整理匯總了PHP中misc::scanTiebaByPid方法的典型用法代碼示例。如果您正苦於以下問題:PHP misc::scanTiebaByPid方法的具體用法?PHP misc::scanTiebaByPid怎麽用?PHP misc::scanTiebaByPid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類misc
的用法示例。
在下文中一共展示了misc::scanTiebaByPid方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: cron_pch18_relist
function cron_pch18_relist()
{
global $m;
$query = $m->query("SELECT DISTINCT id,uid FROM `" . DB_PREFIX . "baiduid` ");
while ($fetch = $m->fetch_array($query)) {
$id = $fetch['id'];
$uid = $fetch['uid'];
$isqd_query = $m->query("SELECT * FROM `" . DB_PREFIX . "pch18_relist` where id=" . $id . " and lastdate='" . date("Y-m-d") . "'");
$isqd_fetch = $m->fetch_array($isqd_query);
$setqd = option::uget('pch18_relist_enable', $uid);
if (!empty($setqd)) {
//user表裏麵開啟簽到功能
$r = misc::scanTiebaByPid($id);
//更新列表函數
$m->query("REPLACE INTO `" . DB_NAME . "`.`" . DB_PREFIX . "pch18_relist` SET `lastdate` = '" . date("Y-m-d") . "', id = " . $id);
}
}
}
示例2: Redirect
}
Redirect(SYSTEM_URL . 'index.php?mod=admin:setplug&plug=pch18_relist&isok=已刷新完所有狀態為未開啟用戶貼吧列表');
die;
case 'kong':
//刷新空賬戶
$baid_ft = $m->query("SELECT id,uid FROM `" . DB_PREFIX . "baiduid`");
while ($baid = $m->fetch_array($baid_ft)) {
$uxs = $m->once_fetch_array("SELECT * FROM `" . DB_PREFIX . "users` where id=" . $baid['uid']);
if ($uxs['t'] == '') {
continue;
}
$uxsm = $m->once_fetch_array("SELECT COUNT(*) AS `c` FROM `" . DB_PREFIX . $uxs['t'] . "` WHERE `pid` = " . $baid['id']);
if ($uxsm['c'] == 0) {
$r = misc::scanTiebaByPid($baid['id']);
//更新列表函數
$m->query("REPLACE INTO `" . DB_NAME . "`.`" . DB_PREFIX . "pch18_relist` SET `lastdate` = '" . date("Y-m-d") . "', id = " . $baid['id']);
}
}
Redirect(SYSTEM_URL . 'index.php?mod=admin:setplug&plug=pch18_relist&isok=已刷新完所有空賬戶');
die;
default:
if ($_GET['ref'] > 0) {
$r = misc::scanTiebaByPid($_GET['ref']);
$m->query("REPLACE INTO `" . DB_NAME . "`.`" . DB_PREFIX . "pch18_relist` SET `lastdate` = '" . date("Y-m-d") . "', id = " . $_GET['ref']);
Redirect(SYSTEM_URL . 'index.php?mod=admin:setplug&plug=pch18_relist&isok=已刷新完PID=' . $_GET['ref'] . '的用戶的貼吧列表');
}
}
}
?>
</tbody>
</table>