Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2.     $f = fopen("/www/html/rmstatus.data", "r");
  3.     fscanf($f, "%d\n", $ret);
  4.     if ($ret)
  5.     {
  6.         $logon = ("<b><font color=green>Online</font></b>");
  7.     }
  8.     else
  9.     {
  10.         $logon = ("<blink><b><font color=red>Offline</font></b></blink>");
  11.     }
  12.  
  13.     fscanf($f, "%d\n", $ret);
  14.     if ($ret)
  15.     {
  16.         $magicwow = ("<b><font color=green>Online</font></b>");
  17.     }
  18.     else
  19.     {
  20.         $magicwow = ("<blink><b><font color=red>Offline</font></b></blink>");
  21.     }
  22.  
  23.     fscanf($f, "%d\n", $ret);
  24.     if ($ret)
  25.     {
  26.         $molten = ("<b><font color=green>Online</font></b>");
  27.     }
  28.     else
  29.     {
  30.         $molten = ("<blink><b><font color=red>Offline</font></b></blink>");
  31.     }
  32.     fclose($f);
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement