Location: PHPKode > scripts > Genie WP Favicon > genie-wp-favicon/gwpf_admin_page.php
<div class="wrap">
<?php
if (!function_exists('is_admin')) {
	header('Status: 403 Forbidden');
	header('HTTP/1.1 403 Forbidden');
	exit ();
}

screen_icon("themes");
echo "<h2>" . __('Favicon Configuration', 'genie-wp-favicon') . "</h2>";

$gwpfSetupModel = new GwpfSetupModel();
$state = null;

if (isset($_POST['plugin_submitted']) && $_POST['plugin_submitted'] == 'Y') {
	$photoObj = $_FILES["gwpf_favicon_img"] ;
	$doPreserve = isset($_POST['gwpf_preserve_on_apple']) && $_POST['gwpf_preserve_on_apple']  ? 1 : 0; 
	$doPromote = isset($_POST['gwpf_show_webid']) && $_POST['gwpf_show_webid'] ? 1 : 0;	
	if( $photoObj["size"] != 0 ) {
		$value = $gwpfSetupModel->savePhotoToUploadFolder($photoObj, $doPreserve, $doPromote);
		echo '<br /><div class="updated"><p>' . __('Favicon updated successfully.', 'genie-wp-favicon') . '</p></div>' ;
	}
	$state = 2 ;
}

$faviconSetup = $gwpfSetupModel->getFaviconState() ;
echo '<br /><strong>The Genie WP Favicon ' . __('does saves the images "as is" what ever you upload. It does not process the images in any sort.', 'genie-wp-favicon') . '<br />' .
__('The idle size for the Favicon icon is 16x16 or 32x32, with a max of 128x128. Make sure to process the image before uploading.', 'genie-wp-favicon') . '<br /></strong>' ;

?>
<form name="gwpf_form" method="post" enctype="multipart/form-data"
			 action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" >
	<p><?php    echo "<h4>" . __( 'Select Favicon: ', 'genie-wp-favicon' ) . "</h4>"; ?>
	<input type="file" name="gwpf_favicon_img" id="gwpf_favicon_img" /> &nbsp; <strong>(.ico, .png, .gif - 100Kb Max)</strong><br /><br />	
    <input type="checkbox" name="gwpf_preserve_on_apple" value="1" <?php if(isset($faviconSetup['apple_name'] ) && $faviconSetup['apple_name'] != null && $faviconSetup['apple_name'] != "" ) echo "checked" ; ?> /> &nbsp; <?php echo __('Preserve icon format in Apple devices (Disable Apple Gloss effect on image).') ; ?><br /><br />
    <input type="checkbox" name="gwpf_show_webid" value="1" <?php if(isset($faviconSetup['show_webid'] ) && $faviconSetup['show_webid'] != null && $faviconSetup['show_webid'] != "" ) echo "checked" ; ?> /> &nbsp; <?php echo __('Help promote plugin by adding plugin page in comments') .  " (<a href='http://itechgenie.com/myblog/genie-wp-favicon/' target='_blank' alt='Genie WP Favicon' >Genie WP Favicon</a>)." ; ?>
    <input type="hidden" name="plugin_submitted" id="plugin_submitted" value="Y">
	</p>
	<?php
	 if(isset($faviconSetup) && isset($faviconSetup['state']) && $faviconSetup['state'] == 1 && $state != 2) {
	 	echo '<br /><p>' . __('Note: You already have a Favicon configured. Updating the setup will replace the older Favicon.', 'genie-wp-favicon') . '<br />' .
	 			"<br />" . __('Current Favicon: ', 'genie-wp-favicon') . "<br /><img src='" . GWPF_FAVICON_URL . URL_S . $faviconSetup['name'] . "?" . $faviconSetup['timestamp'] . "' alt='Favicon' /></p>";
	 } else if( isset($faviconSetup) && $state) {
	 	echo "<br /><p>" . __('Updated Favicon: ', 'genie-wp-favicon') . "<br /><img src='" . GWPF_FAVICON_URL . URL_S . $faviconSetup['name'] . "?" . $faviconSetup['timestamp'] . "' alt='Favicon' /></p>" ;
	 }
	?>
	<p class="submit">
	<input type="submit" name="SubmitForm" value="<?php _e('Update Favicon', 'genie-wp-favicon' ) ?>" />
	</p>
</form>

</div>
Return current item: Genie WP Favicon