'attachment','post_mime_type'=>'image','numberposts'=>999999999); $images = get_posts($args); ?>

'.__("Folder", 'fagllery').' wp-content/uploads/fgallery '.__("doesn't exist", 'fagllery').'

'; } elseif (!is_writeable(FGALLERY_DIR)) { echo '

'.__("Folder", 'fagllery').' wp-content/uploads/fgallery '.__("is not writable", 'fagllery').'

'; } _e('Note: Important! If single image is more then 1Mb galleries may work slower', 'fgallery');?>

'.__('Server Name:', 'fgallery').''.$_SERVER['SERVER_NAME']."

"; echo '

'.__('Document Root:', 'fgallery').''.$_SERVER['DOCUMENT_ROOT']."

"; echo '

'.__('Web server:', 'fgallery').''.$_SERVER['SERVER_SOFTWARE']."

"; echo '

'.__('Host:', 'fagallery').''.$_SERVER['HTTP_HOST']."

"; echo '

'.__('Client Agent:', 'fgallery').''.$_SERVER['HTTP_USER_AGENT']."

"; echo '

'.__('Word Press version:', 'fagallery').''.$wp_version; echo '

'.__('Plugin version:', 'fgallery').''.FGALLERY_VERSION; echo '

'.__('Max size of uploaded file:', 'fgallery').''.ini_get('upload_max_filesize').'

'; if (!is_dir(FGALLERY_DIR)) { echo '

'.__("Folder", 'fgallery').' wp-content/uploads/fgallery '.__("doesn't exist", 'fgallery').'

'; } elseif (!is_writeable(FGALLERY_DIR)) { echo '

'.__("Folder", 'fgallery').' wp-content/uploads/fgallery '.__("is not writable", 'fgallery').'

'; } if (!is_dir(FGALLERY_DIR.'/tmp')) { echo '

'.__("Folder", 'fgallery').' wp-content/uploads/fgallery/tmp '.__("doesn't exist", 'fgallery').'

'; } elseif (!is_writeable(FGALLERY_DIR.'/tmp')) { echo '

'.__("Folder", 'fgallery').' wp-content/uploads/fgallery/tmp '.__("is not writable", 'fgallery').'

'; } if (FGALLERY_PHP4_MODE) { echo '

'.__("Your server runs PHP 4", 'fgallery').'

'; } ?>
'.__('Copy settings to clipboard', 'fagllery').'';?>

'; $updated = true; } if (get_option('1_flash_gallery_airion') != '') { echo '1 Flash Gallery Update Airion
'; $updated = true; } if (get_option('1_flash_gallery_arai') != '') { echo '1 Flash Gallery Update Arai
'; $updated = true; } if (get_option('1_flash_gallery_pax') != '') { echo '1 Flash Gallery Update Pax
'; $updated = true; } if (get_option('1_flash_gallery_pazin') != '') { echo '1 Flash Gallery Update Pazin
'; $updated = true; } if (get_option('1_flash_gallery_postma') != '') { echo '1 Flash Gallery Update Postma
'; $updated = true; } if (get_option('1_flash_gallery_pageflip') != '') { echo '1 Flash Gallery Update PageFlip
'; $updated = true; } if (get_option('1_flash_gallery_nilus') != '') { echo '1 Flash Gallery Update Nilus
'; $updated = true; } if (get_option('1_flash_gallery_nusl') != '') { echo '1 Flash Gallery Update Nusl
'; $updated = true; } if (get_option('1_flash_gallery_kranjk') != '') { echo '1 Flash Gallery Update Kranjk
'; $updated = true; } if (!$updated) { _e('There are no updates yet. You can get them at 1 Flash Gallery Wordpress Plugin Site', 'fgallery'); } ?>
'); } update_option('1_flash_gallery_watermark_path',$file_name); } update_option('1_flash_gallery_watermark_place',$_POST['wm_placement']); } $wm_enabled = get_option('1_flash_gallery_watermark_enabled'); $wm_path = get_option('1_flash_gallery_watermark_path'); $wm_place = get_option('1_flash_gallery_watermark_place'); ?>

name="wm_placement"> name="wm_placement"> name="wm_placement">
name="wm_placement"> name="wm_placement"> name="wm_placement">
name="wm_placement"> name="wm_placement"> name="wm_placement">
id="watermark_enabled" />

Current Watermark

watermark'; }?>

/>


