SQL Inventory

List of all SQL mentioned in the code..

ValueCountFile:Line
"SELECT p.*, t.subject AS tsubject " "FROM " X_PREFIX "posts AS p INNER JOIN " X_PREFIX "threads AS t USING(tid) INNER JOIN " X_PREFIX "forums AS f ON f.fid=t.fid " "WHERE f.fid IN($forums)"
1
  • /search.php
"SELECT id FROM " X_PREFIX "banned WHERE (ip1='$ips[0]' OR ip1='-1') AND (ip2='$ips[1]' OR ip2='-1') AND (ip3='$ips[2]' OR ip3='-1') AND (ip4='$ips[3]' OR ip4='-1')"
1
  • /cp.php
"DELETE FROM " X_PREFIX "favorites WHERE tid IN ($csv)"
1
  • /cp.php
"DELETE FROM " X_PREFIX "threads WHERE tid IN ($csv) OR closed IN ('$movedids')"
1
  • /cp.php
"SELECT t.tid FROM " X_PREFIX "threads AS t LEFT JOIN " X_PREFIX "posts AS p USING (tid) WHERE t.closed NOT LIKE 'moved%' GROUP BY t.tid HAVING COUNT(p.pid) = 0"
1
  • /cp.php
"UPDATE " X_PREFIX "members SET postnum = 0 WHERE username='$member'"
1
  • /cp.php
"DELETE FROM " X_PREFIX "posts WHERE author='$member'"
1
  • /cp.php
"SELECT fid FROM " X_PREFIX "threads WHERE tid IN ($csv) GROUP BY fid"
1
  • /cp.php
"SELECT tid FROM " X_PREFIX "posts WHERE author='$member' GROUP BY tid"
1
  • /cp.php
'UPDATE ' X_PREFIX 'settings SET ip_banning="on"'
1
  • /cp.php
"INSERT INTO " X_PREFIX "banned (ip1, ip2, ip3, ip4, dateline) VALUES ('$ip[1]', '$ip[2]', '$ip[3]', '$ip[4]', $onlinetime)"
1
  • /cp.php
"SELECT id FROM " X_PREFIX "banned WHERE (ip1='$ip[1]' OR ip1='-1') AND (ip2='$ip[2]' OR ip2='-1') AND (ip3='$ip[3]' OR ip3='-1') AND (ip4='$ip[4]' OR ip4='-1')"
1
  • /cp.php
"DELETE FROM " X_PREFIX "banned WHERE id IN ($dels)"
1
  • /cp.php
'UPDATE ' X_PREFIX 'settings SET ip_banning="off"'
1
  • /cp.php
"SELECT * FROM " X_PREFIX "banned ORDER BY dateline"
1
  • /cp.php
'SHOW DATABASES'
1
  • /cp.php
"UPDATE " X_PREFIX "members SET ban='$banstatus', status='$status', postnum='$postnum', customstatus='$cusstatus'$queryadd WHERE uid={$mem['uid']}"
1
  • /cp.php
"UPDATE " X_PREFIX "whosonline SET username='xguest123' WHERE username='{$mem['username']}'"
1
  • /cp.php
"DELETE FROM " X_PREFIX "u2u WHERE owner='{$mem['username']}'"
1
  • /cp.php
"DELETE FROM " X_PREFIX "favorites WHERE username='{$mem['username']}'"
1
  • /cp.php
"DELETE FROM " X_PREFIX "buddys WHERE username='{$mem['username']}'"
1
  • /cp.php
"DELETE FROM " X_PREFIX "members WHERE uid=$delete"
1
  • /cp.php
"SELECT uid, username, password, status FROM " X_PREFIX "members $where"
1
  • /cp.php
"SELECT * FROM " X_PREFIX "members $where ORDER BY username"
1
  • /cp.php
"UPDATE " X_PREFIX "forums SET moderator='$mods' WHERE fid='$fid'"
1
  • /cp.php
"SELECT name, fid, moderator FROM " X_PREFIX "forums WHERE fup='" $forum['fid'] . "' AND type='sub'"
1
  • /cp.php
"SELECT f.moderator, f.name, f.fid, c.name as cat_name, c.fid as cat_fid FROM " X_PREFIX "forums f LEFT JOIN " X_PREFIX "forums c ON (f.fup = c.fid) WHERE (c.type='group' AND f.type='forum') OR (f.type='forum' AND f.fup='') ORDER BY c.displayorder, f.displayorder"
1
  • /cp.php
"DELETE FROM " X_PREFIX "forums WHERE (type='forum' OR type='sub') AND fid=" $fdetails1
  • /cp.php
'SELECT pid FROM ' X_PREFIX 'posts WHERE fid=' $fdetails1
  • /cp.php
"DELETE FROM d, r, v " "USING " X_PREFIX "vote_desc AS d " "LEFT JOIN " X_PREFIX "vote_results AS r ON r.vote_id = d.vote_id " "LEFT JOIN " X_PREFIX "vote_voters AS v  ON v.vote_id = d.vote_id " "WHERE d.topic_id IN ($csv)"
1
  • /cp.php
"SELECT * FROM " X_PREFIX "members WHERE regip = '$userip'"
1
  • /cp.php
'SELECT tid FROM ' X_PREFIX 'threads WHERE fid=' $fdetails1
  • /cp.php
"UPDATE " X_PREFIX "members SET status='$status', customstatus='$cusstatus', email='$email', site='$site', aim='$aim', location='$location', bio='$bio', sig='$sig', showemail='$showemail', timeoffset='$timeoffset1', icq='$icq', avatar='$avatar', yahoo='$yahoo', theme='$thememem', bday='$bday', langfile='$langfilenew', tpp='$tppnew', ppp='$pppnew', newsletter='$newsletter', timeformat='$timeformatnew', msn='$msn', dateformat='$dateformatnew', mood='$mood', invisible='$invisible', saveogu2u='$saveogu2u', emailonu2u='$emailonu2u', useoldu2u='$useoldu2u', u2ualert=$u2ualert WHERE username='$user'"
1
  • /editprofile.php
"SELECT * FROM " X_PREFIX "members WHERE username='$member'"
1
  • /member.php
"INSERT INTO " X_PREFIX "u2u (u2uid, msgto, msgfrom, type, owner, folder, subject, message, dateline, readstatus, sentstatus) VALUES ('', '$admin[username]', '" $db->escape($bbname) . "', 'incoming', '$admin[username]', 'Inbox', '$translate[textnewmember]', '$translate[textnewmember2]', '" $onlinetime "', 'no', 'yes')"
1
  • /member.php
"SELECT username, email, langfile FROM " X_PREFIX "members WHERE status = 'Super Administrator'"
1
  • /member.php
"INSERT INTO " X_PREFIX "members (username, password, regdate, postnum, email, site, aim, status, location, bio, sig, showemail, timeoffset, icq, avatar, yahoo, customstatus, theme, bday, langfile, tpp, ppp, newsletter, regip, timeformat, msn, ban, dateformat, ignoreu2u, lastvisit, mood, pwdate, invisible, u2ufolders, saveogu2u, emailonu2u, useoldu2u, u2ualert) VALUES ('$username', '$password', " $db->time($onlinetime) . ", 0, '$email', '$site', '$aim', '$self[status]', '$location', '$bio', '$sig', '$showemail', '$timeoffset1', '$icq', '$avatar', '$yahoo', '', $thememem, '$bday', '$langfilenew', $tpp$ppp, '$newsletter', '$onlineip', $timeformatnew, '$msn', '', '$dateformatnew', '', 0, '$mood', 0, '0', '', '$saveogu2u', '$emailonu2u', '$useoldu2u', $u2ualert)"
1
  • /member.php
"INSERT INTO " X_PREFIX "members (username, password, regdate, postnum, email, site, aim, status, location, bio, sig, showemail, timeoffset, icq, avatar, yahoo, customstatus, theme, bday, langfile, tpp, ppp, newsletter, regip, timeformat, msn, ban, dateformat, ignoreu2u, lastvisit, mood, pwdate, invisible, u2ufolders, saveogu2u, emailonu2u, useoldu2u, u2ualert) VALUES ('$username', '$password', " $db->time($onlinetime) . ", 0, '$email', '', '', '$self[status]', '', '', '', '$showemail', '$timeoffset1', '', '', '', '', $thememem, '$bday', '$langfilenew', $tpp$ppp, '$newsletter', '$onlineip', $timeformatnew, '', '', '$dateformatnew', '', 0, '', 0, '0', '', '$saveogu2u', '$emailonu2u', '$useoldu2u', $u2ualert)"
1
  • /member.php
"SELECT COUNT(uid) FROM " X_PREFIX "members"
1
  • /member.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE author='$username'"
1
  • /member.php
"SELECT username$email1 FROM " X_PREFIX "members WHERE username='$username$email2"
1
  • /member.php
"SELECT uid FROM " X_PREFIX "members WHERE regip='$onlineip' AND regdate >= $time"
1
  • /member.php
"SELECT COUNT(uid) FROM " X_PREFIX "members WHERE regdate > $time"
1
  • /member.php
"DELETE FROM " X_PREFIX "members WHERE lastvisit=0 AND regdate < $prunebefore AND status='Member'"
1
  • /member.php
"UPDATE " X_PREFIX "members SET password='$newpassword' WHERE username='$user'"
1
  • /editprofile.php
"SELECT * FROM " X_PREFIX "members WHERE username='$user'"
1
  • /editprofile.php
"SELECT * FROM " X_PREFIX "posts WHERE useip = '$postip'"
1
  • /cp.php
"SELECT t.*, t.replies+1 as posts, m.uid, r.uid AS lastauthor
         FROM " 
X_PREFIX "threads t
         LEFT JOIN " 
X_PREFIX "members AS m ON t.author = m.username
         LEFT JOIN " 
X_PREFIX "members AS r ON SUBSTRING_INDEX(SUBSTRING_INDEX(t.lastpost, '|', 2), '|', -1) = r.username
         WHERE t.lastpost >= 
$srchfrom AND t.fid IN ($fids)
         ORDER BY t.lastpost DESC
         LIMIT 
{$mpage['start']}$tpp"
1
  • /today.php
"SELECT COUNT(*) FROM " X_PREFIX "threads WHERE lastpost >= $srchfrom AND fid IN ($fids)"
1
  • /today.php
"SELECT * FROM " X_PREFIX "members WHERE $q ORDER BY $orderby $desc LIMIT {$mpage['start']}$memberperpage"
1
  • /misc.php
"SELECT COUNT(uid) FROM " X_PREFIX "members WHERE $q"
1
  • /misc.php
"SELECT username, status FROM " X_PREFIX "members WHERE lastvisit >= '$datecut' AND invisible != '1' ORDER BY username ASC"
1
  • /misc.php
"SELECT username, status FROM " X_PREFIX "members WHERE lastvisit >= '$datecut' ORDER BY username ASC"
1
  • /misc.php
"SELECT username, 1 AS sort_col, MAX(ip) AS ip, MAX(`time`) as `time`, MAX(location) AS location, MAX(invisible) AS invisible " "FROM " X_PREFIX "whosonline $where GROUP BY username, sort_col " "UNION ALL " "SELECT username, 2 AS sort_col, ip, `time`, location, invisible " "FROM " X_PREFIX "whosonline WHERE username = 'xguest123' " "ORDER BY sort_col, username, `time` DESC " "LIMIT {$mpage['start']}$tpp"
1
  • /misc.php
"SELECT COUNT(*) FROM " X_PREFIX "whosonline"
1
  • /misc.php
"UPDATE " X_PREFIX "members SET password='$newmd5pass', pwdate='" $onlinetime "' WHERE username='$member[username]' AND email='$member[email]'"
1
  • /misc.php
"SELECT username, email, pwdate, langfile, status FROM " X_PREFIX "members WHERE username='$username' AND email='$email'"
1
  • /misc.php
"SELECT find FROM " X_PREFIX "words"
1
  • /cp.php
