checkCode($mysecnum,$_SESSION['checksum']))) { printSign($name,$from,$email,$url,$comments,$sign_nosmileys,$sign_isprivate,'Wrong security number'); } } /* Check the message with JunkMark(tm)? */ if ($settings['junkmark_use']) { $junk_mark=JunkMark($name,$from,$email,$url,$comments); if ($settings['junkmark_ban100'] && $junk_mark == 100) { gbook_banIP(gbook_IP(),1); } elseif ($junk_mark >= $settings['junkmark_limit']) { $_SESSION['block'] = 1; problem('You cannot signup this guestbook at the moment!',0); } } addEntry($name,$from,$email,$url,$comments,$isprivate); } elseif($a=='confirmdelete') { $pass=gbook_input($_REQUEST['pass'],'Please enter your password'); $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); doDelete($pass,$num); } elseif($a=='showprivate') { $pass=gbook_input($_REQUEST['pass'],'Please enter your password'); $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); showPrivate($pass,$num); } elseif($a=='reply') { $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); writeReply($num); } elseif($a=='postreply') { $pass=gbook_input($_REQUEST['pass'],'Please enter your password'); $comments=gbook_input($_REQUEST['comments'],'Please enter your reply message'); $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); postReply($pass,$num,$comments); } elseif($a=='viewIP') { $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); confViewIP($num); } elseif($a=='seeIP') { $pass=gbook_input($_REQUEST['pass'],'Please enter your password'); $num=gbook_isNumber($_REQUEST['num'],'Invalid ID'); seeIP($pass,$num); } else { problem('This is not a valid action!'); } } $page=gbook_isNumber($_REQUEST['page']); if ($page>0) { $start=($page*10)-9;$end=$start+9; } else { $page=1;$start=1;$end=10; } $lines=file($settings['logfile']); $total = count($lines); if ($total > 0) { if ($end > $total) {$end=$total;} $pages = ceil($total/10); $prev_page = ($page-1 <= 0) ? 0 : $page-1; $next_page = ($page+1 > $pages) ? 0 : $page+1; echo '

We have '.$total.' entries displayed on '.$pages.' pages.
'; $gbook_nav = ''; if ($prev_page) { $gbook_nav .= ' << First  |  < Prev  |  '; } for ($i=1; $i<=$pages; $i++) { if ($i <= ($page+5) && $i >= ($page-5)) { if($i == $page) {$gbook_nav .= ' '.$i.' ';} else {$gbook_nav .= ' '.$i.' ';} } } if ($next_page) { $gbook_nav .= '  |  Next >  |  Last >> '; } echo $gbook_nav; } echo '

'; if ($total == 0) { echo ' '; } else {printEntries($lines,$start,$end);} echo '
No entries yet!
'; if ($total > 0) { echo '

'.$gbook_nav.'

'; } printDownHTML(); exit(); // >>> START FUNCTIONS <<< // function seeIP($pass,$num) { global $settings; if ($pass != $settings[apass]) {problem('Wrong password!');} $lines=file($settings['logfile']); $myline=explode("\t",$lines[$num]); if (empty($myline[8])) {$ip='IP NOT AVAILABLE';} else { $ip=rtrim($myline[8]); if (isset($_POST['addban']) && $_POST['addban']=='YES') { gbook_banIP($ip); } $host=@gethostbyaddr($ip); if ($host && $host!=$fp) {$ip.=' ('.$host.')';} } ?>

 

 

This post has been submitted from:

Click here to continue

 

 

 

 

View IP address

 
Only guestbook owner may view IP addresses of people who posted into this guestbook. To view IP for the selected post please enter your administration password and click the "View IP" button.

Administration password:

Additional options:

 

| Cancel / Go back

 

 

',$comments); $comments = preg_replace('/(\s*){2,}/','

',$comments); if ($settings['smileys'] == 1 && $_REQUEST['nosmileys'] != 'Y') {$comments = processsmileys($comments);} if ($settings['filter']) {$comments = filter_bad_words($comments);} $myline=array(0=>'',1=>'',2=>'',3=>'',4=>'',5=>'',6=>'',7=>'',8=>''); $lines=file($settings['logfile']); $myline=explode("\t",$lines[$num]); foreach ($myline as $k=>$v) { $myline[$k]=rtrim($v); } $myline[7]=$comments; $lines[$num]=implode("\t",$myline)."\n"; $lines=implode('',$lines); $fp = fopen($settings['logfile'],'wb') or problem("Couldn't open file ($settings[logfile]) for writing! Please CHMOD all $settings[logfile] to 666 (rw-rw-rw)!"); fputs($fp,$lines); fclose($fp); ?>

 

 

Your reply has been posted successfully!

Click here to continue

 

 

 

 

Reply to guestbook post

 
Guestbook owner may use this form to reply to a post. To reply to the selected post please enter your administration password, your message and click the "Post reply" button.

Administration password:

Your message:

Insert smileys (Opens a new window)
Disable smileys

'; } ?>

| Cancel / Go back

 

 

Anti-SPAM check

 

Please type in the security number

';} elseif ($message == 2) {echo '

Wrong security number. Please try again

';} ?>

 

This is a security check that prevents automated signups of this guestbook (SPAM). Please enter the security number displayed below into the input field and click the continue button.

 

Security number:
Please type in the security number displayed above:

 

 

 

$v) { $text = preg_replace("/\b$k\b/i",$v,$text); } return $text; } // END filter_bad_words function showPrivate($pass,$num) { global $settings; if ($pass != $settings[apass]) {problem('Wrong password! Only the guestbook owner may read this post!');} $delimiter="\t"; $lines=file($settings['logfile']); list($name,$from,$email,$url,$comment,$added,$isprivate,$reply)=explode($delimiter,$lines[$num]); echo '
Submitted by Comments:
Name: '.$name.'
'; if ($from) { echo 'From: '.$from.'
'; } if ($settings['use_url'] && $url) { echo 'Website: '.$url.'
'; } if ($email) { echo 'E-mail: '.$email.''; } echo '
'.$comment; if (!empty($reply)) { echo '

