= 1 && $rating <= 5 ) { if ( strpos( $_GET[ "y" ], array( "/", ".", "\\", "%" ) ) === false && strlen( $_GET["y"] ) == 2 && strpos( $_GET[ "m" ], array( "/", ".", "\\", "%" ) ) === false && strlen( $_GET["m"] ) == 2 && strpos( $_GET[ "entry" ], array( "/", ".", "\\", "%" ) ) === false && strlen( $_GET["entry"] ) == 18 ) { $y = $_GET['y']; $m = $_GET['m']; $entry = $_GET['entry']; if ( entry_exists( $y, $m, $entry ) ) { write_rating( $y, $m, $entry, $rating ); } } } } // Even if it failed to store the vote, we still want to return to the home page. $ok = true; if ( $ok === true ) { redirect_to_url( "index.php" ); } ?> <?php echo($blog_config[ 'blog_title' ]); ?> - <?php echo( $lang_string['title'] ); ?> ' ); } echo( '' . $lang_string['home'] . '

' ); } ?>