"SELECT * FROM " X_PREFIX "posts WHERE subject LIKE '%$dblikepost%' OR message LIKE '%$dblikepost%'"
1
  • /cp.php
"SELECT * FROM " X_PREFIX "members WHERE bio LIKE '%$dblikeprofile%'"
1
  • /cp.php
'SELECT fid FROM ' X_PREFIX 'forums WHERE fup=' $fdetails1
  • /cp.php
"UPDATE " X_PREFIX "forums SET
            name='
$namenew',
            description='
$descnew',
            allowhtml='
$allowhtmlnew',
            allowsmilies='
$allowsmiliesnew',
            allowbbcode='
$allowbbcodenew',
            theme='
$themeforumnew',
            userlist='
$userlistnew',
            postperm='
$perms',
            allowimgcode='
$allowimgcodenew',
            attachstatus='
$attachstatusnew',
            password='
$passwordnew'
            WHERE fid='
$fdetails'"
1
  • /cp.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts"
1
  • /member.php
"UPDATE " X_PREFIX "threads SET pollopts=1 WHERE tid='$tid'"
1
  • /post.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE dateline <= {$orig['dateline']} AND tid=$tid"
1
  • /post.php
"UPDATE " X_PREFIX "posts SET subject='" $db->escape($orig['subject']) . "' WHERE tid=$tid ORDER BY dateline LIMIT 1"
1
  • /post.php
"DELETE FROM " X_PREFIX "favorites WHERE tid='$tid'"
1
  • /post.php
"SELECT COUNT(pid) AS pcount FROM " X_PREFIX "posts WHERE tid=$tid"
1
  • /post.php
"UPDATE " X_PREFIX "members SET postnum=postnum-1 WHERE username='" $db->escape($orig['author']) . "'"
1
  • /post.php
"DELETE FROM " X_PREFIX "posts WHERE pid=$pid"
1
  • /post.php
"UPDATE " X_PREFIX "posts SET message='$dbmessage', usesig='$usesig', bbcodeoff='$bbcodeoff', smileyoff='$smileyoff', icon='$posticon', subject='$dbsubject' WHERE pid=$pid"
1
  • /post.php
"UPDATE " X_PREFIX "threads SET icon='$posticon', subject='$dbsubject' WHERE tid=$tid"
1
  • /post.php
"SELECT pid FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline LIMIT 1"
1
  • /post.php
"SELECT p.dateline as dateline FROM " X_PREFIX "posts AS p WHERE pid=$pid AND tid=$tid AND fid=$fid"
1
  • /post.php
"SELECT p.*, m.status FROM " X_PREFIX "posts p LEFT JOIN " X_PREFIX "members m ON p.author=m.username WHERE p.pid=$pid"
1
  • /post.php
"UPDATE " X_PREFIX "threads SET topped='1' WHERE tid='$tid' AND fid='$fid'"
1
  • /post.php
"INSERT INTO " X_PREFIX "vote_results (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($vote_id$i, '$p', 0)"
1
  • /post.php
"SELECT p.pid, p.tid, p.subject, t.subject AS tsubject, t.fid FROM " X_PREFIX "posts AS p LEFT JOIN " X_PREFIX "threads AS t USING (tid) WHERE pid IN ($pids)"
1
  • /post.php
"INSERT INTO " X_PREFIX "vote_desc (topic_id, vote_text) VALUES ($tid, '$dbsubject')"
1
  • /post.php
"DELETE FROM " X_PREFIX "vote_desc WHERE vote_id='$vote_id'"
1
  • /post.php
"DELETE FROM " X_PREFIX "vote_voters WHERE vote_id='$vote_id'"
1
  • /post.php
"DELETE FROM " X_PREFIX "vote_results WHERE vote_id='$vote_id'"
1
  • /post.php
"SELECT vote_id, topic_id FROM " X_PREFIX "vote_desc WHERE topic_id='$tid'"
1
  • /post.php
"UPDATE " X_PREFIX "forums SET lastpost='$thatime|$username|$pid', threads=threads+1, posts=posts+1 $where"
1
  • /post.php
"UPDATE " X_PREFIX "threads SET lastpost=concat(lastpost, '|" $pid "') WHERE tid='$tid'"
1
  • /post.php
"INSERT INTO " X_PREFIX "posts (fid, tid, author, message, subject, dateline, icon, usesig, useip, bbcodeoff, smileyoff) VALUES ($fid$tid, '$username', '$dbmessage', '$dbsubject', " $db->time($thatime) . ", '$posticon', '$usesig', '$onlineip', '$bbcodeoff', '$smileyoff')"
1
  • /post.php
"INSERT INTO " X_PREFIX "threads (fid, subject, icon, lastpost, views, replies, author, closed, topped) VALUES ($fid, '$dbtsubject', '$posticon', '$thatime|$username', 0, 0, '$username', '', 0)"
1
  • /post.php
"SELECT subject FROM " X_PREFIX "threads WHERE 1=0"
1
  • /post.php
"SELECT * FROM " X_PREFIX "posts WHERE tid='$tid' ORDER BY dateline DESC"
1
  • /post.php
"SELECT p.message, p.tid, p.fid, p.author FROM " X_PREFIX "posts p WHERE p.pid=$repquote"
1
  • /post.php
"SELECT m.email, m.lastvisit, m.ppp, m.status, m.langfile " "FROM " X_PREFIX "favorites f " "INNER JOIN " X_PREFIX "members m USING (username) " "WHERE f.type = 'subscription' AND f.tid = $tid AND m.username != '$username' AND m.lastvisit >= $date"
1
  • /post.php
"SELECT a.aid, a.pid, a.filename, a.filetype, a.filesize, a.downloads, a.img_size, thumbs.aid AS thumbid, thumbs.filename AS thumbname, thumbs.img_size AS thumbsize FROM " X_PREFIX "attachments AS a LEFT JOIN " X_PREFIX "attachments AS thumbs ON a.aid=thumbs.parentid WHERE a.pid=$pid AND a.parentid=0"
1
  • /post.php
"SELECT regdate FROM " X_PREFIX "members ORDER BY regdate LIMIT 0, 1"
1
  • /stats.php
"SELECT postperm FROM " X_PREFIX "forums WHERE fid=$fdetails"
1
  • /cp.php
'SELECT tid FROM ' X_PREFIX 'threads WHERE fid=' $forum['fid']
1
  • /cp.php
"INSERT INTO " X_PREFIX "forums (type, name, status, lastpost, moderator, displayorder, description, allowhtml, allowsmilies, allowbbcode, userlist, theme, posts, threads, fup, postperm, allowimgcode, attachstatus, password) VALUES ('sub', '$newsubname', '$newsubstatus', '', '', $newsuborder, '', 'no', 'yes', 'yes', '', 0, 0, 0, $newsubfup, '31,31,31,63', 'yes', 'on', '')"
1
  • /cp.php
"INSERT INTO " X_PREFIX "forums (type, name, status, lastpost, moderator, displayorder, description, allowhtml, allowsmilies, allowbbcode, userlist, theme, posts, threads, fup, postperm, allowimgcode, attachstatus, password) VALUES ('group', '$newgname', '$newgstatus', '', '', $newgorder, '', '', '', '', '', 0, 0, 0, 0, '', '', '', '')"
1
  • /cp.php
"INSERT INTO " X_PREFIX "forums (type, name, status, lastpost, moderator, displayorder, description, allowhtml, allowsmilies, allowbbcode, userlist, theme, posts, threads, fup, postperm, allowimgcode, attachstatus, password) VALUES ('forum', '$newfname', '$newfstatus', '', '', $newforder, '', 'no', 'yes', 'yes', '', 0, 0, 0, $newffup, '31,31,31,63', 'yes', 'on', '')"
1
  • /cp.php
"UPDATE " X_PREFIX "forums SET name='$name', displayorder=$displayorder, status='{$group['status']}' WHERE fid={$group['fid']}"
1
  • /cp.php
"DELETE FROM " X_PREFIX "forums WHERE type='group' AND fid=$delete"
1
  • /cp.php
"SELECT fid FROM " X_PREFIX "forums WHERE type='forum' AND fup=$delete"
1
  • /cp.php
"SELECT fid FROM " X_PREFIX "forums WHERE type='group'"
1
  • /cp.php
"UPDATE " X_PREFIX "forums SET name='$name', displayorder=" $displayorder ", status='{$forum['status']}'$settype WHERE fid='" $forum['fid'] . "'"
1
  • /cp.php
"SELECT COUNT(*) AS subcount FROM " X_PREFIX "forums WHERE fup={$forum['fid']}"
1
  • /cp.php
"SELECT type FROM " X_PREFIX "forums WHERE fid=$moveto"
1
  • /cp.php
"DELETE FROM " X_PREFIX "forums WHERE (type='forum' OR type='sub') AND fid=" $forum['fid']
1
  • /cp.php
'SELECT pid FROM ' X_PREFIX 'posts WHERE fid=' $forum['fid']
1
  • /cp.php
'SELECT fid FROM ' X_PREFIX 'forums WHERE fup=' $forum['fid']
1
  • /cp.php
"SELECT fid, type, fup FROM " X_PREFIX "forums WHERE type='forum' OR type='sub'"
1
  • /cp.php
"SELECT COUNT(fid) FROM " X_PREFIX "forums WHERE type='forum'"
1
  • /stats.php
"SELECT * FROM " X_PREFIX "forums WHERE fid='$fdetails'"
1
  • /cp.php
"SELECT fid, type, name, displayorder, status, fup FROM " X_PREFIX "forums ORDER BY fup ASC, displayorder ASC"
1
  • /cp.php
"UPDATE " X_PREFIX "settings SET
            langfile='
$langfilenew',
            bbname='
$bbnamenew',
            postperpage='
$postperpagenew',
            topicperpage='
$topicperpagenew',
            hottopic='
$hottopicnew',
            theme='
$themenew',
            bbstatus='
$bbstatusnew',
            whosonlinestatus='
$whos_on',
            regstatus='
$reg_on',
            bboffreason='
$bboffreasonnew',
            regviewonly='
$regviewnew',
            floodctrl='
$floodctrlnew',
            memberperpage='
$memberperpagenew',
            catsonly='
$catsonlynew',
            hideprivate='
$hidepriv',
            emailcheck='
$emailchecknew',
            bbrules='
$bbrulesnew',
            bbrulestxt='
$bbrulestxtnew',
            searchstatus='
$searchstatusnew',
            faqstatus='
$faqstatusnew',
            memliststatus='
$memliststatusnew',
            sitename='
$sitenamenew',
            siteurl='
$siteurlnew',
            avastatus='
$avastatusnew',
            u2uquota='
$u2uquotanew',
            gzipcompress='
$gzipcompressnew',
            coppa='
$coppanew',
            timeformat='
$timeformatnew',
            adminemail='
$adminemailnew',
            dateformat='
$dateformatnew',
            sigbbcode='
$sigbbcodenew',
            sightml='
$sightmlnew',
            reportpost='
$reportpostnew',
            bbinsert='
$bbinsertnew',
            smileyinsert='
$smileyinsertnew',
            doublee='
$doubleenew',
            smtotal='
$smtotalnew',
            smcols='
$smcolsnew',
            editedby='
$editedbynew',
            dotfolders='
$dotfoldersnew',
            attachimgpost='
$attachimgpostnew',
            tickerstatus='
$tickerstatusnew',
            tickercontents='
$tickercontentsnew',
            tickerdelay='
$tickerdelaynew',
            addtime='
$addtimenew',
            todaysposts='
$todaystatusnew',
            stats='
$statsstatusnew',
            max_avatar_size='
$max_avatar_size',
            footer_options='
$footer_options',
            space_cats='
$space_catsnew',
            spellcheck='
$spellchecknew',
            allowrankedit='
$allowrankeditnew',
            notifyonreg='
$notifyonregnew',
            indexshowbar='
$indexShowBarNew',
            subject_in_title='