Admin reply: '.$reply.''; } echo '


Added: '.$added.' Delete this entry  Reply to entry  View IP address  

Back to Guestbook

'; printDownHTML(); exit(); } // END showPrivate function confirmViewPrivate($num) { ?>

Read private post

 
This is a private post and may only be read by the owner of this questbook. To view selected private post please enter your administration password and click the "Read private post" button.

Administration password:

 

| Cancel / Go back

 

 

',$text); $text = str_replace(':(','',$text); $text = str_replace(':D','',$text); $text = str_replace(';)','',$text); $text = preg_replace("/\:o/i",'',$text); $text = preg_replace("/\:p/i",'',$text); $text = str_replace(':cool:','',$text); $text = str_replace(':rolleyes:','',$text); $text = str_replace(':mad:','',$text); $text = str_replace(':eek:','',$text); $text = str_replace(':clap:','',$text); $text = str_replace(':bonk:','',$text); $text = str_replace(':chased:','',$text); $text = str_replace(':crazy:','',$text); $text = str_replace(':cry:','',$text); $text = str_replace(':curse:','',$text); $text = str_replace(':err:','',$text); $text = str_replace(':livid:','',$text); $text = str_replace(':rotflol:','',$text); $text = str_replace(':love:','',$text); $text = str_replace(':nerd:','',$text); $text = str_replace(':nono:','',$text); $text = str_replace(':smash:','',$text); $text = str_replace(':thumbsup:','',$text); $text = str_replace(':toast:','',$text); $text = str_replace(':welcome:','',$text); $text = str_replace(':ylsuper:','',$text); return $text; } // END processsmileys function doDelete($pass,$num) { global $settings; if ($pass != $settings[apass]) {problem('Wrong password! The entry hasn\'t been deleted.');} $lines=file($settings['logfile']); if (isset($_POST['addban']) && $_POST['addban']=='YES') { gbook_banIP(trim(array_pop(explode("\t",$lines[$num])))); } unset($lines[$num]); $lines=implode('',$lines); $fp = fopen($settings['logfile'],'wb') or problem("Couldn't open links file ($settings[logfile]) for writing! Please CHMOD all $settings[logfile] to 666 (rw-rw-rw)!"); fputs($fp,$lines); fclose($fp); ?>

 

 

Selected entry was successfully removed!

Click here to continue

 

 

 

 

Delete guestbook post

 
Only guestbook owner may delete posts. To delete selected post please enter your administration password and click the "Delete this entry" button to confirm your decision.

Administration password:

Additional options:

 

| Cancel / Go back

 

 

'','url' => ''); $char = array('.','@'); $repl = array('.','@'); $v['email']=htmlspecialchars($_POST['email']); if (strlen($v['email']) > 0 && !(preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$v['email']))) {$v['email']='INVALID';} $v['email']=str_replace($char,$repl,$v['email']); if ($settings['use_url']) { $v['url']=htmlspecialchars($_POST['url']); if ($v['url'] == 'http://' || $v['url'] == 'https://') {$v['url'] = '';} elseif (strlen($v['url']) > 0 && !(preg_match("/(http(s)?:\/\/+[\w\-]+\.[\w\-]+)/i",$v['url']))) {$v['url'] = 'INVALID';} } elseif (!empty($_POST['url'])) { $_SESSION['block'] = 1; problem('You cannot signup this guestbook at the moment!',0); } else { $v['url'] = ''; } return $v; } // END check_mail_url function addEntry($name,$from,$email,$url,$comments,$isprivate="0") { global $settings; /* This part will help prevent multiple submissions */ if ($settings['one_per_session'] && $_SESSION['add']) { problem('You may only submit this guestbook once per session!',0); } $delimiter="\t"; $added=date ("F j, Y"); $comments_nosmileys=$comments; $comments = wordwrap($comments,$settings['max_word'],' ',1); $comments = preg_replace('/(\r\n|\n|\r)/','
',$comments); $comments = preg_replace('/(\s*){2,}/','

