options['tEnable']){ if ($_REQUEST['do'] == 'showinfo' && $_REQUEST['act'] == '') { eval('$navbar = "' . fetch_template('navbar') . '";'); $q = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid <> 0 ORDER BY current_sp DESC LIMIT 0,10"); while ($get = $db->fetch_array($q)) { $got = $get['current_sp'] - 5; $total = $get['plus_times'] + $get['except_times']; $template_sp .= " $get[username] $get[current_sp] $got $total "; } $q = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid <> 0 ORDER BY t_level DESC LIMIT 0,10"); while ($get = $db->fetch_array($q)) { $maxEXP = $get['t_level']*10; $template_level .= " $get[username] $get[t_level] $get[current_exp] $maxEXP "; } eval('print_output("' . fetch_template('level_showinfo') . '");'); } if ($_REQUEST['do'] == 'showinfo' && $_REQUEST['act'] == 'next') { eval('$navbar = "' . fetch_template('navbar') . '";'); $vbulletin->input->clean_array_gpc('p', array( 'lvsp_from' => TYPE_INT, 'lvsp_to' => TYPE_INT, 'mucluc' => TYPE_INT, )); $z = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE username<>'';"); $from = $vbulletin->GPC['lvsp_from']; $from = ($from<$z['count']) ? $from : $z['count']; $from = ($from>0) ? $from - 1 : 0; $to = $vbulletin->GPC['lvsp_to']; $to = ($to>0) ? $to - 1 : 0; $type = $vbulletin->GPC['mucluc']; $order = ($type==0) ? "t_level" : "current_sp"; $q = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid <> 0 ORDER BY $order DESC LIMIT $from,$to"); while ($get = $db->fetch_array($q)) { if($type) { $got = $get['current_sp'] - 5; $total = $get['plus_times'] + $get['except_times']; $template_sp .= " $get[username] $get[current_sp] $got $total "; $display_lv = "display:none"; } else { $maxEXP = $get['t_level']*10; $template_level .= " $get[username] $get[t_level] $get[current_exp] $maxEXP "; $display_sp = "display:none"; } } eval('print_output("' . fetch_template('level_showinfo') . '");'); }} ?> Who Posted? - Diễn đàn Thế Giới Hoá Học
Who Posted?
Tổng số bài: 1
Tên thành viên Posts
Hoàng Diễm 1