$subjectInTitleNew',
 &
1
  • /cp.php
"SELECT author, COUNT(author) AS Total FROM " X_PREFIX "posts WHERE dateline >= '$timesearch' GROUP BY author ORDER BY Total DESC LIMIT 1"
1
  • /stats.php
"SELECT posts, threads, fid, name FROM " X_PREFIX "forums WHERE $restrict AND (type='sub' OR type='forum') AND status='on' ORDER BY posts DESC LIMIT 0, 1"
1
  • /stats.php
"SELECT lastpost, tid, subject FROM " X_PREFIX "threads WHERE $restrict ORDER BY lastpost DESC LIMIT 5"
1
  • /stats.php
"SELECT replies, tid, subject FROM " X_PREFIX "threads WHERE $restrict ORDER BY replies DESC LIMIT 5"
1
  • /stats.php
"SELECT views, tid, subject FROM " X_PREFIX "threads WHERE $restrict ORDER BY views DESC LIMIT 5"
1
  • /stats.php
"SELECT SUM(replies) FROM " X_PREFIX "threads"
1
  • /stats.php
"SELECT SUM(posts) FROM " X_PREFIX "forums"
1
  • /stats.php
"SELECT SUM(postnum) FROM " X_PREFIX "members"
1
  • /stats.php
"SELECT COUNT(postnum) FROM " X_PREFIX "members WHERE postnum > '0'"
1
  • /stats.php
"SELECT COUNT(fid) FROM " X_PREFIX "forums WHERE type='forum' AND status='on'"
1
  • /stats.php
"SELECT * FROM " X_PREFIX "ranks WHERE $limit ORDER BY posts DESC LIMIT 1"
1
  • /member.php
"SELECT fid, COUNT(*) AS posts
                 FROM " 
X_PREFIX "posts
                 WHERE author='
$member' AND fid IN ($fids)
                 GROUP BY fid
                 HAVING COUNT(*) > 0
                 ORDER BY COUNT(*) DESC
                 LIMIT 1"
1
  • /member.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE pid <= $pid AND tid='$tid'"
1
  • /post.php
"UPDATE " X_PREFIX "members SET lastvisit=" $db->time(time( )) . " WHERE username='$xmbuser'"
1
  • /include/functions.inc.php
"SELECT dateline, author, pid FROM " X_PREFIX "posts WHERE tid='$tid' ORDER BY dateline DESC, pid DESC LIMIT 1"
1
  • /include/functions.inc.php
"SELECT tid FROM " X_PREFIX "posts WHERE tid='$tid'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "forums SET posts='$postcount', threads='$threadcount', lastpost='{$lp['lastpost']}' WHERE fid='$fid'"
1
  • /include/functions.inc.php
"SELECT t.lastpost FROM " X_PREFIX "forums AS f LEFT JOIN " X_PREFIX "threads AS t USING(fid) WHERE f.fid=$fid OR f.fup=$fid ORDER BY t.lastpost DESC LIMIT 0, 1"
1
  • /include/functions.inc.php
"SELECT COUNT(tid) FROM " X_PREFIX "forums AS f INNER JOIN " X_PREFIX "threads USING(fid) WHERE f.fid=$fid OR f.fup=$fid"
1
  • /include/functions.inc.php
"SELECT COUNT(pid) FROM " X_PREFIX "forums AS f INNER JOIN " X_PREFIX "posts USING(fid) WHERE f.fid=$fid OR f.fup=$fid"
1
  • /include/functions.inc.php
"SELECT name, template FROM " X_PREFIX "templates WHERE name IN ($sql)"
1
  • /include/functions.inc.php
"SELECT template FROM " X_PREFIX "templates WHERE name='$name'"
1
  • /include/functions.inc.php
'SELECT b.devname, t.cdata, k.langkey ' 'FROM ' X_PREFIX 'lang_base AS b' ' LEFT JOIN ' X_PREFIX 'lang_text AS t USING (langid)' ' INNER JOIN ' X_PREFIX 'lang_keys AS k USING (phraseid)' "WHERE k.langkey IN ($csv)"
1
  • /include/functions.inc.php
'SELECT k.langkey, t.cdata ' 'FROM ' X_PREFIX 'lang_keys AS k' ' LEFT JOIN ' X_PREFIX 'lang_text AS t USING (phraseid)' ' INNER JOIN ' X_PREFIX 'lang_base AS b USING (langid)' "WHERE b.devname = '$devname'"
1
  • /include/functions.inc.php
"INSERT INTO " X_PREFIX "whosonline (username, ip, time, location, invisible) VALUES ('$onlineuser', '$onlineip', " $db->time($onlinetime) . ", '$wollocation', '$invisible')"
1
  • /include/functions.inc.php
"DELETE FROM " X_PREFIX "whosonline WHERE ((ip='$onlineip' && username='xguest123') OR (username='$xmbuser') OR (time < '$newtime'))"
1
  • /include/functions.inc.php
"SELECT * FROM " X_PREFIX "members WHERE username='$xmbuserinput'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "threads SET replies='$replycount', lastpost='$lastpost' WHERE tid='$tid'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "members SET invisible='0' WHERE username='$dbname'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "members SET invisible='1' WHERE username='$dbname'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "threads SET lastpost='$newlastpost' WHERE tid={$result['tid']}"
1
  • /include/admin.inc.php
"SELECT tid, lastpost FROM " X_PREFIX "threads WHERE lastpost LIKE '%|$dblikeuserfrom|%'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "forums SET lastpost='$newlastpost' WHERE fid={$result['fid']}"
1
  • /include/admin.inc.php
"SELECT fid, lastpost FROM " X_PREFIX "forums WHERE lastpost LIKE '%|$dblikeuserfrom|%'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "forums SET userlist='$parts' WHERE fid={$list['fid']}"
1
  • /include/admin.inc.php
"SELECT userlist, fid FROM " X_PREFIX "forums WHERE (userlist REGEXP '(^|(,))()*$dbregexuserfrom()*((,)|$)')"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "forums SET moderator='$parts' WHERE fid={$list['fid']}"
1
  • /include/admin.inc.php
"SELECT moderator, fid FROM " X_PREFIX "forums WHERE (moderator REGEXP '(^|(,))()*$dbregexuserfrom()*((,)|$)')"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "members SET ignoreu2u='$parts' WHERE uid={$usr['uid']}"
1
  • /include/admin.inc.php
"SELECT ignoreu2u, uid FROM " X_PREFIX "members WHERE (ignoreu2u REGEXP '(^|(,))()*$dbregexuserfrom()*((,)|$)')"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "whosonline SET username='$dbuserto' WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"SELECT date, username FROM " X_PREFIX "logs WHERE tid='$tid' AND action='bump' ORDER BY date DESC LIMIT 1"
1
  • /include/functions.inc.php
"SELECT code, url FROM " X_PREFIX "smilies WHERE type='smiley'"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "u2u SET msgfrom='$dbuserto' WHERE msgfrom='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "posts SET message='$newmessage' WHERE pid=$topid"
1
  • /include/attach.inc.php
"SELECT buddyname FROM " X_PREFIX "buddys WHERE username='$xmbuser'"
1
  • /include/buddy.inc.php
"INSERT INTO " X_PREFIX "buddys (buddyname, username) VALUES ('$buddy', '$xmbuser')"
1
  • /include/buddy.inc.php
"SELECT count(username) FROM " X_PREFIX "members WHERE username='$buddy'"
1
  • /include/buddy.inc.php
"SELECT count(username) FROM " X_PREFIX "buddys WHERE username='$xmbuser' AND buddyname='$buddy'"
1
  • /include/buddy.inc.php
"SELECT t.fid, t.subject FROM " X_PREFIX "forums f, " X_PREFIX "threads t WHERE $restrict AND f.fid=t.fid AND t.tid='$tid'"
1
  • /include/online.inc.php
'INSERT INTO '
1
  • /include/debug.inc.php
"UPDATE " X_PREFIX "attachments SET img_size='$sqlsize' WHERE aid=$aid AND pid=$pid"
1
  • /include/attach.inc.php
"SELECT *, UNIX_TIMESTAMP(updatetime) AS updatestamp FROM " X_PREFIX "attachments WHERE aid=$aid AND pid=$pid"
1
  • /include/attach.inc.php
"INSERT INTO " X_PREFIX "attachments (pid, filename, filetype, filesize, attachment, uid, parentid, img_size, subdir) VALUES ($pid, '$filename', '$filetype', $filesize, '$file', {$self['uid']}$aid, '$sqlsize', '$subdir')"
1
  • /include/attach.inc.php
"DELETE " X_PREFIX "attachments FROM " X_PREFIX "attachments $where"
1
  • /include/attach.inc.php
"SELECT aid, subdir FROM " X_PREFIX "attachments $where"
1
  • /include/attach.inc.php
"INSERT INTO " X_PREFIX "attachments (parentid, pid, filename, filetype, filesize, attachment, img_size, uid, updatetime, subdir) " "SELECT {$aid}{$topid}, filename, filetype, filesize, attachment, img_size, uid, updatetime, subdir FROM " X_PREFIX "attachments WHERE aid={$childattach['aid']}"
1
  • /include/attach.inc.php
"SELECT aid, subdir FROM " X_PREFIX "attachments WHERE pid=$frompid AND parentid={$attach['aid']}"
1
  • /include/attach.inc.php
"SELECT message FROM " X_PREFIX "posts WHERE pid=$topid"
1
  • /include/attach.inc.php
"SELECT find, replace1 FROM " X_PREFIX "words"
1
  • /include/functions.inc.php
"INSERT INTO " X_PREFIX "attachments (pid, filename, filetype, filesize, attachment, img_size, uid, updatetime, subdir) " "SELECT {$topid}, filename, filetype, filesize, attachment, img_size, uid, updatetime, subdir FROM " X_PREFIX "attachments WHERE aid={$attach['aid']}"
1
  • /include/attach.inc.php
"SELECT aid, subdir FROM " X_PREFIX "attachments WHERE pid=$frompid AND parentid=0"
1
  • /include/attach.inc.php
"SELECT aid FROM " X_PREFIX "attachments WHERE parentid=$aid AND pid=$pid AND filename LIKE '%-thumb.jpg'"
1
  • /include/attach.inc.php
"UPDATE " X_PREFIX "attachments SET filename='$rawnewname' WHERE aid=$aid AND pid=$pid"
1
  • /include/attach.inc.php
"UPDATE " X_PREFIX "attachments SET pid=$pid WHERE pid=0 AND uid={$self['uid']}"
1
  • /include/attach.inc.php
"INSERT INTO " X_PREFIX "attachments (pid, filename, filetype, filesize, attachment, uid, img_size, subdir) VALUES ($pid, '$dbfilename', '$dbfiletype', $dbfilesize, '$dbfile', {$self['uid']}, '$sqlsize', '$subdir')"
1
  • /include/attach.inc.php
"DELETE FROM " X_PREFIX "captchaimages WHERE imagehash='$nonce' AND imagestring='$key'"
1
  • /include/functions.inc.php
"DELETE FROM " X_PREFIX "captchaimages WHERE $sql_expire"
1
  • /include/functions.inc.php
"SELECT imagestring
         FROM " 
X_PREFIX "captchaimages
         WHERE imagehash='
$nonce' AND dateline >= $time AND LENGTH(imagestring) = $key_length"
1
  • /include/functions.inc.php
"INSERT INTO " X_PREFIX "captchaimages (imagehash, imagestring, dateline) VALUES ('$nonce', '$key', '$time')"
1
  • /include/functions.inc.php
"SELECT b.devname, t.cdata " "FROM " X_PREFIX "lang_base AS b " "LEFT JOIN " X_PREFIX "lang_text AS t USING (langid) " "INNER JOIN " X_PREFIX "lang_keys AS k USING (phraseid) " "WHERE k.langkey='language' " "ORDER BY t.cdata ASC"
1
  • /include/functions.inc.php
