Example #1
0
function main_page(){
	if(isset($_SESSION["$key_cache"])){return $_SESSION["$key_cache"];}
	$clamav=clamav();
	$kaspersky=kaspersky();
	$fetchmail=fetchmail();
	$samba1=samba_domain();
	$system_links=icon_system();
	$samab=samba_links();
	$applis=applis();
	$K=statkaspersky();
	$sysinfos=sysinfos();
	$cert=certificate();
	$ar_perf=atica_perf();
	$apt=apt();
	$sock=new sockets();
	$backup=incremental_backup();
	$firstsettings=FirstWizard();
	$wizard_postmaster=postmaster();
	$Postfix_links=Postfix_links();
	$button_messaging=button_messaging();
	$users=new usersMenus();
	$icon_events=icon_events();
	$nic_settings=nic_settings();
	$icon_memory=icon_memory();
	$icon_view_queue=icon_view_queue();
	$icon_amavis=icon_amavisdnew();
	$icon_openvpn=icon_openvpn();
	$icon_adduser=icon_adduser();
	$scancomputers=scancomputers();
	$icon_harddrive=icon_harddrive();
	$postfix_events=postfix_events();
	$postfix_reports=postfix_reports();
	$icon_troubleshoot=icon_troubleshoot();
	$icon_update_clamav=icon_update_clamav();
	$dmidecode=dmidecode();
	$external_ports=icon_externalports();
	$icon_update_artica=icon_update_artica();
	$icon_update_spamassassin_blacklist=icon_update_spamassassin_blacklist();
	$sharenfs=sharenfs();
	$clientnfs=clientnfs();
	$wizard_kasperAPPSMTP=wizard_kaspersky_appliance_smtp();
	$wizard_backup=wizard_backup();
	
	if(!$users->POSTFIX_INSTALLED){$button_messaging=null;}
	
	if($users->KASPERSKY_SMTP_APPLIANCE){
		$clamav=null;
		$icon_amavis=null;
		$icon_update_spamassassin_blacklist=null;
		}
	
	
if($_COOKIE["configure_your-server-tab"]==null){$_COOKIE["configure_your-server-tab"]="section_system";}
$form_display["section_system"]="none";
$form_display["section_apps"]="none";
$form_display["section_security"]="none";
$form_display["section_wizard"]="none";
$form_display["section_messaging"]="none";
$form_display[$_COOKIE["configure_your-server-tab"]]="block";


	
	
	$form_system="
	<div id='section_system' style='display:{$form_display["section_system"]};width:100%;height:300px;overflow:auto'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$sysinfos$ar_perf$icon_events$icon_openvpn$scancomputers$sharenfs$clientnfs
			</td>
			<td valign='top'>
				$system_links$nic_settings$icon_memory$icon_harddrive$dmidecode$icon_adduser</td>
		</tr>
		</table>
	</div>
	";
	
	$form_apps="
		<div id='section_apps' style='display:{$form_display["section_apps"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$applis$apt
			</td>
			<td valign='top' width=1%>$icon_update_clamav$icon_update_spamassassin_blacklist$icon_update_artica</td>
		</tr>
		</table>
	</div>
	";
	
	$form_security="
		<div id='section_security' style='display:{$form_display["section_security"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$kaspersky$K$clamav$icon_troubleshoot
			</td>
			<td valign='top' width=1%>
			$cert$external_ports$backup
			</td>
		</tr>
		</table>
	</div>
	";	
	
	$form_wizard="
		<div id='section_wizard' style='display:{$form_display["section_wizard"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$wizard_kasperAPPSMTP$firstsettings$wizard_postmaster$icon_adduser
			</td>
			<td valign='top' width=1%>
			$wizard_backup$samab$samba1
			</td>
		</tr>
		</table>
	</div>
	";		
	
$section_messaging="<div id='section_messaging' style='display:{$form_display["section_messaging"]}'>
		<table style='width:100%'>
		<tr>
			<td valign='top' width=1%>
				$Postfix_links
			</td>
			<td valign='top' width=1%>
				$icon_view_queue$icon_amavis$postfix_events$postfix_reports
			</td>
		</tr>
		</table>
	</div>
	";		
	

$buttons=button_system().button_apps().button_security().button_wizard().$button_messaging;
$buttons=RoundedLightWhite($buttons);



$html="
<table style='width:100%;style='margin:-2px;'>
<tr>
<td valign='top' style='background-color:#005446;padding:3px;'>
	$buttons
</td>
<td valign='top' style='padding:3px;'><div style='width:510px'>".RoundedLightWhite($form_system.$form_apps.$form_security.$form_wizard.$section_messaging)."</div>
</td>
</tr>
</table>
";


	$_SESSION["$key_cache"]=$html;
	return $html;
}
Example #2
0
<?php

use_helper('Button');
$module = $sf_context->getModuleName();
$lang = $sf_user->getCulture();
?>

<nav id="nav_tools" class="nav_box">
    <div id="nav_tools_top"></div>
    <div id="nav_tools_content">
        <ul>
            <?php 
if ($sf_user->isConnected()) {
    ?>
                <li><?php 
    echo button_wizard(array('class' => 'action_create nav_edit'));
    ?>
</li>
            <?php 
}
?>
            <li><?php 
echo button_search($module);
?>
</li>
            <li><?php 
echo button_map($module);
?>
</li>
            <li><?php 
echo button_changes($module);
<?php

use_helper('Button');
?>
<div id="wizard_button" class="nav_box">
    <div id="wizard_button_top"></div>
    <div id="wizard_button_content">
        <div class="wizard_title">
            <div class="nav_box_image picto_add"></div>
            <div class="nav_box_title_text"><?php 
echo button_wizard($sf_user->isConnected() ? null : array('title' => __('Create new outing unconnected'), 'url' => '@login', 'query_string' => 'redirect=outings/wizard'));
?>
</div>
        </div>
    </div>
    <div id="wizard_button_down"></div>
</div>
Example #4
0
            echo ' <span class="meta">(' . implode(' - ', $outing_data) . ')</span>';
        }
        if (isset($item['nb_images'])) {
            $images = picto_tag('picto_images_light', format_number_choice('[1]1 image|(1,+Inf]%1% images', array('%1%' => $item['nb_images']), $item['nb_images'])) . ' ';
            echo $images;
        }
        ?>
            </li>
    <?php 
    }
    ?>
    </ul>
<?php 
}
?>
<div class="home_link_list">
<?php 
echo link_to($custom_footer_text, $custom_footer_link) . ' - ' . link_to(__('recent conditions'), $conditions_link) . ' - ' . link_to(__('Prepare outing'), getMetaArticleRoute('prepare_outings'));
if ($sf_user->isConnected() && !c2cTools::mobileVersion()) {
    echo ' - ' . button_wizard();
}
echo ' - ' . customize_link_to();
?>
</div>
</div>
<?php 
$cookie_position = array_search('last_outings', sfConfig::get('app_personalization_cookie_fold_positions'));
echo javascript_tag('C2C.setSectionStatus(\'last_outings\', ' . $cookie_position . ', ' . (!$default_open ? 'false' : 'true') . ");");
?>
</div>
<?php

use_helper('Button');
?>
<div id="wizard_button">
    <div class="home_title_left picto_add"></div>
    <div class="home_title_text"><?php 
echo button_wizard($sf_user->isConnected() ? null : array('title' => __('Create new outing unconnected'), 'url' => '@login'));
?>
</div>
</div>