<?php
if( defined( 'CUSTOMER_PAGE' ) && isset( $config['users_plugin_active'] ) && $config['users_plugin_active'] == true && isset( $config['login_page'] ) && is_numeric( $config['login_page'] ) && isset( $oPage->aPages[$config['login_page']]['sLinkName'] ) && isset( $config['logout_page'] ) && is_numeric( $config['logout_page'] ) && isset( $oPage->aPages[$config['logout_page']]['sLinkName'] ) && isset( $config['profile_page'] ) && is_numeric( $config['profile_page'] ) && isset( $oPage->aPages[$config['profile_page']]['sLinkName'] ) ){
	$aMenuLoginInfo = Array( 'sLinkLogin' => $oPage->aPages[$config['login_page']]['sLinkName'], 'sLinkLogout' => $oPage->aPages[$config['logout_page']]['sLinkName'], 'sLinkProfile' => $oPage->aPages[$config['profile_page']]['sLinkName'] );
	if( isset( $config['register_page'] ) && is_numeric( $config['register_page'] ) && isset( $oPage->aPages[$config['register_page']]['sLinkName'] ) ){
		$aMenuLoginInfo['sLinkRegister'] = $oPage->aPages[$config['register_page']]['sLinkName'];
	}
	if( isset( $config['user_orders_page'] ) && is_numeric( $config['user_orders_page'] ) && isset( $oPage->aPages[$config['user_orders_page']]['sLinkName'] ) ){
		$aMenuLoginInfo['sLinkOrders'] = $oPage->aPages[$config['user_orders_page']]['sLinkName'];
	}
	if( isset( $config['account_page'] ) && is_numeric( $config['account_page'] ) && isset( $oPage->aPages[$config['account_page']]['sLinkName'] ) ){
		$aMenuLoginInfo['sLinkAccount'] = $oPage->aPages[$config['account_page']]['sLinkName'];
	}
	if( isset( $config['remind_password_page'] ) && is_numeric( $config['remind_password_page'] ) && isset( $oPage->aPages[$config['remind_password_page']]['sLinkName'] ) ){
		$aMenuLoginInfo['sLinkRemindPassword'] = $oPage->aPages[$config['remind_password_page']]['sLinkName'];
	}
	if( isset( $config['user_ordered_products_page'] ) && is_numeric( $config['user_ordered_products_page'] ) && isset( $oPage->aPages[$config['user_ordered_products_page']]['sLinkName'] ) ){
		$aMenuLoginInfo['sLinkOrderProducts'] = $oPage->aPages[$config['user_ordered_products_page']]['sLinkName'];
	}
	if( isset( $config['rules_page'] ) && isset( $oPage->aPages[$config['rules_page']] ) ){
		$aMenuLoginInfo['sRulesLink'] = $oPage->aPages[$config['rules_page']]['sLinkName'];
	}
	$aMenuLoginInfo['bLogged'] = ( isset( $_SESSION['iUserClient'] ) && is_numeric( $_SESSION['iUserClient'] ) );
	$oTpl->assign( 'aMenuLoginInfo', $aMenuLoginInfo );
}
?>