"SELECT f.* FROM " X_PREFIX "forums f WHERE f.status='on' ORDER BY f.displayorder ASC"
1
  • /include/functions.inc.php
"INSERT " X_PREFIX "logs (tid, username, action, fid, date) VALUES ('$tid', '$user', '$action', '$fid', " $db->time( ) . ")"
1
  • /include/functions.inc.php
"UPDATE " X_PREFIX "u2u SET owner='$dbuserto' WHERE owner='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "u2u SET msgto='$dbuserto' WHERE msgto='$dbuserfrom'"
1
  • /include/admin.inc.php
"SELECT p.tid, t.subject, p.dateline, p.pid
                 FROM " 
X_PREFIX "posts AS p
                 INNER JOIN " 
X_PREFIX "threads AS t USING (tid)
                 WHERE p.author='
$member' AND p.fid IN ($fids)
                 ORDER BY p.dateline DESC
                 LIMIT 1"
1
  • /member.php
"UPDATE " X_PREFIX "attachments SET subdir='$subdir', attachment='' WHERE aid=$aid AND pid=$pid"
1
  • /include/attach-admin.inc.php
"UPDATE " X_PREFIX "u2u SET folder='Trash' WHERE u2uid IN($in) AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"DELETE FROM " X_PREFIX "u2u WHERE u2uid IN($in) AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"DELETE FROM " X_PREFIX "u2u WHERE u2uid='$u2uid' AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"SELECT * FROM " X_PREFIX "u2u WHERE u2uid='$u2uid' AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "u2u SET readstatus='yes' WHERE u2uid=$u2u[u2uid]"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "u2u SET readstatus='yes' WHERE u2uid=$u2u[u2uid] OR (u2uid=$u2u[u2uid]+1 AND type='outgoing' AND msgto='$xmbuser')"
1
  • /include/u2u.inc.php
"SELECT u.*, m.avatar FROM " X_PREFIX "u2u AS u LEFT JOIN " X_PREFIX "members AS m ON u.msgfrom=m.username WHERE u2uid='$u2uid' AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"SELECT subject, msgfrom, message FROM " X_PREFIX "u2u WHERE u2uid='$u2uid' AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"SELECT count(u2uid) FROM " X_PREFIX "u2u WHERE msgfrom='$xmbuser' AND dateline > " . (time( ) - $SETTINGS['floodctrl'])
1
  • /include/u2u.inc.php
"SELECT username, email, lastvisit, ignoreu2u, emailonu2u, status, langfile FROM " X_PREFIX "members WHERE username='$msgto'"
1
  • /include/u2u.inc.php
"INSERT INTO " X_PREFIX "u2u (msgto, msgfrom, type, owner, folder, subject, message, dateline, readstatus, sentstatus) VALUES ('$to', '$from', '$type', '$owner', '$folder', '$subject', '$message', '$onlinetime', '$isRead', '$isSent')"
1
  • /include/u2u.inc.php
"SELECT a.aid, a.pid FROM " X_PREFIX "attachments AS a " "LEFT JOIN " X_PREFIX "posts AS p USING (pid) " "LEFT JOIN " X_PREFIX "attachments AS b ON a.parentid=b.aid " "WHERE ((a.uid=0 OR a.pid > 0) AND p.pid IS NULL) OR (a.parentid > 0 AND b.aid IS NULL)"
1
  • /include/attach-admin.inc.php
"SELECT a.*, UNIX_TIMESTAMP(a.updatetime) AS updatestamp, p.dateline " "FROM " X_PREFIX "attachments AS a LEFT JOIN " X_PREFIX "posts AS p USING (pid) " "WHERE a.aid=$aid AND a.pid=$pid"
1
  • /include/attach-admin.inc.php
"UPDATE " X_PREFIX "u2u SET folder='$tofolder' WHERE u2uid IN($in) AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "attachments SET subdir='', attachment='$attachment' WHERE aid=$aid AND pid=$pid"
1
  • /include/attach-admin.inc.php
"SELECT aid, filesize, subdir FROM " X_PREFIX "attachments WHERE aid=$aid AND pid=$pid"
1
  • /include/attach-admin.inc.php
"SHOW INDEX FROM " X_PREFIX $table1
  • /include/schema.inc.php
"SHOW TABLES LIKE '$sqlname'"
1
  • /include/schema.inc.php
"SHOW TABLES"
1
  • /db/mysql.php
'SHOW WARNINGS'
1
  • /db/mysql.php
'SHOW COUNT(*) WARNINGS'
1
  • /db/mysql.php
"SHOW TABLES FROM `{$db['Database']}`"
1
  • /db/mysql.php
"SELECT username, status FROM " X_PREFIX "members WHERE lastvisit >= '$datecut' AND invisible!=1 ORDER BY lastvisit DESC"
1
  • /index.php
"SELECT username, status FROM " X_PREFIX "members WHERE lastvisit >= '$datecut' ORDER BY lastvisit DESC"
1
  • /index.php
"SELECT m.username, MAX(m.status) AS status, MAX(m.invisible) AS invisible FROM " X_PREFIX "members AS m INNER JOIN " X_PREFIX "whosonline USING (username) GROUP BY m.username ORDER BY m.username"
1
  • /index.php
"SELECT COUNT(DISTINCT ip) AS guestcount FROM " X_PREFIX "whosonline WHERE username = 'xguest123'"
1
  • /index.php
"SELECT username FROM " X_PREFIX "members WHERE lastvisit!=0 ORDER BY regdate DESC LIMIT 1"
1
  • /index.php
"UPDATE " X_PREFIX "u2u SET folder='$tofolder' WHERE u2uid='$u2uid' AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "u2u SET readstatus='no' WHERE u2uid=$u2uid AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "threads SET author='$dbuserto' WHERE author='$dbuserfrom'"
1
  • /include/admin.inc.php
"DELETE FROM " X_PREFIX "lang_text WHERE langid=$langid"
1
  • /include/translation.inc.php
"UPDATE " X_PREFIX "posts SET author='$dbuserto' WHERE author='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "logs SET username='$dbuserto' WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "forums SET moderator='$dbuserto' WHERE moderator='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "favorites SET username='$dbuserto' WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "buddys SET buddyname='$dbuserto' WHERE buddyname='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "buddys SET username='$dbuserto' WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"UPDATE " X_PREFIX "members SET username='$dbuserto' WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"SELECT username FROM " X_PREFIX "members WHERE username='$dbuserto'"
1
  • /include/admin.inc.php
"SELECT username FROM " X_PREFIX "members WHERE username='$dbuserfrom'"
1
  • /include/admin.inc.php
"SELECT k.langkey, t.cdata " "FROM " X_PREFIX "lang_keys AS k " "LEFT JOIN " X_PREFIX "lang_text AS t USING (phraseid) " "WHERE t.langid=$langid " "GROUP BY k.langkey ORDER BY k.langkey"
1
  • /include/translation.inc.php
"SELECT devname FROM " X_PREFIX "lang_base WHERE langid=$langid"
1
  • /include/translation.inc.php
"DELETE FROM " X_PREFIX "lang_keys WHERE phraseid IN ($oldids)"
1
  • /include/translation.inc.php
"SELECT k.phraseid " "FROM " X_PREFIX "lang_keys AS k " "LEFT JOIN " X_PREFIX "lang_text USING (phraseid) " "GROUP BY k.phraseid " "HAVING COUNT(langid) = 0"
1
  • /include/translation.inc.php
"INSERT INTO " X_PREFIX "lang_base SET devname='$devname'"
1
  • /include/translation.inc.php
"UPDATE " X_PREFIX "u2u SET readstatus='no' WHERE u2uid IN($in) AND owner='$xmbuser'"
1
  • /include/u2u.inc.php
"SELECT langid FROM " X_PREFIX "lang_base WHERE devname='$devname'"
1
  • /include/translation.inc.php
"SELECT * FROM " X_PREFIX "lang_keys"
1
  • /include/translation.inc.php
"INSERT INTO " X_PREFIX "lang_keys (langkey) VALUES ('$sql')"
1
  • /include/translation.inc.php
"SELECT langkey FROM " X_PREFIX "lang_keys"
1
  • /include/translation.inc.php
"SELECT phraseid FROM " X_PREFIX "lang_keys WHERE phraseid=$phraseid"
1
  • /include/translation.inc.php
"INSERT INTO " X_PREFIX "lang_keys SET langkey='$langkey'"
1
  • /include/translation.inc.php
"SELECT phraseid FROM " X_PREFIX "lang_keys WHERE langkey='$langkey'"
1
  • /include/translation.inc.php
"SELECT folder, count(u2uid) as count FROM " X_PREFIX "u2u WHERE owner='$xmbuser' GROUP BY folder ORDER BY folder ASC"
1
  • /include/u2u.inc.php
"SELECT u.u2uid, u.msgto, u.msgfrom, u.type, u.folder, u.subject, u.dateline, u.readstatus, m.username, m.invisible, m.lastvisit FROM " X_PREFIX "u2u u LEFT JOIN " X_PREFIX "members m ON u.msgfrom=m.username WHERE u.folder='$folder' AND u.owner='$xmbuser' AND u.type='incoming' " "UNION ALL " "SELECT u.u2uid, u.msgto, u.msgfrom, u.type, u.folder, u.subject, u.dateline, u.readstatus, m.username, m.invisible, m.lastvisit FROM " X_PREFIX "u2u u LEFT JOIN " X_PREFIX "members m ON u.msgto=m.username WHERE u.folder='$folder' AND u.owner='$xmbuser' AND u.type IN ('outgoing','draft') " "ORDER BY dateline DESC"
1
  • /include/u2u.inc.php
"SELECT u.u2uid, u.msgto, u.msgfrom, u.type, u.folder, u.subject, u.dateline, u.readstatus, m.username, m.invisible, m.lastvisit FROM " X_PREFIX "u2u u LEFT JOIN " X_PREFIX "members m ON u.msgto=m.username WHERE u.folder='$folder' AND u.owner='$xmbuser' ORDER BY dateline DESC"
1
  • /include/u2u.inc.php
"SELECT u.u2uid, u.msgto, u.msgfrom, u.type, u.folder, u.subject, u.dateline, u.readstatus, m.username, m.invisible, m.lastvisit FROM " X_PREFIX "u2u u LEFT JOIN " X_PREFIX "members m ON u.msgfrom=m.username WHERE u.folder='$folder' AND u.owner='$xmbuser' ORDER BY dateline DESC"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "members SET ignoreu2u='" $self['ignoreu2u'] . "' WHERE username='$xmbuser'"
1
  • /include/u2u.inc.php
"UPDATE " X_PREFIX "members SET u2ufolders='$u2ufolders' WHERE username='$xmbuser'"
1
  • /include/u2u.inc.php
"SELECT dateline FROM " X_PREFIX "posts WHERE tid = $tid AND pid < $pid ORDER BY dateline DESC LIMIT 1"
1
  • /post.php
"DELETE FROM " X_PREFIX "buddys WHERE buddyname='$buddy' AND username='$xmbuser'"
1
  • /include/buddy.inc.php
"SELECT tid FROM " X_PREFIX "posts WHERE tid IN ($threadsInFid) AND author='$xmbuser' GROUP BY tid"
1
  • /forumdisplay.php
"SELECT tid FROM " X_PREFIX "threads WHERE $fq"
1
  • /tools.php
"SELECT a.*, UNIX_TIMESTAMP(a.updatetime) AS updatestamp, p.fid FROM " X_PREFIX "attachments AS a LEFT JOIN " X_PREFIX "posts AS p USING (pid) $where"
1
  • /files.php
"DELETE FROM " X_PREFIX "logs WHERE fid=0"
1
  • /tools.php
"UPDATE " X_PREFIX "members SET mood='$lang[nomoodtext]' WHERE mood=''"
1
  • /tools.php
