$id)); if (!empty($row['url'])) { header("Location: ".$row['url']); } $row = istripslashes($row); $title = $row['title']; if($_W['os'] == 'android' && $_W['container'] == 'wechat' && $_W['account']['account']) { $subscribeurl = "weixin://profile/{$_W['account']['account']}"; } else { $sql = 'SELECT `subscribeurl` FROM ' . tablename('account_wechats') . " WHERE `acid` = :acid"; $subscribeurl = pdo_fetchcolumn($sql, array(':acid' => intval($_W['acid']))); } include $this->template('detail'); } }