",$gbmessage); $gbmessage = str_replace(chr(13),"
",$gbmessage); $gbmessage = str_replace(chr(10),"
",$gbmessage); $gbmessage = str_replace(";",",",$gbmessage); if (!$fp = fopen($gbfile, 'a')) { $t .= "

ERROR: Cannot open file ($gbfile)

"; } else { $gbentry = "\n" . $gbname .";". $gbemail .";". $gbwebsite .";". date($plugin_cf['gbook']['time_format']) .";". date($plugin_cf['gbook']['date_format']) .";". $gbtitle .";". $gbmessage .";". $_SERVER["REMOTE_ADDR"]; if (fputs($fp,$gbentry) == FALSE) $t.="
ERROR: Cannot write to file ($gbfile)"; fclose($fp); // eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)*(\.([a-z]{2,4}))+$",$gbemail) if (!$plugin_cf['gbook']['info_mail']=="") { $mailbody = $gbname . " " . $plugin_tx['gbook']['txt_email_wrotes'] . ":\n"; $mailbody .= str_repeat("-", strlen($mailbody)) . "\n\n"; if (!$gbtitle == "") $mailbody .= $gbtitle . "\n\n"; $mailbody .= $gbmessage; @mail( $plugin_cf['gbook']['info_mail'], "NEW: ".$gbtitle, $mailbody, "From: Gbook_".$sl."@{$_SERVER['SERVER_NAME']}\r\n" ."\r\n" ."X-Mailer: PHP/" . phpversion()); } if (eregi("true",$plugin_cf['gbook']['thank_mail']) && (!$gbemail == "")) { $mailbody = sprintf(eregi_replace("
","\n",$plugin_tx['gbook']['txt_thankmail_body']), $gbname, $_SERVER['SERVER_NAME']) . "\n"; @mail( $gbemail, $plugin_tx['gbook']['txt_thankmail_subject'], $mailbody, "From: {$_SERVER['SERVER_NAME']}\r\n" ."Reply-To: ".$plugin_cf['gbook']['thank_sendfrom']."\r\n" ."X-Mailer: PHP/" . phpversion()); } header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING']); exit; } } else { $t .= "

   " . $plugin_tx['gbook']['txt_wrong_captcha'] . "

"; } } $t .= "\n

\n"; $t .= "\n"; if(eregi("true",$plugin_cf['gbook']['new_entries'])) { $t .= "
".$plugin_tx['gbook']['txt_newentry'] . "
 
"; } else { $t .= $plugin_tx['gbook']['txt_offline_hint']; } if (file_exists($pth['folder']['plugins']."sfilter/index.php")){ // $t .= "
--- SFilter installed ---
"; } $t .= "
"; $t .= "
"; if(eregi("true",$plugin_cf['gbook']['captcha'])) { $t .= $plugin_tx['gbook']['txt_captcha'] . "" . "
"; $t .= " *
"; } $t .= $plugin_tx['gbook']['txt_name'] . ": *
" . "
"; if(eregi("true",$plugin_cf['gbook']['ask_for_email'])) { $t .= $plugin_tx['gbook']['txt_email'] . ":
" . "
"; } else { $t .= ""; } if(eregi("true",$plugin_cf['gbook']['ask_for_website'])) { $t .= $plugin_tx['gbook']['txt_website'] . ":
" . "
"; } else { $t .= ""; } if(eregi("true",$plugin_cf['gbook']['ask_for_title'])) { $t .= $plugin_tx['gbook']['txt_title'] . ":"; if(eregi("true",$plugin_cf['gbook']['mandatory_title'])) $t .= " *"; $t .= "
" . "
"; } else { $t .= ""; } $t .= $plugin_tx['gbook']['txt_message'] . ": *
" . "
"; $t .= "
* = " . $plugin_tx['gbook']['txt_mandatory_hint'] . "
"; $t .= " 
"; //-// $t .= ""; $t .= "
"; $t .= " 
"; $t .= " 
"; if(is_file($gbfile)){ $fp = fopen($gbfile, "r"); $tl = ""; $lineCount = 0; $gbNameArray = array(); $gbEmailArray = array(); $gbWebsiteArray = array(); $gbTimeArray = array(); $gbDateArray = array(); $gbTitleArray = array(); $gbMessageArray = array(); $gbIpaddrArray = array(); $asrctxt = array (chr(92).chr(34), chr(92).chr(39), chr(10).chr(13), chr(13), chr(10)); $areptxt = array (chr(34), chr(39), "", "", ""); while (!feof($fp)) { $line = fgets($fp, 4096); @list($gbname,$gbemail,$gbwebsite,$gbtime,$gbdate,$gbtitle,$gbmessage,$gbipaddr) = split(";", $line); if (($gbtitle=="") && ($gbmessage=="")) { } else { array_push($gbNameArray, str_replace($asrctxt, $areptxt, $gbname)); array_push($gbEmailArray, str_replace($asrctxt, $areptxt, $gbemail)); array_push($gbWebsiteArray, $gbwebsite); array_push($gbTimeArray, $gbtime); array_push($gbDateArray, $gbdate); array_push($gbTitleArray, str_replace($asrctxt, $areptxt, $gbtitle)); array_push($gbMessageArray, str_replace($asrctxt, $areptxt, $gbmessage)); array_push($gbIpaddrArray, str_replace($asrctxt, $areptxt, $gbipaddr)); $lineCount++; } } $lineCount--; fclose($fp); } $startNum = $lineCount - intval($gbpage) * intval($plugin_cf['gbook']['items_per_page']); $endNum = $startNum - intval($plugin_cf['gbook']['items_per_page']) + 1.0; if ($endNum < 0) $endNum = 0; for ($i = $startNum; $i >= $endNum; $i--) { if (myModulo($i,2) == 0) { $lineClass = "gblightline"; } else { $lineClass = "gbdarkline"; } $tm = ""; $tm .= ""; if ($gbTitleArray[$i] != '') $tm .= ""; $tm .= ""; $tm .= ""; $tm .= ""; $tm .= ""; $tm .= "
" . $gbTitleArray[$i] . "
" . $gbNameArray[$i] . " 
"; $tm .= "" . $gbDateArray[$i] . ", " . $gbTimeArray[$i] . "
"; if ($gbEmailArray[$i] != '') $tm .= " "; if ($gbWebsiteArray[$i] != '') $tm .= " "; if ($_SERVER["SERVER_NAME"] == "localhost") { $tm .= " "; } else { $tm .= " "; } $tm .= "
" . $gbMessageArray[$i] . " 
"; $tm .= "
"; $tl .= $tm; } $t .= $tl; $lineCount++; $maxPages = myDiv($lineCount, intval($plugin_cf['gbook']['items_per_page'])); if (myModulo($lineCount, intval($plugin_cf['gbook']['items_per_page'])) > 0) $maxPages++; $t .= "
"; if (intval($gbpage) > 0) $t .= "" . $plugin_tx['gbook']['lnk_prev_page'] . "   "; for ($i = 0; $i < $maxPages; $i++) { if ($i == intval($gbpage)) { $t .= "" . intval($i+1) . ""; } else { $t .= "" . intval($i+1) . ""; } $t .= "   "; } if (intval($gbpage+1) < $maxPages) $t .= "   " . $plugin_tx['gbook']['lnk_next_page'] . ""; $t .= "
"; $t .= "
"; $t .= "
 

Guestbook-plugin by QualiFIRE"; $t .= "
"; $t .= "
"; $t .= "\n\n"; return $t; } function CreateTextCaptcha() { $t = ""; $gbLastIP = $_SERVER["REMOTE_ADDR"]; $gbLastIP = intval(substr($gbLastIP,strrpos($gbLastIP,".")+1)); $t .= MakeCaptChar(date("d")*$gbLastIP); $t .= MakeCaptChar(date("m")*$gbLastIP); $t .= MakeCaptChar(date("z")*$gbLastIP); $t .= MakeCaptChar((date("w")+11)*$gbLastIP); $t .= MakeCaptChar(date("W")*$gbLastIP); $t .= MakeCaptChar($gbLastIP); return $t; } function MakeCaptChar($nVal){ $nSmlVal = myModulo($nVal,35); if ($nSmlVal <= 10) { // 1..10 = 0..9 $cchar = chr($nSmlVal+47); } else { // 11..35 = A..Z $cchar = chr($nSmlVal+54); } return $cchar; } function myModulo($vop, $vmod) { $nVal = $vop - floor($vop/$vmod)*$vmod; return $nVal; } function myDiv($vop, $vmod) { $nVal = floor($vop/$vmod); return $nVal; } function RemoveHtml($cText) { $asrctxt = array ("']*?>.*?'si", // Strip out javascript "'<[\/\!]*?[^<>]*?>'si", // Strip out HTML tags "'([\r\n])[\s]+'", // Strip out white space "'&(quot|#34);'i", // Replace HTML entities "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'&(iexcl|#161);'i", "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", "'&#(\d+);'e"); // evaluate as php $areptxt = array ("", "", "\\1", "\"", "&", "<", ">", " ", chr(161), chr(162), chr(163), chr(169), "chr(\\1)"); return preg_replace($asrctxt, $areptxt, $cText); } ?> Knutselweb - Disclamer
Knutselclub Disclamer

Disclamer


Alles op deze website (knutselclub) mag gebruikt worden met uitzondering van foto's waar duidelijk herkenbaar mensen op staan (vraag toestemmnig).

Graag hoor ik even dat er wat gebruikt wordt ;)

Mocht er op deze pagina's iets staan waar u copyright of andere rechten op heeft dan graag even contact opnemen. Ik ga er namelijk vanuit dat alles wat ik aan materiaal gekregen heb om deze website te bouwen gepubliceerd kan worden.

pe5jw(at)amsat.org