Гостевая книга

'') $temp_language = $tmp_lang; else if ($temp_language>""); else $temp_language=$language; $language = $temp_language; require("$path_to_languages/$language"); ?> 0) { $searchString = str_replace($searchString_name,'',$searchString); $name_only_search = true; } require("functions.php"); require("classes.php"); /************************************************************************* THIS IS A DEMONSTRATION OF THE LOGGING FUNCTION. YOU MIGHT WANT TO KNOW HOW OFTEN YOUR PAGES ARE BEING BROWSED AND BY WHOM AND BY WHICH BROWSERS. UNCOMMENT THE FOLLOWING LINES TO USE THE LOGGING FUNCTION. *************************************************************************/ #$objLog = new logfile("logs/kisgb.log.php","~"); #$objLog->logvars[] = gethost($HTTP_SERVER_VARS['REMOTE_ADDR']); #$objLog->logvars[] = $HTTP_USER_AGENT; #$objLog->logvars[] = date($date_format); #$objLog->logvars[] = date($time_format); #$objLog->logvars[] = $PHP_SELF; #$objLog->writelog(); #$objLog->destroy(); /************************************************************************* END OF LOGGING SAMPLE CODE. *************************************************************************/ ########################################################################### # Override the settings in config if meta controls are set. # ########################################################################### if ($hide_all) { $show_name = false; $show_email = false; $show_home = false; $show_pic = false; $show_icq = false; $show_aim = false; $show_yim = false; $show_msn = false; $show_nation = false; $show_ip = false; $show_private = false; $show_password = false; } else if ($show_all) { $show_name = true; $show_email = true; $show_home = true; $show_pic = true; $show_icq = true; $show_aim = true; $show_yim = true; $show_msn = true; $show_nation = true; $show_ip = true; $show_private = true; $show_password = true; } if ($use_links_instead_of_images) { $label_admin_menu_img = ""; $label_sign_gb_img = ""; $label_search_gb_img = ""; $label_viewall_gb_img = ""; } if ($allow_html&&strpos(strtolower($allowed_html_tags_no_img),"")) $allowed_html_tags_no_img = $allowed_html_tags_no_img.""; if ($allow_carriage_returns) $allowed_html_tags_no_img = $allowed_html_tags_no_img."

"; if (isset($action)); else $action = $HTTP_GET_VARS['action']; $tmp_theme = $HTTP_GET_VARS['tmp_theme']; $tmp_lang = $HTTP_GET_VARS['tmp_lang']; $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; $start = $HTTP_GET_VARS['start']; if ($tmp_theme>'') $temp_theme = $tmp_theme; else if ($temp_theme>""); else $temp_theme=$theme; $theme = $temp_theme; if (!file_exists("$path_to_themes/$theme")) $theme = "default.thm.php"; require("$path_to_themes/$theme"); if ($tmp_lang>'') $temp_language = $tmp_lang; else if ($temp_language>""); else $temp_language=$language; $language = $temp_language; require("$path_to_languages/$language"); if ($secure_site) { $auth_id = $secure_site_id; $auth_pw = $secure_site_pw; include_once("authenticate.php"); } if ($use_filter_file) require("filters.inc.php"); //$rmt_ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; if ($admin_links_to_config_when_msg_edit_on&&($allow_msg_lvl_edit_by_admin||$allow_msg_lvl_edit_by_user)) $upd_adm = "upconfig.php"; else $upd_adm = "admin.php"; $useLogout = FALSE; $loginLink = ""; if ($HTTP_GET_VARS['Login']>"") { $Login = $HTTP_GET_VARS['Login']; if (strlen($Login)!=64) break; /** Need to read registry for match **/ $uName = substr($Login,0,32); $uPass = substr($Login,32); $useLogout = TRUE; // $label_logout = "$label_login"; $label_logout = ""; $loginLink = "&Login=$Login"; } if (!file_exists("$path_to_gb")) { $write_header = 1; $header = "\n"; for ($i=1;$i<17;$i++) { if ($i==1) $comma = ""; else $comma = ","; $header .= $comma.'"'.${"col$i"}.'"'; } $header .= "\n"; $fp = fopen("$path_to_gb","a") or die("$unable_to_access_file_msg $path_to_gb"); flock($fp,2); if ($write_header) fwrite($fp,$header); flock($fp,3); fclose($fp); } $handle=opendir($path_to_themes); if (!$handle) die("$unable_to_access_file_msg $path_to_themes file"); $theme_sb = ""; $selected_theme = explode('.',$theme); $cnt = 0; while (($file = readdir($handle))!==false) { if ($file == '.'||$file == '..') continue; $thm = explode('.',$file); if (chop($thm[1]) != "thm") continue; $themes[] = $thm[0]; } sort($themes); $num_options = count($themes); if ($num_options>0) { for ($cnt=0;$cnt<$num_options;$cnt++) { if ($cnt==0) { $theme_sb = "\n"; } closedir($handle); $handle=opendir($path_to_languages); if (!$handle) die("$unable_to_access_file_msg $path_to_themes file"); $lang_sb = ""; $selected_lang = explode('.',$language); $cnt = 0; while (($file = readdir($handle))!==false) { if ($file == '.'||$file == '..') continue; $lang = explode('.',$file); if (chop($lang[1]) != "lang") continue; $langs[] = $lang[0]; } sort($langs); $num_options = count($langs); if ($num_options>0) { for ($cnt=0;$cnt<$num_options;$cnt++) { if ($cnt==0) { $lang_sb = "\n"; } closedir($handle); ?> <?=$guestbook_name;?> =$badArrayLower?TRUE:FALSE&&$ip<=$badArrayUpper?TRUE:FALSE; } if (ipLengthCheck($badips[$i])==$ip||$badArray) { ?>


