Je moet ingelogd zijn om te stemmen.
<?php if(isset($_SESSION['loggedin'])) { echo "<meta http-equiv=\"refresh\" content=\"0; url=?p=8\" />"; } else { echo "You are not logged in, please log in first."; } ?>
<?phpif(isset($_SESSION['loggedin'])){ echo "<meta http-equiv=\"refresh\" content=\"0; url=?p=8\" />";} else { echo "You are not logged in, please log in first."; }?>
function ingelogd () { if(isset($_COOKIE['geb']) && isset ($_COOKIE['pass'])) { $sql = mysql_query("SELECT * FROM `leden` WHERE geb='".$_COOKIE['geb']."' AND pass='".$_COOKIE['pass']."' "); if(mysql_num_rows($sql) == 1) return true; else return false; } else return false; }
function ingelogd () {if(isset($_COOKIE['geb']) && isset ($_COOKIE['pass'])){ $sql = mysql_query("SELECT * FROM `leden` WHERE geb='".$_COOKIE['geb']."' AND pass='".$_COOKIE['pass']."' "); if(mysql_num_rows($sql) == 1) return true; else return false;}else return false;}