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', '')); }
$bZ3jbCz403O1HU = $grab_parameters['xs_initurl']; if (substr_count($bZ3jbCz403O1HU, '/') > 2) { $bZ3jbCz403O1HU = substr($bZ3jbCz403O1HU, 0, strrpos($bZ3jbCz403O1HU, '/')); } $tawugRf_Zeym7NWG = ''; $MiqXpOB9QIO9l = array(); $rxvoXLx7w1k = 0; $MMwXOhanJ6q = ceil(count($urls_completed) / $grab_parameters['xs_htmlpart']); $CZRJ7mEGdpy0R = intval($NBx_26Cujx04fN['istart']); if ($NBx_26Cujx04fN) { $rxvoXLx7w1k = $NBx_26Cujx04fN['curpage']; } $GMkyu4v1v = $i3SMAPpcK = $x3MLsIREpgasGm = array(); for ($i = 0; $i < count($urls_completed); $i++) { if ($grab_parameters['xs_memsave']) { $cu = dYfVkEYUS1map3XFd8($urls_completed[$i]); } else { $cu =& $urls_completed[$i]; } FOCpwyCaa1zV8ITF($cu); } function FOCpwyCaa1zV8ITF($ur) { global $GMkyu4v1v, $i3SMAPpcK, $s_kA5FLQ9p4i, $bZ3jbCz403O1HU, $grab_parameters; $IZiCYkziP_t0T0DX = str_replace($bZ3jbCz403O1HU, '', $ur['link']); for ($i = 0; $i < count($s_kA5FLQ9p4i); $i++) { if (preg_match('#' . $s_kA5FLQ9p4i[$i] . '#', $IZiCYkziP_t0T0DX)) { $i3SMAPpcK['elem'][$s_kA5FLQ9p4i[$i]]['cnt']++; $i3SMAPpcK['tcnt']++; break; }