<?php
/*
script: index.php
purpose: site home page.
copyright: copyright 2004 Php Image Host. All Rights Reserved. You may modify this file for use on your
					site running a licenced copy of the Php Image Host scripts.
					You must not distribute this file or derivations of it.
Nullified By CrAcKlOvE

*/

// include configuration / initialization options

require_once(dirname(__FILE__).'/includes/config.inc.php');

// include the site header

require_once(dirname(__FILE__).'/header.php');

// display the content for the home page. Editable in the page content section of the admin area.

$pagecontent->display('Home Page');



// get options for free and paid accounts.

$free =& $plans['free'];
$paid =& $plans['paid'];

// display a table comparing the features for free and paid accounts.

?>
<table class="plantable" cellspacing="1" cellpadding="0" border="0" align="center">
<tr class="tr1">
	<td class="planname">Features</td>
	<td class="planname"><?php echo htmlspecialchars($free->type_name);?></td>
	<td class="planname"><?php echo htmlspecialchars($paid->type_name);?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Supported image formats</td>
	<td class="planvalue">jpeg, gif and png</td>
	<td class="planvalue">jpeg, gif and png</td>
</tr>
<tr class="tr1">
	<td class="planlabel">Browse your uploaded images</td>
	<td class="planvalue">Yes</td>
	<td class="planvalue">Yes</td>
</tr>
<tr class="tr2">
	<td class="planlabel">Image thumbnails?</td>
	<td class="planvalue">Yes</td>
	<td class="planvalue">Yes</td>
</tr>
<tr class="tr1">
	<td class="planlabel">Number of images allowed</td>
	<td class="planvalue"><?php echo ($free->max_images > 0 ? $free->max_images : 'Unlimited*');?></td>
	<td class="planvalue"><?php echo ($paid->max_images > 0 ? $paid->max_images : 'Unlimited*');?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Storage Space</td>
	<td class="planvalue"><?php echo ($free->storage > 0 ? $free->storage.'mb' : 'Unlimited*');?></td>
	<td class="planvalue"><?php echo ($paid->storage > 0 ? $paid->storage.'mb' : 'Unlimited*');?></td>
</tr>
<tr class="tr1">
	<td class="planlabel">Monthly Bandwidth</td>
	<td class="planvalue"><?php echo ($free->bandwidth > 0 ? $free->bandwidth.'mb' : 'Unlimited*');?></td>
	<td class="planvalue"><?php echo ($paid->bandwidth > 0 ? $paid->bandwidth.'mb' : 'Unlimited*');?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Maximum upload file size</td>
	<td class="planvalue"><?php echo number_format($free->max_upload_size,0);?>k</td>
	<td class="planvalue"><?php echo number_format($paid->max_upload_size,0);?>k</td>
</tr>
<tr class="tr1">
	<td class="planlabel">Maximum image dimensions</td>
	<td class="planvalue"><?php echo $free->max_image_width.'x'.$free->max_image_height;?></td>
	<td class="planvalue"><?php echo $paid->max_image_width.'x'.$paid->max_image_height;?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Auto-resize oversized images?</td>
	<td class="planvalue"><?php echo $free->auto_resize ? 'Yes' : 'No';?></td>
	<td class="planvalue"><?php echo $paid->auto_resize ? 'Yes' : 'No';?></td>
</tr>
<tr class="tr1">
	<td class="planlabel">All images converted to jpegs?</td>
	<td class="planvalue"><?php echo $free->auto_jpeg ? 'Yes - some loss of quality' : 'No - no loss of quality';?></td>
	<td class="planvalue"><?php echo $paid->auto_jpeg ? 'Yes - some loss of quality' : 'No - no loss of quality';?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Branding added on to images</td>
	<td class="planvalue"><?php echo $free->add_branding ? 'URL added to bottom' : 'None';?></td>
	<td class="planvalue"><?php echo $paid->add_branding ? 'URL added to bottom' : 'None';?></td>
</tr>
<tr class="tr1">
	<td class="planlabel">Simultaneous uploads?</td>
	<td class="planvalue"><?php echo $free->simultaneous_uploads > 1 ? 'Yes - '.$free->simultaneous_uploads : 'No - 1 image at a time';?></td>
	<td class="planvalue"><?php echo $paid->simultaneous_uploads > 1 ? 'Yes - '.$paid->simultaneous_uploads : 'No - 1 image at a time';?></td>
</tr>

<tr class="tr2">
	<td class="planlabel">Rename Your Images?</td>
	<td class="planvalue"><?php echo $free->rename_images ? 'Yes' : 'No';?></td>
	<td class="planvalue"><?php echo $paid->rename_images ? 'Yes' : 'No';?></td>
</tr>
<tr class="tr1">
	<td class="planlabel">Resize Your Images?</td>
	<td class="planvalue"><?php echo $free->resize_images ? 'Yes' : 'No';?></td>
	<td class="planvalue"><?php echo $paid->resize_images ? 'Yes' : 'No';?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Image Galleries?</td>
	<td class="planvalue"><?php echo $free->max_galleries == 0 ? 'No' : $free->max_galleries;?></td>
	<td class="planvalue"><?php echo $paid->max_galleries == 0 ? 'No' : $paid->max_galleries;?></td>
</tr>

<tr class="tr1">
	<td class="planlabel">Email images to your friends</td>
	<td class="planvalue"><?php echo $free->email_friends > 0 ? 'Yes - '.$free->email_friends.' at once' : 'No';?></td>
	<td class="planvalue"><?php echo $paid->email_friends > 0 ? 'Yes - '.$paid->email_friends.' at once' : 'No';?></td>
</tr>
<tr class="tr2">
	<td class="planlabel">Price</td>
	<td class="planvalue"><b><a href="join.php">FREE<br />Join Now!</a></b></td>
	<td class="planvalue"><b><a href="upgrade.php">$<?php echo number_format($paid->cost_1,2);?><br />Upgrade Now</a></b></td>
</tr>
</table>
<?php

if( $free->storage == 0 || $paid->storage == 0 || $free->bandwidth == 0 || $paid->bandwidth == 0 || $free->max_images == 0 || $paid->max_images == 0 ){
?>
<div style="text-align: center;">
<b>Unlimited*</b> Other limitations (bandwidth, storage space, etc, still apply).
</div>
<?php
}

// include the site footer.

require_once(dirname(__FILE__).'/footer.php');

?>
