$value){ $wpg2_g2path[$key] = $value; } // Update G2 Paths & Validate update_option('wpg2_g2paths', $wpg2_g2path); wpg2_validate('silent'); } } //Get Current Gallery2 Plug-in Options $wpg2_option = get_option('wpg2_options'); $wpg2_g2path = get_option('wpg2_g2paths'); // Validate Paths To Help Pin Point Errors. if (!$validate_err) { if ($wpg2_g2path['g2_url']) { $ret = wpg2_validateuri($wpg2_g2path['g2_url'].'embed.php'); if ($ret) { // Return the Error echo '

'.__('URL to your Gallery2 ','wpg2').$ret.'

'; $validate_err=1; } } else { echo '

'.__('URL to your Gallery2 is Empty.','wpg2').'

'; $validate_err=1; } } if (!$validate_err) { if (!file_exists( $wpg2_g2path['g2_filepath'].'embed.php' ) ) { echo '

'.__('WPG2 plugin cannot include the Gallery2 file ','wpg2').$wpg2_g2path['g2_filepath'].'embed.php'.'

'; $validate_err=1; } } ?>

' . __('WPG2 Paths Validation Status: ', 'wpg2') . '' . __('Valid', 'wpg2') . ''; } else { echo '

' . __('WPG2 Paths Validation Status: ', 'wpg2') . '' . __('Invalid', 'wpg2') . '

'; echo __('Tip: Paste/Enter your Gallery2 URL (EG: http://www.domain.com/gallery2/main.php) into the Auto Configuration Gallery2 URL Field and click on Update Options.', 'wpg2'); } echo '
'; echo ''; if ($validate_err) { // Turn On the Auto Configuration Option echo '

'. __('Automatic Configuration of WPG2 Embedded Paths', 'wpg2').'

'; echo '
'; echo '
'. __("Gallery2 URL:", "wpg2").''; echo '
'; echo __("Enter your Gallery2 URL by naviging to your Gallery2 Home Page and pasting in the URL from the browser window.", "wpg2"); echo '
'; ?>






Example: /home/username/public_html/gallery2/', 'wpg2') ?>



$value){ $wpg2_option[$key] = $value; } update_option('wpg2_options', $wpg2_option); ?>



/>

$value){ $wpg2_option[$key] = $value; } update_option('wpg2_options', $wpg2_option); ?>


/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>

/>
/>
/>
/>
/>
/>

$value){ $wpg2_option[$key] = $value; } update_option('wpg2_options', $wpg2_option); ?>


/>

$value){ $wpg2_option[$key] = $value; } update_option('wpg2_options', $wpg2_option); // Recreate Wordpress Page (Since we now need it) if ( $wpg2_option['g2_embedpagetype'] == 'wordpress' && $wpg2_option['g2_embedpageid'] == '' ) { $wpg2_option['g2_embedpageid'] = wpg2_wppagecreate($wpg2_option['wpg2_pagetitle'], $wpg2_option['wpg2_pagename']); update_option('wpg2_options', $wpg2_option); wpg2_template_rewritechanges(TRUE); $ret = wpg2_g2rewritesvalidate('silent',$wpg2_option); } // Remove Wordpress Page (Since we no longer need it) if ( $wpg2_option['g2_embedpagetype'] == 'gallery2' && $wpg2_option['g2_embedpageid'] != '' ) { wp_delete_post($wpg2_option['g2_embedpageid']); $wpg2_option['g2_embedpageid'] = ''; update_option('wpg2_options', $wpg2_option); wpg2_template_rewritechanges(TRUE); $ret = wpg2_g2rewritesvalidate('silent',$wpg2_option); } ?>

/>
/>
(N/A when using Custom wpg2header)
Stylesheet Elements to be dynamically added to the Wordpress Header prior to </head>', 'wpg2') ?>

(N/A when using Custom wpg2header)
Styling Elements to be dynamically added to the Wordpress Header after <body>', 'wpg2') ?>

(N/A when using Custom wpg2footer)
Styling Elements to be dynamically added to the Wordpress Footer prior to </body>', 'wpg2') ?>

$value){ $wpg2_option[$key] = $value; } update_option('wpg2_options', $wpg2_option); ?>