Wo der FTP Server sein root hat is eigentlich egal...
Man könnt noch versuchen innerhalb des php scripts die Datei
direkt nach dem Hochladen auf 0666 zu setzen.
Kann aber sein dass das aus Sicherheitsgründen deaktiviert ist.
Dazu in der inc_sendmap.php einfach an 2 Stellen eine Zeile mit chmod einfügen:
Code:
...
if ((!file_exists($MapDir . $mapfile)) && (strlen($mapfile) >= 15) && (strtolower(substr($mapfile, -14)) == '.challenge.gbx')) {
$mapfile = substr($mapfile, 0, -14);
if (move_uploaded_file($tempfile, $MapDir . $mapfile . '.Challenge.Gbx')) {
chmod($MapDir . $mapfile, 0666);
$res = mysql_query("INSERT INTO map_maps (mp_userid, mp_name, mp_filename, mp_date, mp_final, mp_lastcomment) VALUES ($userid, '$mapname', '$mapfile', $time, $mapfinal, $time)");
if ($res) {
$res = mysql_query("SELECT mp_id FROM map_maps WHERE mp_userid = $userid AND mp_filename = '$mapfile' ORDER BY mp_id DESC LIMIT 1");
...
und
Code:
...
if (file_exists($MapDir . $mapfile)) {
@unlink($MapDir . $mapfile);
}
if (move_uploaded_file($tempfile, $MapDir . $mapfile)) {
// Success!
chmod($MapDir . $mapfile, 0666);
$mapcomment = $_POST['mapcomment'];
if (strlen($mapcomment) == 0) {
$mapcomment = "<i>(Kein Kommentartext eingegeben)</i>";
}
...
Falls dann nach dem Uploaden Fehlermeldungen auftauchen isses wohl deaktiviert.