Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- HTML IRC Log Generator Version 2 (20101229-r2)
- Important functions
- Don't change these
- */
- function get_channel_name(){
- global $channel;
- echo $channel;
- }
- function make_date_list(){
- if(isset($_GET['channel'])){
- $channel = stripslashes(htmlentities($_GET['channel']));
- }
- //$line = "\t\t<div class=\"dates\"><p>";
- $line = "";
- $dates = array("January","Febuary","March","April","May","June","July","August","September","October","November","December");
- foreach($dates as $date){
- echo " / <a href=\"?month=$date\">$date</a> /";
- }
- //$line .= "</p></div>";
- }
- function make_display_stats(){
- global $actual_lines,$actions,$messages;
- $actual = (round($messages/2)+$actions);
- $stats_line = "There was a total of ".$actual." lines. With $actions being actions and ".round($messages/2)." being messages.";
- print $stats_line;
- }
- function get_last_updated(){
- // Why the heck is filemtime not workign here?!
- global $month,$day,$year;
- print "$month $day $year";
- // print date("F d H:i:s.");
- }
- function is_even($number){
- return(!($number & 1));
- }
- function make_users_list($users){
- echo "\t\t<ul>\n";
- foreach($users as $user => $color){
- if(!stristr($user,"*")){
- echo "\t\t\t<li style=\"color: $color\">$user</li>\n";
- }
- }
- echo "\t\t</ul>";
- }
- ?>
Add Comment
Please, Sign In to add comment