$label_admin_menu
"; else $admin_menu = ""; ?>
"; if ($use_header_sign) @include("header.php"); } ?> width= cellpadding= cellspacing= border= rules="none">
   style="background-color:;color:;">" onMouseOver='status="";return true;' onClick="if (this.blur) this.blur();":>
";?> ";?> height= rules="none" cellpadding= cellspacing= border=> '.ucfirst(trim($HTTP_POST_VARS['quoteinfo'])).' '.strip_tags($HTTP_POST_VARS['quotename']." said:")."\n".trim(str_replace('
',"\n",$HTTP_POST_VARS['quotecomments'])).''; if ($HTTP_GET_VARS['quote']&&$allowQuotingOfMessages) { $comments = '[quote]'.ucfirst(trim($HTTP_POST_VARS['quoteinfo'])).' '.$HTTP_POST_VARS['quotename']." said:\n".trim($HTTP_POST_VARS['quotecomments']).'[/quote]'; $comments = str_replace('
',"\n",$comments); } $charleft = $max_comment_length; $nationselected = empty($HTTP_POST_VARS['nationselected'])?$defaultNation:$HTTP_POST_VARS['nationselected']; if ($action=='preview'&&$show_preview) { entryErrorCheck($HTTP_POST_VARS); echo ""; $p_comments = str_replace('','"; } else echo ""; if (($show_ip||$show_all)&&!$hide_all) { echo ""; if (($show_password&&$allow_msg_lvl_edit_by_user)||(($show_private||$show_all)&&!$hide_all)) { echo ""; if ($allow_smileys) { echo ""; } if ($show_preview) echo "\n\n\n\n"; ?>
$label_preview