',$comments); if ($settings['smileys'] == 1 && $_REQUEST['nosmileys'] != "Y") {$comments = processsmileys($comments);} if ($settings['filter']) { $comments = filter_bad_words($comments); $name = filter_bad_words($name); $from = filter_bad_words($from); } $addline = $name.$delimiter.$from.$delimiter.$email.$delimiter.$url.$delimiter.$comments.$delimiter.$added.$delimiter.$isprivate.$delimiter.'0'.$delimiter.$_SERVER['REMOTE_ADDR']."\n"; $fp = @fopen($settings['logfile'],'rb') or problem("Can't open the log file ($settings[logfile]) for reading! CHMOD this file to 666 (rw-rw-rw)!"); $links = @fread($fp,filesize($settings['logfile'])); fclose($fp); $addline .= $links; $fp = fopen($settings['logfile'],'wb') or problem("Couldn't open links file ($settings[logfile]) for writing! Please CHMOD all $settings[logfile] to 666 (rw-rw-rw)!"); fputs($fp,$addline); fclose($fp); if ($settings['notify'] == 1) { $char = array('.','@'); $repl = array('.','@'); $email=str_replace($repl,$char,$email); $message = "Hello! Someone has just signed your guestbook! Name: $name From: $from E-mail: $email Website: $url Message (without smileys): $comments_nosmileys Visit the below URL to view your guestbook: $settings[gbook_url] End of message "; mail("$settings[admin_email]","Someone has just signed your guestbook",$message); } /* Register this session variable */ $_SESSION['add']=1; ?>

 

 

Tu comentario a sido adjuntado !

Click here to continue

 

 

 

 

Comentario

Required fields are bold.

'.$error.'

'; } ?> '; } ?>
Nombre:

Localidad:

Tu mail:

Your website:

Comentario:

Insert smileys (Opens a new window)
Disable smileys '; } ?>

Make this post private

'; } if ($settings['autosubmit']==1) { echo '

Security image
Por favor repita el numero del recuadro:

'; } elseif ($settings['autosubmit']==2) { echo '

'.$_SESSION['secnum'].'
Por favor repita el numero del recuadro:

'; } ?>

Submitted by Comments: Name: '.$name.'
'; if ($from) { echo 'From: '.$from.'
'; } if ($settings['use_url'] && $url) { echo 'Website: '.$url.'
'; } if ($email) { echo 'E-mail: '.$email.''; } echo ' '; if (empty($isprivate) || empty($settings['use_private'])) {echo $comment;} else { echo '

 

Private post. Click to view.

'; } if (!empty($reply)) { echo '

Admin reply: '.$reply.''; } echo '


Added: '.$added.' Delete this entry  Reply to entry  View IP address  
'; } } // END printEntries function problem($myproblem,$backlink=1) { $html = '

 

 

Error

'.$myproblem.'

 

'; if ($backlink) { $html .= '

Back to the previous page

'; } $html .= '

 

 

'; echo $html; printDownHTML(); exit(); } // END problem function printNoCache() { header("Expires: Mon, 26 Jul 2000 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } // END printNoCache function printTopHTML() { global $settings; echo ' '.$settings['gbook_title'].'
Hosting Gratis Unlugar.com
 
'; include_once 'header.txt'; echo '

'.$settings['gbook_title'].'

Back to '.$settings['website_title'].' | View guestbook | Sign guestbook