query("DELETE FROM ". IMAGES_TO_ALBUMS_TABLE. " WHERE img_id IN (".$ids_string.") AND gall_id = ".$_POST['gall_id']); break; default : $wpdb->query("UPDATE ".IMAGES_TO_ALBUMS_TABLE." SET `gall_folder` =".$_POST['album_id']." WHERE `img_id` IN (".$ids_string.") AND `gall_id` = ".$_POST['gall_id']); break; } } } } if (isset($_GET['id']) && is_numeric($_GET['id'])) { $id = $_GET['id']; fgallery_edit_album_images_page($id); } break; default: // -- pagination ------------ if (!empty($_POST) && wp_verify_nonce($_POST['screenoptionnonce'], 'screen-options-nonce')) { update_option( $_POST['wp_screen_options']['option'], $_POST['wp_screen_options']['value']); } $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0; $sort_by = isset($_GET['sort']) ? absint($_GET['sort']) : 4; if ( empty($pagenum) ) $pagenum = 1; if ( empty( $per_page ) || $per_page < 1 ) $per_page = get_option('toplevel_page_fgallery_per_page',25); apply_filters('toplevel_page_fgallery_per_page', $per_page); $num_pages = ceil(fgallery_albums_count() / $per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); // --------------------------- $items = fgallery_get_albums($pagenum,$per_page, $sort_by); ?>

' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?>
$page_links_text
"; } ?>
add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); // --------------------------- $items = fgallery_get_images($pagenum,$per_page, $folder, $sort_by); ?>

' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?>
=5) :?>
$page_links_text
"; } ?>
'; echo '

'.__('Images in', 'fgallery').' '.$album['gall_name'].' '.__('gallery','fgallery').'

'; $title = __('Add images', 'fgallery'); echo ''.$title.''; $title = __('Create album', 'fgallery'); echo ''.$title.'
'; if (!empty($images)){ echo fgallery_render_album_images($images, $id); } else { _e('There are no images in this gallery', 'fgallery'); } echo '
'; } /** * Renders Gallery Edit Page * @param integer $id Gallery ID */ function fgallery_edit_album_page($id){ echo '
'; $album = fgallery_get_album($id); if (empty($album)) { $album['gall_id'] = 0; $album['gall_width'] = 450; $album['gall_height'] = 385; $album['gall_bgcolor'] = "ffffff"; $album['gall_type'] = 3; } if ($id != 0) { echo '

'.__('Edit gallery', 'fgallery').' "'.$album['gall_name'].'"

'; } else { echo '

'.__('Add new gallery', 'fgallery').'

'; } echo '
'; if ($album['gall_published'] && $id != 0) { echo '

'.__('Embed code', 'fgallery').'

'; echo '
'.fgallery_do_shortcode($album['gall_id']).'
'; echo ''; } echo '
'; echo sc_params_pane($album); echo '
'; if ($id != 0): echo ''; echo do_shortcode('[fgallery id='.$id.' w='.$album['gall_width'].' h='.$album['gall_height'].' bg='.$album['gall_bgcolor'].' t=0 conf=1]'); endif; echo '
'; echo '
'; } /** * Renders Image edit page * @param integer $id Image ID */ function fgallery_edit_image_page($id){ echo '
'; if ( !empty($_POST) && check_admin_referer('fgallery_edit','fgallery_edit_image_field') ) { $save = fgallery_edit_image($_POST, $id); if ($save) { echo '

'.__('Image has been saved', 'fgallery').'

'; } else { echo '

'.__('Image name cannot be empty', 'fgallery').'

'; } } $image = fgallery_get_image($id); if ($image['img_vs_folder'] == 1) { echo '

'.__('Edit folder', 'fgallery').' "'.$image['img_caption'].'"

'; } elseif ($image['img_vs_folder'] == 0) { echo '

'.__('Edit image', 'fgallery').' "#'.$image['img_id'].' '.$image['img_caption'].'"

'; } echo fgallery_render_edit_image_form($image); if ($image['img_vs_folder'] == 0) { echo ' '.$image['img_caption'].' '; } echo '
'; } // Renders Create Gallery page function fgallery_add_gallery() { fgallery_edit_album_page(0); } function fgallery_addimages_page(){ if (isset($_GET['id']) && is_numeric($_GET['id'])) { $id = $_GET['id']; $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0; $folder = isset( $_GET['folder'] ) ? absint( $_GET['folder'] ) : 0; if ( empty($pagenum) ) $pagenum = 1; if ( empty( $per_page ) || $per_page < 1 ) $per_page = get_option('1_flash_gallery_page_fgallery_images_per_page',25); $num_pages = ceil(fgallery_images_count_rest($folder, $id) / $per_page); $page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); ?>
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?>
> <?php bloginfo('name') ?> › <?php _e('Insert Gallery', 'fgallery'); ?> — <?php _e('WordPress'); ?> > add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum )); ?>
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?>
0 && $item['gall_published']): ?>

' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?>