Posted on: 01/30/05 12:17am
By: andyofne
Posted on: 01/30/05 03:43am
By: machinari
Posted on: 01/30/05 09:45am
By: andyofne
Posted on: 01/30/05 02:21pm
By: machinari
Posted on: 01/30/05 03:00pm
By: knuff
function phpblock_mynewblock() {
include_once($_CONF['path_html'] . "/mynewsticker/index.php");
function my_news() {
$retval = my_news(); return $retval;
Posted on: 01/30/05 03:30pm
By: andyofne
Posted on: 01/30/05 04:33pm
By: ScurvyDawg
Posted on: 01/30/05 08:28pm
By: andyofne
<?php $file1 = "./test/HNT/colors.txt"; $lines1 = file($file1); //$count = count($lines1) foreach ($lines1 as $line_num1 => $line1) { $spos = strpos($line1,'ackground-color="'); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+18)); //echo(".....".$spos."------".$spos2); $str = substr($line1,18,($spos2-($spos+17))); $bgcol = $str; //echo($bgcol); } $spos1 = strpos($line1,"ont-color="); if($spos1 != null && $spos1 > 0) { $spos2 = strpos($line1,'"',($spos1+12)); //echo(".....".$spos."------".$spos2); $str = substr($line1,12,($spos2-($spos1+11))); $fontcol = $str; $linkcol = $fontcol; //echo("||".$fontcol); } $spos1 = strpos($line1,"ink-color="); if($spos1 != null && $spos1 > 0) { $str = substr($line1,12,(strlen($line1)-15)); $linkcol = $str; echo("||".$linkcol); } $spos = strpos($line1,"crollamount="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+14)); //echo(".....".$spos."------".$spos2); $str = substr($line1,14,($spos2-($spos+13))); $scamount = $str; //echo("||".$scamount); } $spos = strpos($line1,"crolldelay="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+13)); //echo(".....".$spos."------".$spos2); $str = substr($line1,13,($spos2 - ($spos+12))); $scdelay = $str; //echo("||".$scdelay); } $spos = strpos($line1,"idth="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+7)); //echo(".....".$spos."------".$spos2); $str = substr($line1,7,($spos2-($spos+6))); $width = $str; //echo("||".$width); } $spos = strpos($line1,"eight="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+8)); //echo(".....".$spos."------".$spos2); $str = substr($line1,8,($spos2-($spos+7))); $height = $str; //echo("||".$height); } $spos = strpos($line1,"ont-size="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+11)); //echo(".....".$spos."------".$spos2); $str = substr($line1,11,($spos2-($spos+10))); $fsize = $str; //echo("||".$fsize); } } ?> <table width=<?php echo($width); ?> height=<?php echo($height); ?> > <tr><td> <marquee height=<?php echo($height); ?> width=<?php echo($width); ?> bgcolor=<?php echo($bgcol); ?> scrollamount=<?php echo($scamount); ?> scrolldelay=<?php echo($scdelay); ?> direction=up onmouseover="this.stop()" onmouseout="this.start()"> <br> <?php $file1 = "./test/HNT/news.txt"; $lines = file($file1); $count = count($lines); $newsf = false; $linkf = true; foreach ($lines as $line_num => $line) { if($newsf == false && $linkf == true) { $spos = strpos($line,"NEWS="); if($spos != null && $spos > 0) { $spos2 = strpos($line,'"',($spos+7)); $newsstr = substr($line,7,($spos2-($spos+6))); //echo("<div align=left style="color: ".$fontcol.";" >".$newsstr."</div>"); $newsf = true; } } else if( $linkf == true && $newsf == true) { $spos = strpos($line,"LINK="); if($spos != null && $spos > 0) { $spos2 = strpos($line,'"',($spos+7)); $linkstr = substr($line,7,($spos2-($spos+6))); //echo("<div align=left><a href=".$linkstr." style="color: ".$linkcol."; ">".$linkstr."</a></div><br><br>"); echo("<div align=left style="margin: 10px;"><a href=".$linkstr." style="color: ".$linkcol."; font-size: ".$fsize."; text-decoration: none; font-weight: bold;">".$newsstr."</a></div><br>"); $newsf = false; $linkf = true; } else { $linkf = false; echo("<div style="color: red; font-weight: bold;"> Improper Usage of HIOX NEWS TICKER </div>"); } } } ?> <br> </marquee> <div align=center style="background-color: <?php echo($bgcol); ?>; color: white; font-size: 10px;"> </td></tr> </table>
Posted on: 01/30/05 09:46pm
By: machinari
function phpblock_scrollNews(){ $file1 = "./test/HNT/colors.txt"; $lines1 = file($file1); $retval = ''; foreach ($lines1 as $line_num1 => $line1) { $spos = strpos($line1,'ackground-color="'); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line1,'"',($spos+18)); $str = substr($line1,18,($spos2-($spos+17))); $bgcol = $str; } $spos1 = strpos($line1,"ont-color="); if(($spos1 != null) && ($spos1 > 0)) { $spos2 = strpos($line1,'"',($spos1+12)); $str = substr($line1,12,($spos2-($spos1+11))); $fontcol = $str; $linkcol = $fontcol; } $spos1 = strpos($line1,"ink-color="); if(($spos1 != null) && ($spos1 > 0)) { $str = substr($line1,12,(strlen($line1)-15)); $linkcol = $str; $retval .= '||' . $linkcol; } $spos = strpos($line1,"crollamount="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line1,'"',($spos+14)); $str = substr($line1,14,($spos2-($spos+13))); $scamount = $str; } $spos = strpos($line1,"crolldelay="); if($spos != null && $spos > 0) { $spos2 = strpos($line1,'"',($spos+13)); $str = substr($line1,13,($spos2 - ($spos+12))); $scdelay = $str; } $spos = strpos($line1,"idth="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line1,'"',($spos+7)); $str = substr($line1,7,($spos2-($spos+6))); $width = $str; } $spos = strpos($line1,"eight="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line1,'"',($spos+8)); $str = substr($line1,8,($spos2-($spos+7))); $height = $str; } $spos = strpos($line1,"ont-size="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line1,'"',($spos+11)); $str = substr($line1,11,($spos2-($spos+10))); $fsize = $str; } } $retval = '<table width='.$width.' height='.$height.'><tr><td>'; $retval .= '<marquee height='.$height.' width='.$width.' bgcolor='.$bgcol.' scrollamount='.$scamount.' scrolldelay='.$scdelay.' direction=up onmouseover="this.stop()" onmouseout="this.start()"><br>'; $file1 = './test/HNT/news.txt'; $lines = file($file1); $count = count($lines); $newsf = false; $linkf = true; foreach ($lines as $line_num => $line) { if(($newsf == false) && ($linkf == true)) { $spos = strpos($line,"NEWS="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line,'"',($spos+7)); $newsstr = substr($line,7,($spos2-($spos+6))); $newsf = true; } } elseif(($linkf == true) && ($newsf == true)) { $spos = strpos($line,"LINK="); if(($spos != null) && ($spos > 0)) { $spos2 = strpos($line,'"',($spos+7)); $linkstr = substr($line,7,($spos2-($spos+6))); $retval .= '<div align=left style="margin: 10px;"><a href="'.$linkstr.'" style="color: '.$linkcol.'; font-size: '.$fsize.'; text-decoration: none; font-weight: bold;">'.$newsstr.'</a></div><br>'; $newsf = false; $linkf = true; } else { $linkf = false; $retval .= '<div style="color: red; font-weight: bold;"> Improper Usage of HIOX NEWS TICKER </div>'; } } } $retval .= '<br></marquee>'; $retval .= '<div align=center style="background-color: '.$bgcol.'; color: white; font-size: 10px;">'; $retval .= '</td></tr></table>'; return $retval; }
Posted on: 01/30/05 09:57pm
By: andyofne
Posted on: 01/30/05 10:39pm
By: machinari