Hi!
1.) erstelle eine neue Date mit den Namen "download_notify.html" und speicher sie in lang/deutsch/email:
Ein Bild wurde von "{site_name}" herunter geladen.
Username: {user_name}
Bildname: {image_name}
Datei: {file_name}
Kategorie: {cat_name}
Mit freundlichen Grüßen,
{site_name}
2.) suche in lang/main.php:
$lang['new_upload_emailsubject'] = "Neuer Upload auf {site_name}";
füge darunter ein:
$lang['new_download_emailsubject'] = "Neuer Download auf {site_name}";
3.) suche in de download.php:
$sql = "SELECT image_id, cat_id, image_media_file, image_download_url
ersetze es mit:
$sql = "SELECT image_id, cat_id, image_name, image_media_file, image_download_url
suche:
WHERE image_id IN (".trim(implode(", ", $image_ids)).")";
$site_db->query($sql);
füge darunter ein:
include(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$config['upload_emails'] = str_replace(" ", "", $config['upload_emails']);
$emails = explode(",", $config['upload_emails']);
$emailsubject = preg_replace("/".$site_template->start."site_name".$site_template->end."/siU", str_replace(":", "", $config['site_name']), $lang['new_download_emailsubject']);
$site_email->set_to($config['site_email']);
$site_email->set_subject($emailsubject);
$site_email->register_vars(array(
"site_name" => $config['site_name'],
"user_name" => ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : "Gast",
"image_name" => $image_row['image_name'],
"file_name" => $file['file_name'],
"cat_name" => $cat_cache[$image_row['cat_id']]['cat_name'],
));
$site_email->set_body("download_notify", $config['language_dir_default']);
$site_email->set_bcc($emails);
$site_email->send_email();
suche:
$sql = "SELECT image_id, cat_id, user_id, image_media_file, image_download_url, image_downloads
ersetze es mit:
$sql = "SELECT image_id, cat_id, user_id, image_name, image_media_file, image_download_url, image_downloads
suche:
WHERE image_id = $image_id";
$site_db->query($sql);
füge darunter ein:
include(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$config['upload_emails'] = str_replace(" ", "", $config['upload_emails']);
$emails = explode(",", $config['upload_emails']);
$emailsubject = preg_replace("/".$site_template->start."site_name".$site_template->end."/siU", str_replace(":", "", $config['site_name']), $lang['new_download_emailsubject']);
$site_email->set_to($config['site_email']);
$site_email->set_subject($emailsubject);
$site_email->register_vars(array(
"site_name" => $config['site_name'],
"user_name" => ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : "Gast",
"image_name" => $image_row['image_name'],
"file_name" => $file['file_name'],
"cat_name" => $cat_cache[$image_row['cat_id']]['cat_name'],
));
$site_email->set_body("download_notify", $config['language_dir_default']);
$site_email->set_bcc($emails);
$site_email->send_email();
mfg Andi