$logunix = returnUnixtimestamp($log_time); $time = safe_strftime($date_format, $logunix); if ($log_important == 'yes') { $trclass = 'logimportant'; } else { $trclass = 'normal'; } if (is_even($counter)) { $trclass .= ' even'; } else { $trclass .= ' odd'; } if ($counter >= 20) { $trclass .= ' fade' . (30 - $counter); } if (isset($do) && $do == 'referral') { $log_url = htmlentities($log_message); $from = "<a href=\"{$log_url}\" title=\"Visit: {$log_url}\">" . chopme(str_replace('http://', "", $log_url), 70) . "</a>"; echo "\n\t\t\t\t\t\t\t\t<tr class=\"{$trclass}\">\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"icon\"><img src=\"admin/theme/images/icons/{$log_icon}.png\" alt=\"{$log_icon} icon\" /></td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"when\">{$time}</td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"who\"><a href=\"http://network-tools.com/default.asp?prog=lookup&host={$user_ip}\" title=\"Lookup IP: {$user_ip}\" target=\"_blank\">{$user_ip}</a> </td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"from\">{$from}</a></td>\n\t\t\t\t\t\t\t\t</tr>"; } else { echo "\n\t\t\t\t\t\t\t\t<tr class=\"{$trclass}\">\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"icon\"><img src=\"admin/theme/images/icons/{$log_icon}.png\" alt=\"{$log_icon} icon\" /></td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"when\">{$time}</td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"who\"><a href=\"http://network-tools.com/default.asp?prog=lookup&host={$user_ip}\" title=\"Lookup IP: {$user_ip}\" target=\"_blank\">{$user_id}</a> </td>\n\t\t\t\t\t\t\t\t\t<td class=\"tbl_row\" headers=\"what\">{$log_message}</td>\n\t\t\t\t\t\t\t\t</tr>"; } } } echo "\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t</div>"; if ($system_message) { $message = $system_message; } } } }
function admin_head() { global $s, $m, $x, $page_display_name, $page_id, $edit, $go, $lang, $tag, $search_words, $search_submit; $rs = safe_row('*', 'pixie_core', "page_name = '{$x}' limit 0,1"); if ($rs) { extract($rs); if (isset($tag) && $tag) { $stitle = $page_display_name . " (" . ucwords($lang['all_posts_tagged']) . ": " . $tag . ")"; } else { if ($search_words) { $stitle = $page_display_name . " (" . $lang['search'] . ": " . chopme(sterilise($search_words), 40) . ")"; } else { if ($search_submit) { $stitle = $page_display_name . " (" . $lang['search'] . ": {$search_submit})"; } else { $stitle = $page_display_name; } } } if (!isset($edit) or !$edit) { if (!isset($go) or !$go) { // do not want people to be able to add to comments in this way if ($x != 'comments') { echo "\n\t\t\t\t<ul id=\"page_tools\">\n\t\t\t\t\t<li><a href=\"?s={$s}&m={$m}&x={$x}&go=new\" title=\"" . $lang['new_entry'] . "{$page_display_name} " . str_replace('.', "", $lang['entry']) . "\">" . $lang['new_entry'] . "{$page_display_name} " . str_replace('.', "", $lang['entry']) . "</a></li>\n\t\t\t\t</ul>\n"; } } } echo "\t\t\t\t<div id=\"page_header\">\n\t\t\t\t\t<h2>{$stitle}</h2>\n\t\t\t</div>\n"; } }