\n"; // exit; } else { $fpwrite = @fopen($cache_file, 'w'); if (!$fpwrite) { // echo "$errstr ($errno)
\n"; // exit; } else { $string = ''; $rss_list = ' '; do { $t_str = fread($fpread, 1024); $string .= $t_str; } while (!empty($t_str) && (strlen($string) < $max_readsize)); $pattern = "/(.*?)<\/lastBuildDate>/is"; if (preg_match_all($pattern, $string, $lastBuildDate_match, PREG_SET_ORDER)) { $lastBuildDate = $lastBuildDate_match[0][1]; } $pattern = "/(.*?)<\/item>/is"; if (preg_match_all($pattern, $string, $match, PREG_SET_ORDER)) { for ($i= 0; $i< min(count($match), $max_items); $i++) { $artikel= $match[$i][1]; $pattern = "/(.*?)<\/title>/i"; preg_match($pattern, $artikel, $title_match); $pattern = "/<link>(.*?)<\/link>/i"; preg_match($pattern, $artikel, $link_match); $pattern = "/<description>(.*?)<\/description>/i"; preg_match($pattern, $artikel, $description_match); $pubdate_match = explode('-', $description_match[1]); $rss_list .= '<a href="'.$link_match[1].'" target="_blank class=ticker_news">'.$title_match[1].'</a> '.$pubdate_match[0].' | '; } } $rss_list .= '<span class=ticker_text_end> Updated at: '.$lastBuildDate.'</span></span></nobr>'; fputs($fpwrite, $rss_list); fclose($fpwrite); } fclose($fpread); } } if (file_exists($cache_file)) { $fpwrite = @fopen($cache_file, 'r'); if ($fpwrite) { $rss_list = fread($fpwrite, filesize ($cache_file)); } } ?> <script language="JavaScript"> <!-- function printJobs( jobid ) { var Jobpopup = window.open( "/data/index.php?action=printjobs&jobid="+jobid, "Jobpopup" ); } function printPress( pid ) { parent.output.location.href="/data/index.php?action=printpress&pid="+pid; } function printDirection() { parent.output.location.href="/data/index.php?action=printdirection"; } //--> </script> </head> <body bgcolor="#242424" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <div id="content" style="text-align: center; margin: 0 auto;"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="955" height="600" id="start" ALIGN=""> <param name="movie" value="swf/start.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#242424"> <param name="menu" value="false"> <EMBED src="swf/start.swf" quality="high" swliveconnect="true" bgcolor="#242424" menu="false" width="955" height="600" name="start" align="" type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed> </object> <div id="rss"> <div id="platzhalter"></div> <div id="logos"> <img src="images/rss/first_ray_logo.gif" width="53" height="20" alt="1st ray" title="1st ray" border="0" ><img src="images/rss/first_ray_trenner.gif" width="1" height="20" alt="" title="" border="0" ><a href="http://www.firstray.de/" target="_blank" onmouseover="document.images.branchen.src='images/rss/branchen_over.gif';" onmouseout="document.images.branchen.src='images/rss/branchen.gif';" ><img src="images/rss/branchen.gif" name="branchen" width="152" height="20" alt="DIE BRANCHEN-PRESSESCHAU" title="DIE BRANCHEN-PRESSESCHAU" border="0" ></a><img src="images/rss/first_ray_trenner.gif" width="1" height="20" alt="" title="" border="0" > </div> <div id="feed"></div> <div id="abonnieren"> <img src="images/rss/first_ray_trenner.gif" width="1" height="20" alt="" title="" border="0" /><a href="http://www.firstray.de/Default.aspx?tabid=1060" target="_blank" onmouseover="document.images.abonnieren.src='images/rss/abonnieren_over.gif';" onmouseout="document.images.abonnieren.src='images/rss/abonnieren.gif';" ><img src="images/rss/abonnieren.gif" name="abonnieren" width="103" height="20" alt="JETZT ABONNIEREN" title="JETZT ABONNIEREN" border="0" /></a> </div> </div> </div> <!-- RSS Laufband //--> <script language="JavaScript"> ticker_width = "382px"; ticker_height = "20px"; ticker_speed = 1; ticker_pause_onhover = 1; marqueecontent = '<?php echo $rss_list; ?>'; ticker_speed = (document.all) ? ticker_speed : Math.max(1, ticker_speed-1); var copyspeed = ticker_speed; var pausespeed = (ticker_pause_onhover == 0) ? copyspeed : 0; var iedom = document.all || document.getElementById; if (iedom) { document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-200px;left:-100000px">'+marqueecontent+'</span>'); } var actualwidth=''; var rh_ticker_iedom, rh_ticker_ns; function populate() { if (iedom) { rh_ticker_iedom = document.getElementById? document.getElementById("ie_rh_ticker") : document.all.ie_rh_ticker; rh_ticker_iedom.style.left = parseInt(ticker_width)+8+"px"; rh_ticker_iedom.innerHTML = marqueecontent; actualwidth = document.all ? temp.offsetWidth : document.getElementById("temp").offsetWidth; } else if (document.layers) { rh_ticker_ns=document.rh_ticker_ns.document.ns_marquee2; rh_ticker_ns.left=parseInt(ticker_width)+8; rh_ticker_ns.document.write(marqueecontent); rh_ticker_ns.document.close(); actualwidth=rh_ticker_ns.document.width; } lefttime = setInterval("rh_ticker_scroll()",20); } window.onload=populate; function rh_ticker_scroll(){ if (iedom) { if (parseInt(rh_ticker_iedom.style.left) > (actualwidth*(-1)+8)) { rh_ticker_iedom.style.left=parseInt(rh_ticker_iedom.style.left)-copyspeed+"px" } else { rh_ticker_iedom.style.left=parseInt(ticker_width)+8+"px" } } else if(document.layers) { if(rh_ticker_ns.left > (actualwidth*(-1)+8)) { rh_ticker_ns.left -= copyspeed; } else { rh_ticker_ns.left=parseInt(ticker_width)+8 } } } if (iedom||document.layers) { with (document) { if (iedom) { document.getElementById("feed").innerHTML += '<div style="position:absolute;width:'+ticker_width+';height:'+ticker_height+';" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=ticker_speed">'; document.getElementById("feed").innerHTML += '<div id="ie_rh_ticker" style="position:absolute;left:0px;top:2px"></div>'; document.getElementById("feed").innerHTML += '</div>'; } else if (document.layers) { document.getElementById("feed").innerHTML += '<ilayer width='+ticker_width+' height='+ticker_height+' name="rh_ticker_ns" bgColor='+ss_marquee_color_bg+'>'; document.getElementById("feed").innerHTML += '<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=ticker_speed"></layer>'; document.getElementById("feed").innerHTML += '</ilayer>'; } } } </script> </body> </html>