$xoopsTpl -> assign ( 'lang_wehave', constant("_MD_{$MYDIRNAME}_WEHAVE") ); $xoopsTpl -> assign ( 'lang_entcat', constant("_MD_{$MYDIRNAME}_ENTRIESINCAT") ); $xoopsTpl -> assign ( 'lang_return', constant("_MD_{$MYDIRNAME}_RETURN") ); $xoopsTpl -> assign ( 'lang_index', constant("_MD_{$MYDIRNAME}_RETURN2INDEX") ); $xoopsTpl -> assign ( 'lang_entryyomi', constant("_MD_{$MYDIRNAME}_ENTRYYOMI") ); $xoopsTpl -> assign ( 'lang_letterdef', constant("_MD_{$MYDIRNAME}_LETTERDEFINS") ); $xoopsTpl -> assign ( 'lang_rubyl', constant("_MD_{$MYDIRNAME}_RUBYL") ); $xoopsTpl -> assign ( 'lang_rubyr', constant("_MD_{$MYDIRNAME}_RUBYR") ); $xoopsTpl -> assign ( 'xoops_pagetitle', $xoops_pagetitle ); $xoopsTpl -> assign ( 'multicats', intval($xoopsModuleConfig['multicats']) ); $xoopsTpl -> assign ( 'titleblockuse', intval($xoopsModuleConfig["titleblockuse"]) ); $xoopsTpl -> assign ( 'h1id', $myts -> makeTboxData4Show( $xoopsModuleConfig["h1id"] ) ); $xoopsTpl -> assign ( 'catsarrayuse', intval($xoopsModuleConfig["catsarrayuse"]) ); $xoopsTpl -> assign ( 'blocksperpage', intval($xoopsModuleConfig["blocksperpage"]) ); $xoopsTpl -> assign ( 'publishedwords', $publishedwords ); $xoopsTpl -> assign ( 'block0', catlinksArray () ); $xoopsTpl -> assign ( 'alpha', $alpha ); $xoopsTpl -> assign ( 'lang_recentent', constant("_MD_{$MYDIRNAME}_CATRECENTENT") ); $xoopsTpl -> assign ( 'lang_popular', constant("_MD_{$MYDIRNAME}_CATPOPULARENT") ); if ($xoopsModuleConfig["blocksperpage"] > 0) { $xoopsTpl -> assign ( 'block1', NewEntriesArray($cID) ); $xoopsTpl -> assign ( 'block2', PopEntriesArray($cID) ); } $xoopsTpl -> assign ( 'pagetype', $pagetype ); $xoopsTpl -> assign ( 'singlecat', $singlecat ); $xoopsTpl -> assign ( 'catsarray', $catsarray ); $xoopsTpl -> assign ( 'entriesarray', $entriesarray );
// XOOPS2 - Xwords 0.42 // WEBMASTER @ KANPYO.NET, 2005. include "./header.php"; include_once( XOOPS_ROOT_PATH . '/class/pagenav.php' ); global $xoopsUser; $post_init = !empty($_GET['init']) ? $_GET['init'] : constant("_MD_{$MYDIRNAME}_ALL_ID"); $catID = !empty($_GET['categoryID']) ? intval($_GET['categoryID']) : 0; $start = !empty( $_GET['start'] ) ? intval( $_GET['start'] ) : 0; $init_str = ''; $page_str = ''; $eachentry = array(); $entriesarray = array(); $block0 = catlinksArray(); $rndlength = !empty($xoopsModuleConfig['rndlength']) ? intval($xoopsModuleConfig['rndlength']) : 100 ; $cID = $catID ? "AND e.categoryID = '$catID'" : ''; $xoops_pagetitle = $xoopsModule->name().' : '; if ($cID) { for ($i=0; $i < count($block0); $i++) { if ($block0['categories'][$i]['id'] == $catID) { $xoops_pagetitle .= $block0['categories'][$i]['linktext'].' : '; break; } } }