<?php #delete images $was_gal=false; if($_POST['sgid'] != "" && $_POST['sgid'] != '0') { $was_gal = gallery(_html($_POST['sgid'])); if($was_gal && $was_gal['username'] == $logged_user['username']) { foreach($imgs as $d) { if($key !== FALSE) { $temp[]=$images[$key]; } } $imgs = $temp; save_temp_file('galleries',$_POST['sgid'],$was_gal); } } else { #delete uncategorized images foreach($imgs as $d) { if($key !== FALSE) { $temp[]=$images[$key]; } } $imgs = $temp; } foreach($imgs as $image) { } redirect($_SERVER['HTTP_REFERER'],0); #redirect("$root_path/mygalleries.php?id=0&e=".base64_encode("Selected image(s) successfully deleted."),1); } else ?>
EDIT: Temat poprawiłem
Błędy, właściwie to strona zostaje przeładowana, tylko tyle. Nie pojawia się żaden błąd ani komunikat!