<?php
/************************************************************************
	UebiMiau is a GPL'ed software developed by 
	 - Aldoir Ventura - aldoir@users.sourceforge.net
	 - http://uebimiau.sourceforge.net São Paulo - Brasil
   		
	***********************************************************************
	Version 3.2.0 Upgrades and templates developed by
	 - Todd Henderson - Lead Developer - http://tdah.us 
	 - Dave Rodgers - Developer - http://www.manvel.net 
	 - Laurent (AdNovea) - Developer - http://adnovea.free.fr
	 
	***********************************************************************
	 - Special thanks to the developers at 
	codeworxtech.com, tinymce.moxiecode.com
	telaen.org, phptoys.com, winged.info, ngcoders.com
	without help this project wouldn't be possible 
	
	***********************************************************************
	- File:			install1.php
	- Developer: 	Todd Henderson / Mods by Laurent (AdNovea)
	- Date:			November 4, 2008
	- version:		(3.2.0) 1.0
	- Description:  Second stage in the installation

*************************************************************************/


	
	//get php settings
	//taken from Joomla installer.
	function get_php_setting($val) {
		$r =  (ini_get($val) == '1' ? 1 : 0);
		return $r ? _ST1_ON : _ST1_OFF;
	}
	

		
		?>
		<table width="100%" border="0" cellspacing="0" cellpadding="5" >
		
		<tr>
			<td colspan="3"style="background-image: url('images/bar.gif');" class="menuheader"><strong><?php echo _STG1_TITLE; ?></strong></td>
		</tr>
		<tr>
			<td colspan="3"><?php echo $msg; ?></td>
		</tr>
		<tr>
			<td><b><u><?php echo _STG1_DIRECTIVES; ?></u></b></td>
			<td  align="center"><b><u><?php echo _STG1_RECOMMENDED; ?></u></b></td>
			<td align="center"><b><u><?php echo _STG1_ACTUAL; ?></u></b></td>
		</tr>
		<?php
		
		$php_recommended_settings = array(array ('Safe Mode','safe_mode',_ST1_OFF),
		array ('Fopen','allow_url_fopen',_ST1_ON),
		array ('Display Errors','display_errors',_ST1_ON),
              array ('Asp tags','asp_tags',_ST1_ON),

		array ('File Uploads','file_uploads',_ST1_ON),
		array ('Magic Quotes GPC','magic_quotes_gpc',_ST1_ON),
		array ('Magic Quotes Runtime','magic_quotes_runtime',_ST1_OFF),
		array ('Register Globals,   (just for install)','register_globals',_ST1_ON),
		array ('Output Buffering','output_buffering',_ST1_OFF),
		array ('Session auto start','session.auto_start',_ST1_OFF),
		);
		
		foreach ($php_recommended_settings as $phprec) {
		?>
		<tr>
			<td width="35%"><?php echo $phprec[0]; ?>&nbsp;:</td>
			<td width="15%" align="center"><?php echo $phprec[2]; ?></td>
			<td align="center">
			<?php
			if ( get_php_setting($phprec[1]) == $phprec[2] ) {
			?>
					<font color="green"><b>
			<?php
			} else {
			?>
					<font color="red"><b>
			<?php
			}
			echo get_php_setting($phprec[1]);
			?>
			</b></font>
			<?php
		}
		?>
		</table>
			<div >
		   <?php if(isset( $error )) { 
		   echo '<b><font color="red">'._STG_ERROR.'</font></b>'; 
			} else {
			echo  '
				<center><br>
				<a class="menulink" href="index.php?stage=0&lid='.$lid.'" >'._STG_GO_GNU.'</a>&nbsp;'._STG_OR.'&nbsp;
				<a class="menulink" href="index.php?stage=2&lid='.$lid.'" class="menulink">'._STG_CONTINUE.'</a>
				</center>
			';
			}
		?>                                
			</div>                                
	<?php
	
	?>
