if ($grab_parameters['xs_gping']) {
    $IOVrd_HyNGxshZQSHJ->itBggRphyUbnww_vK($jwblm4pgqCSdGONbuY['rinfo']);
}
BDURPicA56HxjrUUp(array('flush' => 1));
if ($grab_parameters['xs_weblog_ping']) {
    $KPnlaCP0s89m = $urls_completed[0]['t'];
    $IOVrd_HyNGxshZQSHJ->TrDtPhboaRh($grab_parameters['xs_weblog_ping'], $grab_parameters['xs_initurl'], $KPnlaCP0s89m);
}
BDURPicA56HxjrUUp(array('flush' => 1));
if ($grab_parameters['xs_email']) {
    echo '<br>Sending email notification...';
    flush();
    include sEHr9E0d1xL1nk . 'class.mail.inc.php';
    $I_swi1gI_aFqiP->R4_8B4Be7gefytd($jwblm4pgqCSdGONbuY);
}
BDURPicA56HxjrUUp(array('flush' => 1));
Zggf21Qbdvn('view', '<br />Done, redirecting to sitemap view page.');
exit;
function BDURPicA56HxjrUUp($JXrAUXdkHB6bEow)
{
    global $qDot7WxFYvQPR, $vBIKyMEhBONsP, $Wo1WjLciOv3NRe, $uLOEZmKUZLfbG74, $grab_parameters;
    if ($JXrAUXdkHB6bEow['cmd'] == 'info') {
        if (!$qDot7WxFYvQPR) {
            if ($uLOEZmKUZLfbG74[$JXrAUXdkHB6bEow['id']] != $JXrAUXdkHB6bEow['text']) {
                if ($JXrAUXdkHB6bEow['text']) {
                    echo "<script>document.getElementById('" . $JXrAUXdkHB6bEow['id'] . "').innerHTML = '" . $JXrAUXdkHB6bEow['text'] . "';</script>";
                } else {
                    echo "<script>document.getElementById('" . $JXrAUXdkHB6bEow['id'] . "').style.display = 'none';</script>";
                }
                flush();
                $uLOEZmKUZLfbG74[$JXrAUXdkHB6bEow['id']] = $JXrAUXdkHB6bEow['text'];
 function MddRgpIor($urls_completed, &$WH3SIotgdvUyfre)
 {
     global $fWF3L71eqllSq, $FTZnv5MP3HN, $bJhviH6UA, $sm_proc_list, $G2zCcihGLQl, $J0guAv8GXYn6AN38fxM, $qcjrymCYbzs62p2m;
     $SgSv9EHvXQ8D = $this->iXkV1DXrsnU['xs_chlog'];
     $p3RMgGPJdKj = implode('', file(Jdp4o0I89UFO . 'sitemap_xml_tpl.xml'));
     preg_match('#^(.*)%URLS_LIST_FROM%(.*)%URLS_LIST_TO%(.*)$#is', $p3RMgGPJdKj, $fWF3L71eqllSq);
     $fWF3L71eqllSq[1] = str_replace('www.xml-sitemaps.com', 'www.xml-sitemaps.com (' . A4sNJQoe6O47I_YC4 . ')', $fWF3L71eqllSq[1]);
     $fWF3L71eqllSq[1] = str_replace('%GEN_URL%', $this->iXkV1DXrsnU['gendom'], $fWF3L71eqllSq[1]);
     if ($this->iXkV1DXrsnU['xs_disable_xsl']) {
         $fWF3L71eqllSq[1] = preg_replace('#<\\?xml-stylesheet.*\\?>#', '', $fWF3L71eqllSq[1]);
     }
     $tHSKS4COUobk6O = implode('', file(Jdp4o0I89UFO . 'sitemap_ror_tpl.xml'));
     preg_match('#^(.*)%URLS_LIST_FROM%(.*)%URLS_LIST_TO%(.*)$#is', $tHSKS4COUobk6O, $FTZnv5MP3HN);
     $RKwdWhsAFuDrxw3i6 = implode('', file(Jdp4o0I89UFO . 'sitemap_base_tpl.xml'));
     preg_match('#^(.*)%URLS_LIST_FROM%(.*)%URLS_LIST_TO%(.*)$#is', $RKwdWhsAFuDrxw3i6, $bJhviH6UA);
     $this->Xfcs5RdKZjSaEqvTYT = $this->iXkV1DXrsnU['xs_sm_size'] ? $this->iXkV1DXrsnU['xs_sm_size'] : 50000;
     $this->sm_filesplit = $this->iXkV1DXrsnU['xs_sm_filesize'] ? $this->iXkV1DXrsnU['xs_sm_filesize'] : 10;
     $this->sm_filesplit = max(intval($this->sm_filesplit * 1024 * 1024), 2000) - 1000;
     if (!$this->iXkV1DXrsnU['xs_imginfo']) {
         unset($this->fjOiR1rimG[1]);
     }
     if (!$this->iXkV1DXrsnU['xs_videoinfo']) {
         unset($this->fjOiR1rimG[2]);
     }
     if (!$this->iXkV1DXrsnU['xs_newsinfo']) {
         unset($this->fjOiR1rimG[3]);
     }
     if (!$this->iXkV1DXrsnU['xs_makemob']) {
         unset($this->fjOiR1rimG[4]);
     }
     $ctime = date('Y-m-d H:i:s');
     $Yqz1QyXnf8Zlfu9jU = 0;
     global $g9mWWYIteSa7dD7;
     $tt = array('<', '>');
     foreach ($tt as $ulCVuyvzZwsip) {
         $g9mWWYIteSa7dD7[$ulCVuyvzZwsip] = '&#' . ord($ulCVuyvzZwsip) . ';';
     }
     for ($i = 0; $i < 31; $i++) {
         $g9mWWYIteSa7dD7[chr($i)] = '&#' . $i . ';';
     }
     $g9mWWYIteSa7dD7[chr(0)] = $g9mWWYIteSa7dD7[chr(10)] = $g9mWWYIteSa7dD7[chr(13)] = '';
     $g9mWWYIteSa7dD7[' '] = '%20';
     $pf = 0;
     $XvU49oK_Vd = intval($G2zCcihGLQl['istart']);
     $this->e5VXUaptWL7P($G2zCcihGLQl);
     if ($this->iXkV1DXrsnU['xs_maketxt']) {
         $ifLJ96S2XFSDmmWXE = $this->JRevVhPXx6ik['fopen'](bjmS1HQhkPEjp1QMl . $this->blUx9Th8GWx0bsSC, $XvU49oK_Vd ? 'a' : 'w');
         if (!$ifLJ96S2XFSDmmWXE) {
             $qcjrymCYbzs62p2m[] = bjmS1HQhkPEjp1QMl . $this->blUx9Th8GWx0bsSC;
         }
     }
     if ($this->iXkV1DXrsnU['xs_makeror']) {
         $DViaBKXmteSZF4cgvzj = fopen(z_fhGrViQaOeql9, $XvU49oK_Vd ? 'a' : 'w');
         $rc = str_replace('%INIT_URL%', $this->iXkV1DXrsnU['xs_initurl'], $FTZnv5MP3HN[1]);
         if ($DViaBKXmteSZF4cgvzj) {
             fwrite($DViaBKXmteSZF4cgvzj, $rc);
         } else {
             $qcjrymCYbzs62p2m[] = z_fhGrViQaOeql9;
         }
     }
     foreach ($sm_proc_list as $k => $G3iGwEa5RT3) {
         $sm_proc_list[$k]->IkN8UDC3Sq4($this->iXkV1DXrsnU, $this->JRevVhPXx6ik, $this->xZqlshGDcY);
     }
     for ($i = $xn = $XvU49oK_Vd; $i < count($urls_completed); $i++, $xn++) {
         BDURPicA56HxjrUUp(array('cmd' => 'info', 'id' => 'percprog', 'text' => number_format($i * 100 / count($urls_completed), 0) . '%'));
         $RvGpMMUREL77 = $this->ZzKB7k6G8nHCQRqPK();
         if ($RvGpMMUREL77 && $i != $XvU49oK_Vd) {
             dxY5KOhQceAuFRoi($J0guAv8GXYn6AN38fxM, hVgV5J75NEESyCQgUY(array('istart' => $i, 'rinfo' => $this->cELF4rAmlQsI9AR)));
         }
         if ($this->iXkV1DXrsnU['xs_memsave']) {
             $cu = dYfVkEYUS1map3XFd8($urls_completed[$i]);
         } else {
             $cu =& $urls_completed[$i];
         }
         $l = $this->JiNZdZTQFJ($cu['link']);
         $cu['link'] = $l;
         if ($SgSv9EHvXQ8D) {
             $WH3SIotgdvUyfre[] = $l;
         }
         $t = $this->nGj0r0BbusL($cu['t']);
         $d = $this->nGj0r0BbusL($cu['d'] ? $cu['d'] : $cu['t'], true);
         $spSCVOMAe = '';
         if ($cu['clm']) {
             $spSCVOMAe = $cu['clm'];
         } else {
             switch ($this->iXkV1DXrsnU['xs_lastmod']) {
                 case 1:
                     $spSCVOMAe = $cu['lm'] ? $cu['lm'] : $ctime;
                     break;
                 case 2:
                     $spSCVOMAe = $ctime;
                     break;
                 case 3:
                     $spSCVOMAe = $this->iXkV1DXrsnU['xs_lastmodtime'];
                     break;
             }
         }
         $jLo1X8O3OGZlDH54AjS = $q9XceTZtmgERYb = false;
         if ($cu['p']) {
             $p = $cu['p'];
         } else {
             $p = $this->iXkV1DXrsnU['xs_priority'];
             if ($this->iXkV1DXrsnU['xs_autopriority']) {
                 $p = $p * pow($this->iXkV1DXrsnU['xs_descpriority'] ? $this->iXkV1DXrsnU['xs_descpriority'] : 0.8, $cu['o']);
                 if ($this->IIcbczWAX09NsrG) {
                     $jLo1X8O3OGZlDH54AjS = true;
                     $q9XceTZtmgERYb = !in_array($cu['link'], $this->IIcbczWAX09NsrG) || $this->urls_prevnews[$cu['link']];
                     if ($q9XceTZtmgERYb) {
                         $p = 0.95;
                     }
                 }
                 $p = max(0.0001, min($p, 1.0));
                 $p = @number_format($p, 4);
             }
         }
         if ($spSCVOMAe) {
             $spSCVOMAe = strtotime($spSCVOMAe);
             $spSCVOMAe = gmdate('Y-m-d\\TH:i:s+00:00', $spSCVOMAe);
         }
         $f = $cu['f'] ? $cu['f'] : $this->iXkV1DXrsnU['xs_freq'];
         $cCqeu6KEd4LFk = array('URL' => $l, 'TITLE' => $t, 'DESC' => $d, 'PERIOD' => $f, 'LASTMOD' => $spSCVOMAe, 'ORDER' => $cu['o'], 'PRIORITY' => $p);
         if ($this->iXkV1DXrsnU['xs_makemob']) {
             $this->AfTRVXncZI6Bitp(array_merge($cCqeu6KEd4LFk, array('ismob' => true)), $fWF3L71eqllSq[2], 4);
         }
         $this->AfTRVXncZI6Bitp($cCqeu6KEd4LFk, $fWF3L71eqllSq[2], 0);
         if ($this->iXkV1DXrsnU['xs_maketxt'] && $ifLJ96S2XFSDmmWXE) {
             $this->JRevVhPXx6ik['fwrite']($ifLJ96S2XFSDmmWXE, $cu['link'] . "\n");
         }
         foreach ($sm_proc_list as $G3iGwEa5RT3) {
             $G3iGwEa5RT3->B0bZK2_9KnR8WXXzmsf($cCqeu6KEd4LFk);
         }
         if ($this->iXkV1DXrsnU['xs_makeror'] && $DViaBKXmteSZF4cgvzj) {
             if ($this->iXkV1DXrsnU['xs_ror_unique']) {
                 $t = $cCqeu6KEd4LFk['TITLE'];
                 $d = $cCqeu6KEd4LFk['DESC'];
                 while ($ZNulaCcO5edar0rP = $ai[md5('t' . $t)]++) {
                     $t = $cCqeu6KEd4LFk['TITLE'] . ' ' . $ZNulaCcO5edar0rP;
                 }
                 while ($ZNulaCcO5edar0rP = $ai[md5('d' . $d)]++) {
                     $d = $cCqeu6KEd4LFk['DESC'] . ' ' . $ZNulaCcO5edar0rP;
                 }
                 $cCqeu6KEd4LFk['TITLE'] = $t;
                 $cCqeu6KEd4LFk['DESC'] = $d;
             }
             fwrite($DViaBKXmteSZF4cgvzj, $this->xZqlshGDcY->NncQLfQqsOrhLw_lKS($FTZnv5MP3HN[2], $cCqeu6KEd4LFk));
         }
     }
     $this->aqAxgNGqxV();
     if ($this->iXkV1DXrsnU['xs_maketxt']) {
         $this->JRevVhPXx6ik['fclose']($ifLJ96S2XFSDmmWXE);
         @chmod(bjmS1HQhkPEjp1QMl . $this->blUx9Th8GWx0bsSC, 0666);
     }
     if ($this->iXkV1DXrsnU['xs_makeror']) {
         if ($DViaBKXmteSZF4cgvzj) {
             fwrite($DViaBKXmteSZF4cgvzj, $FTZnv5MP3HN[3]);
         }
         fclose($DViaBKXmteSZF4cgvzj);
     }
     foreach ($sm_proc_list as $G3iGwEa5RT3) {
         $G3iGwEa5RT3->jKfsD0XVw81EIu2rj();
     }
     dxY5KOhQceAuFRoi($J0guAv8GXYn6AN38fxM, hVgV5J75NEESyCQgUY(array('done' => true)));
     BDURPicA56HxjrUUp(array('cmd' => 'info', 'id' => 'percprog', ''));
 }
function VFZlf5sNkzX7GF7k($sl, $LgLI0zBLaiF = 0, &$VrIhIZ2UGhCqDiv)
{
    global $dLJTsb_ip3FtL0, $grab_parameters, $tawugRf_Zeym7NWG, $MiqXpOB9QIO9l, $rxvoXLx7w1k, $urls_completed, $CZRJ7mEGdpy0R, $TBuKj2tXyZ_L9p_A;
    $CUx3ZI0WzO = '';
    $ls = $LgLI0zBLaiF * 2;
    if (is_array($sl)) {
        foreach ($sl as $sk => $sn) {
            $adO3ioNATQ1yoZVep = "";
            $aoTOj4umg0ehb = array();
            if (is_array($sn['pages'])) {
                if ($grab_parameters['xs_htmlsort']) {
                    @usort($sn['pages'], 'tvL6CyQwj');
                }
                foreach ($sn['pages'] as $pg) {
                    $VrIhIZ2UGhCqDiv++;
                    if ($VrIhIZ2UGhCqDiv <= $CZRJ7mEGdpy0R) {
                        continue;
                    }
                    $t = $pg['t'] ? $pg['t'] : basename($pg['link']);
                    $aoTOj4umg0ehb[] = array('link' => $pg['link'], 'title' => $t, 'desc' => $pg['d'], 'title_clean' => str_replace('&amp;amp;', '&amp;', htmlspecialchars($t)), 'file' => basename($pg['link']));
                    $adO3ioNATQ1yoZVep .= "\n<tr><td class=\"lpage\"><a href=\"" . $pg['link'] . "\" title=\"" . str_replace('&amp;amp;', '&amp;', htmlspecialchars($t)) . "\">" . $t . "</a></td></tr>";
                    if ($VrIhIZ2UGhCqDiv % 10 == 0) {
                        BDURPicA56HxjrUUp(array('cmd' => 'info', 'id' => 'percprog2', 'text' => number_format($VrIhIZ2UGhCqDiv * 100 / count($urls_completed), 0) . '%'));
                    }
                    if ($VrIhIZ2UGhCqDiv % $grab_parameters['xs_htmlpart'] == 0) {
                        $tawugRf_Zeym7NWG .= fylX1lYhxq9Swj9($sk, $sn['cnt'], $LgLI0zBLaiF, $adO3ioNATQ1yoZVep);
                        $MiqXpOB9QIO9l[] = array('folder' => str_replace('/', ' ', $sk), 'cnt' => $sn['cnt'], 'cntmulti' => $sn['cnt'] > 1, 'level' => $LgLI0zBLaiF, 'alevel' => $LgLI0zBLaiF ? range(1, $LgLI0zBLaiF) : array(), 'level100' => 100 - $LgLI0zBLaiF, 'pages' => $aoTOj4umg0ehb);
                        $adO3ioNATQ1yoZVep = '';
                        $aoTOj4umg0ehb = array();
                        XUVNOTiArMdxtZj($tawugRf_Zeym7NWG, $MiqXpOB9QIO9l);
                        $rxvoXLx7w1k++;
                        $tawugRf_Zeym7NWG = '';
                        $MiqXpOB9QIO9l = array();
                        dxY5KOhQceAuFRoi($TBuKj2tXyZ_L9p_A, hVgV5J75NEESyCQgUY(array('istart' => $VrIhIZ2UGhCqDiv, 'curpage' => $rxvoXLx7w1k)));
                    }
                }
            }
            if ($adO3ioNATQ1yoZVep) {
                $tawugRf_Zeym7NWG .= fylX1lYhxq9Swj9($sk, $sn['cnt'], $LgLI0zBLaiF, $adO3ioNATQ1yoZVep);
                $MiqXpOB9QIO9l[] = array('folder' => str_replace('/', ' ', $sk), 'cnt' => $sn['cnt'], 'cntmulti' => $sn['cnt'] > 1, 'level' => $LgLI0zBLaiF, 'alevel' => $LgLI0zBLaiF ? range(1, $LgLI0zBLaiF) : array(), 'level100' => 100 - $LgLI0zBLaiF, 'pages' => $aoTOj4umg0ehb);
            }
            if ($sn['elem']) {
                VFZlf5sNkzX7GF7k($sn['elem'], $LgLI0zBLaiF + 1, $VrIhIZ2UGhCqDiv);
            }
        }
    }
    if ($LgLI0zBLaiF == 0 && $tawugRf_Zeym7NWG) {
        XUVNOTiArMdxtZj($tawugRf_Zeym7NWG, $MiqXpOB9QIO9l);
    }
}