function lPT6M7drPhQPL($ht, $hv)
{
    global $grab_parameters, $n5r9fzJl7ca, $urls_completed, $kAiwEsZc1NNHhe9fCyn, $uXuHhVh19bb7ylhJo, $Zul57HOZFkqdgOyF8, $RxJr9gI4CwRmPszp;
    $m8SP2ZxC0d0O2hA4w = $RxJr9gI4CwRmPszp['runstate']['charset'];
    $Toy1DGI3eNLNBNIr = new gYT2DH5A_("pages/mods/");
    $Toy1DGI3eNLNBNIr->SCWLfn0FOY(vHwDy8urTbxymoY7y(a0mMmHqPDZ, 'sitemap_tpl.html'));
    $qyrBCAYqEMp = $grab_parameters['xs_htmlname'];
    $vA9l366kG = basename($grab_parameters['xs_htmlname']);
    $SqrzugERsY7n = '';
    $A1D6v6ZnT2du = array();
    if ($uXuHhVh19bb7ylhJo > 1) {
        for ($i1 = 0; $i1 < $uXuHhVh19bb7ylhJo; $i1++) {
            $lHUsTijW9DC9gGFPbv = ZW04gbhF9A8P($i1 + 1, $vA9l366kG, true);
            $SqrzugERsY7n .= $i1 == $kAiwEsZc1NNHhe9fCyn ? ' [' . ($i1 + 1) . ']' : ' <a href="' . $lHUsTijW9DC9gGFPbv . '">' . ($i1 + 1) . '</a>';
            $A1D6v6ZnT2du[] = array('current' => $i1 == $kAiwEsZc1NNHhe9fCyn, 'link' => $lHUsTijW9DC9gGFPbv, 'num' => $i1 + 1);
        }
        $SqrzugERsY7n = '<span class="pager">' . $SqrzugERsY7n . '</span>';
    }
    $lKYJ6QOoLtm8_Ze4uz3 = "<table cellpadding=\"0\" border=\"0\">\n" . $ht . "\n</table>\n";
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('slots', $hv);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('LASTUPDATE', date($grab_parameters['xs_dateformat'] ? $grab_parameters['xs_dateformat'] : 'Y, F j'));
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('NOBRAND', $grab_parameters['xs_nobrand'] ? 1 : 0);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('PCHARSET', $m8SP2ZxC0d0O2hA4w);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('TOPURL', $n5r9fzJl7ca);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('PAGE', $uXuHhVh19bb7ylhJo ? ' Page ' . ($kAiwEsZc1NNHhe9fCyn + 1) : '');
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('PAGES', $SqrzugERsY7n);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('APAGER', $A1D6v6ZnT2du);
    $Toy1DGI3eNLNBNIr->Jzvvi5906fScvwvc6H('TOTALURLS', count($urls_completed));
    $K08dPkTModx = $Toy1DGI3eNLNBNIr->parse();
    $K08dPkTModx = preg_replace(array('#%SITEMAP%#', '#%LASTUPDATE%#', '#%TOPURL%#', '#%PAGE%#', '#%PAGER%#', '#%TOTALURLS%#'), array($lKYJ6QOoLtm8_Ze4uz3, date('Y, F j'), $n5r9fzJl7ca, $uXuHhVh19bb7ylhJo ? ' Page ' . ($kAiwEsZc1NNHhe9fCyn + 1) : '', $SqrzugERsY7n, count($urls_completed)), $K08dPkTModx);
    $lHUsTijW9DC9gGFPbv = $uXuHhVh19bb7ylhJo > 1 ? ZW04gbhF9A8P($kAiwEsZc1NNHhe9fCyn + 1, $qyrBCAYqEMp, true) : $qyrBCAYqEMp;
    $pf = cVhR96lmkjBRF($lHUsTijW9DC9gGFPbv, 'w');
    if (!$pf) {
        $Zul57HOZFkqdgOyF8[] = $lHUsTijW9DC9gGFPbv;
    }
    fwrite($pf, $K08dPkTModx);
    fclose($pf);
}
 function CIob_g5skJ($els6pG4dU2RM20k)
 {
     global $grab_parameters, $QeahkPg4bVaAigh;
     if (!$grab_parameters['xs_email']) {
         return;
     }
     $QxoEWBD1O1qswq3ii = $grab_parameters['xs_compress'] == 1 ? '.gz' : '';
     $k = count($els6pG4dU2RM20k['rinfo'] ? $els6pG4dU2RM20k['rinfo'][0]['urls'] : $els6pG4dU2RM20k['files']);
     $txVg8HqejS_NN5dKj = $uLixYZtHVmoN4v7 = array();
     if ($grab_parameters['xs_imginfo']) {
         $txVg8HqejS_NN5dKj[] = "Images sitemap" . ($els6pG4dU2RM20k['images_no'] ? " (" . intval($els6pG4dU2RM20k['images_no']) . " images)\n" : "\n") . VQAXwSjJPIxpPDQ5i5S('xs_imgfilename');
         $uLixYZtHVmoN4v7[] = array('sttl' => 'Images sitemap', 'sno' => $els6pG4dU2RM20k['images_no'], 'surl' => VQAXwSjJPIxpPDQ5i5S('xs_imgfilename'));
     }
     if ($grab_parameters['xs_videoinfo']) {
         $txVg8HqejS_NN5dKj[] = "Video sitemap" . ($els6pG4dU2RM20k['videos_no'] ? " (" . intval($els6pG4dU2RM20k['videos_no']) . " videos)\n" : "\n") . VQAXwSjJPIxpPDQ5i5S('xs_videofilename');
         $uLixYZtHVmoN4v7[] = array('sttl' => 'Video sitemap', 'sno' => $els6pG4dU2RM20k['videos_no'], 'surl' => VQAXwSjJPIxpPDQ5i5S('xs_videofilename'));
     }
     if ($grab_parameters['xs_newsinfo']) {
         $txVg8HqejS_NN5dKj[] = "News sitemap" . ($els6pG4dU2RM20k['news_no'] ? " (" . intval($els6pG4dU2RM20k['news_no']) . " pages)\n" : "\n") . VQAXwSjJPIxpPDQ5i5S('xs_newsfilename');
         $uLixYZtHVmoN4v7[] = array('sttl' => 'News sitemap', 'sno' => $els6pG4dU2RM20k['news_no'], 'surl' => VQAXwSjJPIxpPDQ5i5S('xs_newsfilename'));
     }
     if ($grab_parameters['xs_rssinfo']) {
         $txVg8HqejS_NN5dKj[] = "RSS feed" . ($els6pG4dU2RM20k['rss_no'] ? " (" . intval($els6pG4dU2RM20k['rss_no']) . " pages)\n" : "\n") . VQAXwSjJPIxpPDQ5i5S('xs_rssfilename');
         $uLixYZtHVmoN4v7[] = array('sttl' => 'RSS feed', 'sno' => $els6pG4dU2RM20k['rss_no'], 'surl' => VQAXwSjJPIxpPDQ5i5S('xs_rssfilename'));
     }
     $y0KUa3qAiR7HE7wFa = file_exists(a0mMmHqPDZ . 'sitemap_notify2.txt') ? 'sitemap_notify2.txt' : 'sitemap_notify.txt';
     $YyBIyE8gG1eQSuo = file(a0mMmHqPDZ . $y0KUa3qAiR7HE7wFa);
     $JlJYKIIrEYn6 = array_shift($YyBIyE8gG1eQSuo);
     $zYhxmsR75YsTO5F = implode('', $YyBIyE8gG1eQSuo);
     $dFwEUjmpJKPGadxt = array('DATE' => date('j F Y, H:i', $els6pG4dU2RM20k['time']), 'URL' => $els6pG4dU2RM20k['initurl'], 'max_reached' => $els6pG4dU2RM20k['max_reached'], 'PROCTIME' => PvEr4n2DQ($els6pG4dU2RM20k['ctime']), 'PAGESNO' => $els6pG4dU2RM20k['ucount'], 'PAGESSIZE' => number_format($els6pG4dU2RM20k['tsize'] / 1024 / 1024, 2), 'SM_XML' => $grab_parameters['xs_smurl'] . $QxoEWBD1O1qswq3ii, 'SM_TXT' => ($grab_parameters['xs_sm_text_url'] ? '' : $QeahkPg4bVaAigh . '/') . sc_VvX5jelp2 . $QxoEWBD1O1qswq3ii, 'SM_ROR' => uCIu22Zx7O4C0vkg_, 'SM_HTML' => $grab_parameters['htmlurl'], 'SM_OTHERS' => implode("\n\n", $txVg8HqejS_NN5dKj), 'SM_OTHERS_LIST' => $uLixYZtHVmoN4v7, 'BROKEN_LINKS_NO' => count($els6pG4dU2RM20k['u404']), 'BROKEN_LINKS' => count($els6pG4dU2RM20k['u404']) ? count($els6pG4dU2RM20k['u404']) . " broken links found!\n" . "View the list: " . $QeahkPg4bVaAigh . "/index.php?op=l404" : "None found");
     include yCwTqe5GDcta . 'class.templates.inc.php';
     $Toy1DGI3eNLNBNIr = new gYT2DH5A_("pages/mods/");
     $Toy1DGI3eNLNBNIr->SCWLfn0FOY(vHwDy8urTbxymoY7y(a0mMmHqPDZ, 'sitemap_notify.txt'));
     if (is_array($ea = unserialize($grab_parameters['xs_email_arepl']))) {
         $dFwEUjmpJKPGadxt = array_merge($dFwEUjmpJKPGadxt, $ea);
     }
     $Toy1DGI3eNLNBNIr->n1xLFyVmobkiwwn($dFwEUjmpJKPGadxt);
     $K08dPkTModx = $Toy1DGI3eNLNBNIr->parse();
     preg_match('#^([^\\r\\n]*)\\s*(.*)$#is', $K08dPkTModx, $am);
     $JlJYKIIrEYn6 = $am[1];
     $zYhxmsR75YsTO5F = $am[2];
     $zYhxmsR75YsTO5F = preg_replace('#\\r?\\n#', "\r\n", $zYhxmsR75YsTO5F);
     $KJwBTVXJeYjG = new eCvgrLEJRK1lNl();
     $KJwBTVXJeYjG->aODzvLGsrOWa5fBIlnt($grab_parameters['xs_email'], $JlJYKIIrEYn6, $zYhxmsR75YsTO5F, $dFwEUjmpJKPGadxt['mail_from'] ? $dFwEUjmpJKPGadxt['mail_from'] : $grab_parameters['xs_email']);
 }