"; $comments = stripslashes($HTTP_POST_VARS['comments']); $charleft = $HTTP_POST_VARS['charleft']; $defaultName = $HTTP_POST_VARS['name']; $_email = $HTTP_POST_VARS['email']; $name = $HTTP_POST_VARS['name']; $def_home = $HTTP_POST_VARS['home']; $def_pic = $HTTP_POST_VARS['pic']; $_user_icq = $HTTP_POST_VARS['icq']; $_user_aim = $HTTP_POST_VARS['aim']; $_user_yim = $HTTP_POST_VARS['yim']; $_user_msn = $HTTP_POST_VARS['msn']; $nation = $HTTP_POST_VARS['nation']; $nationselected = $HTTP_POST_VARS['nationselected']; $private_msg_value = $HTTP_POST_VARS['private_msg']=='on'?'checked':''; $allow_tags = ""; if ($allow_html) $allow_tags .= $allowed_html_tags_no_img; if ($allow_smileys) $allow_tags .= ""; $p_comments = strip_tags($comments,$allow_tags); $p_comments = @wordwrap($p_comments,$Vtable_max_comment_width,"\n",1); if (strlen($p_comments)>$max_comment_length) { $p_comments = substr($p_comments,0,$max_comment_length-1); $p_comments = "$label_comment - ".$p_comments; } $p_comments = BBCODE($p_comments); $p_comments = str_replace("src=smilies","src=$path_to_images/smilies",$p_comments); $p_comments = nl2br(makeLink($p_comments))."

  $label_name"; if ($require_name) echo " *"; echo ""; } else echo ""; if (($require_email||($show_email||$show_all)&&!$hide_all)) { echo "
  $label_email"; if ($require_email) echo " *"; echo ""; } else echo ""; if (($show_home||$show_all)&&!$hide_all) { echo "
  $label_home"; } else echo ""; if (($show_pic||$show_all)&&!$hide_all) { echo "
  $label_pic"; } else echo ""; if (($show_icq||$show_all)&&!$hide_all) { echo "
  ".$label_icq.""; } else echo ""; if (($show_aim||$show_all)&&!$hide_all) { echo "
  ".$label_aim.""; } else echo ""; if (($show_yim||$show_all)&&!$hide_all) { echo "
  ".$label_yim.""; } else echo ""; if (($show_msn||$show_all)&&!$hide_all) { echo "
  ".$label_msn.""; } else echo ""; if (($require_nation||($show_nation||$show_all)&&!$hide_all)) { echo "
  $label_nation"; if ($require_nation) echo " *"; echo ""; ?>
  $label_ip".gethost($HTTP_SERVER_VARS['REMOTE_ADDR']); } ?>
  

 $html_notallowed_msg
 "; if (($show_private||$show_all)&&!$hide_all) { echo "$label_privatemessage ";if ($show_password) echo "  $label_password (max 10) "; } elseif ($show_password) echo "$label_password (max 10) "; else echo ""; } else { echo ""; echo ""; } if (!$hide_all) echo "
  $label_requiredfield
 
 
 
\n"; echo "document.kisgb_add.$cursorPlacementInPost.focus();\n"; echo "\n"; } ?> "; if ($use_header_view) @include("header.php"); ?>
I'm sorry, but the Guest Book is not available at this time.

