4images code on GitHub Click here to visit GitHub.
0 Members and 1 Guest are viewing this topic.
//-----------------------------------------------------// Validated picture message --------------------------//----------------------------------------------------- $current_time = time(); $row = array(); $sql = "SELECT email, name, allow_admin_mails FROM ".USERS_TABLE." WHERE id = $user_id"; $result = $site_db->query($sql); $row = $site_db->fetch_array($result); $user_allowemails = ($row['allow_admin_mails']); $recipient_email = ($row['email']); $recipient_name = ($row['name']); $cut_url = str_replace("admin", "", $script_url); $image_url = $cut_url."details.php?".URL_IMAGE_ID."=".$image_id.""; if ($user_allowemails == 1) { $site_email = new Email(); $site_email->set_to($recipient_email); $site_email->set_from($config['site_email'], $config['site_name']); $site_email->set_subject("Image Validation Results"); $site_email->register_vars(array( "recipient_name" => $recipient_name, "lang_image_add_success" => $lang['image_add_success'], "validation_date" => format_date($config['date_format']." ".$config['time_format'], $current_time), "site_name" => $config['site_name'], "yr_image_name" => strtoupper($image_media_file), "image_url" => $image_url, )); $site_email->set_body("validation_email", $config['language_dir']); $site_email->send_email(); }//-------------------------------------------------------//-----------------------------------------------------// Declined picture message ---------------------------//----------------------------------------------------- $row = array(); $sql = "SELECT email, name, allow_admin_mails FROM ".USERS_TABLE." WHERE id = $user_id"; $result = $site_db->query($sql); $row = $site_db->fetch_array($result); $user_allowemails = ($row['allow_admin_mails']); $recipient_email = ($row['email']); $recipient_name = ($row['name']); if ($user_allowemails == 1) { $site_email = new Email(); $site_email->set_to($recipient_email); $site_email->set_from($config['site_email'], $config['site_name']); $site_email->set_subject("Image Validation Results"); $site_email->register_vars(array( "recipient_name" => $recipient_name, "lang_image_delete_success" => $lang['image_delete_success'], "site_name" => $config['site_name'], "yr_image_name" => strtoupper($image_media_file), )); $site_email->set_body("declined_email", $config['language_dir']); $site_email->send_email(); }//-------------------------------------------------------
$recipient_email = ($row['email']); echo $recipient_email;$recipient_name = ($row['name']); echo $recipient_name;
//-----------------------------------------------------// Validated picture message --------------------------//----------------------------------------------------- $current_time = time(); echo $current_time; $row = array(); echo $row; $sql = "SELECT email, name, allow_admin_mails FROM ".USERS_TABLE." WHERE id = $user_id"; echo $sql; $result = $site_db->query($sql); echo $result; $row = $site_db->fetch_array($result); echo $row; $user_allowemails = ($row['allow_admin_mails']); echo $user_allowemails; $recipient_email = ($row['email']); echo $recipient_email; $recipient_name = ($row['name']); echo $recipient_name; $cut_url = str_replace("admin", "", $script_url); $image_url = $cut_url."details.php?".URL_IMAGE_ID."=".$image_id.""; if ($user_allowemails == 1) { $site_email = new Email(); echo $site_email; $site_email->set_to($recipient_email); echo $site_email; $site_email->set_from($config['site_email'], $config['site_name']); echo $site_email; $site_email->set_subject("Image Validation Results"); echo $site_email; $site_email->register_vars(array( "recipient_name" => $recipient_name, "lang_image_add_success" => $lang['image_add_success'], "validation_date" => format_date($config['date_format']." ".$config['time_format'], $current_time), "site_name" => $config['site_name'], "yr_image_name" => strtoupper($image_media_file), "image_url" => $image_url, )); $site_email->set_body("validation_email", $config['language_dir']); $site_email->send_email(); }//-------------------------------------------------------
Image added: Sinfest - Agent (sf20030526.gif)1056379035ArraySELECT email, name, allow_admin_mails FROM ibf_members WHERE id = 827Resource id #34Arrayian@cerebellum.za.netCrEaTi0n
1056381796ArraySELECT email, name, allow_admin_mails FROM ibf_members WHERE id = 0Resource id #34Arrayguest@ibforums.comGuest
any ideas?