\n"; /* echo "\n"; */ echo "\n"; echo "\n"; echo "
\n"; #IE hacks echo "\n"; echo "\n"; echo "
'; $comment_data = stripslashes(strip_tags($comment_data,$allowedTags)); // thanks google: // http://www.google.com/googleblog/2005/01/preventing-comment-spam.html $comment_data = eregi_replace("error( __('No comment spam'), __('Your comment includes blacklisted word') . __('No comment spam') ); $this->footer(); exit; //stop everything } } if ($comment_kolacek!=md5($comment_spamcheck)) { $this->error( __('No comment spam'), __('You ve written the check number wrong' ) ); $this->footer(); exit; //stop everything } if (!$comment_name) { $comment_name = $_COOKIE["username"]; } // ok so we got a comment if ($comment_name && $save_comment_name) { // save out name in a cookie if (!setcookie("username","$comment_name", mktime(0, 0, 0, 12, 30, 2030))) { print __('Could not set name cookie!'); exit; } } // create a user_comment file if not existant or append to it if (!$picture) { require_once("$root/inc/photo.class.inc.php"); $path = "$gallery_dir/$galerie/lq"; $file = "$path/img-$snimek.jpg"; $picture = new C_photo($file, $snimek); } $picture->addcomment($comment_name, $comment_data); } } } # return dirs sorted class SortDir { var $items; function SortDir($directory) { $handle=@opendir($directory); if (!$handle) return; while ($file = readdir($handle)) { if ($file != "." && $file != "..") { $this->items[]=$file; } } closedir($handle); if ($this->items) { natsort($this->items); } } function Read() { if ($this->items) { $getback= (pos($this->items)); next($this->items); return $getback; } } } ?>