summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index e1e8e69..4d403a8 100644
--- a/www/index.php
+++ b/www/index.php
@@ -378,13 +378,18 @@ if ($id == 52 )
$agree = ""; if(array_key_exists('agree',$_REQUEST)) $agree=$_REQUEST['agree'];
if (!$agree) {
$_SESSION['profile']['loggedin'] = 0;
- $id=4;
}else{
write_user_agreement($_SESSION['profile']['id'], "CCA", "Login acception", "", 1);
$_SESSION['profile']['loggedin'] = 1;
header("location: https://".$_SERVER['HTTP_HOST']."/account.php");
exit;
}
+ $disagree = ""; if(array_key_exists('disagree',$_REQUEST)) $disagree=$_REQUEST['disagree'];
+ if ($disagree) {
+ $_SESSION['profile']['loggedin'] = 0;
+ header("location: https://".$_SERVER['HTTP_HOST']."/index.php?id=4");
+ exit;
+ }
}