summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-09-14 23:49:13 +0200
committerINOPIAE <inopiae@cacert.org>2013-09-14 23:49:13 +0200
commit62d4080601d1a4f05e6446c6e81392f8d1895a3c (patch)
treec134c62ac6af947230db69d3bd524e2b5aa6ebbd
parent4b924244c859aba7daf8c6e04036784d49a767e4 (diff)
downloadcacert-devel-62d4080601d1a4f05e6446c6e81392f8d1895a3c.tar.gz
cacert-devel-62d4080601d1a4f05e6446c6e81392f8d1895a3c.tar.xz
cacert-devel-62d4080601d1a4f05e6446c6e81392f8d1895a3c.zip
bug 1192: added reference to notary.inc.php
-rw-r--r--www/index.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/www/index.php b/www/index.php
index 3fec73e..e33e098 100644
--- a/www/index.php
+++ b/www/index.php
@@ -17,7 +17,7 @@
*/
require_once('../includes/lib/l10n.php');
-
+require_once('../includes/notary.inc.php');
$id = 0; if(array_key_exists("id",$_REQUEST)) $id=intval($_REQUEST['id']);
$oldid = 0; if(array_key_exists("oldid",$_REQUEST)) $oldid=intval($_REQUEST['oldid']);
@@ -27,7 +27,7 @@ require_once('../includes/lib/l10n.php');
$id = 0;
$_SESSION['_config']['errmsg'] = "";
- $ccatest='';
+ $ccatest=FALSE;
if($id == 17 || $id == 20)
{
@@ -166,7 +166,7 @@ require_once('../includes/lib/l10n.php');
$cca=get_last_user_agreement($user_id);
if (!isset($cca['active'])){
$id=52;
- $ccatest=1;
+ $ccatest=TRUE;
}else{
$_SESSION['profile']['loggedin'] = 1;
header('location: https://'.$_SERVER['HTTP_HOST'].'/account.php');
@@ -361,18 +361,17 @@ require_once('../includes/lib/l10n.php');
$cca=get_last_user_agreement($user_id);
if (!isset($cca['active'])){
$id=52;
- $ccatest=1;
+ $ccatest=TRUE;
}
}
// check for CCA acceptance prior to login
-if ($id == 52 && $ccatest=='')
+if ($id == 52 && $ccatest==FALSE)
{
$agree = ""; if(array_key_exists('agree',$_REQUEST)) $agree=$_REQUEST['agree'];
if (!$agree) {
$_SESSION['profile']['loggedin'] = 0;
}else{
- include_once("../includes/notary.inc.php");
write_user_agreement($memid, "CCA", "Login acception", "", 1);
$_SESSION['profile']['loggedin'] = 1;
header("location: https://".$_SERVER['HTTP_HOST']."/account.php");
@@ -575,7 +574,6 @@ if ($id == 52 && $ccatest=='')
`regional`='".$_SESSION['signup']['regional']."',
`radius`='".$_SESSION['signup']['radius']."'";
mysql_query($query);
- include_once("../includes/notary.inc.php");
write_user_agreement($memid, "CCA", "account creation", "", 1);
$body = _("Thanks for signing up with CAcert.org, below is the link you need to open to verify your account. Once your account is verified you will be able to start issuing certificates till your hearts' content!")."\n\n";