set_filenames(array( 'ml_index' => 'modules/'._MODULE_NAME.'/ml_index.tpl') ); $sql = "SELECT `title_"._SNSS_LANG."`,`text_"._SNSS_LANG."` FROM ".$conf['prefix']."_mod_ml"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $template->assign_vars(array( 'TITLE' => $row['title_'._SNSS_LANG], 'TEXT' => $row['text_'._SNSS_LANG], 'GOBACK' => _GOBACK )); } $template->pparse("ml_index"); include("footer.php"); ?>