+ Changed from MySQL to MySQLi native driver.
+ Added 2 new functions in DataBase class: fetch($query) and num_rows($query) git-svn-id: https://svn.pioder.pl/uf-svn/uF@20 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -55,7 +55,7 @@ include('./skins/'.$default_skin.'/topic_body.tpl');
|
||||
|
||||
$sql = "SELECT ".POSTS_TABLE.".*, ".USERS_TABLE.".*, ".USERS_TABLE.".u_id AS user_id,".SESSIONS_TABLE.".* FROM `".POSTS_TABLE."` LEFT JOIN ".USERS_TABLE." ON ".USERS_TABLE.".u_id = ".POSTS_TABLE.".u_id LEFT JOIN ".SESSIONS_TABLE." ON ".SESSIONS_TABLE.".u_id = ".POSTS_TABLE.".u_id WHERE t_id='$tid' ORDER BY tp_id $limit;";
|
||||
$query = DataBase::sql_query($sql,'CRITICAL','Could not obtain post information.');
|
||||
while($item=mysql_fetch_array($query))
|
||||
while($item=DataBase::fetch($query))
|
||||
{
|
||||
$ua = UserAgent($item['user_agent']);
|
||||
$warn_pool = ($forum_config['allow_warns'] && $forum_config['warns_in_topic'] ) ? (isset($user_warnlevel[$item['u_id']])) ?
|
||||
|
||||
Reference in New Issue
Block a user