"DELETE FROM " X_PREFIX "vote_desc, " X_PREFIX "vote_results, " X_PREFIX "vote_voters " "USING " X_PREFIX "vote_desc " "LEFT JOIN " X_PREFIX "vote_results ON " X_PREFIX "vote_results.vote_id = " X_PREFIX "vote_desc.vote_id " "LEFT JOIN " X_PREFIX "vote_voters  ON " X_PREFIX "vote_voters.vote_id  = " X_PREFIX "vote_desc.vote_id " "WHERE " X_PREFIX "vote_desc.topic_id IN ($tids)"
1
  • /tools.php
"SELECT topic_id " "FROM " X_PREFIX "vote_desc AS v " "LEFT JOIN " X_PREFIX "threads AS t ON t.tid=v.topic_id " "WHERE t.tid IS NULL"
1
  • /tools.php
"UPDATE " X_PREFIX "posts AS p LEFT JOIN " X_PREFIX "threads AS t USING (tid) " "SET p.fid = $export_fid, p.tid = $export_tid " "WHERE t.tid IS NULL"
1
  • /tools.php
"UPDATE " X_PREFIX "posts AS p INNER JOIN " X_PREFIX "threads AS t USING (tid) " "SET p.fid = t.fid " "WHERE p.fid != t.fid"
1
  • /tools.php
"SELECT t.tid, t.fid, t.icon, t.lastpost, t.subject, t.replies, r.uid AS lastauthor
             FROM " 
X_PREFIX "favorites f
             INNER JOIN " 
X_PREFIX "threads t USING (tid)
             LEFT JOIN " 
X_PREFIX "members AS r ON SUBSTRING_INDEX(SUBSTRING_INDEX(t.lastpost, '|', 2), '|', -1) = r.username
             WHERE f.username='
$xmbuser' AND f.type='subscription'
             ORDER BY t.lastpost DESC
             LIMIT 
{$mpage['start']}$tpp"
1
  • /memcp.php
"SELECT fid FROM " X_PREFIX "threads WHERE tid=$export_tid"
1
  • /tools.php
"UPDATE " X_PREFIX "posts SET fid='$export_fid' WHERE tid='$t[tid]'"
1
  • /tools.php
"UPDATE " X_PREFIX "threads SET fid='$export_fid' WHERE tid='$t[tid]'"
1
  • /tools.php
"SELECT fid FROM " X_PREFIX "forums WHERE type='forum' OR type='sub'"
1
  • /tools.php
"SELECT * FROM " X_PREFIX "settings"
1
  • /header.php
"UPDATE " X_PREFIX "threads SET lastpost='$lp' WHERE tid={$thread['tid']}"
1
  • /tools.php
"UPDATE " X_PREFIX "posts SET dateline=$lastdate WHERE tid={$thread['tid']} AND dateline = 0"
1
  • /tools.php
"UPDATE " X_PREFIX "posts SET dateline=1 WHERE tid={$thread['tid']} AND dateline = 0"
1
  • /tools.php
"SELECT MAX(dateline) AS lastdate FROM " X_PREFIX "posts WHERE tid=$newtid"
1
  • /tools.php
'SELECT t.tid, t.lastpost, t.closed, p.author, p.dateline, p.pid, log.username, log.date ' 'FROM ' X_PREFIX 'threads AS t ' 'LEFT JOIN ' X_PREFIX 'posts AS p ON t.tid=p.tid ' 'INNER JOIN ( ' '    SELECT p2.tid, MAX(pid) AS lastpid ' '    FROM ' X_PREFIX 'posts AS p2 ' '    INNER JOIN ( ' '        SELECT tid, MAX(dateline) AS lastdate ' '        FROM ' X_PREFIX 'posts ' '        GROUP BY tid ' '    ) AS query3 ON p2.tid=query3.tid AND p2.dateline=query3.lastdate ' '    GROUP BY p2.tid ' ') AS query2 ON p.pid=query2.lastpid ' 'LEFT JOIN ( /* Self-join order is critical with no unique key available */ ' '    SELECT log2.tid, log2.date, log2.username ' '    FROM ' X_PREFIX 'logs AS log2 ' '    INNER JOIN ( ' '        SELECT tid, MAX(`date`) AS lastdate ' '        FROM ' X_PREFIX 'logs ' '        WHERE `action` = "bump" ' '        GROUP BY tid ' '    ) AS query4 ON log2.tid=query4.tid AND log2.date=query4.lastdate ' ') AS log ON t.tid=log.tid'
1
  • /tools.php
"UPDATE " X_PREFIX "forums SET lastpost='$lastpost' WHERE fid='{$loner['fid']}'"
1
  • /tools.php
"UPDATE " X_PREFIX "forums SET lastpost='$lp' WHERE fid={$sub['fid']}"
1
  • /tools.php
'SELECT f.fid, f.fup, f.type, f.lastpost, p.author, p.dateline, p.pid, log.username, log.date ' 'FROM ' X_PREFIX 'forums AS f ' 'LEFT JOIN ( ' '    SELECT pid, p3.fid, author, dateline FROM ' X_PREFIX 'posts AS p3 ' '    INNER JOIN ( ' '        SELECT p2.fid, MAX(pid) AS lastpid ' '        FROM ' X_PREFIX 'posts AS p2 ' '        INNER JOIN ( ' '            SELECT fid, MAX(dateline) AS lastdate ' '            FROM ' X_PREFIX 'posts ' '            GROUP BY fid ' '        ) AS query3 ON p2.fid=query3.fid AND p2.dateline=query3.lastdate ' '        GROUP BY p2.fid ' '    ) AS query2 ON p3.pid=query2.lastpid ' ') AS p ON f.fid=p.fid ' 'LEFT JOIN ( /* Self-join order is critical with no unique key available */ ' '    SELECT log2.fid, log2.date, log2.username ' '    FROM ' X_PREFIX 'logs AS log2 ' '    INNER JOIN ( ' '        SELECT fid, MAX(`date`) AS lastdate ' '        FROM ' X_PREFIX 'logs ' '        WHERE `action` = "bump" ' '        GROUP BY fid ' '    ) AS query4 ON log2.fid=query4.fid AND log2.date=query4.lastdate ' ') AS log ON f.fid=log.fid ' 'WHERE f.type="forum" OR f.type="sub"'
1
  • /tools.php
"UPDATE " X_PREFIX "members AS m " " LEFT JOIN (SELECT author, COUNT(pid) as pcount FROM " X_PREFIX "posts GROUP BY author) AS query2 ON m.username = query2.author " "SET m.postnum = IFNULL(query2.pcount, 0)"
1
  • /tools.php
"UPDATE " X_PREFIX "threads AS t " " INNER JOIN (SELECT tid, COUNT(pid) as pcount FROM " X_PREFIX "posts GROUP BY tid) AS query2 USING (tid) " "SET t.replies = query2.pcount - 1"
1
  • /tools.php
"UPDATE " X_PREFIX "forums AS f " " LEFT JOIN (SELECT fup, SUM(threads) AS tcount, SUM(posts) AS pcount FROM " X_PREFIX "forums GROUP BY fup) AS query2 ON f.fid=query2.fup " " LEFT JOIN (SELECT fid, COUNT(tid) AS tcount FROM " X_PREFIX "threads GROUP BY fid) AS query3 ON f.fid=query3.fid " " LEFT JOIN (SELECT fid, COUNT(pid) AS pcount FROM " X_PREFIX "posts GROUP BY fid) AS query4 ON f.fid=query4.fid " "SET f.threads = IFNULL(query2.tcount, 0) + IFNULL(query3.tcount, 0), " "    f.posts   = IFNULL(query2.pcount, 0) + IFNULL(query4.pcount, 0) " "WHERE f.type = 'forum'"
1
  • /tools.php
"UPDATE " X_PREFIX "attachments SET downloads=downloads+1 WHERE aid=$aid"
1
  • /files.php
"SELECT id FROM " X_PREFIX "banned WHERE ((ip1='$ips[0]' OR ip1='-1') AND (ip2='$ips[1]' OR ip2='-1') AND (ip3='$ips[2]' OR ip3='-1') AND (ip4='$ips[3]' OR ip4='-1')) AND NOT (ip1='-1' AND ip2='-1' AND ip3='-1' AND ip4='-1')"
1
  • /header.php
"UPDATE " X_PREFIX "members SET postnum=postnum+{$result['pidcount']} WHERE username='{$result['author']}'"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "restricted ORDER BY id"
1
  • /cp2.php
"SELECT k.langkey, k.phraseid, COUNT(t.cdata) AS phrasecount " "FROM " X_PREFIX "lang_keys AS k " "CROSS JOIN " X_PREFIX "lang_base AS b " "LEFT JOIN " X_PREFIX "lang_text AS t USING (phraseid, langid) " "WHERE b.langid=$langid " "GROUP BY k.phraseid, k.langkey ORDER BY k.langkey"
1
  • /cp2.php
"UPDATE " X_PREFIX "members SET langfile='$devname' WHERE username='$xmbuser'"
1
  • /cp2.php
"SELECT devname FROM " X_PREFIX "lang_base WHERE langid='$langid'"
1
  • /cp2.php
"SELECT t.cdata " "FROM " X_PREFIX "lang_text AS t " "LEFT JOIN " X_PREFIX "lang_base AS b USING (langid) " "WHERE t.phraseid=$phraseid AND b.devname='$langfile'"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "lang_keys WHERE phraseid=$phraseid"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "lang_keys ORDER BY langkey"
1
  • /cp2.php
"SELECT b.devname, b.langid, t.cdata, COUNT(m.uid) AS cnt " "FROM " X_PREFIX "lang_base AS b " "LEFT JOIN " X_PREFIX "lang_text AS t USING (langid) " "INNER JOIN " X_PREFIX "lang_keys AS k USING (phraseid) " "LEFT JOIN " X_PREFIX "members AS m ON m.langfile = b.devname " "WHERE k.langkey='language' " "GROUP BY b.langid, b.devname, t.cdata ORDER BY b.devname ASC"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "restricted (`name`, `case_sensitivity`, `partial`) VALUES ('$newname', '$newcase', '$newpartial')"
1
  • /cp2.php
"UPDATE " X_PREFIX "restricted SET name='$name', case_sensitivity='$case', partial='$partial' WHERE id=" $restricted['id']
1
  • /cp2.php
"DELETE FROM " X_PREFIX "restricted WHERE id=$delete"
1
  • /cp2.php
"SELECT id FROM " X_PREFIX "restricted"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "themes WHERE themeid='$download'"
1
  • /cp2.php
"SELECT f.fid, f.theme FROM " X_PREFIX "forums f RIGHT JOIN " X_PREFIX "threads t USING (fid) WHERE t.tid=$tid"
1
  • /header.php
"SELECT * FROM " X_PREFIX "templates ORDER BY name ASC"
1
  • /cp2.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE tid='$thread[tid]'"
1
  • /forumdisplay.php
"DELETE FROM " X_PREFIX "favorites WHERE username='$xmbuser' AND tid IN ($tids) AND type='favorite'"
1
  • /memcp.php
"SELECT t.*, m.uid, r.uid AS lastauthor
     FROM " 
X_PREFIX "threads AS t
     LEFT JOIN " 
X_PREFIX "members AS m ON t.author = m.username
     LEFT JOIN " 
X_PREFIX "members AS r ON SUBSTRING_INDEX(SUBSTRING_INDEX(t.lastpost, '|', 2), '|', -1) = r.username
     WHERE t.fid=
$fid $criteria $cusdate
     ORDER BY topped 
$ascdesc, lastpost $ascdesc
     LIMIT 
$offset $tpp"
1
  • /forumdisplay.php
"SELECT topped, lastpost
         FROM " 
X_PREFIX "threads
         WHERE fid=
$fid
         ORDER BY topped DESC, lastpost DESC
         LIMIT 
{$mpage['start']}$tpp"
1
  • /forumdisplay.php
"SELECT COUNT(tid) FROM " X_PREFIX "threads WHERE fid=$fid"
1
  • /forumdisplay.php
