escape($page_url); $my_sql_info = $class_db->sql_query("SELECT * FROM `".dbperfix."page` where `url`='".$page_url."' "); $my_sql_info_r = $class_db->sql_fetchrow( $my_sql_info ) ; $page_content .= theme_page ( $class_db->undo_escape($my_sql_info_r['title']) , $class_db->undo_escape($my_sql_info_r['content']) ); $content = '
'; $i=0; $my_sql_info = $class_db->sql_query("SELECT * FROM `".dbperfix."note` where `show_firstpage`='1' ORDER BY `id` DESC LIMIT 0 , 10 "); while($my_sql_info_r = $class_db->sql_fetchrow( $my_sql_info ) ){ $i++; if( !empty( $my_sql_info_r['pic'])){ $pic = $class_db->undo_escape($my_sql_info_r['pic']); }else{ $pic ='images/no_pic.gif'; } $content .= '
'.$class_db->undo_escape($my_sql_info_r['title']).' '.$class_db->undo_escape($my_sql_info_r['note_short']).'
'; } $content .= '

'; $page_content .= $content; main_theme( 'index' , $page_content ); ob_end_flush(); ?>