function ajax_nextgen_start_album_import() { if (check_admin_referer('foogallery_nextgen_album_import', 'foogallery_nextgen_album_import')) { if (array_key_exists('nextgen_album_id', $_POST)) { $nextgen_album_id = $_POST['nextgen_album_id']; $foogallery_album_title = stripslashes($_POST['foogallery_album_name']); //import the album $this->nextgen->import_album($nextgen_album_id, $foogallery_album_title); } else { } } $this->nextgen->render_album_import_form(); die; }