"SELECT COUNT(*) FROM " X_PREFIX "u2u WHERE owner='$xmbuser' AND folder='Inbox' AND readstatus='no'"
1
  • /header.php
"UPDATE " X_PREFIX "settings SET theme={$SETTINGS['theme']}"
1
  • /header.php
"SELECT * FROM " X_PREFIX "themes LIMIT 1"
1
  • /header.php
"UPDATE " X_PREFIX "forums SET theme=0 WHERE fid=$fid"
1
  • /header.php
"UPDATE " X_PREFIX "members SET theme=0 WHERE uid={$self['uid']}"
1
  • /header.php
"SELECT COUNT(*) FROM " X_PREFIX "favorites WHERE username='$xmbuser' AND type='subscription'"
1
  • /memcp.php
"UPDATE " X_PREFIX "forums AS f " " LEFT JOIN (SELECT fid, COUNT(tid) AS tcount FROM " X_PREFIX "threads GROUP BY fid) AS query2 ON f.fid=query2.fid " " LEFT JOIN (SELECT fid, COUNT(pid) AS pcount FROM " X_PREFIX "posts GROUP BY fid) AS query3 ON f.fid=query3.fid " "SET f.threads = IFNULL(query2.tcount, 0), f.posts = IFNULL(query3.pcount, 0) " "WHERE f.type = 'sub'"
1
  • /tools.php
"INSERT INTO " X_PREFIX "posts ($columns) VALUES ($values)"
1
  • /topicadmin.php
"DELETE FROM " X_PREFIX "lang_text WHERE langid=$deleteid"
1
  • /cp2.php
"SELECT topped FROM " X_PREFIX "threads WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "ranks WHERE title !='Moderator' AND title !='Super Moderator' AND title !='Super Administrator' AND title !='Administrator' ORDER BY posts ASC"
1
  • /faq.php
"DELETE FROM " X_PREFIX "posts WHERE tid=$tid AND pid!=$pid"
1
  • /topicadmin.php
"SELECT author, COUNT(pid) AS pidcount FROM " X_PREFIX "posts WHERE tid=$tid AND pid!=$pid GROUP BY author"
1
  • /topicadmin.php
"SELECT pid FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline ASC LIMIT 1"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "forums SET lastpost='$onlinetime|$xmbuser|$pid$where"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET lastpost='$onlinetime|$xmbuser|$pid' WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT pid FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline DESC, pid DESC LIMIT 1"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "banned WHERE (ip1='$ip[0]' OR ip1='-1') AND (ip2='$ip[1]' OR ip2='-1') AND (ip3='$ip[2]' OR ip3='-1') AND (ip4='$ip[3]' OR ip4='-1')"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "posts WHERE pid='$pid'"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET topped='1' WHERE tid=$tid"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET topped='0' WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT topped FROM " X_PREFIX "threads WHERE tid={$tids[0]}"
1
  • /topicadmin.php
"SELECT pid, author, dateline, subject FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline ASC"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "posts SET fid=$moveto WHERE tid IN ($csv)"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET fid=$moveto WHERE tid IN ($csv)"
1
  • /topicadmin.php
"INSERT INTO " X_PREFIX "posts (fid, tid, author, message, subject, dateline, icon, usesig, useip, bbcodeoff, smileyoff) VALUES ({$info['fid']}, '$ntid', '{$info['author']}', '{$info['tid']}', '{$info['subject']}', $lastposttime, '', '', '', '', '')"
1
  • /topicadmin.php
"INSERT INTO " X_PREFIX "threads (fid, subject, icon, lastpost, views, replies, author, closed, topped) VALUES ({$info['fid']}, '{$info['subject']}', '', '" $db->escape($info['lastpost']) . "', 0, 0, '{$info['author']}', 'moved|{$info['tid']}', '{$info['topped']}')"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "threads WHERE tid IN ($csv)"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET closed='' WHERE tid IN ($csv)"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET closed='yes' WHERE tid IN ($csv)"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET closed='yes' WHERE tid=$tid"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET closed='' WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT closed FROM " X_PREFIX "threads WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT * FROM `" X_PREFIX "smilies` WHERE type = 'smiley'"
1
  • /faq.php
"DELETE FROM " X_PREFIX "favorites WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT t.tid, t.fid, t.lastpost, t.subject, t.icon, t.replies, r.uid AS lastauthor
             FROM " 
X_PREFIX "favorites f
             INNER JOIN " 
X_PREFIX "threads t USING (tid)
             LEFT JOIN " 
X_PREFIX "members AS r ON SUBSTRING_INDEX(SUBSTRING_INDEX(t.lastpost, '|', 2), '|', -1) = r.username
             WHERE f.username='
$xmbuser' AND f.type='favorite' AND t.fid IN ($fids)
             ORDER BY t.lastpost DESC
             LIMIT 5"
1
  • /memcp.php
"INSERT INTO " X_PREFIX "threads (fid, subject, icon, lastpost, views, replies, author, closed, topped) VALUES ($fid, '$subject', '', '$thatime|$xmbuser', 0, 0, '{$post['author']}', '', 0)"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY pid ASC"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "u2u WHERE owner='$xmbuser' AND folder='Inbox' ORDER BY dateline DESC LIMIT 0, 5"
1
  • /memcp.php
"INSERT INTO " X_PREFIX "threads ($columns) VALUES ($values)"
1
  • /topicadmin.php
"SELECT COUNT(tid) FROM " X_PREFIX "favorites WHERE tid='$subadd' AND username='$xmbuser' AND type='subscription'"
1
  • /memcp.php
"INSERT INTO " X_PREFIX "favorites (tid, username, type) VALUES ('$subadd', '$xmbuser', 'subscription')"
1
  • /memcp.php
"SELECT tid FROM " X_PREFIX "favorites WHERE username='$xmbuser' AND type='subscription'"
1
  • /memcp.php
"DELETE FROM " X_PREFIX "favorites WHERE username='$xmbuser' AND tid IN ($tids) AND type='subscription'"
1
  • /memcp.php
"UPDATE " X_PREFIX "threads SET author='$firstauthor', lastpost='{$lastpost['dateline']}|{$lastpost['author']}|{$lastpost['pid']}' WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT pid, author, dateline FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline DESC LIMIT 0,1"
1
  • /topicadmin.php
"SELECT author FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline ASC LIMIT 0,1"
1
  • /topicadmin.php
"SELECT m.status, p.author, p.pid FROM " X_PREFIX "posts p LEFT JOIN " X_PREFIX "members m ON (m.username=p.author) WHERE p.tid=$tid"
1
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "members WHERE username='$xmbuser'"
1
  • /memcp.php
"SELECT author, pid, message FROM " X_PREFIX "posts WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT p.*, m.status FROM " X_PREFIX "posts p LEFT JOIN " X_PREFIX "members m ON (m.username=p.author) WHERE tid=$tid ORDER BY dateline"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "posts SET tid=$newtid $newsub WHERE pid=$move"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET replies=replies+'$replyadd', subject='{$thread['subject']}', icon='{$thread['icon']}', author='{$thread['author']}', lastpost='{$lastpost['dateline']}|{$lastpost['author']}|{$lastpost['pid']}' WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT author, dateline, pid FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline DESC LIMIT 0, 1"
1
  • /topicadmin.php
"SELECT subject, author, icon FROM " X_PREFIX "posts WHERE tid=$tid OR tid='$othertid' ORDER BY pid ASC LIMIT 1"
1
  • /topicadmin.php
"DELETE FROM " X_PREFIX "favorites WHERE tid='$othertid'"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "favorites AS f " "INNER JOIN " X_PREFIX "members AS m ON m.username = f.username " "INNER JOIN ( " " SELECT username, COUNT(*) AS fcount " " FROM " X_PREFIX "favorites AS f2 " " WHERE tid=$tid " " GROUP BY username " ") AS query2 ON m.username = query2.username " "SET f.tid=$tid " "WHERE f.tid='$othertid' AND query2.fcount=0"
1
  • /topicadmin.php
"DELETE FROM d, r, v " "USING " X_PREFIX "vote_desc AS d " "LEFT JOIN " X_PREFIX "vote_results AS r ON r.vote_id = d.vote_id " "LEFT JOIN " X_PREFIX "vote_voters AS v  ON v.vote_id = d.vote_id " "WHERE d.topic_id = $othertid"
1
  • /topicadmin.php
"DELETE FROM " X_PREFIX "threads WHERE tid='$othertid'"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET closed='moved|$tid' WHERE closed='moved|$othertid'"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "posts SET tid=$tid, fid='$fid' WHERE tid='$othertid'"
1
  • /topicadmin.php
"SELECT t.replies, t.fid, f.type, f.fup FROM " X_PREFIX "threads AS t LEFT JOIN " X_PREFIX "forums AS f USING(fid) WHERE t.tid='$othertid'"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET replies=replies-$movecount, lastpost='$oldlastpost' WHERE tid=$tid"
1
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET replies=$movecount-1, lastpost='$lastpost' WHERE tid='$newtid'"
1
  • /topicadmin.php
"SELECT tid FROM " X_PREFIX "threads WHERE tid IN ($csv) AND fid=$fid"
1
  • /topicadmin.php
"SELECT langid FROM " X_PREFIX "lang_base WHERE devname='$langfile' OR devname='{$SETTINGS['langfile']}'"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "lang_base WHERE langid=$deleteid"
1
  • /cp2.php
"SELECT f.*, t.subject FROM " X_PREFIX "threads AS t LEFT JOIN " X_PREFIX "forums AS f USING (fid) WHERE t.tid=$tid"
1
  • /vtmisc.php
"SELECT pid, tid, dateline FROM " X_PREFIX "posts WHERE fid=$fid ORDER BY dateline DESC, pid DESC LIMIT 0, 1"
1
  • /viewthread.php
"SELECT pid FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline DESC, pid DESC LIMIT 0, 1"
1
  • /viewthread.php
"SELECT COUNT(pid) as postcount FROM " X_PREFIX "posts WHERE tid=$tid AND dateline <= {$post['dateline']}"
1
  • /viewthread.php
"SELECT tid, dateline FROM " X_PREFIX "posts WHERE pid=$pid"
1
  • /viewthread.php
"UPDATE " X_PREFIX "vote_results SET vote_result=vote_result+1 WHERE vote_id=$vote_id AND vote_option_id=$postopnum"
1
  • /vtmisc.php
"SELECT t.tid, t.fid, t.icon, t.lastpost, t.subject, t.replies, r.uid AS lastauthor
                 FROM " 
X_PREFIX "favorites f
                 INNER JOIN " 
X_PREFIX "threads t USING (tid)
                 LEFT JOIN " 
X_PREFIX "members AS r ON SUBSTRING_INDEX(SUBSTRING_INDEX(t.lastpost, '|', 2), '|', -1) = r.username
                 WHERE f.username='
$xmbuser' AND f.type='favorite' AND t.fid IN ($fids)
                 ORDER BY t.lastpost DESC"
1
  • /memcp.php
"INSERT INTO " X_PREFIX "vote_voters (vote_id, vote_user_id, vote_user_ip) VALUES ($vote_id{$self['uid']}, '" encode_ip($onlineip) . "')"
1
  • /vtmisc.php
"SELECT COUNT(vote_id) FROM " X_PREFIX "vote_voters WHERE vote_id=$vote_id AND vote_user_id={$self['uid']}"
1
  • /vtmisc.php
"SELECT COUNT(vote_option_id) FROM " X_PREFIX "vote_results WHERE vote_id=$vote_id AND vote_option_id=$postopnum"
1
  • /vtmisc.php
"SELECT vote_id FROM " X_PREFIX "vote_desc WHERE topic_id=$tid"
1
  • /vtmisc.php
"SELECT username, ppp FROM " X_PREFIX "members WHERE status='Super Administrator' OR status='Administrator' OR status='Super Moderator'"
1
  • /vtmisc.php
