"; // --------------- page components $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode(); // --------------- [END] page components // this is dynamic page - send headers to do not cache this page send_headers_page_changed(); PageCode(); // --------------- page components functions /** * page code function */ function PageCompPageMainCode() { global $site; global $short_date_format; $out = ""; $query = "SELECT `Stories`.`ID`, `Profiles`.`ID` as `MembID`, DATE_FORMAT(`Stories`.`Date`, '$short_date_format' ) AS 'Date', `Stories`.`Header`, `Stories`.`Text`, `Profiles`.`ID` as `prID`, `Profiles`.`NickName` FROM `Stories` INNER JOIN `Profiles` ON (`Stories`.`Sender` = `Profiles`.`ID`) WHERE `Stories`.`active` = 'on' ORDER BY `Stories`.`Date` DESC"; $res = db_res($query); if ( !$res ) return 0; $out .= "
  "._t("_post my feedback")."

"; $num = mysql_num_rows($res); if ( !$num ) $out .= " "; else { while ( $arr = mysql_fetch_array($res)) { $story_header = process_line_output( $arr['Header'] ); $out .= " "; } } $out .= "
"._t("_NO_STORIES")."
{$arr['Date']} {$arr['NickName']}  $story_header
\n"; return $out; } ?>