aboutsummaryrefslogtreecommitdiff
path: root/src/site
diff options
context:
space:
mode:
Diffstat (limited to 'src/site')
-rw-r--r--src/site/getsite.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/site/getsite.php b/src/site/getsite.php
index 8e9cac1..1c3b3bd 100644
--- a/src/site/getsite.php
+++ b/src/site/getsite.php
@@ -48,7 +48,11 @@ if($ct["contestlocalsite"]==$ct["contestmainsite"]) {
}
if(isset($_POST['updatetime']) && is_numeric($_POST['updatetime'])) {
$xml = generateSiteXML($_SESSION["usertable"]["contestnumber"],$fromsite,$_POST['updatetime']);
- echo "<!-- " . encryptData($xml,$u["userpassword"]) . " -->";
+ $gc = globalconf();
+ if(!isset($gc['doenc']) || $gc['doenc'])
+ echo "<!-- " . encryptData($xml,$u["userpassword"]) . " -->";
+ else
+ echo "<!-- " . $xml . " -->";
}
} else {
echo "<!-- <ERROR3> ".session_id() . " -->\n";