diff options
| author | cassiopc <cassiopc@gmail.com> | 2018-08-23 14:25:32 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2018-08-23 14:25:32 +0000 |
| commit | e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab (patch) | |
| tree | 700622a2ad1516a7d3a1b0184f07c7087b2ce7bd /src/team | |
| parent | 25e1cce50cc8c7cbbedc38675dd71e8a9944f451 (diff) | |
| download | boca-e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab.tar.gz boca-e186493a2bd8fef5fc0c7ad47edefbabddb6f0ab.zip | |
improvements of scripts and fixes about urls
Diffstat (limited to 'src/team')
| -rw-r--r-- | src/team/run.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/team/run.php b/src/team/run.php index 077b76c..10e7c76 100644 --- a/src/team/run.php +++ b/src/team/run.php @@ -295,7 +295,9 @@ if(!isset($_SESSION['forceredo']) || $_SESSION['forceredo']==false) { list($d) = sscanf($strtmp,"%*s %d"); if($d > time() - $actualdelay) { $conf=globalconf(); - $strtmp = decryptData(substr($strtmp,strpos($strtmp,"\n")+1),$conf["key"],'runtmp'); + if(isset($conf['doenc']) && $conf['doenc']) + $strtmp = decryptData(substr($strtmp,strpos($strtmp,"\n")+1),$conf["key"],'runtmp'); + else $strtmp = substr($strtmp,strpos($strtmp,"\n")+1); if($strtmp !== false) $redo = FALSE; } @@ -416,7 +418,10 @@ if($redo) { "</form>\n"; } $conf=globalconf(); - $strtmp1 = "<!-- " . time() . " --> <?php exit; ?>\t" . encryptData($strcolors,$conf["key"],false) . "\n" . encryptData($strtmp,$conf["key"],false); + if(isset($conf['doenc']) && $conf['doenc']) + $strtmp1 = "<!-- " . time() . " --> <?php exit; ?>\t" . encryptData($strcolors,$conf["key"],false) . "\n" . encryptData($strtmp,$conf["key"],false); + else + $strtmp1 = "<!-- " . time() . " --> <?php exit; ?>\t" . $strcolors . "\n" . $strtmp; $randnum = session_id() . "_" . rand(); if(file_put_contents($runtmp . "_" . $randnum, $strtmp1,LOCK_EX)===FALSE) { if(!isset($_SESSION['writewarn'])) { |