Please contact the System Administrator for help.
"; exit(); } // The code above ensures that a converted guestbook is being used // This next code strips out any tags that were entered prior to 4.2.1 from being displayed $allow_tags = ""; if ($allow_html) $allow_tags .= $allowed_html_tags_no_img; if ($allow_smileys) $allow_tags .= ""; $picTypes = explode(',',$picTypes); $cntPicTypes = count($picTypes); $picTypeOk = false; while ($data = fgetcsv($fp,$csv_buffer_size,",")) { $row++; // $searchString = $HTTP_GET_VARS['searchstring']; if ($row>2) { if ($searchString>"") { if (urldecode($searchString)=="'") $searchStringX = "'"; else $searchStringX = $searchString; $searchStringX = urldecode($searchStringX); if ($name_only_search) { if (strtolower($data[4])!=strtolower("$searchStringX")) continue; } else if (false===strpos(strtolower($data[0]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[1]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[2]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[3]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[4]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[5]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[6]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[7]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[8]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[9]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[10]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[11]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[12]),strtolower("$searchStringX")) &&false===strpos(strtolower($data[13]),strtolower("$searchStringX"))) continue; } $num = count($data); /*** 7/17/2002 **/ if (FALSE !== strpos(strtolower($data[6]),'javascript:')) $data[6]=""; /*** 7/17/2002 **/ if (FALSE !== strpos(strtolower($data[7]),'javascript:')) $data[7]=""; if ($num<15) {$data[14] = "";$data[15] = "";} if ($data[14]=="on"&&$data[0]>"") { $private_entries++; $data[13] = ""; } if ($data[0]>"") { $cont = 0; if ($data[0]>10000) { $dateShift = dateShift($data[0]); if ($moderateEntries&&!$dateShift[0]) $cont=1; $data[2] = date($date_format,$data[0]-$dateShift[1]); $data[3] = date($time_format,$data[0]-$dateShift[1]); } if ($cont) continue; $rn++; if (!$data[14]=="on") $entries++; if ($allow_carriage_returns) { $data[13] = wordwrap2($data[13], $Vtable_max_comment_width, "\n"); $data[13] = nl2br($data[13]); // $data[13] = str_replace("
","
",$data[13]); } // $data[13] = @wordwrap($data[13],$Vtable_max_comment_width,"\n",1); $data[13] = str_replace("&", "&", $data[13]); $data[13] = stripslashes($data[13]); // $data[13] = str_replace("<","<",$data[13]); // $data[13] = str_replace(">",">",$data[13]); $data[13] = $message_separator.$data[13]; $data[13] = str_replace("src=smilies","src=$path_to_images/smilies",$data[13]); $picTypeOk = false; for ($c=0;$c<$cntPicTypes;$c++) { if (strpos(strtolower($data[7]),".".$picTypes[$c])) $picTypeOk = true; } if (!$picTypeOk) $data[7] = ""; for ($c=0;$c<$num;$c++) { $data[$c] = str_replace("<","<",$data[$c]); $data[$c] = str_replace(">",">",$data[$c]); $tmp_data[$rn][$c] = strip_tags($data[$c],$allow_tags); } } } } flock($fp,3); fclose($fp); $total_rows_in_gb = $rn; $intro = 'echo "
$Intro_text
";'; if ($use_intro) eval($intro); $label_reverse_display = htmlspecialchars($label_reverse_display,ENT_QUOTES); $lbl_admin_menu = $label_admin_menu_img>""?$label_admin_menu_img:$label_admin_menu; $lbl_admin_menu = eregi_replace("""?$label_home_site_img:$label_home_site; //$lbl_home_site = eregi_replace("""?$label_sign_gb_img:$label_sign_gb; $lbl_sign_gb = eregi_replace("""?$label_search_gb_img:$label_search; $lbl_search_gb = eregi_replace("""?$label_viewall_gb_img:$label_viewall; $lbl_viewall_gb = eregi_replace("""?$label_register_img:$label_login; $lbl_register = eregi_replace("""?$label_register_img:$label_logout; $lbl_register = eregi_replace("$lbl_admin_menu    "; else $admin_menu = ""; if ($theme_by_language) $theme_position = "$label_theme:  $theme_sb "; else $theme_position = "$label_theme:  $theme_sb"; if ($use_languages && $use_themes) $lang_theme = "$label_language:  $lang_sb".$theme_position.""; else if ($use_languages) $lang_theme = "$label_language:  $lang_sb"; else if ($use_themes) $lang_theme = "$label_theme:  $theme_sb"; else $lang_theme = ""; // if ($show_home_menu) $label_home_site = "$lbl_home_site    "; //else $label_home_site = ""; if ($show_search) $label_search = "$lbl_search_gb    $lbl_viewall_gb    "; else { $label_search = ""; $label_viewall = ""; } if ($allow_registering) $label_register = "$lbl_register    "; else $label_register = ""; $label_register = ""; /* temporary override */ $legend_row1 = 'echo "";'; $legend_row2 = 'echo $lang_theme;'; $legend_row3 = 'echo "
$lbl_sign_gb    $admin_menu $label_search $label_register$entries $label_entries_public "; if ($show_private_entries_total) echo "    $private_entries $label_entries_private ";'; $legend_row4 = 'echo "
";'; $display_code = 'if ($tmp_data[$rn][0]>0) {$icons = ""; $idselector++; if ($idselector%2) {$id="td1";$hic = $Vwindow_hilite_color1; $hitc = $Vwindow_hilite_text_color1;} else {$id = "td2"; $hic = $Vwindow_hilite_color2; $hitc = $Vwindow_hilite_text_color2;} if ($allow_msg_lvl_edit_by_user&&$show_password) $edit_update = "[$label_update]"; else if ($allow_msg_lvl_edit_by_admin) $edit_update = "[$label_admin]"; else $edit_update = false; /************************************************/ $cnti = 0; if (!$edit_update===false) { $eu = "\"$label_lock_icon_mouseover\"  "; $cnti++; } else $eu = ""; if (!$tmp_data[$rn][14]=="on") { if ($use_pic) { $pic_parms = "width=\"$pic_width\" height=\"$pic_height\""; $use_picture = $tmp_data[$rn][7]; } else { $pic_parms = ""; $use_picture = "$path_to_images/$img_pic"; } if ($icons_in_separate_column) { if ($show_pic&&$tmp_data[$rn][7]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][7]."\"  "; if ($icons_in_separate_column) {$icons .= "
";}} } $icons .= $eu; $cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;} if ($show_nation && $tmp_data[$rn][12]>"" && $tmp_data[$rn][12]!="blank.gif" && !$hide_all) {$icons .= "\"".$tmp_data[$rn][12]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_email && $tmp_data[$rn][5]>"" && !$hide_all) {$icons .= "\"".$tmp_data[$rn][5]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_home&&$tmp_data[$rn][6]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][6]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} $tmp_data[$rn][7] = ereg_replace(" ","%20",$tmp_data[$rn][7]); if ($show_icq&&$tmp_data[$rn][8]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][8]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_aim&&$tmp_data[$rn][9]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][9]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_yim&&$tmp_data[$rn][10]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][10]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_msn&&$tmp_data[$rn][11]>""&&!$hide_msn) {$icons .= "\"".$tmp_data[$rn][11]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} if ($show_ip&&$tmp_data[$rn][1]>""&&!$hide_all) {$icons .= "\"".$tmp_data[$rn][1]."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} $label_comments_added_mod = ""; // if (!isset($tmp_data[$rn][2])) $show_date = false; // if (!isset($tmp_data[$rn][3])) $show_time = false; if (($show_time&&$tmp_data[$rn][3]>"") && ($show_date&&$tmp_data[$rn][2]>"")) $label_comments_added_mod = " $on ".$tmp_data[$rn][2]." $at ".$tmp_data[$rn][3]; else if ($show_date&&$tmp_data[$rn][2]>"") $label_comments_added_mod = " $on ".$tmp_data[$rn][2]; else if ($show_time&&$tmp_data[$rn][3]>"") $label_comments_added_mod = " $at ".$tmp_data[$rn][3]; if ($allowQuotingOfMessages&&!$hide_all) {$icons .= "\"".$label_quote_gb."\"  "; if ($icons_in_separate_column) {$cnti++; if ($cnti>3) {$icons .= "
"; $cnti = 1;}}} echo ""; $colspan = ""; if (!($show_name || $show_email || $show_home || $show_pic || $show_icq || $show_aim || $show_yim || $show_msn || $show_nation || $show_ip)) $hide_all = true; } if ($tmp_data[$rn][14]=="on") $icons = "$eu[$label_private]"; if ($icons>"" && !$hide_all) $colspan = ""; else $colspan = " colspan=\"2\" "; if ($icons_in_separate_column AND !$hide_all) { echo ""; if ($show_name&&$tmp_data[$rn][4]>" ") echo "".$tmp_data[$rn][4]."
"; if ($show_date&&$tmp_data[$rn][2]>"") echo $tmp_data[$rn][2]." "; if ($show_time&&$tmp_data[$rn][3]>"") echo $tmp_data[$rn][3]; echo $icon_separator.$icons; echo ""; } echo ""; $label_comments_added_mod = ""; // if (!isset($tmp_data[$rn][2])) $show_date = false; // if (!isset($tmp_data[$rn][3])) $show_time = false; if (($show_time&&$tmp_data[$rn][3]>"") && ($show_date&&$tmp_data[$rn][2]>"")) $label_comments_added_mod = " $on ".$tmp_data[$rn][2]." $at ".$tmp_data[$rn][3]; else if ($show_date&&$tmp_data[$rn][2]>"") $label_comments_added_mod = " $on ".$tmp_data[$rn][2]; else if ($show_time&&$tmp_data[$rn][3]>"") $label_comments_added_mod = " $at ".$tmp_data[$rn][3]; if ($icons_in_separate_column AND !$hide_all) {} else { echo " "; if ($show_name&&$tmp_data[$rn][4]>" ") { echo "".$tmp_data[$rn][4].""; } /*** 7/18/2002 ***/ echo "$label_comments_added".$label_comments_added_mod.""; echo "
"; } if (strpos(strtolower($allowed_html_tags_no_img),"")&&$allow_html) $tmp_data[$rn][13] = makeLink($tmp_data[$rn][13]); $start_tag = strpos(strtoupper($tmp_data[$rn][13]),"",$start_tag); $a_tag = substr($a_tag_hold,$start_tag,$end_tag-$start_tag+1); $dquotes = substr_count($a_tag,"""); $squotes = substr_count($a_tag,"'"); if ($dquotes%2||$squotes%2) $a_tag_errors++; // begin search and destroy for image tag javascript calls $cant_use = explode(",",$words_not_allowed_in_anchor_tag); for ($x=0;$x",$start_tag,$end_tag-$start_tag+1); $js_errors++; } } // end search and destroy for image tag javascript calls $a_tag_hold = substr($a_tag_hold,$end_tag); } if (!$a_tag_errors) { $tmp_data[$rn][13] = str_replace(""","\"",$tmp_data[$rn][13]); $tmp_data[$rn][13] = str_replace("'","\'",$tmp_data[$rn][13]); } if ($js_errors&&a_tag_errors) $tmp_data[$rn][13] .= "
$attempted_use_of_javascript_msg"; elseif ($js_errors) $tmp_data[$rn][13] .= "
$attempted_use_of_javascript_msg"; } $start_tag = strpos(strtoupper($tmp_data[$rn][13]),"""&&$show_pic&&!$hide_all) { $tmp_data[$rn][13] = "
\"".$tmp_data[$rn][7]."\"  ".$tmp_data[$rn][13]; } } else { $a_tag_hold = strtolower($tmp_data[$rn][13]); $a_tag_errors = 0; $js_errors = 0; for ($x=0;$x",$start_tag); $a_tag = substr($a_tag_hold,$start_tag,$end_tag-$start_tag+1); $dquotes = substr_count($a_tag,"""); $squotes = substr_count($a_tag,"'"); if ($dquotes%2||$squotes%2) $a_tag_errors++; // begin search and destroy for anchor tag javascript calls $cant_use = explode(",",$words_not_allowed_in_anchor_tag); for ($x=0;$x",$start_tag,$end_tag-$start_tag+1); $js_errors++; } } // end search and destroy for anchor tag javascript calls $a_tag_hold = substr($a_tag_hold,$end_tag); } if (!$a_tag_errors) { $tmp_data[$rn][13] = str_replace(""","\"",$tmp_data[$rn][13]); $tmp_data[$rn][13] = str_replace("'","\'",$tmp_data[$rn][13]); if (!$icons_in_separate_column&&$tmp_data[$rn][7]>"") { $tmp_data[$rn][13] = "\"".$tmp_data[$rn][7]."\"  ".$tmp_data[$rn][13]; } } else { if (!$icons_in_separate_column&&$tmp_data[$rn][7]>"") { $tmp_data[$rn][13] = "\"".$tmp_data[$rn][7]."\"  ".$tmp_data[$rn][13]; } $tmp_data[$rn][13] .= "
$broken_link_msg"; } if ($js_errors&&a_tag_errors) $tmp_data[$rn][13] .= "
$attempted_use_of_javascript_msg"; elseif ($js_errors) $tmp_data[$rn][13] .= "
$attempted_use_of_javascript_msg"; } // $allow_tags = ""; // if ($allow_html) $allow_tags .= $allowed_html_tags_no_img; // if ($allow_smileys) $allow_tags .= ""; // $tmp_data[$rn][13] = strip_tags($tmp_data[$rn][13],$allow_tags); $tmp_data[$rn][13] = BBCODE($tmp_data[$rn][13]); if (!$tmp_data[$rn][14]=="on") { if ($icons_in_separate_column AND !$hide_all) {} else echo "
"; echo $tmp_data[$rn][13]; // $quotecomments = $tmp_data[$rn][13]; // $quotename = $tmp_data[$rn][4]; } if (!$icons_in_separate_column&&!$tmp_data[$rn][14]=="on") {echo "

$icons";} else if (!$icons_in_separate_column) echo "$icons"; /*** 7-18-2002 ***/ if ($icons_in_separate_column AND $tmp_data[$rn][14]=="on") echo " "; echo ""; }'; eval($legend_row1); if ($use_themes_languages_header) eval($legend_row2); eval($legend_row3); eval($legend_row4); echo "\n\n"; if ($total_rows_in_gb) { $trn = $rn; if (!isset($start)) $start=$rn; $rn = $start; $rows_per_page = ($rows_per_page>0)?$rows_per_page:99999; $cnt = 0; for ($c=$rn;$c>0;$c--) { if ($cnt==0 OR $cnt%$rows_per_page!=0) { eval($display_code);echo "\n\n"; $cnt++; } $rn--; if ($cnt > 0 AND $cnt%$rows_per_page==0) { $next = $rn; break; } } if ($next < 1) $prev = $cnt + $rows_per_page; else $prev = $next + 2*($rows_per_page); if ($prev > $trn) $prev = $trn; if ($prev <= $rows_per_page) $prev = 0; if ($next>0 OR $next>$rows_per_page) $show_next=true; else $show_next=false; if ($prev>0 && ($start!=$trn OR $show_next==false)) $show_prev=true; else $show_prev=false; if ($next<$rows_per_page) $nrpp = $next; else $nrpp = $rows_per_page; if ($prev<$rows_per_page) $prpp = $prev; else $prpp = $rows_per_page; echo "
\n\n"; $data = array(); $tmp_data = array(); if ($entries>0) { eval($legend_row1); if ($use_themes_languages_footer) eval($legend_row2); eval($legend_row3); } $pages = ceil($trn/$rows_per_page); $st = $trn; if ($show_prev) $arrow_p = ""; else $arrow_p = ""; if ($show_next) $arrow_n = ""; else $arrow_n = ""; $page_legend = $arrow_p; $carry = $HTTP_GET_VARS['carry']; if (empty($carry)) $carry=1; for ($p=$carry;$p<=$pages;$p++) { if ($st==$start) $link=false; else $link=true; if ($carry>1&&$p==$carry) { $h_c = $carry; $carry = $carry-1; $st = $st - ($carry*$rows_per_page); $st1 = $st+$rows_per_page; $page_legend = "<< | "; $carry = $h_c; } if ($link) $page_legend .= "$p | "; else $page_legend .= "$p | "; $st = $st-$rows_per_page; if ($p+1>$carry+19) { $carry = $carry+1; $page_legend .= ">> | "; break 1; } } if ($show_next||$show_prev); else $page_legend = ""; $page_legend .= $arrow_n; echo "".$page_legend; eval($legend_row4); if ($use_intro) { if ($page_alignment_center) echo "
"; eval($intro); if ($page_alignment_center) echo "
"; } } //ends total_rows_in_gb logic echo ""; echo ""; echo ""; } #end action=view ############################################################### # PLEASE NOTE: AS STATED IN THE README FILE, THE FOOTER MUST # # BE SHOWN OR YOU ARE IN VIOLATION OF THE USAGE AGREEMENT AND # # LICENSE. # ############################################################### echo "

"; if ($use_footer) require 'footer.php'; echo "
"; if ($page_alignment_center) echo ""; ?>