$sql = "SELECT COUNT(*)
FROM migrations";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM `groups`
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$userOnlineMarking = '%s';
FROM users
WHERE users.id BETWEEN ? AND ?
ORDER BY users.id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$banned = 0;
{
$sql = "SELECT COUNT(*) AS count
FROM tags";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
{
$sql = "SELECT *
FROM tags";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
$objectType = ObjectTypeCache::getInstance()
->getObjectTypeByName('com.woltlab.wcf.label.objectType', 'com.woltlab.wbb.board');
ON users.id = discussions.user_id
WHERE discussions.id BETWEEN ? AND ?
ORDER BY discussions.id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
INNER JOIN tags
ON discussion_tag.tag_id = tags.id
{$condition}";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
return $statement->fetchMap('discussion_id', 'name', false);
ON discussions.id = posts.discussion_id
WHERE posts.id BETWEEN ? AND ?
ORDER BY posts.id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['type']) {
{
$sql = "SELECT COUNT(*) AS count
FROM post_likes";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
ON post_likes.post_id = posts.id
ORDER BY post_likes.post_id,
post_likes.user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM polls";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
GROUP BY discussion_id
)
ORDER BY polls.id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM poll_options";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM poll_options
ORDER BY id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM poll_votes";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM poll_votes
ORDER BY id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "core_like";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
$profileFields = $knownProfileFields = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "pfields_data";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (\in_array($row['pf_key'], self::$knownProfileFields)) {
ON pfields_content.member_id = members.member_id
WHERE members.member_id BETWEEN ? AND ?
ORDER BY members.member_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "pfields_data
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "pfields_data
" . $conditionBuilder . "
ORDER BY pf_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM `" . $this->databasePrefix . "groups`
WHERE g_id BETWEEN ? AND ?
ORDER BY g_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$groupType = UserGroup::OTHER;
FROM " . $this->databasePrefix . "profile_portal
WHERE avatar_location <> ''
OR pp_main_photo <> ''";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
if ($row !== false) {
OR pp_main_photo <> ''
)
ORDER BY pp_member_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
if ($row['pp_main_photo']) {
ON members.member_id = status_updates.status_author_id
WHERE status_updates.status_id BETWEEN ? AND ?
ORDER BY status_updates.status_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = member_status_replies.reply_member_id
WHERE member_status_replies.reply_id BETWEEN ? AND ?
ORDER BY member_status_replies.reply_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "profile_friends
WHERE friends_id BETWEEN ? AND ?
ORDER BY friends_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_topics.mt_starter_id
WHERE message_topics.mt_id BETWEEN ? AND ?
ORDER BY message_topics.mt_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_posts.msg_author_id
WHERE message_posts.msg_id BETWEEN ? AND ?
ORDER BY message_posts.msg_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_topic_user_map.map_user_id
WHERE message_topic_user_map.map_id BETWEEN ? AND ?
ORDER BY message_topic_user_map.map_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forums";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forums
ORDER BY parent_id, id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parent_id']][] = $row;
FROM " . $this->databasePrefix . "topics
WHERE tid BETWEEN ? AND ?
ORDER BY tid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['tid'];
$sql = "SELECT topics.*
FROM " . $this->databasePrefix . "topics topics
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "posts
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_like
WHERE like_app = ?
AND like_area = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forums', 'topics']);
$row = $statement->fetchArray();
WHERE like_app = ?
AND like_area = ?
ORDER BY like_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forums', 'topics']);
while ($row = $statement->fetchArray()) {
$data = [
ON topics.tid = polls.tid
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = @\unserialize($row['choices']);
ON polls.tid = voters.tid
WHERE voters.vid BETWEEN ? AND ?
ORDER BY voters.vid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = @\unserialize($row['member_choices']);
WHERE like_app = ?
AND like_area = ?
AND like_visible = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forums', 'topics', 1]);
$row = $statement->fetchArray();
AND core_like.like_area = ?
AND core_like.like_visible = ?
ORDER BY core_like.like_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forums', 'topics', 1]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE attach_rel_module = ?
AND attach_rel_id > ?
AND attach_id BETWEEN ? AND ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$type,
0,
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "gallery_categories";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "gallery_categories
ORDER BY category_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = albums.album_owner_id
WHERE albums.album_id BETWEEN ? AND ?
ORDER BY albums.album_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = images.image_member_id
WHERE image_id BETWEEN ? AND ?
ORDER BY image_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'uploads/' . $row['image_directory'] . '/' . $row['image_masked_file_name'];
$sql = "SELECT tag_meta_id, tag_text
FROM " . $this->databasePrefix . "core_tags
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['tag_meta_id']])) {
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "core_admin_permission_rows";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
$profileFields = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "core_pfields_data";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$profileFields[] = $row;
ON pfields_content.member_id = members.member_id
WHERE members.member_id BETWEEN ? AND ?
ORDER BY members.member_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "core_pfields_data";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "core_pfields_data
ORDER BY pf_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_groups
WHERE g_id BETWEEN ? AND ?
ORDER BY g_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$groupType = UserGroup::OTHER;
$sql = "SELECT MAX(member_id) AS maxID
FROM " . $this->databasePrefix . "core_members
WHERE pp_main_photo <> ''";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
if ($row !== false) {
WHERE member_id BETWEEN ? AND ?
AND pp_main_photo <> ''
ORDER BY member_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$avatarName = \basename($row['pp_main_photo']);
ON members.member_id = status_updates.status_author_id
WHERE status_updates.status_id BETWEEN ? AND ?
ORDER BY status_updates.status_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = member_status_replies.reply_member_id
WHERE member_status_replies.reply_id BETWEEN ? AND ?
ORDER BY member_status_replies.reply_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_follow
WHERE follow_app = ?
AND follow_area = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['core', 'member']);
$row = $statement->fetchArray();
WHERE follow_app = ?
AND follow_area = ?
ORDER BY follow_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['core', 'member']);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_topics.mt_starter_id
WHERE message_topics.mt_id BETWEEN ? AND ?
ORDER BY message_topics.mt_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_posts.msg_author_id
WHERE message_posts.msg_id BETWEEN ? AND ?
ORDER BY message_posts.msg_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = message_topic_user_map.map_user_id
WHERE message_topic_user_map.map_id BETWEEN ? AND ?
ORDER BY message_topic_user_map.map_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forums_forums";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forums_forums
ORDER BY parent_id, id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parent_id']][] = $row;
FROM " . $this->databasePrefix . "forums_topics
WHERE tid BETWEEN ? AND ?
ORDER BY tid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['tid'];
$sql = "SELECT topics.*
FROM " . $this->databasePrefix . "forums_topics topics
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "forums_posts
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_follow
WHERE follow_app = ?
AND follow_area = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forums', 'topic']);
$row = $statement->fetchArray();
WHERE follow_app = ?
AND follow_area = ?
ORDER BY follow_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forums', 'topic']);
while ($row = $statement->fetchArray()) {
$data = [
ON topics.poll_state = polls.pid
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
if (!$row['topic_firstpost']) {
ON polls.pid = voters.poll
WHERE voters.vid BETWEEN ? AND ?
ORDER BY voters.vid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
try {
FROM " . $this->databasePrefix . "core_reputation_index
WHERE app = ?
AND type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forums', 'pid']);
$row = $statement->fetchArray();
WHERE core_reputation_index.app = ?
AND core_reputation_index.type = ?
ORDER BY core_reputation_index.id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forums', 'pid']);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_attachments_map
WHERE location_key = ?
AND id2 IS NOT NULL";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$type]);
$row = $statement->fetchArray();
WHERE core_attachments_map.location_key = ?
AND core_attachments_map.id2 IS NOT NULL
ORDER BY core_attachments_map.attachment_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$type]);
while ($row = $statement->fetchArray()) {
if (!$row['attach_id']) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "gallery_categories";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "gallery_categories
ORDER BY category_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = albums.album_owner_id
WHERE albums.album_id BETWEEN ? AND ?
ORDER BY albums.album_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "gallery_images
WHERE image_id BETWEEN ? AND ?
ORDER BY image_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$imageIDs[] = $row['image_id'];
LEFT JOIN " . $this->databasePrefix . "core_members members
ON members.member_id = images.image_member_id
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'uploads/' . $row['image_original_file_name'];
FROM " . $this->databasePrefix . "gallery_comments
WHERE comment_id BETWEEN ? AND ?
ORDER BY comment_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_reputation_index
WHERE app = ?
AND type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['gallery', 'image_id']);
$row = $statement->fetchArray();
WHERE core_reputation_index.app = ?
AND core_reputation_index.type = ?
ORDER BY core_reputation_index.id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['gallery', 'image_id']);
while ($row = $statement->fetchArray()) {
$data = [
ON members.member_id = blogs.blog_member_id
WHERE blogs.blog_id BETWEEN ? AND ?
ORDER BY blogs.blog_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "blog_entry_categories";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "blog_entry_categories
ORDER BY entry_category_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "blog_entries
WHERE entry_id BETWEEN ? AND ?
ORDER BY entry_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$entryIDs[] = $row['entry_id'];
$sql = "SELECT *
FROM " . $this->databasePrefix . "blog_entries
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$additionalData = [];
FROM " . $this->databasePrefix . "blog_comments
WHERE comment_id BETWEEN ? AND ?
ORDER BY comment_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "core_reputation_index
WHERE app = ?
AND type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['blog', 'entry_id']);
$row = $statement->fetchArray();
WHERE core_reputation_index.app = ?
AND core_reputation_index.type = ?
ORDER BY core_reputation_index.id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['blog', 'entry_id']);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT tag_meta_id, tag_text
FROM " . $this->databasePrefix . "core_tags
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['tag_meta_id']])) {
$sql = "SELECT lang_id
FROM " . $this->databasePrefix . "core_sys_lang
WHERE lang_default = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1]);
$row = $statement->fetchArray();
if ($row !== false) {
FROM " . $this->databasePrefix . "core_sys_lang_words
WHERE lang_id = ?
AND word_key = ?";
- $this->languageStatement = $this->database->prepareStatement($sql, 1);
+ $this->languageStatement = $this->database->prepareUnmanaged($sql, 1);
}
$this->languageStatement->execute([
$this->getDefaultLanguageID(),
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "kunena_users";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM " . $this->databasePrefix . "usergroups
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['id']) {
FROM " . $this->databasePrefix . "kunena_users kunena_users,
" . $this->databasePrefix . "users users
WHERE users.id = kunena_users.userid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
" . $this->databasePrefix . "users users
WHERE users.id = kunena_users.userid
ORDER BY kunena_users.userid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "kunena_ranks
WHERE rank_special = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "kunena_ranks
WHERE rank_special = ?
ORDER BY rank_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "kunena_users
WHERE avatar <> ''";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "kunena_users
WHERE avatar <> ''
ORDER BY userid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$filepath = $this->fileSystemPath . 'media/kunena/avatars/' . $row['avatar'];
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "kunena_categories";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "kunena_categories
ORDER BY parent_id, ordering, id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parent_id']][] = $row;
FROM " . $this->databasePrefix . "kunena_topics kunena_topics
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON kunena_messages_text.mesid = kunena_messages.id
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "kunena_attachments
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileLocation = FileUtil::addTrailingSlash($this->fileSystemPath . $row['folder']) . $row['filename'];
$sql = "SELECT cache
FROM " . $this->databasePrefix . "datacache
WHERE title = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['version']);
$row = $statement->fetchArray();
$data = \unserialize($row['cache']);
FROM " . $this->databasePrefix . "usergroups
WHERE gid BETWEEN ? AND ?
ORDER BY gid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['gid']) {
$profileFields = $knownProfileFields = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "profilefields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (\in_array($row['name'], self::$knownProfileFields)) {
ON user_table.uid = ban_table.uid
WHERE user_table.uid BETWEEN ? AND ?
ORDER BY user_table.uid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profilefields
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "profilefields
" . $conditionBuilder . "
ORDER BY fid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$selectOptions = '';
FROM " . $this->databasePrefix . "usergroups
WHERE usertitle <> ? AND gid <> ?
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['', 1]);
$row = $statement->fetchArray();
AND gid <> ?
)
ORDER BY utid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['', 1]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "users
WHERE buddylist <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "users
WHERE buddylist <> ?
ORDER BY uid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$buddylist = \array_unique(ArrayUtil::toIntegerArray(\explode(',', $row['buddylist'])));
FROM " . $this->databasePrefix . "users
WHERE avatar <> ?
AND avatartype IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['', 'upload', 'gallery']);
$row = $statement->fetchArray();
WHERE avatar <> ?
AND avatartype IN (?, ?)
ORDER BY uid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['', 'upload', 'gallery']);
while ($row = $statement->fetchArray()) {
$sql = "SELECT uid, pmfolders
FROM " . $this->databasePrefix . "users
ORDER BY uid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (empty($row['pmfolders'])) {
GROUP BY fromid, dateline
)
ORDER BY pmid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$row['isDraft'] = $row['folder'] == 3 ? 1 : 0;
ON user_table.uid = message_table.uid
WHERE pmid BETWEEN ? AND ?
ORDER BY pmid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$recipients = \unserialize($row['recipients']);
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forums";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forums
ORDER BY pid, disporder, fid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['pid']][] = $row;
FROM " . $this->databasePrefix . "threads
WHERE tid BETWEEN ? AND ?
ORDER BY tid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON user_table.uid = post_table.edituid
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT value
FROM " . $this->databasePrefix . "settings
WHERE name = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['uploadspath']);
$row = $statement->fetchArray();
$uploadsPath = $row['value'];
FROM " . $this->databasePrefix . "attachments
WHERE aid BETWEEN ? AND ?
ORDER BY aid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileLocation = FileUtil::addTrailingSlash($uploadsPath) . $row['attachname'];
FROM " . $this->databasePrefix . "threadsubscriptions
WHERE sid BETWEEN ? AND ?
ORDER BY sid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON poll_table.tid = thread_table.tid
WHERE pid BETWEEN ? AND ?
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT pid, options, votes
FROM " . $this->databasePrefix . "polls
ORDER BY pid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$options = \explode('||~|~||', $row['options']);
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "pollvotes";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "pollvotes
ORDER BY vid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
WHERE pid <> ?
AND adduid <> ?
AND reputation <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0, 0]);
$row = $statement->fetchArray();
AND adduid <> ?
AND reputation <> ?
ORDER BY rid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0, 0, 0]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "threadprefixes";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "threadprefixes";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$forums = \array_unique(ArrayUtil::toIntegerArray(\explode(',', $row['forums'])));
SELECT COUNT(*)
FROM " . $this->databasePrefix . "forumpermissions
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "forumpermissions
)
ORDER BY type, id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
/** @noinspection PhpVariableVariableInspection */
$sql = "SELECT *
FROM " . $this->databasePrefix . "moderators
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
foreach ($modPermissionMap as $mybbPermission => $permissions) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "forumpermissions
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "smilies";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "smilies
ORDER BY sid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . $row['image'];
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "zebra";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM " . $this->databasePrefix . "groups
WHERE group_id BETWEEN ? AND ?
ORDER BY group_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['group_id']) {
$sql = "SELECT MAX(user_id) AS maxID
FROM " . $this->databasePrefix . "users
WHERE user_type <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([self::USER_TYPE_USER_IGNORE]);
$row = $statement->fetchArray();
if ($row !== false) {
$profileFields = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "profile_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$profileFields[] = $row;
WHERE user_table.user_type <> ?
AND user_table.user_id BETWEEN ? AND ?
ORDER BY user_table.user_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0, self::USER_TYPE_USER_IGNORE, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profile_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "profile_fields fields
" . $condition . "
ORDER BY fields.field_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(\array_merge(
['profilefields.type.dropdown'],
$condition->getParameters()
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "ranks
WHERE rank_special = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "ranks
WHERE rank_special = ?
ORDER BY rank_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "zebra
WHERE friend = ?
AND foe = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1, 0]);
$row = $statement->fetchArray();
WHERE friend = ?
AND foe = ?
ORDER BY user_id, zebra_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1, 0]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "users
WHERE user_avatar_type IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
self::AVATAR_TYPE_GALLERY,
self::AVATAR_TYPE_UPLOADED,
$sql = "SELECT config_name, config_value
FROM " . $this->databasePrefix . "config
WHERE config_name IN (?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
FROM " . $this->databasePrefix . "users
WHERE user_avatar_type IN (?, ?)
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([self::AVATAR_TYPE_GALLERY, self::AVATAR_TYPE_UPLOADED]);
while ($row = $statement->fetchArray()) {
$extension = \pathinfo($row['user_avatar'], \PATHINFO_EXTENSION);
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs_folder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "privmsgs_folder
ORDER BY folder_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
WHERE forum_id = ?
)
ORDER BY isDraft, msg_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
if (!$row['isDraft']) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
WHERE forum_id = ?
)
ORDER BY msg_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1, 0]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs_to";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN " . $this->databasePrefix . "users user_table
ON to_table.user_id = user_table.user_id
ORDER BY to_table.msg_id, to_table.user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forums";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forums
ORDER BY parent_id, left_id, forum_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parent_id']][] = $row;
FROM " . $this->databasePrefix . "topics
WHERE topic_id BETWEEN ? AND ?
ORDER BY topic_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON post_table.post_edit_user = editor.user_id
WHERE post_id BETWEEN ? AND ?
ORDER BY post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "topics_watch";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "topics_watch
ORDER BY topic_id, user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "topics
WHERE poll_start <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "topics topic
WHERE poll_start <> ?
ORDER BY topic_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll_options";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "poll_options
ORDER BY poll_option_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll_votes
WHERE vote_user_id <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "poll_votes
WHERE vote_user_id <> ?
ORDER BY poll_option_id, vote_user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "acl_groups
WHERE forum_id <> ?
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0]);
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "acl_options
WHERE is_local = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1]);
$options = [];
while ($row = $statement->fetchArray()) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "acl_roles_data
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
$roles = [];
while ($row = $statement->fetchArray()) {
FROM " . $this->databasePrefix . "acl_groups
WHERE forum_id <> ?
ORDER BY auth_role_id DESC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$key = 'group';
} elseif ($offset == 1) {
FROM " . $this->databasePrefix . "acl_users
WHERE forum_id <> ?
ORDER BY auth_role_id DESC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$key = 'user';
}
{
$sql = "SELECT COUNT(DISTINCT smiley_url) AS count
FROM " . $this->databasePrefix . "smilies";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "smilies
GROUP BY smiley_url
ORDER BY smiley_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'images/smilies/' . $row['smiley_url'];
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "attachments
WHERE in_message = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$conversation ? 1 : 0]);
$row = $statement->fetchArray();
$sql = "SELECT config_name, config_value
FROM " . $this->databasePrefix . "config
WHERE config_name IN (?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['upload_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
FROM " . $this->databasePrefix . "attachments
WHERE in_message = ?
ORDER BY attach_id DESC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$conversation ? 1 : 0]);
while ($row = $statement->fetchArray()) {
$fileLocation = FileUtil::addTrailingSlash($this->fileSystemPath . $upload_path) . $row['physical_filename'];
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "zebra";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM " . $this->databasePrefix . "groups
WHERE group_id BETWEEN ? AND ?
ORDER BY group_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['group_id']) {
$sql = "SELECT MAX(user_id) AS maxID
FROM " . $this->databasePrefix . "users
WHERE user_type <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([self::USER_TYPE_USER_IGNORE]);
$row = $statement->fetchArray();
if ($row !== false) {
$profileFields = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "profile_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$profileFields[] = $row;
WHERE user_table.user_type <> ?
AND user_table.user_id BETWEEN ? AND ?
ORDER BY user_table.user_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0, self::USER_TYPE_USER_IGNORE, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profile_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
) AS selectOptions
FROM " . $this->databasePrefix . "profile_fields fields
ORDER BY fields.field_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([5]);
while ($row = $statement->fetchArray()) {
switch ($row['field_type']) {
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "ranks
WHERE rank_special = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "ranks
WHERE rank_special = ?
ORDER BY rank_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "zebra
WHERE friend = ?
AND foe = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1, 0]);
$row = $statement->fetchArray();
WHERE friend = ?
AND foe = ?
ORDER BY user_id, zebra_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1, 0]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "users
WHERE user_avatar_type IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([self::AVATAR_TYPE_GALLERY, self::AVATAR_TYPE_UPLOADED]);
$row = $statement->fetchArray();
$sql = "SELECT config_name, config_value
FROM " . $this->databasePrefix . "config
WHERE config_name IN (?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['avatar_path', 'avatar_salt', 'avatar_gallery_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
FROM " . $this->databasePrefix . "users
WHERE user_avatar_type IN (?, ?)
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([self::AVATAR_TYPE_GALLERY, self::AVATAR_TYPE_UPLOADED]);
while ($row = $statement->fetchArray()) {
$extension = \pathinfo($row['user_avatar'], \PATHINFO_EXTENSION);
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs_folder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "privmsgs_folder
ORDER BY folder_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
WHERE forum_id = ?
)
ORDER BY isDraft, msg_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
if (!$row['isDraft']) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
WHERE forum_id = ?
)
ORDER BY msg_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1, 0]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privmsgs_to";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN " . $this->databasePrefix . "users user_table
ON to_table.user_id = user_table.user_id
ORDER BY to_table.msg_id, to_table.user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forums";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forums
ORDER BY parent_id, left_id, forum_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parent_id']][] = $row;
FROM " . $this->databasePrefix . "topics
WHERE topic_id BETWEEN ? AND ?
ORDER BY topic_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON post_table.post_edit_user = editor.user_id
WHERE post_id BETWEEN ? AND ?
ORDER BY post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "topics_watch";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "topics_watch
ORDER BY topic_id, user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "topics
WHERE poll_start <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "topics topic
WHERE poll_start <> ?
ORDER BY topic_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll_options";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "poll_options
ORDER BY poll_option_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll_votes
WHERE vote_user_id <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "poll_votes
WHERE vote_user_id <> ?
ORDER BY poll_option_id, vote_user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "acl_groups
WHERE forum_id <> ?
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0]);
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "acl_options
WHERE is_local = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1]);
$options = [];
while ($row = $statement->fetchArray()) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "acl_roles_data
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
$roles = [];
while ($row = $statement->fetchArray()) {
FROM " . $this->databasePrefix . "acl_groups
WHERE forum_id <> ?
ORDER BY auth_role_id DESC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$key = 'group';
} elseif ($offset == 1) {
FROM " . $this->databasePrefix . "acl_users
WHERE forum_id <> ?
ORDER BY auth_role_id DESC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$key = 'user';
}
{
$sql = "SELECT COUNT(DISTINCT smiley_url) AS count
FROM " . $this->databasePrefix . "smilies";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "smilies
GROUP BY smiley_url
ORDER BY smiley_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'images/smilies/' . $row['smiley_url'];
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "attachments
WHERE in_message = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$conversation ? 1 : 0]);
$row = $statement->fetchArray();
$sql = "SELECT config_name, config_value
FROM " . $this->databasePrefix . "config
WHERE config_name IN (?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['upload_path']);
while ($row = $statement->fetchArray()) {
$config_name = $row['config_name'];
FROM " . $this->databasePrefix . "attachments
WHERE in_message = ?
ORDER BY attach_id DESC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$conversation ? 1 : 0]);
while ($row = $statement->fetchArray()) {
$fileLocation = FileUtil::addTrailingSlash($this->fileSystemPath . $upload_path) . $row['physical_filename'];
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "membergroups";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "membergroups
ORDER BY id_group";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$profileFields = [];
$sql = "SELECT col_name, id_field
FROM " . $this->databasePrefix . "custom_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$profileFields[$row['col_name']] = $row;
FROM " . $this->databasePrefix . "members
WHERE id_member BETWEEN ? AND ?
ORDER BY id_member";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$userIDs[] = $row['id_member'];
$sql = "SELECT *
FROM " . $this->databasePrefix . "themes
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($profileFieldValues[$row['id_member']])) {
LEFT JOIN " . $this->databasePrefix . "ban_groups ban_group
ON ban_item.id_ban_group = ban_group.id_ban_group
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "custom_fields";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "custom_fields
ORDER BY id_field";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
switch ($row['field_type']) {
FROM " . $this->databasePrefix . "membergroups
WHERE min_posts <> ?
AND {$fieldName} <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([-1, '']);
$row = $statement->fetchArray();
WHERE min_posts <> ?
AND {$fieldName} <> ?
ORDER BY id_group";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([-1, '']);
while ($row = $statement->fetchArray()) {
[$repeatImage, $rankImage] = \explode('#', $row[$fieldName], 2);
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "members
WHERE buddy_list <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "members
WHERE buddy_list <> ?
ORDER BY id_member";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$buddylist = \array_unique(ArrayUtil::toIntegerArray(\explode(',', $row['buddy_list'])));
FROM " . $this->databasePrefix . "members
WHERE avatar <> ?
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['', 0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "members
WHERE avatar <> ?
)";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['', 0]);
while ($row = $statement->fetchArray()) {
// SMF 2.1
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "pm_labels";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "members
WHERE message_labels <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "pm_labels
ORDER BY id_label";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "members
WHERE message_labels <> ?
ORDER BY id_member";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$labels = ArrayUtil::trim(\explode(',', $row['message_labels']), false);
FROM " . $this->databasePrefix . "personal_messages pm
WHERE pm.id_pm BETWEEN ? AND ?
ORDER BY pm.id_pm";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
if ($row['participants'] === null) {
FROM " . $this->databasePrefix . "personal_messages pm
WHERE pm.id_pm BETWEEN ? AND ?
ORDER BY pm.id_pm";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
if ($row['participants'] === null) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "pm_recipients";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN " . $this->databasePrefix . "members members
ON recipients.id_member = members.id_member
ORDER BY recipients.id_pm, recipients.id_member";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
} catch (DatabaseException $e) {
// SMF 2.0
LEFT JOIN " . $this->databasePrefix . "members members
ON recipients.id_member = members.id_member
ORDER BY recipients.id_pm, recipients.id_member";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
}
SELECT COUNT(*)
FROM " . $this->databasePrefix . "categories
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "categories
ORDER BY id_cat";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT *
FROM " . $this->databasePrefix . "boards
ORDER BY id_board";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['id_parent']][] = $row;
ON post.id_msg = topic.id_first_msg
WHERE topic.id_topic BETWEEN ? AND ?
ORDER BY topic.id_topic";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON message.modified_name = member.real_name
WHERE message.id_msg BETWEEN ? AND ?
ORDER BY message.id_msg";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "attachments
WHERE id_member = ?
AND id_msg <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0]);
$row = $statement->fetchArray();
WHERE attachment.id_member = ?
AND attachment.id_msg <> ?
ORDER BY attachment.id_attach";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0, 0]);
while ($row = $statement->fetchArray()) {
if (\substr($row['filename'], -6) == '_thumb') {
FROM " . $this->databasePrefix . "log_notify
WHERE id_topic <> ?
AND id_board = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0]);
$row = $statement->fetchArray();
WHERE id_topic <> ?
AND id_board = ?
ORDER BY id_member, id_topic";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0, 0]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "polls";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
INNER JOIN " . $this->databasePrefix . "topics topic
ON topic.id_poll = poll.id_poll
ORDER BY id_poll";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll_choices";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "poll_choices
ORDER BY id_poll, id_choice";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "log_polls
WHERE id_member <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "log_polls
WHERE id_member <> ?
ORDER BY id_poll, id_member, id_choice";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
) AS moderators
FROM " . $this->databasePrefix . "boards board
ORDER BY id_board";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (!isset($profileToBoard[$row['id_profile']])) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "board_permissions
ORDER BY id_group, id_profile, permission";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (!isset($profileToBoard[$row['id_profile']])) {
{
$sql = "SELECT COUNT(DISTINCT filename) AS count
FROM " . $this->databasePrefix . "smileys";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "smileys
GROUP BY filename
ORDER BY id_smiley";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->readOption('smileys_dir') . '/' . $this->readOption('smiley_sets_default') . '/' . $row['filename'];
$sql = "SELECT value
FROM " . $this->databasePrefix . "settings
WHERE variable = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$optionName]);
$row = $statement->fetchArray();
// Check whether the blog appears to be available.
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "blog";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$dummy = $statement->fetchSingleColumn();
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "usergroup";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "usergroup
ORDER BY usergroupid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
switch ($row['usergroupid']) {
$userOptions = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if ($row['type'] == 'select_multiple' || $row['type'] == 'checkbox') {
ON userfield.userid = user_table.userid
WHERE user_table.userid BETWEEN ? AND ?
ORDER BY user_table.userid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE usergroupid NOT IN(?, ?)
AND usertitle <> ?
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1, 2, '']);
$row = $statement->fetchArray();
AND usertitle <> ?
)
ORDER BY usertitleid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1, 2, '']);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "usertextfield
WHERE buddylist <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "usertextfield
WHERE buddylist <> ?
ORDER BY userid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$buddies = \array_unique(ArrayUtil::toIntegerArray(\explode(' ', $row['buddylist'])));
FROM " . $this->databasePrefix . "visitormessage
WHERE vmid BETWEEN ? AND ?
ORDER BY vmid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "customavatar";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN " . $this->databasePrefix . "user user
ON user.userid = customavatar.userid
ORDER BY customavatar.userid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$file = null;
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
{
$sql = "SELECT *
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$editable = 0;
FROM " . $this->databasePrefix . "phrase
WHERE languageid = ?
AND varname = ?";
- $statement2 = $this->database->prepareStatement($sql);
+ $statement2 = $this->database->prepareUnmanaged($sql);
$statement2->execute([0, 'field' . $row['profilefieldid'] . '_title']);
$row2 = $statement2->fetchArray();
if ($row2 !== false) {
FROM " . $this->databasePrefix . "usertextfield
WHERE pmfolders IS NOT NULL
AND pmfolders <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
$row = $statement->fetchArray();
WHERE pmfolders IS NOT NULL
AND pmfolders <> ?
ORDER BY userid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$convert = false;
ON pm.pmtextid = text.pmtextid
WHERE pm.pmid BETWEEN ? AND ?
ORDER BY pm.pmid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants']);
FROM " . $this->databasePrefix . "pmtext pmtext
WHERE pmtext.pmtextid BETWEEN ? AND ?
ORDER BY pmtext.pmtextid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants']);
{
$sql = "SELECT MAX(pmid) AS count
FROM " . $this->databasePrefix . "pm";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
ON pmtext.pmtextid = pm.pmtextid
WHERE pm.pmid BETWEEN ? AND ?
ORDER BY pm.pmid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants']);
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forum";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forum
ORDER BY forumid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parentid']][] = $row;
FROM " . $this->databasePrefix . "thread thread
WHERE thread.threadid BETWEEN ? AND ?
ORDER BY thread.threadid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([14, $offset + 1, $offset + $limit]); // 14 = soft delete
while ($row = $statement->fetchArray()) {
$data = [
)
WHERE post.postid BETWEEN ? AND ?
ORDER BY post.postid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
if (isset($row['htmlState']) && $row['htmlState'] == 'on_nl2br') {
FROM " . $this->databasePrefix . "subscribethread
WHERE subscribethreadid BETWEEN ? AND ?
ORDER BY subscribethreadid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "poll";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([]);
$row = $statement->fetchArray();
ON poll.pollid = thread.pollid
AND thread.open <> ?
ORDER BY poll.pollid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([10]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT *
FROM " . $this->databasePrefix . "poll
ORDER BY pollid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$options = \explode('|||', $row['options']);
FROM " . $this->databasePrefix . "pollvote
WHERE pollvoteid BETWEEN ? AND ?
ORDER BY pollvoteid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "reputation
WHERE reputationid BETWEEN ? AND ?
ORDER BY reputationid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "prefix";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "prefixset
ORDER BY prefixsetid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "prefix
ORDER BY prefixid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "forumpermission";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "forumpermission
ORDER BY forumpermissionid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "smilie";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "smilie
ORDER BY smilieid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . $row['smiliepath'];
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "imagecategory
WHERE imagetype = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([3]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "imagecategory
WHERE imagetype = ?
ORDER BY imagecategoryid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([3]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "album";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN " . $this->databasePrefix . "user user
ON album.userid = user.userid
ORDER BY albumid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
try {
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "picture";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
} catch (DatabaseException $e) {
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "contenttype
WHERE class = 'Album'
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
LEFT JOIN " . $this->databasePrefix . "user user
ON picture.userid = user.userid
ORDER BY picture.pictureid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
$vB = 3;
WHERE contenttype.class = 'Album'
)
ORDER BY attachment.attachmentid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
$vB = 4;
ON comment.postuserid = user.userid
WHERE comment.commentid BETWEEN ? AND ?
ORDER BY comment.commentid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "calendar";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "calendar
ORDER BY calendarid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
ON event.userid = user.userid
WHERE eventid BETWEEN ? AND ?
ORDER BY eventid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
$timezones = [];
ON blog_text.blogtextid = blog.firstblogtextid
WHERE blog.blogid BETWEEN ? AND ?
ORDER BY blog.blogid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "blog
)
ORDER BY blogtextid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "contenttype
WHERE class = ?
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$contentType]);
} catch (DatabaseException $e) {
// vb 3
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "attachment";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
$row = $statement->fetchArray();
WHERE contenttype.class = ?
)
ORDER BY attachment.attachmentid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$contentType]);
} catch (DatabaseException $e) {
// vb 3
$sql = "SELECT attachment.*, attachment.postid AS contentid
FROM " . $this->databasePrefix . "attachment attachment
ORDER BY attachment.attachmentid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
}
$sql = "SELECT value
FROM " . $this->databasePrefix . "setting
WHERE varname = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$optionName]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "usergroup
WHERE usergroupid BETWEEN ? AND ?
ORDER BY usergroupid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
switch ($row['systemgroupid']) {
$userOptions = [];
$sql = "SELECT *
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if ($row['type'] == 'select_multiple' || $row['type'] == 'checkbox') {
ON userfield.userid = user_table.userid
WHERE user_table.userid BETWEEN ? AND ?
ORDER BY user_table.userid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON user.userid = customavatar.userid
WHERE customavatar.userid BETWEEN ? AND ?
ORDER BY customavatar.userid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$file = null;
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
{
$sql = "SELECT *
FROM " . $this->databasePrefix . "profilefield";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$editable = 0;
FROM " . $this->databasePrefix . "phrase
WHERE languageid = ?
AND varname = ?";
- $statement2 = $this->database->prepareStatement($sql);
+ $statement2 = $this->database->prepareUnmanaged($sql);
$statement2->execute([0, 'field' . $row['profilefieldid'] . '_title']);
$row2 = $statement2->fetchArray();
if ($row2 !== false) {
WHERE class = ?
) x
ON x.contenttypeid = node.contenttypeid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel']);
$row = $statement->fetchArray();
INNER JOIN " . $this->databasePrefix . "channel channel
ON channel.nodeid = node.nodeid
ORDER BY parentid, displayorder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel']);
$boardRoot = 0;
ON y.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel', 'Text', 'Poll', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON x.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Text', 'Poll', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON z.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
// Text in a Text or Poll should be a post
// Text in a Channel should be a thread
ON poll.nodeid = node.nodeid
WHERE poll.nodeid BETWEEN ? AND ?
ORDER BY poll.nodeid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON poll.nodeid = polloption.nodeid
WHERE polloption.polloptionid BETWEEN ? AND ?
ORDER BY polloption.polloptionid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "pollvote
WHERE pollvoteid BETWEEN ? AND ?
ORDER BY pollvoteid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE class = ?
) x
ON x.contenttypeid = node.contenttypeid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel']);
$row = $statement->fetchArray();
INNER JOIN " . $this->databasePrefix . "channel channel
ON channel.nodeid = node.nodeid
ORDER BY nodeid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel']);
$blogRoot = 0;
ON y.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel', 'Text', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
// The importer will create blogs on demand. As we cannot specifically filter out blogs within MySQL
ON z.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Channel', 'Text', 'Attach', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
ON y.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Text', 'Text', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON x.contenttypeid = node.contenttypeid
WHERE node.nodeid BETWEEN ? AND ?
ORDER BY node.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Gallery', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON y.contenttypeid = child.contenttypeid
WHERE child.nodeid BETWEEN ? AND ?
ORDER BY child.nodeid ASC";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Gallery', 'Photo', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$file = null;
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "smilie";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "smilie
ORDER BY smilieid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . $row['smiliepath'];
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "imagecategory
WHERE imagetype = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([3]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "imagecategory
WHERE imagetype = ?
ORDER BY imagecategoryid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([3]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT value
FROM " . $this->databasePrefix . "setting
WHERE varname = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$optionName]);
$row = $statement->fetchArray();
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "posts";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "groups";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "groups
ORDER BY groupid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$groupType = 4;
$sql = "SELECT profilefieldid
FROM " . $this->databasePrefix . "profilefields
WHERE profilefieldid > 3";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$profileFields[] = $row['profilefieldid'];
ON userfields.userid = user.userid
WHERE user.userid BETWEEN ? AND ?
ORDER BY user.userid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "ranks";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "ranks
ORDER BY rankid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "avatars
WHERE userid <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "avatars
WHERE userid <> ?
ORDER BY avatarid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'images/avatars/avatar-' . $row['avatarid'] . '.' . $row['avatarextension'];
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "profilefields
WHERE profilefieldid > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([3]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "profilefields
WHERE profilefieldid > ?
ORDER BY profilefieldid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([3]);
while ($row = $statement->fetchArray()) {
$optionType = 'text';
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "folders";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "folders
ORDER BY folderid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
ON user_table.userid = pm.senderid
WHERE pm.privatemessageid BETWEEN ? AND ?
ORDER BY pm.privatemessageid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "privatemessagereceipts";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "privatemessagereceipts
ORDER BY privatemessageid DESC, recipientid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "boards";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "boards
ORDER BY parentid, boardorder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parentid']][] = $row;
$sql = "SELECT value
FROM " . $this->databasePrefix . "options
WHERE varname = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['default_prefix']);
$row = $statement->fetchArray();
if ($row !== false) {
$sql = "SELECT boardid, prefix, prefixuse
FROM " . $this->databasePrefix . "boards
WHERE prefixuse > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$prefixes = '';
FROM " . $this->databasePrefix . "threads
WHERE threadid BETWEEN ? AND ?
ORDER BY threadid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['threadid'];
$sql = "SELECT boardid, threadid
FROM " . $this->databasePrefix . "announcements
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($assignedBoards[$row['threadid']])) {
$sql = "SELECT *
FROM " . $this->databasePrefix . "threads
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM " . $this->databasePrefix . "posts
WHERE postid BETWEEN ? AND ?
ORDER BY postid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "subscribethreads";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "subscribethreads
ORDER BY userid, threadid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "polls";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "posts
WHERE threadid = ?
ORDER BY posttime";
- $firstPostStatement = $this->database->prepareStatement($sql, 1);
+ $firstPostStatement = $this->database->prepareUnmanaged($sql, 1);
$sql = "SELECT COUNT(*) AS votes
FROM " . $this->databasePrefix . "votes
WHERE id = ?
AND votemode = 1";
- $votesStatement = $this->database->prepareStatement($sql);
+ $votesStatement = $this->database->prepareUnmanaged($sql);
$sql = "SELECT *
FROM " . $this->databasePrefix . "polls poll
ORDER BY pollid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$postID = null;
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "polloptions";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([]);
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "polloptions
ORDER BY polloptionid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "boards
WHERE prefixuse > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
$sql = "SELECT value
FROM " . $this->databasePrefix . "options
WHERE varname = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['default_prefix']);
$row = $statement->fetchArray();
if ($row !== false) {
$sql = "SELECT boardid, prefix, prefixuse
FROM " . $this->databasePrefix . "boards
WHERE prefixuse > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$prefixes = '';
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "permissions";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "permissions
ORDER BY boardid, groupid";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "smilies";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM " . $this->databasePrefix . "smilies
ORDER BY smilieid";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
// replace imagefolder
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "attachments
WHERE " . $indexName . " > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM " . $this->databasePrefix . "attachments
WHERE " . $indexName . " > ?
ORDER BY attachmentid DESC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'attachments/attachment-' . $row['attachmentid'] . '.' . $row['attachmentextension'];
$sql = "SELECT COUNT(*)
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_post";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM wcf" . $this->dbNo . "_group
WHERE groupID BETWEEN ? AND ?
ORDER BY groupID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$userOptions = [];
$sql = "SELECT optionName, optionID
FROM wcf" . $this->dbNo . "_user_option";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$userOptions[$row['optionID']] = (isset($existingUserOptions[$row['optionName']]) ? $row['optionName'] : $row['optionID']);
'encryption_method',
'encryption_salt_position'
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$encryptionData = [];
while ($row = $statement->fetchArray()) {
ON user_option_value.userID = user_table.userID
WHERE user_table.userID BETWEEN ? AND ?
ORDER BY user_table.userID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_rank
WHERE rankID BETWEEN ? AND ?
ORDER BY rankID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_whitelist";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_user_whitelist
ORDER BY userID, whiteUserID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_guestbook
WHERE entryID BETWEEN ? AND ?
ORDER BY entryID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT MAX(entryID) AS maxID
FROM wcf" . $this->dbNo . "_user_guestbook
WHERE commentTime > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
if ($row !== false) {
WHERE user_guestbook.commentTime > ?
AND user_guestbook.entryID BETWEEN ? AND ?
ORDER BY user_guestbook.entryID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT MAX(avatarID) AS maxID
FROM wcf" . $this->dbNo . "_avatar
WHERE userID <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
if ($row !== false) {
WHERE userID <> ?
AND avatarID BETWEEN ? AND ?
ORDER BY avatarID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'images/avatars/avatar-' . $row['avatarID'] . '.' . $row['avatarExtension'];
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_option
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$row = $statement->fetchArray();
) AS name
FROM wcf" . $this->dbNo . "_user_option user_option
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$editable = 0;
FROM wcf" . $this->dbNo . "_pm_folder
WHERE folderID BETWEEN ? AND ?
ORDER BY folderID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$cssClassName = '';
FROM wcf" . $this->dbNo . "_pm pm
WHERE pm.pmID BETWEEN ? AND ?
ORDER BY pm.pmID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
FROM wcf" . $this->dbNo . "_pm pm
WHERE pm.pmID BETWEEN ? AND ?
ORDER BY pm.pmID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_pm_to_user";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN wcf" . $this->dbNo . "_pm pm
ON pm.pmID = pm_to_user.pmID
ORDER BY pm_to_user.pmID DESC, pm_to_user.recipientID DESC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$participants = \explode(',', $row['participants'] ?: '');
{
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_structure structure
ON structure.boardID = board.boardID
ORDER BY board.parentID, structure.position";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['parentID']][] = $row;
$sql = "SELECT optionValue
FROM wcf" . $this->dbNo . "_option
WHERE optionName = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['thread_default_prefixes']);
$row = $statement->fetchArray();
if ($row !== false) {
$sql = "SELECT boardID, prefixes, prefixMode
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixMode > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
} else {
$sql = "SELECT boardID, prefixes, 2 AS prefixMode
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixes <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
}
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_thread
WHERE threadID BETWEEN ? AND ?
ORDER BY threadID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['threadID'];
$sql = "SELECT boardID, threadID
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_thread_announcement
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($assignedBoards[$row['threadID']])) {
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = thread.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_post
WHERE postID BETWEEN ? AND ?
ORDER BY postID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_thread_subscription";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_thread_subscription
ORDER BY userID, threadID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT MAX(pollID) AS maxID
FROM wcf" . $this->dbNo . "_poll
WHERE messageType = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post']);
$row = $statement->fetchArray();
if ($row !== false) {
WHERE messageType = ?
AND pollID BETWEEN ? AND ?
ORDER BY pollID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_poll
WHERE messageType = ?
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post']);
$row = $statement->fetchArray();
if ($row !== false) {
)
AND pollOptionID BETWEEN ? AND ?
ORDER BY pollOptionID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE messageType = ?
)
AND userID <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post', 0]);
$row = $statement->fetchArray();
)
AND userID <> ?
ORDER BY pollOptionID, userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['post', 0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_thread_rating
WHERE userID <> ?
AND rating NOT IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0, 0, 3]);
$row = $statement->fetchArray();
WHERE thread_rating.userID <> ?
AND thread_rating.rating NOT IN (?, ?)
ORDER BY thread_rating.threadID, thread_rating.userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0, 0, 3]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixMode > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
} else {
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixes <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
}
$sql = "SELECT optionValue
FROM wcf" . $this->dbNo . "_option
WHERE optionName = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['thread_default_prefixes']);
$row = $statement->fetchArray();
if ($row !== false) {
$sql = "SELECT boardID, prefixes, prefixMode
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixMode > ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
} else {
$sql = "SELECT boardID, prefixes, 2 AS prefixMode
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board
WHERE prefixes <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['']);
}
SELECT COUNT(*)
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_to_user
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_to_user
)
ORDER BY boardID, userID, groupID, type";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
/** @noinspection PhpVariableVariableInspection */
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_moderator
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_to_group
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_" . $this->instanceNo . "_board_to_user
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_smiley";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_smiley
ORDER BY smileyID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . $row['smileyPath'];
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_smiley_category";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_smiley_category
ORDER BY smileyCategoryID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_blog_category
WHERE userID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM wcf" . $this->dbNo . "_user_blog_category
WHERE userID = ?
ORDER BY categoryID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_blog
WHERE entryID BETWEEN ? AND ?
ORDER BY entryID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$entryIDs[] = $row['entryID'];
LEFT JOIN wcf" . $this->dbNo . "_user_blog_category category
ON category.categoryID = entry_to_category.categoryID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['entryID']])) {
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = user_blog.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_blog_comment
WHERE commentID BETWEEN ? AND ?
ORDER BY commentID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE objectName = ?
AND userID <> ?
AND rating NOT IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['com.woltlab.wcf.user.blog.entry', 0, 0, 3]);
$row = $statement->fetchArray();
AND rating.userID <> ?
AND rating.rating NOT IN (?, ?)
ORDER BY rating.objectID, rating.userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
'com.woltlab.wcf.user.blog.entry',
0,
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_gallery_category";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_user_gallery_category
ORDER BY categoryID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
ON user_table.userID = gallery_album.ownerID
WHERE gallery_album.albumID BETWEEN ? AND ?
ORDER BY albumID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_gallery
WHERE photoID BETWEEN ? AND ?
ORDER BY photoID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$imageIDs[] = $row['photoID'];
LEFT JOIN wcf" . $this->dbNo . "_user_gallery_category category
ON category.categoryID = photo_to_category.categoryID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['objectID']])) {
$sql = "SELECT user_gallery.*
FROM wcf" . $this->dbNo . "_user_gallery user_gallery
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_gallery_comment
WHERE commentID BETWEEN ? AND ?
ORDER BY commentID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE objectName = ?
AND userID <> ?
AND rating NOT IN (?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['com.woltlab.wcf.user.gallery.photo', 0, 0, 3]);
$row = $statement->fetchArray();
AND rating.userID <> ?
AND rating.rating NOT IN (?, ?)
ORDER BY rating.objectID, rating.userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
'com.woltlab.wcf.user.gallery.photo',
0,
FROM wcf" . $this->dbNo . "_calendar_to_group
)
AND className <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['BirthdayEvent']);
$row = $statement->fetchArray();
)
AND className <> ?
ORDER BY calendarID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['BirthdayEvent']);
while ($row = $statement->fetchArray()) {
$data = [
ON calendar_event_participation.eventID = calendar_event.eventID
WHERE calendar_event.eventID BETWEEN ? AND ?
ORDER BY calendar_event.eventID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$oldEventDateData = @\unserialize($row['eventDate']);
ORDER BY attachmentID DESC";
}
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['event', 0]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'attachments/attachment-' . $row['attachmentID'];
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_calendar_event_date";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_calendar_event_date
ORDER BY eventID, startTime";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
SELECT messageID
FROM wcf" . $this->dbNo . "_calendar_event
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM wcf" . $this->dbNo . "_calendar_event_date
WHERE eventID = ?
ORDER BY startTime";
- $firstEventDateStatement = $this->database->prepareStatement($sql, 1);
+ $firstEventDateStatement = $this->database->prepareUnmanaged($sql, 1);
$sql = "SELECT event_message.*
FROM wcf" . $this->dbNo . "_calendar_event_message event_message
FROM wcf" . $this->dbNo . "_calendar_event
)
ORDER BY event_message.messageID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
// get first event date
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_calendar_event_participation_to_user";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM wcf" . $this->dbNo . "_calendar_event_date
WHERE eventID = ?
ORDER BY startTime";
- $firstEventDateStatement = $this->database->prepareStatement($sql, 1);
+ $firstEventDateStatement = $this->database->prepareUnmanaged($sql, 1);
$sql = "SELECT participation_to_user.*, participation.eventID
FROM wcf" . $this->dbNo . "_calendar_event_participation_to_user participation_to_user
LEFT JOIN wcf" . $this->dbNo . "_calendar_event_participation participation
ON participation.participationID = participation_to_user.participationID
ORDER BY participation_to_user.participationID, participation_to_user.userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
// get first event date
AND messageType = ?
AND messageID > ?";
}
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$packageID, $type, 0]);
return $statement->fetchSingleColumn();
ORDER BY attachmentID";
}
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$packageID, $type, 0]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'attachments/attachment-' . $row['attachmentID'];
WHERE messageType = ?
LIMIT 1";
}
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$type]);
return $statement->fetchSingleColumn() ?: 0;
$sql = "SELECT packageVersion
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute([$name]);
$row = $statement->fetchArray();
if ($row !== false) {
FROM wcf" . $this->dbNo . "_tag_taggable
WHERE name = ?
ORDER BY packageID";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute([$name]);
$taggableID = $statement->fetchColumn();
if ($taggableID) {
INNER JOIN wcf" . $this->dbNo . "_tag tag
ON tag.tagID = tag_to_object.tagID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['objectID']])) {
$sql = "SELECT COUNT(*)
FROM wcf" . $this->dbNo . "_user";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_group";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_user_group
ORDER BY groupID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
$groups = [];
$userOptions = [];
$sql = "SELECT optionName, optionID
FROM wcf" . $this->dbNo . "_user_option";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$userOptions[$row['optionID']] = (isset($existingUserOptions[$row['optionName']]) ? $row['optionName'] : $row['optionID']);
ON user_option_value.userID = user_table.userID
WHERE user_table.userID BETWEEN ? AND ?
ORDER BY user_table.userID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_rank";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_user_rank
ORDER BY rankID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_follow
WHERE followID BETWEEN ? AND ?
ORDER BY followID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_avatar
WHERE avatarID BETWEEN ? AND ?
ORDER BY avatarID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'images/avatars/' . \substr($row['fileHash'], 0, 2) . '/' . $row['avatarID'] . '-' . $row['fileHash'] . '.' . $row['avatarExtension'];
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_option
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$row = $statement->fetchArray();
) AS name
FROM wcf" . $this->dbNo . "_user_option user_option
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$optionType = StringUtil::firstCharToUpperCase($row['optionType']);
FROM wcf" . $this->dbNo . "_conversation_label
WHERE labelID BETWEEN ? AND ?
ORDER BY labelID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_conversation
WHERE conversationID BETWEEN ? AND ?
ORDER BY conversationID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_conversation_message
WHERE messageID BETWEEN ? AND ?
ORDER BY messageID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_conversation_to_user";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_conversation_to_user
ORDER BY conversationID, participantID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$rows[] = $row;
FROM wcf" . $this->dbNo . "_conversation_label_to_object label_to_object,
wcf" . $this->dbNo . "_conversation_label label
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$labels[$row['conversationID']][$row['userID']][] = $row['labelID'];
{
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_board";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_board
ORDER BY parentID, position";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$i18nValues = [];
while ($row = $statement->fetchArray()) {
FROM wbb" . $this->dbNo . "_thread
WHERE threadID BETWEEN ? AND ?
ORDER BY threadID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['threadID'];
$sql = "SELECT boardID, threadID
FROM wbb" . $this->dbNo . "_thread_announcement
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($assignedBoards[$row['threadID']])) {
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = thread.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
FROM wbb" . $this->dbNo . "_post
WHERE postID BETWEEN ? AND ?
ORDER BY postID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
if (\version_compare($this->getPackageVersion('com.woltlab.wbb'), '5.5.0 Alpha 1', '>=')) {
$sql = "SELECT COUNT(*) AS count
FROM wbb" . $this->dbNo . "_thread_user_status";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
return $statement->fetchSingleColumn();
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_user_object_watch
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$this->getObjectTypeID('com.woltlab.wcf.user.objectWatch', 'com.woltlab.wbb.thread')]);
return $statement->fetchSingleColumn();
$sql = "SELECT *
FROM wbb" . $this->dbNo . "_thread_user_status
ORDER BY userID, threadID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_user_object_watch
WHERE objectTypeID = ?
ORDER BY watchID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.user.objectWatch', 'com.woltlab.wbb.thread'),
]);
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_poll
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post'),
]);
FROM wcf" . $this->dbNo . "_poll
WHERE objectTypeID = ?
ORDER BY pollID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post')]);
while ($row = $statement->fetchArray()) {
$data = [
FROM wcf" . $this->dbNo . "_poll
WHERE objectTypeID = ?
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post'),
]);
WHERE objectTypeID = ?
)
ORDER BY optionID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post'),
]);
FROM wcf" . $this->dbNo . "_poll
WHERE objectTypeID = ?
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post'),
]);
WHERE objectTypeID = ?
)
ORDER BY optionID, userID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.poll', 'com.woltlab.wbb.post'),
]);
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_label";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$labels = [];
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_label";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
if (!isset($labels[$row['groupID']])) {
$labelGroups = [];
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_label_group";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$labelGroups[] = $row;
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_label_group_to_object
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.label.objectType', 'com.woltlab.wbb.board'),
]);
SELECT COUNT(*)
FROM wcf" . $this->dbNo . "_acl_option_to_user
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
AND acl_option.objectTypeID = ?
)
ORDER BY optionID, objectID, userID, groupID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$objectTypeID, $objectTypeID]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_smiley";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM wcf" . $this->dbNo . "_smiley
ORDER BY smileyID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . $row['smileyPath'];
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_category
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.category', 'com.woltlab.wcf.bbcode.smiley'),
]);
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute(['com.woltlab.blog']);
$packageDir = $statement->fetchColumn();
$blogFilePath = FileUtil::getRealPath($this->fileSystemPath . '/' . $packageDir);
WHERE blog.blogID BETWEEN ? AND ?
ORDER BY blog.blogID";
}
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute(['com.woltlab.blog']);
$packageDir = $statement->fetchColumn();
$blogFilePath = FileUtil::getRealPath($this->fileSystemPath . '/' . $packageDir);
FROM blog" . $this->dbNo . "_entry
WHERE entryID BETWEEN ? AND ?
ORDER BY entryID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$entryIDs[] = $row['entryID'];
$sql = "SELECT *
FROM blog" . $this->dbNo . "_entry_to_category
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['entryID']])) {
ON language.languageID = entry.languageID
" . $conditionBuilder;
}
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$additionalData = [];
FROM gallery" . $this->dbNo . "_album
WHERE albumID BETWEEN ? AND ?
ORDER BY albumID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute(['com.woltlab.gallery']);
$packageDir = $statement->fetchColumn();
$imageFilePath = FileUtil::getRealPath($this->fileSystemPath . '/' . $packageDir);
FROM gallery" . $this->dbNo . "_image
WHERE imageID BETWEEN ? AND ?
ORDER BY imageID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
$imageIDs = $images = [];
$sql = "SELECT *
FROM gallery" . $this->dbNo . "_image_to_category
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['imageID']])) {
FROM gallery" . $this->dbNo . "_image_marker
WHERE markerID BETWEEN ? AND ?
ORDER BY markerID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM calendar" . $this->dbNo . "_event
WHERE eventID BETWEEN ? AND ?
ORDER BY eventID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$eventIDs[] = $row['eventID'];
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute(['com.woltlab.calendar']);
$packageDir = $statement->fetchColumn();
$calendarFilePath = FileUtil::getRealPath($this->fileSystemPath . '/' . $packageDir);
$sql = "SELECT *
FROM calendar" . $this->dbNo . "_event_to_category
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['eventID']])) {
ON language.languageID = event.languageID
" . $conditionBuilder;
}
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$additionalData = [];
FROM calendar" . $this->dbNo . "_event_date
WHERE eventDateID BETWEEN ? AND ?
ORDER BY eventDateID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM calendar" . $this->dbNo . "_event_date_participation
WHERE participationID BETWEEN ? AND ?
ORDER BY participationID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM filebase" . $this->dbNo . "_license
WHERE licenseID BETWEEN ? AND ?
ORDER BY licenseID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
$sql = "SELECT language_item.languageItemValue, language.languageCode
FROM wcf" . $this->dbNo . "_language_item language_item
LEFT JOIN wcf" . $this->dbNo . "_language language ON (language.languageID = language_item.languageID)
WHERE language_item.languageItem = ?";
- $languageStatement = $this->database->prepareStatement($sql);
+ $languageStatement = $this->database->prepareUnmanaged($sql);
while ($row = $statement->fetchArray()) {
$additionalData = [];
FROM filebase" . $this->dbNo . "_file
WHERE fileID BETWEEN ? AND ?
ORDER BY fileID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileIDs[] = $row['fileID'];
$sql = "SELECT *
FROM filebase" . $this->dbNo . "_file_to_category
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['fileID']])) {
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = file.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$contents = [
FROM filebase" . $this->dbNo . "_file
WHERE fileID BETWEEN ? AND ?
ORDER BY fileID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$fileIDs[] = $row['fileID'];
$sql = "SELECT fileIconID
FROM filebase" . $this->dbNo . "_file
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$coreFiles = $this->getFileLocations($statement->fetchAll(\PDO::FETCH_COLUMN));
}
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = file_content.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$fileContents[$row['fileID']][$row['languageCode'] ?: ''] = $row;
$sql = "SELECT *
FROM filebase" . $this->dbNo . "_file
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$contents = [];
ON language.languageID = file.languageID
WHERE file_version.versionID BETWEEN ? AND ?
ORDER BY file_version.versionID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$contents[$row['languageCode'] ?: ''] = [
FROM filebase" . $this->dbNo . "_file_version
WHERE versionID BETWEEN ? AND ?
ORDER BY versionID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$versionIDs[] = $row['versionID'];
$sql = "SELECT coreFileID
FROM filebase" . $this->dbNo . "_file_version
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$coreFiles = $this->getFileLocations($statement->fetchAll(\PDO::FETCH_COLUMN));
}
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language.languageID = version_content.languageID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$versionContents[$row['versionID']][$row['languageCode'] ?: ''] = $row;
$sql = "SELECT *
FROM filebase" . $this->dbNo . "_file_version
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$contents = [];
FROM wcf" . $this->dbNo . "_page
WHERE pageType IN (?, ?, ?)
AND originIsSystem = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['text', 'html', 'tpl', 0]);
$row = $statement->fetchArray();
WHERE pageType IN (?, ?, ?)
AND originIsSystem = ?
ORDER BY pageID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['text', 'html', 'tpl', 0]);
while ($pageID = $statement->fetchColumn()) {
$pageIDs[] = $pageID;
) AS languageCode
FROM wcf" . $this->dbNo . "_page_content page_content
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($contents[$row['pageID']])) {
FROM wcf" . $this->dbNo . "_page
" . $conditionBuilder . "
ORDER BY pageID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($contents[$row['pageID']])) {
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_media";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT mediaID
FROM wcf" . $this->dbNo . "_media
ORDER BY mediaID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($mediaID = $statement->fetchColumn()) {
$mediaIDs[] = $mediaID;
) AS languageCode
FROM wcf" . $this->dbNo . "_media_content media_content
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($contents[$row['mediaID']])) {
FROM wcf" . $this->dbNo . "_media media
" . $conditionBuilder . "
ORDER BY media.mediaID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'media_files/' . \substr($row['fileHash'], 0, 2) . '/' . $row['mediaID'] . '-' . $row['fileHash'];
{
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_article";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT articleID
FROM wcf" . $this->dbNo . "_article
ORDER BY articleID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($articleID = $statement->fetchColumn()) {
$articleIDs[] = $articleID;
) AS languageCode
FROM wcf" . $this->dbNo . "_article_content article_content
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($contents[$row['articleID']])) {
FROM wcf" . $this->dbNo . "_article
" . $conditionBuilder . "
ORDER BY articleID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($contents[$row['articleID']])) {
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_comment
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.comment.commentableContent', $objectType),
]);
FROM wcf" . $this->dbNo . "_comment
WHERE objectTypeID = ?
ORDER BY commentID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.comment.commentableContent', $objectType),
]);
FROM wcf" . $this->dbNo . "_comment
WHERE objectTypeID = ?
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.comment.commentableContent', $objectType),
]);
WHERE objectTypeID = ?
)
ORDER BY responseID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.comment.commentableContent', $objectType),
]);
$sql = "SELECT COUNT(*) AS count
FROM wcf" . $this->dbNo . "_like
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.like.likeableObject', $objectType),
]);
FROM wcf" . $this->dbNo . "_like
WHERE objectTypeID = ?
ORDER BY likeID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.like.likeableObject', $objectType),
]);
FROM wcf" . $this->dbNo . "_attachment
WHERE objectTypeID = ?
AND objectID IS NOT NULL";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.attachment.objectType', $objectType),
]);
WHERE objectTypeID = ?
AND objectID IS NOT NULL
ORDER BY attachmentID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$this->getObjectTypeID('com.woltlab.wcf.attachment.objectType', $objectType)]);
while ($row = $statement->fetchArray()) {
$fileLocation = $this->fileSystemPath . 'attachments/' . \substr($row['fileHash'], 0, 2) . '/' . $row['attachmentID'] . '-' . $row['fileHash'];
$sql = "SELECT packageVersion
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute([$name]);
$row = $statement->fetchArray();
if ($row !== false) {
INNER JOIN wcf" . $this->dbNo . "_tag tag
ON tag.tagID = tag_to_object.tagID
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['objectID']])) {
$sql = "SELECT labelID, objectID
FROM wcf" . $this->dbNo . "_label_object
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($labels[$row['objectID']])) {
FROM wcf" . $this->dbNo . "_object_type_definition
WHERE definitionName = ?
)";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute([
$objectTypeName,
$definitionName,
$sql = "SELECT COUNT(*)
FROM wcf" . $this->dbNo . "_category
WHERE objectTypeID = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.category', $objectType),
]);
FROM wcf" . $this->dbNo . "_category
WHERE objectTypeID = ?
ORDER BY parentCategoryID, categoryID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
$this->getObjectTypeID('com.woltlab.wcf.category', $objectType),
]);
LEFT JOIN wcf" . $this->dbNo . "_language language
ON language_item.languageID = language.languageID
" . $conditions;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditions->getParameters());
$i18nValues = [];
$sql = "SELECT packageDir
FROM wcf" . $this->dbNo . "_package
WHERE package = ?";
- $statement = $this->database->prepareStatement($sql, 1);
+ $statement = $this->database->prepareUnmanaged($sql, 1);
$statement->execute(['com.woltlab.filebase']);
$row = $statement->fetchArray();
if ($row !== false) {
FROM wcf" . $this->dbNo . "_file
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
$files = [];
$sql = "SELECT COUNT(*)
FROM " . $this->databasePrefix . "posts";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM " . $this->databasePrefix . "users
WHERE ID BETWEEN ? AND ?
ORDER BY ID";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "term_taxonomy
WHERE taxonomy = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['category']);
$row = $statement->fetchArray();
ON term.term_id = term_taxonomy.term_id
WHERE term_taxonomy.taxonomy = ?
ORDER BY term_taxonomy.parent, term_taxonomy.term_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['category']);
while ($row = $statement->fetchArray()) {
$this->categoryCache[$row['parent']][] = $row;
FROM " . $this->databasePrefix . "posts
WHERE post_type = ?
AND post_status IN (?, ?, ?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['post', 'publish', 'pending', 'draft', 'future', 'private']);
$row = $statement->fetchArray();
WHERE post_type = ?
AND post_status IN (?, ?, ?, ?, ?)
ORDER BY ID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['post', 'publish', 'pending', 'draft', 'future', 'private']);
while ($row = $statement->fetchArray()) {
$entryIDs[] = $row['ID'];
LEFT JOIN " . $this->databasePrefix . "terms term
ON term.term_id = term_taxonomy.term_id
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['object_id']])) {
FROM " . $this->databasePrefix . "term_relationships term_relationships,
" . $this->databasePrefix . "term_taxonomy term_taxonomy
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($categories[$row['object_id']])) {
LEFT JOIN " . $this->databasePrefix . "users user
ON user.ID = post.post_author
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$time = @\strtotime($row['post_date_gmt']);
$sql = "SELECT COUNT(*) AS count
FROM " . $this->databasePrefix . "comments
WHERE comment_approved = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([1]);
$row = $statement->fetchArray();
$sql = "SELECT comment_ID, comment_parent
FROM " . $this->databasePrefix . "comments
WHERE comment_ID = ?";
- $parentCommentStatement = $this->database->prepareStatement($sql, $limit, $offset);
+ $parentCommentStatement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$sql = "SELECT *
FROM " . $this->databasePrefix . "comments
WHERE comment_approved = ?
ORDER BY comment_parent, comment_ID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([1]);
while ($row = $statement->fetchArray()) {
if (!$row['comment_parent']) {
WHERE post_type IN (?, ?)
AND post_status IN (?, ?, ?, ?, ?, ?)
)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
'attachment',
AND post_status IN (?, ?, ?, ?, ?, ?)
)
ORDER BY ID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
'_wp_attached_file',
FROM " . $this->databasePrefix . "posts
WHERE post_type = ?
AND post_status IN (?, ?, ?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([
'page',
WHERE post_type = ?
AND post_status IN (?, ?, ?, ?, ?)
ORDER BY ID";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([
'page',
$sql = "SELECT COUNT(*)
FROM xf_template_compiled";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
{
$sql = "SELECT COUNT(*) AS count
FROM xf_user_group";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_group
ORDER BY user_group_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$userOnlineMarking = '%s';
AND action = ?
WHERE user_table.user_id BETWEEN ? AND ?
ORDER BY user_table.user_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['user', 'register', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_user_field
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
$row = $statement->fetchArray();
FROM xf_user_field
" . $condition . "
ORDER BY field_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute($condition->getParameters());
while ($row = $statement->fetchArray()) {
switch ($row['field_type']) {
try {
$sql = "SELECT COUNT(*) AS count
FROM xf_user_title_ladder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
} catch (SystemException $e) {
$sql = "SELECT COUNT(*) AS count
FROM xf_trophy_user_title";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
}
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_title_ladder
ORDER BY minimum_level";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
} catch (SystemException $e) {
$sql = "SELECT minimum_points AS minimum_level, title
FROM xf_trophy_user_title
ORDER BY minimum_points";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
}
$statement->execute();
{
$sql = "SELECT COUNT(*) AS count
FROM xf_user_follow";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_follow
ORDER BY user_id, follow_user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_profile_post
WHERE profile_post_id BETWEEN ? AND ?
ORDER BY profile_post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_profile_post_comment
WHERE profile_post_comment_id BETWEEN ? AND ?
ORDER BY profile_post_comment_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_user
WHERE avatar_date <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM xf_user
WHERE avatar_date <> ?
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$config = $this->getConfig();
$sql = "SELECT user_id
FROM xf_user
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_conversation_master
WHERE conversation_id BETWEEN ? AND ?
ORDER BY conversation_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON message_table.ip_id = ip_table.ip_id
WHERE message_table.message_id BETWEEN ? AND ?
ORDER BY message_table.message_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_conversation_recipient";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
ON cuser_table.owner_user_id = recipient_table.user_id
AND cuser_table.conversation_id = recipient_table.conversation_id
ORDER BY recipient_table.conversation_id, recipient_table.user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$hideConversation = Conversation::STATE_DEFAULT;
$sql = "SELECT COUNT(*) AS count
FROM xf_node
WHERE node_type_id IN (?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Forum', 'Category', 'LinkForum']);
$row = $statement->fetchArray();
ON node.node_id = link_forum.node_id
WHERE node_type_id IN (?, ?, ?)
ORDER BY node.lft";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Forum', 'Category', 'LinkForum']);
while ($row = $statement->fetchArray()) {
FROM xf_thread
WHERE thread_id BETWEEN ? AND ?
ORDER BY thread_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
AND thread.first_post_id = post.post_id
WHERE post_id BETWEEN ? AND ?
ORDER BY post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_thread_watch";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_thread_watch
ORDER BY user_id, thread_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_poll
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['thread']);
$row = $statement->fetchArray();
ON poll.content_id = thread.thread_id
WHERE content_type = ?
ORDER BY poll.poll_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['thread']);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_poll_response";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_poll_response
ORDER BY poll_response_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_poll_vote";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_poll_vote
ORDER BY poll_response_id, user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_forum_prefix";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM xf_forum_prefix forum
LEFT JOIN xf_phrase phrase
ON phrase.title = ('thread_prefix_' || forum.prefix_id)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
// import label group
WHERE permission_group_id = ?
AND permission_value <> ?
AND content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forum', 'use_int', 'node']);
$row = $statement->fetchArray();
AND permission_value <> ?
AND content_type = ?
ORDER BY permission_entry_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forum', 'use_int', 'node']);
while ($row = $statement->fetchArray()) {
if (!isset($mapping[$row['permission_id']])) {
$sql = "SELECT COUNT(*) AS count
FROM xfa_blog_category
WHERE user_id = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM xfa_blog_category
WHERE user_id = ?
ORDER BY category_id ASC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$data = [
SELECT COUNT(*)
FROM xfa_blog_entry_scheduled
) AS count";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
ON entry.user_id = user.user_id
)
ORDER BY isPublished DESC, entry_id ASC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xfa_blog_comment";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
LEFT JOIN xf_user user
ON comment.user_id = user.user_id
ORDER BY comment.comment_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_liked_content
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['xfa_blog_entry']);
$row = $statement->fetchArray();
FROM xf_liked_content
WHERE content_type = ?
ORDER BY like_id ASC";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['xfa_blog_entry']);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_attachment
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$type]);
$row = $statement->fetchArray();
ON attachment.data_id = data.data_id
WHERE attachment.content_type = ?
ORDER BY attachment.attachment_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$type]);
while ($row = $statement->fetchArray()) {
$config = $this->getConfig();
$sql = "SELECT COUNT(*)
FROM xf_email_bounce_log";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
{
$sql = "SELECT COUNT(*) AS count
FROM xf_user_group";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_group
ORDER BY user_group_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$userOnlineMarking = '%s';
AND action = ?
WHERE user_table.user_id BETWEEN ? AND ?
ORDER BY user_table.user_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['user', 'register', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_user_field
" . $condition;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($condition->getParameters());
$row = $statement->fetchArray();
FROM xf_user_field
" . $condition . "
ORDER BY field_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute($condition->getParameters());
while ($row = $statement->fetchArray()) {
switch ($row['field_type']) {
try {
$sql = "SELECT COUNT(*) AS count
FROM xf_user_title_ladder";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
} catch (SystemException $e) {
$sql = "SELECT COUNT(*) AS count
FROM xf_trophy_user_title";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
}
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_title_ladder
ORDER BY minimum_level";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
} catch (SystemException $e) {
$sql = "SELECT minimum_points AS minimum_level, title
FROM xf_trophy_user_title
ORDER BY minimum_points";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
}
$statement->execute();
{
$sql = "SELECT COUNT(*) AS count
FROM xf_user_follow";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_user_follow
ORDER BY user_id, follow_user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_profile_post
WHERE profile_post_id BETWEEN ? AND ?
ORDER BY profile_post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_profile_post_comment
WHERE profile_post_comment_id BETWEEN ? AND ?
ORDER BY profile_post_comment_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_user
WHERE avatar_date <> ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([0]);
$row = $statement->fetchArray();
FROM xf_user
WHERE avatar_date <> ?
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([0]);
while ($row = $statement->fetchArray()) {
$config = $this->getConfig();
$sql = "SELECT user_id
FROM xf_user
ORDER BY user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['']);
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_conversation_master
WHERE conversation_id BETWEEN ? AND ?
ORDER BY conversation_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
ON message_table.ip_id = ip_table.ip_id
WHERE message_table.message_id BETWEEN ? AND ?
ORDER BY message_table.message_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_conversation_recipient";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
ON cuser_table.owner_user_id = recipient_table.user_id
AND cuser_table.conversation_id = recipient_table.conversation_id
ORDER BY recipient_table.conversation_id, recipient_table.user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$hideConversation = Conversation::STATE_DEFAULT;
$sql = "SELECT COUNT(*) AS count
FROM xf_node
WHERE node_type_id IN (?, ?, ?)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Forum', 'Category', 'LinkForum']);
$row = $statement->fetchArray();
ON node.node_id = link_forum.node_id
WHERE node_type_id IN (?, ?, ?)
ORDER BY node.lft";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['Forum', 'Category', 'LinkForum']);
while ($row = $statement->fetchArray()) {
FROM xf_thread
WHERE thread_id BETWEEN ? AND ?
ORDER BY thread_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$threadIDs[] = $row['thread_id'];
$sql = "SELECT *
FROM xf_thread
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$data = [
ON thread.first_post_id = post.post_id
WHERE post_id BETWEEN ? AND ?
ORDER BY post_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_thread_watch";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_thread_watch
ORDER BY user_id, thread_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_poll
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['thread']);
$row = $statement->fetchArray();
ON poll.content_id = thread.thread_id
WHERE content_type = ?
ORDER BY poll.poll_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['thread']);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_poll_response";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_poll_response
ORDER BY poll_response_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_poll_vote";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_poll_vote
ORDER BY poll_response_id, user_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_forum_prefix";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
FROM xf_forum_prefix forum
LEFT JOIN xf_phrase phrase
ON phrase.title = ('thread_prefix.' || forum.prefix_id)";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
// import label group
WHERE permission_group_id = ?
AND permission_value <> ?
AND content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['forum', 'use_int', 'node']);
$row = $statement->fetchArray();
AND permission_value <> ?
AND content_type = ?
ORDER BY permission_entry_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['forum', 'use_int', 'node']);
while ($row = $statement->fetchArray()) {
if (!isset($mapping[$row['permission_id']])) {
{
$sql = "SELECT COUNT(*) AS count
FROM xf_mg_category";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_mg_category
ORDER BY lft";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_mg_album
WHERE album_id BETWEEN ? AND ?
ORDER BY album_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
WHERE media_id BETWEEN ? AND ?
AND media_type = ?
ORDER BY media_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit, 'image']);
while ($row = $statement->fetchArray()) {
$imageIDs[] = $row['media_id'];
INNER JOIN xf_attachment_data ad
ON ad.data_id = a.data_id
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(\array_merge(['xfmg_media'], $conditionBuilder->getParameters()));
while ($row = $statement->fetchArray()) {
$config = $this->getConfig();
AND comment_state = ?
AND content_type = ?
ORDER BY comment_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit, 'visible', 'xfmg_media']);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM xf_rm_category";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM xf_rm_category
ORDER BY lft";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute();
while ($row = $statement->fetchArray()) {
$data = [
FROM xf_rm_resource
WHERE resource_id BETWEEN ? AND ?
ORDER BY resource_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
$fileIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
LEFT JOIN xf_rm_resource_update u
ON r.description_update_id = u.resource_update_id
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
$additionalData = [
ON a.data_id = d.data_id
WHERE v.resource_version_id BETWEEN ? AND ?
ORDER BY v.resource_version_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute(['resource_version', $offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$additionalData = [
ON attachment.content_id = resource.description_update_id
WHERE attachment.content_type = ?
ORDER BY attachment.attachment_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute(['resource_update']);
while ($row = $statement->fetchArray()) {
// Skip attachment that don't belong to an update that is used as a
ON user.user_id = r.user_id
WHERE r.resource_rating_id BETWEEN ? AND ?
ORDER BY r.resource_rating_id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
$sql = "SELECT COUNT(*) AS count
FROM xf_attachment
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$type]);
$row = $statement->fetchArray();
ON attachment.data_id = data.data_id
WHERE attachment.content_type = ?
ORDER BY attachment.attachment_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$type]);
while ($row = $statement->fetchArray()) {
$config = $this->getConfig();
INNER JOIN xf_tag
USING (tag_id)
" . $conditionBuilder;
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
if (!isset($tags[$row['content_id']])) {
$sql = "SELECT COUNT(*) AS count
FROM xf_reaction_content
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$objectType]);
} catch (SystemException $e) {
$sql = "SELECT COUNT(*) AS count
FROM xf_liked_content
WHERE content_type = ?";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$objectType]);
}
$row = $statement->fetchArray();
ON r.reaction_id = rc.reaction_id
WHERE rc.content_type = ?
ORDER BY rc.reaction_content_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$objectType]);
} catch (SystemException $e) {
$sql = "SELECT *
FROM xf_liked_content
WHERE content_type = ?
ORDER BY like_id";
- $statement = $this->database->prepareStatement($sql, $limit, $offset);
+ $statement = $this->database->prepareUnmanaged($sql, $limit, $offset);
$statement->execute([$objectType]);
}
while ($row = $statement->fetchArray()) {
$sql = "SELECT COUNT(*)
FROM forum_user";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
}
FROM forum_user
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
{
$sql = "SELECT COUNT(*) AS count
FROM forum_foren";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
$row = $statement->fetchArray();
$sql = "SELECT *
FROM forum_foren
ORDER BY zuid, sort, id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute();
while ($row = $statement->fetchArray()) {
$this->boardCache[$row['zuid']][] = $row;
FROM forum_threads
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
FROM forum_posts
WHERE id BETWEEN ? AND ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit]);
while ($row = $statement->fetchArray()) {
$data = [
AND files <> ?
AND files <> ?
ORDER BY id";
- $statement = $this->database->prepareStatement($sql);
+ $statement = $this->database->prepareUnmanaged($sql);
$statement->execute([$offset + 1, $offset + $limit, '', \serialize([])]);
while ($row = $statement->fetchArray()) {