if ($access{'global'}) {
        if ($access{'global'} == 1) {
                if ($out_titles eq 1 ) {  
	             print "<td align=center>\n";
	             print "<h3>$text{'index_globalldap'}</h3>\n";
                }
		$psldap_icon = { "icon" => "images/psldap.gif",
			     "name" => $text{'ldapps_title'},
			     "link" => "/proc/index_search.cgi?user=&mode=1&match=slapd&cpu=&fs=%2F&files=" };
		$ldapreplica_icon = { "icon" => "images/replica.gif",
			     "name" => $text{'replica_title'},
			     "link" => "ldap_replica.cgi" };
		$ldapbrw_icon = { "icon" => "images/ldapbrowser.gif",
			     "name" => $text{'ldapbrw_title'},
			     "link" => "/ldap_browser/index.cgi?level=ou=usuarios,o=gestion.rima.telefonica.es,dc=ttaldap,dc=gestion,dc=rima,dc=telefonica,dc=es" };
                if ( $config{'is_ldapcache'} eq "true" ) {
		   $ldapbrw2_icon = { "icon" => "images/ldapbrowser.gif",
		        "name" => $text{'ldapcachebrw_title'},
		     	"link" => "/ldap_browser2/index.cgi?level=o=gestion.rima.telefonica.es" };
                   if ($interface eq "tabs" ) {
	             &outconfig_icons("global", "tta_global.cgi?",
	                 $psldap_icon, $ldapbrw_icon, $ldapreplica_icon, $ldapbrw2_icon );
                   } else {
	             &config_icons("global", "tta_global.cgi?",
	                 $psldap_icon, $ldapbrw_icon, $ldapreplica_icon, $ldapbrw2_icon );
                   }
                } else {
                   if ($interface eq "tabs" ) {
	             &outconfig_icons("global", "tta_global.cgi?",
	                 $psldap_icon, $ldapbrw_icon, $ldapreplica_icon );
                   } else {
	             &config_icons("global", "tta_global.cgi?",
	                 $psldap_icon, $ldapbrw_icon, $ldapreplica_icon );
                   }
                }
                if ($out_titles eq 1 ) {  print "</td>\n"; };
	}
#	else {
#              if ($interface eq "tabs" ) {
#                   @olinks=("tta-info.cgi");
#                   @oicons=($text{'ttainfo_title'});
#                   @otitles=("images/ttastatus.gif");
#	  	   &outicons_table();
#              } else {
#	  	   &icons_table([ "tta-info.cgi" ],
#			     [ $text{'ttainfo_title'} ],
#			     [ "images/ttastatus.gif" ]);
#              }
#        }
}
if ($access{'global'} == 1) {
                if ($out_titles eq 1 ) {  
	             print "<td align=center>\n";
	             print "<h3>$text{'index_backupldap'}</h3>\n";
                }
		$ldapbk_icon = { "icon" => "images/ldap_backup.gif",
			     "name" => $text{'ldap_backup'},
			     "link" => "ldap_backup.cgi" };
		$ldapldif_icon = { "icon" => "images/ldap_ldif.gif",
			     "name" => $text{'ldap_ldif'},
			     "link" => "ldap_ldif.cgi" };
                if ($interface eq "tabs" ) {
		    &outconfig_icons("backup", "backup.cgi?", $ldapbk_icon,$ldapldif_icon );
                } else {           
		    &config_icons("backup", "backup.cgi?", $ldapbk_icon,$ldapldif_icon );
                }
                if ( $config{'is_ldapcache'} eq "true" ) {
                     if ($out_titles eq 1 ) {  
                          print "</td>\n";
	                  print "<td align=center>\n";
	                  print "<h3>$text{'index_backupldapcache'}</h3>\n";
                     }
		     $ldapbk_icon = { "icon" => "images/ldapcache_backup.gif",
			          "name" => $text{'ldapcache_backup'},
			          "link" => "ldapcache_backup.cgi" };
		     $ldapldif_icon = { "icon" => "images/ldapcache_ldif.gif",
			          "name" => $text{'ldapcache_ldif'},
			          "link" => "ldapcache_ldif.cgi" };
                     if ($interface eq "tabs" ) {
		         &outconfig_icons("backupcache", "backupcache.cgi?", $ldapbk_icon,$ldapldif_icon );
                     } else {
		         &config_icons("backupcache", "backupcache.cgi?", $ldapbk_icon,$ldapldif_icon );
                     }
               }
 }
