include( 'classes/global.php' ); $list_page = "/twi_news_list.html"; $table_name = "news"; $pk = "news_serno"; $pvw = false;if ( isset( $_GET['preview'] ) && $_GET['preview'] == "bm2jst" ) { $pvw = true; } if ( isset( $_GET['s'] ) && is_numeric( $_GET['s'] ) && ( $data = $sql->retrieve_content_time_where( $table_name, $pk, (int)$_GET['s'] ) ) ) { $serno = (int)$_GET['s']; } else if ( $pvw ) { $serno = (int)$_GET['s']; $data = $sql->retrieve_content( $table_name, $pk, $serno, true ); } else { echo ""; exit; } function nl2li( $str, $css_class = "none", $ordered = 0, $type = "1" ) { //check if its ordered or unordered list, set tag accordingly if ( $ordered ) { $tag = "ol"; //specify the type $tag_type = "type=$type"; } else { $tag = "ul"; //set $type as NULL $tag_type = null; } $str = "