'; } // END printTopHTML function printDownHTML() { global $settings; eval(gzinflate(base64_decode('DcpHkqNIAADA50x3cACEcDGxB6wEBQgEwl028N4VojCv381zFi jpf6qrGcs++RY/abIWzP3fvMimvPj5I2bqs1ssTRBkgSYOKgPyrojWtcuoHnOxF/beFjKQkjd+WINyn9 klnSIvDtDJrUxQnSV+3lt7ODKuBO/CTFv9Hs4x1yGxdb8RNDBvTnX1WYae+ZHCGW6s1F8nrMz6IpqpEO 6bnch2y1s5by1zGSCaYLDmpE4uRzxnKlvNp5dYpW7CY5+DVsjwUijmcIjYiWY4eAlY7aEWp+b81q9quz gzrZLvthutD8YYZA9t2junbnLlSmffs/3Mo8v/R8pQT42I59hSY9cpjQN7BlDFwevrP6crX0ajztLYub zAgwEbr+/M31bmSHv70XNrMgty/GC5qFbIc92VrwkENqEiUMYIWFQl0Ide6IMMepVZCqwyS0bDlJYh9u kw1vdLBw0aJXF8suRVfuf75n6qnsRV39ATUgCe/3qH/vFiabF/mZJW6GEUUoXnxLM134ihQy5rkjP8rG J6Hq0cucqSqyuxSXpO7AFWiXVfTe9EoyEW37LK1+XlridWBOtKAdCXvMN/nWzEnmP59npu38gZeIT0qB o7lRIMvScol60w+Tunk9vg2QtkiqXLl4MeQm8cX7wHlU6EVJYRN1TTzTCQHySvYwvO66Z/7o1/iN3xuq idw4QuWyQO9TN0pdAAPKOqYYTfXOYJCtNQUX/OyupOxNWZIdAl6DpSHWj44zy02qgsGNJbbUAxsfgHMd rjzDXfVnLshZecQZzoh6F5ZYbb9cB2Z5IZRXpYA+pel+hioDi0zOFY7X2no0tGzel0M9OisqWdkk3zQP xKPe65/A2Q6z5CDwRlq4DoCbliGq4kueJBqzdAVgOP+kI91krrB2VaNQptqYSvxX3Xbs6HuiUUZlIMSh VYOrlUcO5+0Kp52mRJFmmRiiyvMaE+uW9hOmscxxFF4yXFYxf3z5/f39+//wE='))); } // END printDownHTML function gbook_input($in,$error=0) { $in = trim($in); if (strlen($in)) { $in = htmlspecialchars($in); $in = preg_replace('/&(\#[0-9]+;)/','&$1',$in); } elseif ($error) { problem($error); } return stripslashes($in); } // END gbook_input() function gbook_isNumber($in,$error=0) { $in = trim($in); if (preg_match("/\D/",$in) || $in=="") { if ($error) { problem($error); } else { return '0'; } } return $in; } // END gbook_isNumber() function JunkMark($name,$from,$email,$url,$comments) { /* JunkMark(TM) SPAM filter v1.2 from 2nd Feb 2007 (c) Copyright 2006-2007 Klemen Stirn. All rights reserved. The function returns a number between 0 and 100. Larger numbers mean more probability that the message is SPAM. Recommended limit is 60 (block message if score is 60 or more) THIS CODE MAY ONLY BE USED IN THE "GBOOK" SCRIPT FROM PHPJUNKYARD.COM AND DERIVATIVE WORKS OF THE GBOOK SCRIPT. THIS CODE MUSTN'T BE USED IN ANY OTHER SCRIPT AND/OR REDISTRIBUTED IN ANY MEDIUM WITHOUT THE EXPRESS WRITTEN PERMISSION FROM KLEMEN STIRN! */ eval(gzinflate(base64_decode('DZVFrsWIAQSPkxl5YSZlZWZ85k1kZmafPv8CvagqqcsrHf6pv3 aqhvQo/8nSvSSw/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mQR1Dznf6t5XgzgoBXWQ9hwIvYj8aPY9mcPcqtHTl8CzbAvn1lCnxJxG9ZKRpCigCAAkAQJMkJpPj//P vvv//9Pw=='))); return $myscore; } // END JunkMark() function gbook_IP() { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_VIA'])) { $ip = $_SERVER['HTTP_VIA']; } elseif (isset($_SERVER['REMOTE_ADDR'])) { $ip = $_SERVER['REMOTE_ADDR']; } else { die('ERROR: Unable to get your IP address, access blocked!'); } return $ip; } // END gbook_IP() function gbook_CheckIP() { $ip = gbook_IP(); $myBanned = file_get_contents('banned_ip.txt'); if (strpos($myBanned,$ip) !== false) { die('ERROR: You have been permanently banned from this guestbook!'); } return true; } // END gbook_CheckIP() function gbook_banIP($ip,$doDie=0) { $fp=fopen('banned_ip.txt','a'); fputs($fp,$ip.'%'); fclose($fp); if ($doDie) { die('ERROR: You have been permanently banned from this guestbook!'); } return true; } // END gbook_banIP() function gbook_session_regenerate_id() { if (version_compare(phpversion(),'4.3.3','>=')) { session_regenerate_id(); } else { $randlen = 32; $randval = '0123456789abcdefghijklmnopqrstuvwxyz'; $random = ''; $randval_len = 35; for ($i = 1; $i <= $randlen; $i++) { $random .= substr($randval, rand(0,$randval_len), 1); } if (session_id($random)) { setcookie( session_name('GBOOK'), $random, ini_get('session.cookie_lifetime'), '/' ); return true; } else { return false; } } } // END gbook_session_regenerate_id() ?>