Guest User

Untitled

a guest
Jul 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php
  2. /*
  3. HTML IRC Log Generator Version 2 (20101229-r2)
  4. Important functions
  5. Don't change these
  6. */
  7.  
  8. function get_channel_name(){
  9. global $channel;
  10. echo $channel;
  11. }
  12. function make_date_list(){
  13. if(isset($_GET['channel'])){
  14. $channel = stripslashes(htmlentities($_GET['channel']));
  15. }
  16. //$line = "\t\t<div class=\"dates\"><p>";
  17. $line = "";
  18. $dates = array("January","Febuary","March","April","May","June","July","August","September","October","November","December");
  19. foreach($dates as $date){
  20. echo " / <a href=\"?month=$date\">$date</a> /";
  21. }
  22. //$line .= "</p></div>";
  23. }
  24. function make_display_stats(){
  25. global $actual_lines,$actions,$messages;
  26. $actual = (round($messages/2)+$actions);
  27. $stats_line = "There was a total of ".$actual." lines. With $actions being actions and ".round($messages/2)." being messages.";
  28. print $stats_line;
  29. }
  30. function get_last_updated(){
  31. // Why the heck is filemtime not workign here?!
  32. global $month,$day,$year;
  33. print "$month $day $year";
  34. // print date("F d H:i:s.");
  35. }
  36. function is_even($number){
  37. return(!($number & 1));
  38. }
  39. function make_users_list($users){
  40. echo "\t\t<ul>\n";
  41. foreach($users as $user => $color){
  42. if(!stristr($user,"*")){
  43. echo "\t\t\t<li style=\"color: $color\">$user</li>\n";
  44. }
  45. }
  46. echo "\t\t</ul>";
  47. }
  48. ?>
Add Comment
Please, Sign In to add comment