Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Could anyone tell me how to increase the font size in this code please :Code: Select all
<?
error_reporting(0);
include "config.inc";
require "phpom_head.php";
$ip_list_exist =
@fopen("ip_list.txt","r");
if ($ip_list_exist)
{
$mydate = date("D d M Y - h : i a",time());
#echo "<b><center><font size=2>".$mydate."</font></center></b>";
echo "<body
bgcolor=".$bgcolo.">";$img=$myback_colort=$bgcolo;
#include "pom.html";
echo "<table
width=400 border=1 cellspacing=0 cellpadding=0 align='center'> <tr><td><i><b>";
$sc1="</b></td><td><i><b>";
$ip_list=file("ip_list.txt");
for ($i=0;
$i<count($ip_list);$i++){
$ip_address=split("\t",$ip_list[$i]);
$ip_services=split(",",$ip_address[1]);
$services_num = count($ip_services)-1;
for
($j=0;$j<$services_num; $j++){
if ($ip_services[$j]=='--') { $img=$myback_colort;}
if ( !isset($img)) {
$todo=fsockopen($ip_address[0],$ip_services[$j],$errno,$errstr,5);
if (!$todo) {
$img="#ff0000";$status="down";
if (isset($to)){
mail($to,$subject,$message,"From:$from\n$replyto\nX-Mailer:PHP/".phpversion()); }
} else {
$img="00ff33"; $status="up";
};
}
if ($j==0){
echo "<tr><td><small>".$ip_address[2]."</small></td><td><small>".
$ip_address[0]."</small></td>";}
echo "<td bgcolor=".$img."
align=center><small>".$ip_services[$j]."</small></td>";
#echo "<td
bgcolor=".$img."></a></td>";
unset($img);
}
}echo "</table>";
} else { print"The file ip_list.txt
does not exist";
}
?>
</body>
Thanks for any help !
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]