diff options
Diffstat (limited to 'src/scoretable.php')
| -rw-r--r-- | src/scoretable.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scoretable.php b/src/scoretable.php index 33c421f..3f785f3 100644 --- a/src/scoretable.php +++ b/src/scoretable.php @@ -15,7 +15,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. //////////////////////////////////////////////////////////////////////////////// -//Last updated 31/jul/2017 by cassio@ime.usp.br +//Last updated 24/oct/2017 by cassio@ime.usp.br require_once("db.php"); if(isset($_SESSION["locr"])) @@ -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")); } |