Archive/delete function

poborn

New member
hi, I have added the archive function to my database.
(from: http://www.dadabik.org/forum/read.php?f=1&i=4126&t=4126)
Basically... archive is working. Delete is not working. I've narrowed it down to the index.php modification... can anyone look at the following an tell me why it isn't working?

snippet taken from index.php:


break;
case "move":
if ($enable_delete == "1") {

$location_url = $site_url.$dadabik_main_file.'?table_name='.urlencode($table_name).'&function=search&where_clause='.urlencode($where_clause);
if(isset($page) && isset($order) && isset($order_type)) {
$location_url .= '&page='.$page.'&order='.urlencode($order).'&order_type='.$order_type;
}
else{
$location_url .= '&page=0';
}

if( $enable_authentication === 0 || $enable_delete_authorization === 0 || current_user_is_owner($where_field, $where_value, $table_name, $fields_labels_ar)){
move_record ($table_name, $where_field, $where_value);
} // end if
else {
$location_url .= '&just_delete_no_authorization=1';
} // end else

header('Location: '.$location_url);
} // end if
break;

 
Top