Из предыдущей темы /thread69190.html С расшифровкой понятно! А вот расшифровка одного с ошибками: Code: <?php echo '<html><head> <title>XML Sitemaps - Generation</title> <meta http-equiv="Content-type" content="text/html;charset=iso-8859-15" /> <link rel=stylesheet type="text/css" href="pages/style.css"> </head> <body>'; if(!$gen_approved)exit(); if(file_exists($fn=DATFOLDER.STATE_LOG)&&(time()-filemtime($fn)<10*60)){ $inprogress=true; echo '<h4>Already in progress. Current process state is displayed:</h4>'; } if(!$cmdlined){ echo '<div id="glog"> Links depth: <b><span id="llevel">-</span></b> <br> Current page: <span id="cpage">-</span> <br> Pages added to sitemap: <span id="compno">-</span> <br> Pages scanned: <span id="pdone">-</span> (<span id="bdone">-</span> Kb) <br> Pages left: <span id="pleft">-</span> (+ <span id="l2">-</span> queued for the next depth level) <br> Time passed: <span id="tdone">-</span> <br> Time left: <span id="tleft">-</span> <br> Memory usage: <span id="musage">-</span> </div>'; include CPDIR.'class.grab.inc.php'; include CPDIR.'class.xml-creator.inc.php'; include CPDIR.'class.gping.inc.php'; if($inprogress){ $rc = @unserialize(u_read_file($fn)); xs_prog_callback($rc); exit; } if(file_exists(DATFOLDER.STOP_LOG)) @unlink(DATFOLDER.STOP_LOG); $details = $grabber->xml_sitemap_crawl(array( 'initurl'=>$grab_parameters['xs_initurl'], 'progress_callback'=>'xs_prog_callback', 'maxpg'=>$grab_parameters['xs_max_pages'], 'bgexec'=>$_REQUEST['bg'], 'resume'=>$_REQUEST['resume'], 'maxdepth'=>$grab_parameters['xs_max_depth'], ), $urls_completed ); if($details['errmsg']||$details['interrupt']){ echo '<h4>An error occured: '.$details['errmsg'].'</h4>'; ;echo '<script> top.location = \'index.php?op=config&errmsg='; echo urlencode($details['interrupt']?'The process has been interrupted by user':$details['errmsg']);echo '\' </script> '; exit; } echo '<h4>Completed</h4>Total pages indexed: '.count($urls_completed); if($grab_parameters['xs_chlog']) echo '<br>Calculating changelog...';flush(); $details = $xmlcreator->xml_sitemap_create( $grab_parameters, $urls_completed, $details ); if($grab_parameters['xs_makehtml']) { include CPDIR.'class.html-creator.inc.php'; } $gping->ping($details['files']); echo '<script> top.location = \'index.php?op=view\' </script>'; exit; function xs_prog_callback($progpar) { global $cmdlined, $pmu; list( $ctime, $curl, $cnt_list, $pn, $tsize, $links_level, $mu, $compno, $l2 ) = $progpar; $etime = $pn?($cnt_list/$pn)*$ctime:0; $nmu = intval(str_replace(',','',$mu)); if($cmdlined) echo "$pn | $cnt_list | ".number_format($tsize/1024,1)." | ".u_tmf($ctime). " | ".u_tmf($etime)." | $links_level | $mu | $compno | $l2 | ".($nmu-$pmu)."\n"; else echo "<script>fupdate('".$curl."', '".$cnt_list."', '".$pn."', '".number_format($tsize/1024,1)."', '".u_tmf($ctime)."', '".u_tmf($etime)."', '".$links_level."', '".$mu."', '".$compno."', '".$l2."' </script>'; $pmu=$nmu; flush(); } ?> Ответ получаю : типа : Parse error: syntax error, unexpected $end in Y:\home\localhost\www\jino\sitemap_2.3\pages\page-crawlproc.inc.php on line 122 122 это конец строки! Так где ее искать??
Code: <?php echo '<html><head> <title>XML Sitemaps - Generation</title> <meta http-equiv="Content-type" content="text/html;charset=iso-8859-15" /> <link rel=stylesheet type="text/css" href="pages/style.css"> </head> <body>'; if(!$gen_approved)exit(); if(file_exists($fn=DATFOLDER.STATE_LOG)&&(time()-filemtime($fn)<10*60)){ $inprogress=true; echo '<h4>Already in progress. Current process state is displayed:</h4>'; } if(!$cmdlined){ echo '<div id="glog"> Links depth: <b><span id="llevel">-</span></b> <br> Current page: <span id="cpage">-</span> <br> Pages added to sitemap: <span id="compno">-</span> <br> Pages scanned: <span id="pdone">-</span> (<span id="bdone">-</span> Kb) <br> Pages left: <span id="pleft">-</span> (+ <span id="l2">-</span> queued for the next depth level) <br> Time passed: <span id="tdone">-</span> <br> Time left: <span id="tleft">-</span> <br> Memory usage: <span id="musage">-</span> </div>'; include CPDIR.'class.grab.inc.php'; include CPDIR.'class.xml-creator.inc.php'; include CPDIR.'class.gping.inc.php'; if($inprogress){ $rc = @unserialize(u_read_file($fn)); xs_prog_callback($rc); exit; } if(file_exists(DATFOLDER.STOP_LOG)) @unlink(DATFOLDER.STOP_LOG); $details = $grabber->xml_sitemap_crawl(array( 'initurl'=>$grab_parameters['xs_initurl'], 'progress_callback'=>'xs_prog_callback', 'maxpg'=>$grab_parameters['xs_max_pages'], 'bgexec'=>$_REQUEST['bg'], 'resume'=>$_REQUEST['resume'], 'maxdepth'=>$grab_parameters['xs_max_depth'], ), $urls_completed ); if($details['errmsg']||$details['interrupt']){ echo '<h4>An error occured: '.$details['errmsg'].'</h4>'; ;echo '<script> top.location = \'index.php?op=config&errmsg='; echo urlencode($details['interrupt']?'The process has been interrupted by user':$details['errmsg']);echo '\' </script> '; exit; } echo '<h4>Completed</h4>Total pages indexed: '.count($urls_completed); if($grab_parameters['xs_chlog']) echo '<br>Calculating changelog...';flush(); $details = $xmlcreator->xml_sitemap_create( $grab_parameters, $urls_completed, $details ); if($grab_parameters['xs_makehtml']) { include CPDIR.'class.html-creator.inc.php'; } $gping->ping($details['files']); echo '<script> top.location = \'index.php?op=view\' </script>'; exit; function xs_prog_callback($progpar) { global $cmdlined, $pmu; list( $ctime, $curl, $cnt_list, $pn, $tsize, $links_level, $mu, $compno, $l2 ) = $progpar; $etime = $pn?($cnt_list/$pn)*$ctime:0; $nmu = intval(str_replace(',','',$mu)); if($cmdlined) echo "$pn | $cnt_list | ".number_format($tsize/1024,1)." | ".u_tmf($ctime). " | ".u_tmf($etime)." | $links_level | $mu | $compno | $l2 | ".($nmu-$pmu)."\n"; else echo "<script>fupdate('".$curl."', '".$cnt_list."', '".$pn."', '".number_format($tsize/1024,1)."', '".u_tmf($ctime)."', '".u_tmf($etime)."', '".$links_level."', '".$mu."', '".$compno."', '".$l2."' </script>"; $pmu=$nmu; flush(); } } ?> Так наверное..