".$l['comments_entryform']."

".$l['comments_bbcode']." BBcode?


 "; if(defined('JLOG_ADMIN')) $output .= "\n \n"; else { $output .= " \n"; } $output .= "

"; if(defined("JLOG_ADMIN")) $output .= add_session_id_input_tag(); $output .= "

\n "; ### Plugin Hook $output = $plugins->callHook('commentForm', $output, $com_form); return $output; } function com_javascript_variables() { global $l; return " "; } function com_check_errors($com_form) { global $l; if(empty($com_form['sid'])) $errors[] = $l['comments_no_sid']; if(isset($com_form['email']) AND $com_form['email'] != "" AND !preg_match("/^[^@]+@.+\.\D{2,6}$/", $com_form['email']) AND $com_form['email'] != $l['comments_email']) $errors[] = $l['comments_false_mail']; if(empty($com_form['content'])) $errors[] = $l['comments_notext']; if(isset($errors)) return $errors; } function com_clean_data($data) { global $l; if(empty($data['name']) OR $data['name'] == $l['comments_name']) $data['name'] = ""; if(empty($data['city']) OR $data['city'] == $l['comments_city']) $data['city'] = ""; if(empty($data['email']) OR $data['email'] == $l['comments_email']) $data['email'] = ""; if(empty($data['homepage']) OR $data['homepage'] == $l['comments_homepage']) $data['homepage'] = ""; if(empty($data['date'])) $data['date'] = time(); return $data; } function set_cookie($data) { $userdaten = array( $data['name'], $data['city'], $data['email'], $data['homepage'] ); $cookielife = time() + 42 * 24 * 60 * 60; $path = parse_url(JLOG_PATH); if(!isset($path['path'])) $path['path'] = ""; setcookie("jlog_userdata", urlencode(serialize($userdaten)), $cookielife, $path['path']."/"); } function trash_cookie() { $cookielife = time() - 3600; setcookie("jlog_userdata", '', $cookielife, "/"); } function new_sid() { list($usec, $sec) = explode(' ', microtime()); mt_srand((float) $sec + ((float) $usec * 100000)); return $_SERVER["REMOTE_ADDR"]."-".time()."-".mt_rand(1000,9999); } // Funcitons function do_comment($data, $nr) { global $l, $bbcomments, $plugins; $meta = array_htmlspecialchars($data); $comment = "
  • "; if(!empty($meta['homepage'])) $comment .= ""; if(!empty($meta['name'])) $comment .= $meta['name']; else $comment .= $l['comments_anonym']; if(!empty($meta['homepage'])) $comment .= ""; $comment .= ""; if(!empty($meta['city'])) $comment .= " ".$l['comments_from']." ".$meta['city']; $comment .= " ".$l['comments_posted']." ".strftime(JLOG_DATE_COMMENT, $data['date']).":

    \n".$bbcomments->parse($data['content'])."
  • "; ### Plugin Hook $comment = $plugins->callHook('showComment', $comment, $data, $nr); return $comment; } ?>