$columna = array (); $block0 = array(); $block1 = array(); $block2 = array(); $newentries = array(); $popentries = array(); $random = array(); $blockS = array(); $subentries = array(); $blockR = array(); $reqentries = array(); $totalSwords = 0; $totalRwords = 0; $microlinks = ""; $rndlength = !empty($xoopsModuleConfig['rndlength']) ? intval($xoopsModuleConfig['rndlength']) : 100 ; calculateTotals(); /* // To display the linked letter list $alpha = alphaArray(); for ($i=0; $i < count($alpha['initial']); $i++) { if ($alpha['initial'][$i]['linktext'] == constant("_MD_{$MYDIRNAME}_ALL_LINKTEXT")) { $publishedwords = $alpha['initial'][$i]['total']; break; } } */
function entryDeletego($entryID = '') { global $cat_table,$ent_table,$xoopsConfig,$xoopsModuleConfig,$xoopsModule,$xoopsGTicket,$MYDIRNAME; // Ticket check if ( ! $xoopsGTicket->check() ) { redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors()); } $xoopsDB =& Database::getInstance(); $myts =& MyTextSanitizer::getInstance(); $ok = !empty($_POST['ok']) ? intval($_POST['ok']) : 0; $term = !empty($_POST['term']) ? $myts -> htmlSpecialChars($_POST['term']) : ""; // confirmed, so delete if ( $ok != 1 && $entryID < 0 ) { redirect_header( "index.php", 2, constant("_AM_{$MYDIRNAME}_NOENTRY") ); } if ( $xoopsDB -> query( "DELETE FROM $ent_table WHERE entryID = '$entryID'") ) { // delete comments xoops_comment_delete($xoopsModule->getVar('mid'), $entryID); calculateTotals(); redirect_header("index.php",1,sprintf( constant("_AM_{$MYDIRNAME}_ENTRYISDELETED"), $term ) ); } else { redirect_header( "index.php", 2, constant("_AM_{$MYDIRNAME}_NOTUPDATED") ); } }