"SELECT f.*, t.tid, t.subject FROM " X_PREFIX "posts AS p LEFT JOIN " X_PREFIX "threads AS t USING (tid) LEFT JOIN " X_PREFIX "forums AS f ON f.fid=t.fid WHERE p.pid=$pid"
1
  • /vtmisc.php
"SELECT dateline FROM " X_PREFIX "posts WHERE tid = $tid AND pid = $pid"
1
  • /viewthread.php
"DELETE FROM " X_PREFIX "u2u WHERE folder='Trash' AND owner='$xmbuser'"
1
  • /u2u.php
"SELECT l.*, t.subject FROM " X_PREFIX "logs l LEFT JOIN " X_PREFIX "threads t ON l.tid=t.tid WHERE (l.fid='0' AND l.tid='0') ORDER BY date ASC LIMIT $old, 100"
1
  • /cp2.php
"SELECT count(fid) FROM " X_PREFIX "logs WHERE (fid='0' AND tid='0')"
1
  • /cp2.php
"SELECT l.*, t.subject FROM " X_PREFIX "logs l LEFT JOIN " X_PREFIX "threads t ON l.tid=t.tid WHERE NOT (l.fid='0' AND l.tid='0') ORDER BY date ASC LIMIT $old, 100"
1
  • /cp2.php
"SELECT count(fid) FROM " X_PREFIX "logs WHERE NOT (fid='0' AND tid='0')"
1
  • /cp2.php
"SELECT aid, pid, filename FROM " X_PREFIX "attachments WHERE aid IN ($filelist)"
1
  • /cp2.php
"SELECT a.aid, a.pid, a.filename, a.filesize, a.downloads, a.subdir, p.author, p.tid, t.fid, t.subject AS tsubject, f.name AS fname, m.username " "FROM " X_PREFIX "attachments a " "LEFT JOIN " X_PREFIX "posts p USING (pid) " "LEFT JOIN " X_PREFIX "threads t ON t.tid=p.tid " "LEFT JOIN " X_PREFIX "forums f ON f.fid=t.fid " "LEFT JOIN " X_PREFIX "members m ON a.uid=m.uid $restriction1 $orderby"
1
  • /cp2.php
"SELECT b.aid, b.pid, b.parentid, b.filename, b.filesize, b.downloads, b.subdir FROM " X_PREFIX "attachments AS b " "LEFT JOIN " X_PREFIX "attachments AS a ON a.aid=b.parentid $restriction2"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "templates WHERE id=$tid"
1
  • /cp2.php
"UPDATE " X_PREFIX "templates SET template='$templatenew' WHERE id=$tid"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "templates (name, template) VALUES ('$namenew', '$templatenew')"
1
  • /cp2.php
"SELECT p.pid, p.tid, p.dateline FROM " X_PREFIX "posts p LEFT JOIN " X_PREFIX "forums f USING (fid) WHERE f.fup=$fid ORDER BY p.dateline DESC, p.pid DESC LIMIT 0, 1"
1
  • /viewthread.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE tid = $tid AND dateline <= {$post['dateline']}"
1
  • /viewthread.php
"SELECT * FROM " X_PREFIX "templates WHERE id=$tid ORDER BY name"
1
  • /cp2.php
"SELECT f.*, t.tid FROM " X_PREFIX "posts AS p LEFT JOIN " X_PREFIX "threads AS t USING (tid) LEFT JOIN " X_PREFIX "forums AS f ON f.fid=t.fid WHERE p.pid=$pid"
1
  • /post.php
"UPDATE " X_PREFIX "forums SET lastpost='$thatime|$username|$pid', posts=posts+1 $where"
1
  • /post.php
"UPDATE " X_PREFIX "threads SET lastpost='$thatime|$username|$pid', replies=replies+1 WHERE tid=$tid"
1
  • /post.php
"SELECT COUNT(uid) FROM " X_PREFIX "members WHERE email = '$email' AND username != '$xmbuser'"
1
  • /memcp.php
"UPDATE " X_PREFIX "posts SET usesig='yes' WHERE author='$xmbuser'"
1
  • /memcp.php
"INSERT INTO " X_PREFIX "posts (fid, tid, author, message, subject, dateline, icon, usesig, useip, bbcodeoff, smileyoff) VALUES ($fid$tid, '$username', '$dbmessage', '$dbsubject', " $db->time(time( )) . ", '$posticon', '$usesig', '$onlineip', '$bbcodeoff', '$smileyoff')"
1
  • /post.php
"UPDATE " X_PREFIX "posts SET usesig='no' WHERE author='$xmbuser'"
1
  • /memcp.php
"UPDATE " X_PREFIX "members SET $pwtxt email='$email', site='$site', aim='$aim', location='$location', bio='$bio', sig='$sig', showemail='$showemail', timeoffset='$timeoffset1', icq='$icq', avatar='$avatar', yahoo='$yahoo', theme='$thememem', bday='$bday', langfile='$langfilenew', tpp='$tppnew', ppp='$pppnew', newsletter='$newsletter', timeformat='$timeformatnew', msn='$msn', dateformat='$dateformatnew', mood='$mood', invisible='$invisible', saveogu2u='$saveogu2u', emailonu2u='$emailonu2u', useoldu2u='$useoldu2u', u2ualert=$u2ualert WHERE username='$xmbuser'"
1
  • /memcp.php
"SELECT fid FROM " X_PREFIX "threads WHERE tid=$favadd"
1
  • /memcp.php
"SELECT tid FROM " X_PREFIX "favorites WHERE tid=$favadd AND username='$xmbuser' AND type='favorite'"
1
  • /memcp.php
"SELECT url, code FROM " X_PREFIX "smilies WHERE type='picon'"
1
  • /post.php
"SELECT f.* FROM " X_PREFIX "threads AS t LEFT JOIN " X_PREFIX "forums AS f USING (fid) WHERE t.tid=$tid"
1
  • /post.php
"SELECT * " "FROM " X_PREFIX "posts " "WHERE tid=$tid $criteria " "ORDER BY dateline ASC, pid ASC " "LIMIT $offset $printable_ppp"
1
  • /viewthread.php
"SELECT t.*, COUNT(pid) AS postcount FROM " X_PREFIX "threads AS t LEFT JOIN " X_PREFIX "posts USING (tid) WHERE t.tid=$tid GROUP BY t.tid"
1
  • /viewthread.php
"SELECT dateline, pid " "FROM " X_PREFIX "posts " "WHERE tid=$tid " "ORDER BY dateline ASC, pid ASC " "LIMIT {$mpage['start']}, 1"
1
  • /viewthread.php
"SELECT aid, filename FROM " X_PREFIX "attachments AS a INNER JOIN " X_PREFIX "posts AS p USING (pid) WHERE a.pid=$pid AND a.parentid=0 AND p.tid=$tid ORDER BY aid LIMIT 1"
1
  • /viewthread.php
'UPDATE ' X_PREFIX 'posts SET fid=' $thread['fid'] . ' WHERE pid=' $post['pid']
1
  • /viewthread.php
"INSERT INTO " X_PREFIX "favorites (tid, username, type) VALUES ($favadd, '$xmbuser', 'favorite')"
1
  • /memcp.php
"SELECT p.*, m.* " "FROM " "( " "  ( " "    SELECT 'post' AS type, fid, tid, author, subject, dateline, pid, message, icon, usesig, useip, bbcodeoff, smileyoff " "    FROM " X_PREFIX "posts " "    WHERE tid=$tid AND (dateline > $startdate OR dateline = $startdate AND pid >= $startpid)" "    ORDER BY dateline ASC, pid ASC " "    LIMIT $ppp " "  ) " "  UNION ALL " "  ( " "    SELECT 'modlog' AS type, fid, tid, username AS author, action AS subject, date AS dateline, '', '', '', '', '', '', '' " "    FROM " X_PREFIX "logs " "    WHERE tid=$tid AND date >= $startdate AND date < $enddate " "  ) " ") AS p " "LEFT JOIN " X_PREFIX "members m ON m.username=p.author " "ORDER BY p.dateline ASC, p.type DESC, p.pid ASC "
1
  • /viewthread.php
"SELECT dateline, pid " "FROM " X_PREFIX "posts " "WHERE tid=$tid " "ORDER BY dateline ASC, pid ASC " "LIMIT {$mpage['start']}, " . ($ppp 1)
1
  • /viewthread.php
"SELECT vote_option_id, vote_option_text FROM " X_PREFIX "vote_results WHERE vote_id='$vote_id'"
1
  • /viewthread.php
"SELECT vote_result, vote_option_text FROM " X_PREFIX "vote_results WHERE vote_id='$vote_id'"
1
  • /viewthread.php
"SELECT COUNT(vote_id) AS cVotes FROM " X_PREFIX "vote_voters WHERE vote_id='$vote_id' AND vote_user_id=" intval($self['uid'])
1
  • /viewthread.php
"SELECT vote_id FROM " X_PREFIX "vote_desc WHERE topic_id='$tid'"
1
  • /viewthread.php
"UPDATE " X_PREFIX "threads SET views=views+1 WHERE tid='$tid'"
1
  • /viewthread.php
"SELECT id, title, posts, stars, allowavatars, avatarrank FROM " X_PREFIX "ranks"
1
  • /viewthread.php
"SELECT theme, count(theme) as cnt FROM " X_PREFIX "members GROUP BY theme"
1
  • /cp2.php
"SELECT name FROM " X_PREFIX "templates WHERE name='$namenew'"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "templates WHERE name=''"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "smilies WHERE type='picon' ORDER BY id"
1
  • /cp2.php
"SELECT count(id) FROM " X_PREFIX "smilies WHERE url='$newurl2' AND type='picon'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "smilies (type, code, url) VALUES ('smiley', '$newsmiley_code', '$newsmiley_url')"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "smilies WHERE type = 'smiley'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "smilies (type, code, url) VALUES ('smiley', '$newcode', '$newurl1')"
1
  • /cp2.php
"SELECT count(id) FROM " X_PREFIX "smilies WHERE code='$newcode'"
1
  • /cp2.php
"UPDATE " X_PREFIX "smilies SET url='$piurl[$id]' WHERE id='$picon[id]' AND type='picon'"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "smilies WHERE id='$picon[id]'"
1
  • /cp2.php
"SELECT id FROM " X_PREFIX "smilies WHERE type='picon'"
1
  • /cp2.php
"UPDATE " X_PREFIX "smilies SET code='$smcode[$id]', url='$smurl[$id]' WHERE id='$smilie[id]' AND type='smiley'"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "smilies WHERE id='$id'"
1
  • /cp2.php
"SELECT id FROM " X_PREFIX "smilies WHERE type='smiley'"
1
  • /cp2.php
"SELECT code, id, url FROM " X_PREFIX "smilies WHERE type='smiley'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "templates (name, template) VALUES $values"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "themes (name, bgcolor, altbg1, altbg2, link, bordercolor, header, headertext, top, catcolor, tabletext, text, borderwidth, tablewidth, tablespace, font, fontsize, boardimg, imgdir, smdir, cattext, admdir) VALUES('$namenew', '$bgcolornew', '$altbg1new', '$altbg2new', '$linknew', '$bordercolornew', '$headernew', '$headertextnew', '$topnew', '$catcolornew', '$tabletextnew', '$textnew', '$borderwidthnew', '$tablewidthnew', '$tablespacenew', '$fnew', '$fsizenew', '$boardlogonew', '$imgdirnew', '$smdirnew', '$cattextnew', '$admdirnew')"
1
  • /cp2.php
