aboutsummaryrefslogtreecommitdiff
path: root/src/site/putfile.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-09-02 16:17:26 +0000
committercassiopc <cassiopc@gmail.com>2013-09-02 16:17:26 +0000
commit158eefabd93d51a7bd95b7651743182d817ee00a (patch)
tree1f9bb147af63787e062ba952822a839946f187ed /src/site/putfile.php
parent056b014febb3fade0a685e119041f6b7a809328b (diff)
downloadboca-158eefabd93d51a7bd95b7651743182d817ee00a.tar.gz
boca-158eefabd93d51a7bd95b7651743182d817ee00a.zip
bug fixes to score sync
Diffstat (limited to 'src/site/putfile.php')
-rw-r--r--src/site/putfile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/site/putfile.php b/src/site/putfile.php
index 6273711..761b50c 100644
--- a/src/site/putfile.php
+++ b/src/site/putfile.php
@@ -168,7 +168,7 @@ if(is_writable($_SESSION["locr"] . $remotedir)) {
$total=base64_encode(serialize($arr));
}
- $fn = tempnam($_SESSION["locr"] . $remotedir,"score_");
+ $fn = tempnam($_SESSION["locr"] . $remotedir,"tmp_");
$fout = fopen($fn,"wb");
fwrite($fout,$total,10000000);
fclose($fout);
@@ -181,7 +181,7 @@ if(is_writable($_SESSION["locr"] . $remotedir)) {
} else {
if(@rename($fn, $_SESSION["locr"] . $remotedir . $ds . "score_" . $_SESSION["usertable"]["username"] .
- "_" . $_SESSION["usertable"]["usericpcid"] . "_" //. md5(getIP())
+ "_" . $_SESSION["usertable"]["usericpcid"] . "_x" //. md5(getIP())
. ".dat"))
echo "SCORE UPLOADED OK\n";
else