in der datei config.inc.php musst du folgende zeile noch ändern:
$BASE_URL = $mosConfig_live_site . "/";
//die anführungszeichen sollten beide OBEN sein ;-)
in der datei images.php musst du folgendes ändern:
//Die Funktion "do_upload" im Quelltext verschieben!
Code:
if ($my->id && ($my->gid == 2 || ($my->gid >= 19 && $my->gid <= 25))) {
include 'config.inc.php';
if(isset($_GET['dir'])) {
$dirParam = $_GET['dir'];
if(strlen($dirParam) > 0)
{
if(substr($dirParam,0,1)=='/')
$IMG_ROOT .= $dirParam;
else
$IMG_ROOT = $dirParam;
}
}
function do_upload($file, $dest_dir)
{
global $clearUploads;
if(is_file($file['tmp_name']))
{
//var_dump($file); echo "DIR:$dest_dir";
move_uploaded_file($file['tmp_name'], $dest_dir.$file['name']);
chmod($dest_dir.$file['name'], 0666);
}
$clearUploads = true;
}
$refresh_dirs = false;
$clearUploads = false;
Nun kannst Du ohne Probleme Bilder hochladen!
In der images.php sind noch viele weitere Features versteckt... schaut schaut was euch novocaine mitgebracht hat ;-))
grüße,
rené
Lesezeichen