PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

This paste is a reply. View the Previous Paste?
1
 <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left"><table cellpadding="0" cellspacing="5"> <tr> <!--Recent Headlines--> <td><?php recentnews(1); ?>&nbsp;</td> </tr> <tr> <td><?php recentnews(2); ?>&nbsp;</td> </tr> <tr> <td><?php recentnews(3); ?>&nbsp;</td> </tr> <tr> <td><?php recentnews(4); ?>&nbsp;</td> </tr> <tr> <td><?php recentnews(5); ?>&nbsp;</td> </tr> <tr> <td><?php recentnews(6); ?>&nbsp;</td> </tr> </table> <?php function recentnews($row){ $news = fopen("data/news.txt","r") or exit("Unable to open file"); $newscount = 0; while (!feof($news)) { $line = fgets($news); $strongpos = strpos($line, "</strong>"); $boldpos = strpos($line,"<strong>"); if ($strongpos){ $header[$newscount] = substr($line, $boldpos, $strongpos + 9); $newscount++; } } fclose("data/news.txt"); switch ($row) { case 1: echo ("<a href='info.php#news" . ($newscount). "'>". $header[0]. "</a>"); break; case 2: echo ("<a href='info.php#news" . ($newscount - 1) . "'>". $header[1]. "</a>"); break; case 3: echo ("<a href='info.php#news" . ($newscount - 2) . "'>". $header[2]. "</a>"); break; case 4: echo ("<a href='info.php#news" . ($newscount-3) . "'>". $header[3]. "</a>"); break; case 5: echo ("<a href='info.php#news" . ($newscount-4) . "'>". $header[4]. "</a>"); break; case 6: echo ("<a href='info.php#news" . ($newscount-5) . "'>". $header[5]. "</a>"); break; default: break; } } ?></span> <table cellpadding="0" cellspacing="5"> <tr> <! - Ostatnie Nagłówki -> <td> <? php recentnews (1);?> </ td> </ tr> <tr > <td> <? php recentnews (2);?> </ td> </ tr> <tr> <td> <? php recentnews (3);?> </ td> </ tr> <tr> <td> <? php recentnews (4);?> </ td> </ tr> <tr> <td> <? php recentnews (5);?> </ td> </ tr> <tr> <td> <? php recentnews (6);?> </ td> </ tr> </ table> <? recentnews funkcji PHP ($ row) ($ news = fopen ( "dane / news.txt "," r ") lub exit (" Nie można otworzyć pliku "); $ newscount = 0 while (! feof ($ news)) ($ line = fgets ($ news); $ strongpos = strpos ($ linii "</ strong>"); $ boldpos = strpos ($ line, "<strong>") if ($ strongpos) ($ header [$ newscount] = substr ($ line, $ boldpos $ strongpos + 9 ); $ newscount + +;)) fclose ( "data / news.txt") switch ($ row) (case 1: echo ( "<a href='info.php#news". ($newscount). "'> ". $ header [0]". </ a> "); break; case 2: print (" <a href='info.php#news". ($newscount-1). "'> ". $ header [1]. "</ a>"); break; case 3: echo ( "<a href='info.php#news". ($newscount-2). "'>". $ header [2]. "</ a>"); break; case 4: echo ( "<a href='info.php#news". ($newscount-3). "'>". $ header [3]. "</ > "); break; case 5: echo (" <a href='info.php#news". ($newscount-4). "'> ". $ header [4]." </ a> "); break; case 6: echo ( "<a href='info.php#news". ($newscount-5). "'>". $ header [5]. "</ a>"); break; domyślnie: break;))?></span>

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)