diff options
| author | cassio <cassiopc@gmail.com> | 2015-09-13 11:40:58 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-09-13 11:40:58 +0000 |
| commit | 0e7484e5c9e17e8eb21f5113774963605ddf1b87 (patch) | |
| tree | 54a8d57d9d5d10b33aad9a741bd9a275686ae377 /src/fcontest.php | |
| parent | 40ed6646e902830881fe2c530ce110d73f5a5a0b (diff) | |
| download | boca-0e7484e5c9e17e8eb21f5113774963605ddf1b87.tar.gz boca-0e7484e5c9e17e8eb21f5113774963605ddf1b87.zip | |
bug fixes for authentication
Diffstat (limited to 'src/fcontest.php')
| -rw-r--r-- | src/fcontest.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/fcontest.php b/src/fcontest.php index 7adbaab..0bbe94e 100644 --- a/src/fcontest.php +++ b/src/fcontest.php @@ -258,13 +258,13 @@ function DBUserInfo($contest, $site, $user, $c=null,$hashpass=true) { } if($hashpass) $a['userpassword'] = myhash($a['userpassword'] . $a['usersessionextra']); - $inst = explode(']',$a['userfullname']); - if(isset($inst[1])) { - $a['userfullname'] = trim($inst[1]); - $inst = explode('[',$inst[0]); - if(isset($inst[1])) - $a['usershortname'] = trim($inst[1]); - } + /* $inst = explode(']',$a['userfullname']); */ + /* if(isset($inst[1])) { */ + /* $a['userfullname'] = trim($inst[1]); */ + /* $inst = explode('[',$inst[0]); */ + /* if(isset($inst[1])) */ + /* $a['usershortname'] = trim($inst[1]); */ + /* } */ $inst = explode(']',$a['userdesc']); if(isset($inst[1])) { $inst2 = explode('[',$inst[0]); @@ -1265,6 +1265,11 @@ function siteclock() { if (($s=DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null) ForceLoad("../index.php"); + ///////CASO DE COMECAR MAIS TARDE NO CENTRALIZADO + if(substr($_SESSION["usertable"]["username"],0,3) == 'XXX') { + $s["currenttime"]=$s["currenttime"] - 60*10; // 10 minutos + } + if ($s["siteactive"]!="t") return array("site is not active",-1000000000); if (!$s["siterunning"]) |