get_row("SELECT post_title FROM $wpdb->posts WHERE ID=$aniga_id"); if ($_POST['event'] == 'options') { if ($_POST['base_id_chg'] == 'yes') { $ID = $_POST['base_id']; update_option('aniga_base-id', $ID, 'base wp ID for ANIga'); } else $ID = $aniga_id; $post_title = $_POST['base_title']; $post_name = $_POST['base_title']; $post_data = compact('post_title', 'ID', 'post_name'); $post_data = add_magic_quotes($post_data); $post_ID = wp_update_post($post_data); $aniga_title->post_title = $_POST['base_title']; $zip_mode = $_POST['zip_mode']; update_option('aniga_zip_mode', $zip_mode, 'zip mode'); $img_mode = $_POST['img_mode']; update_option('aniga_img_mode', $img_mode, 'Picture link mode'); $img_order = $_POST['img_order']; update_option('aniga_img_order', $img_order, 'Picture order mode'); $img_sort = $_POST['img_sort']; update_option('aniga_img_sort', $img_sort, 'Picture sort mode'); $dir_path = $_POST['dir_path']; update_option('aniga_dirpath', $dir_path, 'dir path'); $abs_path = $_POST['abs_path']; update_option('aniga_abspath', $abs_path, 'absolute path'); $columns = $_POST['columns']; update_option('aniga_colums', $columns, 'colums in thumbnail page'); $resize = $_POST['resize']; if ($resize != 'yes') $resize = 'no'; update_option('aniga_resize', $resize, 'resize Images'); $resize_qual = $_POST['resize_qual']; update_option('aniga_resize_qual', $resize_qual, 'resize Quality'); $thumb_size = $_POST['thumb_size']; update_option('aniga_thumb_size', $thumb_size, 'max Thumbnail size'); $thumb_csize = $_POST['thumb_csize']; update_option('aniga_thumb_csize', $thumb_csize, 'max crop Thumbnail size'); $thumb_square = $_POST['thumb_square']; if ($thumb_square != 'yes') $thumb_square = 'no'; update_option('aniga_thumb_square', $thumb_square, 'Create square thumbnails'); $thumb_ref = $_POST['thumb_ref']; if ($thumb_ref != 'yes') $thumb_ref = 'no'; update_option('aniga_thumb_reflection', $thumb_ref, 'create an Apple like reflection on thumbnails'); $thumb_border = $_POST['thumb_border']; update_option('aniga_thumb_reflection_b', $thumb_border, 'border for reflection'); $caimg_size = $_POST['caimg_size']; update_option('aniga_caimg_size', $caimg_size, 'max Cat/Alb size'); $norm_size = $_POST['norm_size']; update_option('aniga_norm_size', $norm_size, 'max normal Image size'); $rolemgr = $_POST['rolemgr']; if ($rolemgr != 'yes') $rolemgr = 'no'; update_option('aniga_rolemgr', $rolemgr, 'Use Role Manager Plugin'); $use_css = $_POST['use_css']; if ($use_css != 'yes') $use_css = 'no'; update_option('aniga_css', $use_css, 'external CSS style'); $slds_prefetch = $_POST['slds_prefetch']; update_option('aniga_slds_prefetch', $slds_prefetch, 'ANIga slideshow prefetch'); $slds_time = $_POST['slds_time']; update_option('aniga_slds_time', $slds_time, 'ANIga slideshow time'); $slds_filter = $_POST['slds_filter']; if ($slds_filter != 'yes') $slds_filter = 'no'; update_option('aniga_slds_filter', $slds_filter, 'ANIga slideshow filter'); $del_pic = $_POST['del_pic']; if ($del_pic != 'yes') $del_pic = 'no'; update_option('aniga_delete', $del_pic, 'ANIga delete pictures from filesystem'); if ($_POST['aniga_trackback'] == "yes") { // idea from WP-OnlineCounter plugin - http://faked.org/blog/wp-onlinecounter/ $trackback_body = "at my site \"".get_option('blogname')."\""; trackback("http://www.animalbeach.net/aniga/trackback/", "I just installed ANIga", $trackback_body, $ID); update_option('aniga_trackback_sent', 'yes', 'ANIga trackback sent'); $msg .= "

" . __('trackback sent', 'aniga') . "

"; } elseif ($_POST['aniga_trackback_no'] == "yes") { update_option('aniga_trackback_sent', 'yes', 'ANIga trackback sent'); $msg .= "

" . __('trackback not sent', 'aniga') . "

"; } $msg .= "

" . __('Options saved', 'aniga') . "

"; } $msg .= $aniga->checkpath(); ?>