本文整理汇总了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>