';
if (!$show_rating_security_image) { // we skip the security question
$page2 = false;
$c = "1";
$_SESSION['twg_key'] = 1;
}
// only vote once per session for one image;
$ratingimage = $twg_album . $image;
$alreadyVoted = false;
if (isset($_SESSION['votedArray'])) {
$alreadyVoted = in_array( $ratingimage, $_SESSION['votedArray']);
}
if ($rating == false && !$alreadyVoted) {
echo $lang_rating_text;
echo '';
} else if ($page2 && !$alreadyVoted) {
echo $lang_rating_security . '
![]()
|
|
|