aboutsummaryrefslogtreecommitdiff
path: root/src/site/getsite.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/site/getsite.php')
-rw-r--r--src/site/getsite.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/site/getsite.php b/src/site/getsite.php
index 49b5fd2..3948d74 100644
--- a/src/site/getsite.php
+++ b/src/site/getsite.php
@@ -32,8 +32,9 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) {
if($fromsite != '' && is_numeric($fromsite) && $fromsite > 0) {
if(isset($_POST)) {
if(isset($_POST['xml'])) {
+ $u = DBUserInfo($_SESSION["usertable"]["contestnumber"], $_SESSION["usertable"]["sitenumber"], $_SESSION["usertable"]["usernumber"],null,false);
// $fp=fopen('/tmp/aaa',"w"); fwrite($fp,$_POST['xml']); fclose($fp);
- $s = decryptData(rawurldecode($_POST['xml']),$_SESSION["usertable"]["userpassword"],'xml from local not ok');
+ $s = decryptData(rawurldecode($_POST['xml']),$u["userpassword"],'xml from local not ok');
// $fp=fopen('/tmp/aaa1',"w"); fwrite($fp,$s); fclose($fp);
if(strtoupper(substr($s,0,5)) != "<XML>") {
echo "<!-- <ERROR8> ".session_id() . " -->\n";