diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-24 17:02:44 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-24 17:02:44 +0000 |
| commit | e6e30705f876a0a6ff07a1247145fccd09f58343 (patch) | |
| tree | 6f56e1a913b5cf26deb9f0ad546a4fcd399c5304 /src/scoretable.php | |
| parent | 831289ca21682f6ee5489b75d15d4e7e20b29e31 (diff) | |
| download | boca-e6e30705f876a0a6ff07a1247145fccd09f58343.tar.gz boca-e6e30705f876a0a6ff07a1247145fccd09f58343.zip | |
bf
Diffstat (limited to 'src/scoretable.php')
| -rw-r--r-- | src/scoretable.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scoretable.php b/src/scoretable.php index 0d2e9bf..3f785f3 100644 --- a/src/scoretable.php +++ b/src/scoretable.php @@ -175,7 +175,7 @@ if(isset($_GET["remote"])) { if(!$redo) { $conf=globalconf(); - if($conf['doenc']) + if(isset($conf['doenc']) && $conf['doenc']) $strtmp = decryptData(substr($strtmp,strpos($strtmp,"\n")),$conf["key"],'score'); else $strtmp = substr($strtmp,strpos($strtmp,"\n")); if($strtmp=="") $redo=TRUE; @@ -395,7 +395,7 @@ if($redo) { } $conf=globalconf(); - if($conf['doenc']) + if(isset($conf['doenc']) && $conf['doenc']) $strtmp = "<!-- " . time() . " --> <?php exit; ?>\n" . encryptData($strtmp,$conf["key"],false); else $strtmp = "<!-- " . time() . " --> <?php exit; ?>\n" . $strtmp; if(file_put_contents($scoretmp, $strtmp,LOCK_EX)===FALSE) { @@ -405,7 +405,7 @@ if($redo) { LOGError("Cannot write to the ".$_SESSION["usertable"]["usertype"]."-score cache file -- performance might be compromised"); } $conf=globalconf(); - if($conf['doenc']) + if(isset($conf['doenc']) && $conf['doenc']) $strtmp = decryptData(substr($strtmp,strpos($strtmp,"\n")),$conf["key"]); else $strtmp = substr($strtmp,strpos($strtmp,"\n")); } |