View Single Post
  #2  
Old 06-22-2010, 09:51 PM
randomdriver randomdriver is offline
Junior Member
 
Join Date: May 2010
Posts: 2
Geek Gazette License Holder 
Default

After doing my own investigation, this line is the "redirect" line here. But I am not trying to kill the newsletter, I simply want to send an issue. Why would this get called?

Quote:
// ###################### Start Kill Newsletter #######################

if ($action == 'killnewsletter')
{
$id = $vbulletin->input->clean_gpc('r', 'id', TYPE_UINT);
if ($id)
{
$result = $db->query_read_slave("SELECT title FROM " . TABLE_PREFIX . "gaz_newsletters WHERE id = " . intval($id));
$db->query_write("DELETE FROM " . TABLE_PREFIX . "gaz_newsletters WHERE id = " . intval($id));
$db->query_write("DELETE FROM " . TABLE_PREFIX . "gaz_data WHERE newsletterid = " . intval($id));
drop_subscription_field($id);
}

redirect('displaynewsletters', 'gaz_deleted', $result['title']);
}
Reply With Quote