Project

General

Profile

« Previous | Next » 

Revision 1573

Added by Dietmar over 12 years ago

+ add automatically generated e-mail language form variable
! send confirmation mail with details to superadmin from SERVER_EMAIL
! send confirmation mail without details to sender from SERVER_EMAIL

View differences:

delete_submission.php
24 24
// Get id
25 25
$submission_id = intval($admin->checkIDKEY('submission_id', false, 'GET'));
26 26
if (!$submission_id) {
27
 $admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
27
	$admin->clearIDKEY();
28
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
28 29
}
29 30

  
30 31
// Delete row
31 32
$database->query("DELETE FROM ".TABLE_PREFIX."mod_form_submissions WHERE submission_id = '$submission_id'");
33
	$admin->clearIDKEY();
32 34

  
33 35
// Check if there is a db error, otherwise say successful
34 36
if($database->is_error()) {

Also available in: Unified diff