"UPDATE " X_PREFIX "themes SET name='$namenew', bgcolor='$bgcolornew', altbg1='$altbg1new', altbg2='$altbg2new', link='$linknew', bordercolor='$bordercolornew', header='$headernew', headertext='$headertextnew', top='$topnew', catcolor='$catcolornew', tabletext='$tabletextnew', text='$textnew', borderwidth='$borderwidthnew', tablewidth='$tablewidthnew', tablespace='$tablespacenew', fontsize='$fsizenew', font='$fnew', boardimg='$boardlogonew', imgdir='$imgdirnew', smdir='$smdirnew', cattext='$cattextnew', admdir='$admdirnew' WHERE themeid='$orig'"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "themes WHERE themeid='$single_int'"
1
  • /cp2.php
"UPDATE " X_PREFIX "themes SET name='$name' WHERE themeid='$themeid'"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "themes WHERE themeid='$themeid'"
1
  • /cp2.php
"UPDATE " X_PREFIX "forums SET theme=0 WHERE theme='$themeid'"
1
  • /cp2.php
"UPDATE " X_PREFIX "members SET theme=0 WHERE theme='$themeid'"
1
  • /cp2.php
"SELECT count(themeid) FROM " X_PREFIX "themes"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "themes ($keysql) VALUES ($valsql);"
1
  • /cp2.php
"SELECT COUNT(themeid) FROM " X_PREFIX "themes WHERE name='$dbname'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "themes"
1
  • /cp2.php
"SELECT name, themeid FROM " X_PREFIX "themes ORDER BY name ASC"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "smilies (type, code, url) VALUES ('picon', '', '$newurl2')"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "smilies WHERE type='picon'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "smilies (type, code, url) VALUES ('picon', '', '$newposticon_url')"
1
  • /cp2.php
"SELECT username, email FROM " X_PREFIX "members WHERE (status='Administrator' OR status = 'Super Administrator') $tome ORDER BY uid"
1
  • /cp2.php
"SELECT id, name FROM " X_PREFIX "templates ORDER BY name"
1
  • /cp2.php
"UPDATE " X_PREFIX "forums SET posts=0, threads=0, lastpost=''"
1
  • /cp2.php
"UPDATE " X_PREFIX "members SET postnum=0"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "threads WHERE tid IN ($tids)"
1
  • /cp2.php
"DELETE FROM d, r, v " "USING " X_PREFIX "vote_desc AS d " "LEFT JOIN " X_PREFIX "vote_results AS r ON r.vote_id = d.vote_id " "LEFT JOIN " X_PREFIX "vote_voters AS v  ON v.vote_id = d.vote_id " "WHERE d.topic_id IN ($tids)"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "favorites WHERE tid IN ($tids)"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "posts WHERE tid IN ($tids)"
1
  • /cp2.php
"SELECT tid, fid FROM " X_PREFIX "threads WHERE " $queryWhere1
  • /cp2.php
"INSERT INTO " X_PREFIX "u2u (msgto, msgfrom, type, owner, folder, subject, message, dateline, readstatus, sentstatus) VALUES ('{$memnews['username']}', '$xmbuser', 'incoming', '{$memnews['username']}', 'Inbox', '$newssubject', '$newsmessage', '" time( ) . "', 'no', 'yes')"
1
  • /cp2.php
"SELECT username, email FROM " X_PREFIX "members WHERE status='Moderator' $tome ORDER BY uid"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "words ORDER BY id"
1
  • /cp2.php
"SELECT username, email FROM " X_PREFIX "members WHERE status='Super moderator' $tome ORDER by uid"
1
  • /cp2.php
"SELECT username, email FROM " X_PREFIX "members WHERE (status='Super Administrator' OR status='Administrator' OR status='Super Moderator' OR status='Moderator') $tome ORDER BY uid"
1
  • /cp2.php
"SELECT username, email FROM " X_PREFIX "members WHERE newsletter='yes' $tome ORDER BY uid"
1
  • /cp2.php
"SELECT id FROM " X_PREFIX "words"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "words WHERE id=$delete"
1
  • /cp2.php
"UPDATE " X_PREFIX "words SET find='$find', replace1='$replace' WHERE id='$censor[id]'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "words (find, replace1) VALUES ('$newfind', '$newreplace')"
1
  • /cp2.php
"SELECT tid FROM " X_PREFIX "favorites WHERE username='$xmbuser' AND type='favorite'"
1
  • /memcp.php
"SELECT * FROM " X_PREFIX "ranks ORDER BY stars"
1
  • /cp2.php
"SELECT * FROM " X_PREFIX "ranks"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "ranks WHERE id IN ($del)"
1
  • /cp2.php
"UPDATE " X_PREFIX "ranks SET title='$title[$key]', posts='$posts[$key]', stars='$stars[$key]', allowavatars='$allowavatars[$key]', avatarrank='$avaurl[$key]' WHERE id='$key'"
1
  • /cp2.php
"INSERT INTO " X_PREFIX "ranks (title, posts, stars, allowavatars, avatarrank) VALUES ('$newtitle', '$newposts', '$newstars', '$newallowavatars', '$newavaurl')"
1
  • /cp2.php
"DELETE FROM " X_PREFIX "posts WHERE tid=$tid"
1
  • /topicadmin.php
"SELECT COUNT(aid) AS atcount FROM " X_PREFIX "attachments WHERE pid=$pid AND parentid=0"
2
  • /include/attach.inc.php
  • /include/attach.inc.php
"SELECT COUNT(aid) AS atcount FROM " X_PREFIX "attachments WHERE pid=0 AND parentid=0 AND uid={$self['uid']}"
2
  • /include/attach.inc.php
  • /include/attach.inc.php
"SELECT * FROM " X_PREFIX "threads WHERE tid={$tids[0]}"
2
  • /topicadmin.php
  • /topicadmin.php
"DELETE FROM " X_PREFIX "whosonline WHERE username='$xmbuser'"
2
  • /memcp.php
  • /misc.php
"UPDATE " X_PREFIX "members SET postnum=postnum+1 WHERE username='$username'"
2
  • /post.php
  • /post.php
"SELECT author, COUNT(pid) AS pidcount FROM " X_PREFIX "posts WHERE tid=$tid GROUP BY author"
2
  • /topicadmin.php
  • /topicadmin.php
"DELETE FROM " X_PREFIX "lang_text WHERE langid=$langid AND phraseid=$phraseid"
2
  • /include/translation.inc.php
  • /include/translation.inc.php
"INSERT INTO " X_PREFIX "favorites (tid, username, type) VALUES ($tid, '$username', 'subscription')"
2
  • /post.php
  • /post.php
"UPDATE " X_PREFIX "threads SET closed='yes' WHERE tid='$tid' AND fid='$fid'"
2
  • /post.php
  • /post.php
"SELECT a.aid, a.pid, a.filename, a.filetype, a.filesize, a.downloads, a.img_size, thumbs.aid AS thumbid, thumbs.filename AS thumbname, thumbs.img_size AS thumbsize FROM " X_PREFIX "attachments AS a LEFT JOIN " X_PREFIX "attachments AS thumbs ON a.aid=thumbs.parentid WHERE a.uid={$self['uid']} AND a.pid=0 AND a.parentid=0"
2
  • /post.php
  • /post.php
"SELECT COUNT(tid) FROM " X_PREFIX "posts WHERE tid='$tid'"
2
  • /post.php
  • /post.php
"SELECT a.aid, a.pid, a.filename, a.filetype, a.filesize, a.downloads, a.img_size, thumbs.aid AS thumbid, thumbs.filename AS thumbname, thumbs.img_size AS thumbsize FROM " X_PREFIX "attachments AS a LEFT JOIN " X_PREFIX "attachments AS thumbs ON a.aid=thumbs.parentid INNER JOIN " X_PREFIX "posts AS p ON a.pid=p.pid WHERE p.tid=$tid AND a.parentid=0"
2
  • /viewthread.php
  • /viewthread.php
"SELECT COUNT(uid) FROM " X_PREFIX "members UNION ALL SELECT COUNT(tid) FROM " X_PREFIX "threads UNION ALL SELECT COUNT(pid) FROM " X_PREFIX "posts"
2
  • /stats.php
  • /index.php
"SELECT COUNT(uid) FROM " X_PREFIX "members WHERE status='Super Administrator'"
2
  • /cp.php
  • /editprofile.php
"SELECT tid FROM " X_PREFIX "favorites WHERE tid='$tid' AND username='$username' AND type='subscription'"
2
  • /post.php
  • /post.php
"UPDATE " X_PREFIX "members SET postnum=postnum-{$result['pidcount']} WHERE username='{$result['author']}'"
2
  • /topicadmin.php
  • /topicadmin.php
"UPDATE " X_PREFIX "u2u SET folder='Trash' WHERE u2uid='$u2uid' AND owner='$xmbuser'"
2
  • /include/u2u.inc.php
  • /include/u2u.inc.php
"INSERT INTO " X_PREFIX "lang_text SET langid=$langid, phraseid=$phraseid, cdata='$cdata'"
2
  • /include/translation.inc.php
  • /include/translation.inc.php
"SELECT * FROM " X_PREFIX "threads WHERE tid=$tid"
2
  • /topicadmin.php
  • /post.php
"DELETE FROM d, r, v " "USING " X_PREFIX "vote_desc AS d " "LEFT JOIN " X_PREFIX "vote_results AS r ON r.vote_id = d.vote_id " "LEFT JOIN " X_PREFIX "vote_voters AS v  ON v.vote_id = d.vote_id " "WHERE d.topic_id = $tid"
2
  • /topicadmin.php
  • /post.php
"DELETE FROM " X_PREFIX "threads WHERE tid=$tid OR closed='moved|$tid'"
2
  • /topicadmin.php
  • /post.php
"SELECT replies FROM " X_PREFIX "threads WHERE tid=$tid"
2
  • /topicadmin.php
  • /topicadmin.php
"SELECT * FROM " X_PREFIX "posts WHERE tid=$tid ORDER BY dateline"
2
  • /topicadmin.php
  • /topicadmin.php
"UPDATE " X_PREFIX "posts SET message='$newdbmessage' WHERE pid=$pid"
2
  • /post.php
  • /post.php
"UPDATE " X_PREFIX "members SET postnum=postnum-1 WHERE username='{$post['author']}'"
2
  • /topicadmin.php
  • /topicadmin.php
"DELETE FROM " X_PREFIX "posts WHERE pid=$move"
2
  • /topicadmin.php
  • /topicadmin.php
"UPDATE " X_PREFIX "threads SET replies=replies-1 WHERE tid=$tid"
2
  • /topicadmin.php
  • /topicadmin.php
"SELECT COUNT(pid) FROM " X_PREFIX "posts WHERE tid=$tid"
3
  • /topicadmin.php
  • /viewthread.php
  • /viewthread.php
"SELECT message, subject FROM " X_PREFIX "posts WHERE 1=0"
3
  • /post.php
  • /post.php
  • /post.php
"SELECT * FROM " X_PREFIX "themes WHERE themeid=$theme"
3
  • /header.php
  • /header.php
  • /header.php
"SELECT * FROM " X_PREFIX "restricted"
3
  • /memcp.php
  • /member.php
  • /include/admin.inc.php
"SELECT b.buddyname, m.invisible, m.username, m.lastvisit FROM " X_PREFIX "buddys b LEFT JOIN " X_PREFIX "members m ON (b.buddyname=m.username) WHERE b.username='$xmbuser'"
3
  • /memcp.php
  • /include/buddy.inc.php
  • /include/buddy.inc.php
"SELECT langid FROM " X_PREFIX "lang_base WHERE devname='$langfile'"
3
  • /include/translation.inc.php
  • /include/translation.inc.php
  • /include/translation.inc.php
"SELECT id FROM " X_PREFIX "smilies WHERE type='picon' AND url='$posticon'"
3
  • /post.php
  • /post.php
  • /post.php
"SELECT devname FROM " X_PREFIX "lang_base WHERE devname='$langfilenew'"
4
  • /memcp.php
  • /cp.php
  • /editprofile.php
  • /member.php
"SELECT themeid, name FROM " X_PREFIX "themes ORDER BY name ASC"
5
  • /memcp.php
  • /cp.php
  • /cp.php
  • /editprofile.php
  • /member.php