$_LANG['home'], 'url' => $glo_domain_directory, ); $num = (int)$page_display_set['home']['num']?$page_display_set['home']['num']:5; if($page_display_set['home']['type'] == 'commend'){ $sql = "SELECT * FROM {$db_obj->db_pre}software WHERE is_stop=0 AND is_index_commend=1 ORDER BY add_time DESC LIMIT {$num}"; }else{ $sql = "SELECT * FROM {$db_obj->db_pre}software WHERE is_stop=0 ORDER BY is_index_commend DESC ,add_time DESC LIMIT {$num}"; } $index_soft_res = $db_obj->getRecords($sql); if($index_soft_res){ $index_soft_res = format_software_list($index_soft_res); } parse_template('index.html');