| 
									
										
										
										
											2003-03-23 18:42:40 +00:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2003-03-14 21:59:04 +00:00
										 |  |  | /* | 
					
						
							|  |  |  | $Id$ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) | 
					
						
							|  |  |  |   Copyright (C) 2003  Roland Gruber | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |   it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  |   the Free Software Foundation; either version 2 of the License, or | 
					
						
							|  |  |  |   (at your option) any later version. | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  |   This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |   but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |   GNU General Public License for more details. | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  |   You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  |   along with this program; if not, write to the Free Software | 
					
						
							|  |  |  |   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-06-01 16:35:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-03-14 21:59:04 +00:00
										 |  |  | */ | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  | include_once ("../lib/config.inc"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // start session
 | 
					
						
							|  |  |  | session_save_path("../sess"); | 
					
						
							|  |  |  | @session_start(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | setlanguage(); | 
					
						
							| 
									
										
										
										
											2003-03-14 21:59:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-29 11:52:26 +00:00
										 |  |  | echo $_SESSION['header']; | 
					
						
							| 
									
										
										
										
											2003-06-01 16:35:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-03-14 21:59:04 +00:00
										 |  |  | ?>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <html> | 
					
						
							| 
									
										
										
										
											2003-04-09 17:10:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-06-01 16:35:02 +00:00
										 |  |  | <head> | 
					
						
							|  |  |  | 	<title></title> | 
					
						
							|  |  |  | 	<link rel="stylesheet" type="text/css" href="../style/layout.css"> | 
					
						
							| 
									
										
										
										
											2003-04-09 17:10:00 +00:00
										 |  |  | </head> | 
					
						
							| 
									
										
										
										
											2003-06-01 16:35:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-04-09 17:10:00 +00:00
										 |  |  | <body> | 
					
						
							|  |  |  | <table border=0 width="100%"> | 
					
						
							| 
									
										
										
										
											2003-06-01 13:59:13 +00:00
										 |  |  | 	<tr> | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  |     	<td width="100" align="left"><a href="./profedit/profilemain.php" target="mainpart"><?php echo _("Profile Editor"); ?></a></td>
 | 
					
						
							|  |  |  | 		<? | 
					
						
							|  |  |  | 			// Samba 3 has more list views
 | 
					
						
							| 
									
										
										
										
											2003-08-03 11:46:35 +00:00
										 |  |  | 			if ($_SESSION['config']->get_samba3() == "yes") echo "<td rowspan=3 colspan=4 align=\"center\">\n"; | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  | 			else echo "<td rowspan=3 colspan=3 align=\"center\">\n"; | 
					
						
							|  |  |  | 		?>
 | 
					
						
							| 
									
										
										
										
											2003-06-01 16:35:02 +00:00
										 |  |  | 			<a href="http://lam.sf.net" target="new_window"><img src="../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a> | 
					
						
							| 
									
										
										
										
											2003-06-01 13:59:13 +00:00
										 |  |  | 		</td> | 
					
						
							| 
									
										
										
										
											2003-06-24 15:50:38 +00:00
										 |  |  | 	<td width="100" align="right" height=20><a href="./logout.php" target="_top"><big><b><?php echo _("Logout") ?></b></big></a></td>
 | 
					
						
							| 
									
										
										
										
											2003-06-01 13:59:13 +00:00
										 |  |  | 	</tr> | 
					
						
							|  |  |  | 	<tr> | 
					
						
							| 
									
										
										
										
											2003-08-02 09:05:47 +00:00
										 |  |  |     	<td align="left"><a href="ou_edit.php" target="mainpart"><?php echo _("OU-Editor") ?></a></td>
 | 
					
						
							| 
									
										
										
										
											2003-06-18 18:08:56 +00:00
										 |  |  | 		<td rowspan=2></td> | 
					
						
							| 
									
										
										
										
											2003-06-01 13:59:13 +00:00
										 |  |  | 	</tr> | 
					
						
							|  |  |  | 	<tr> | 
					
						
							| 
									
										
										
										
											2003-06-24 15:50:38 +00:00
										 |  |  |     	<td align="left"><a href="masscreate.php" target="mainpart"><?php echo _("File Upload") ?></a></td>
 | 
					
						
							| 
									
										
										
										
											2003-06-18 18:08:56 +00:00
										 |  |  | 	</tr> | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  | 	<tr> | 
					
						
							|  |  |  | 		<? | 
					
						
							|  |  |  | 			// Samba 3 has more list views
 | 
					
						
							| 
									
										
										
										
											2003-08-03 11:46:35 +00:00
										 |  |  | 			if ($_SESSION['config']->get_samba3() == "yes") echo "<td colspan=6> </td>\n"; | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  | 			else echo "<td colspan=5> </td>\n"; | 
					
						
							|  |  |  | 		?>
 | 
					
						
							|  |  |  | 	</tr> | 
					
						
							| 
									
										
										
										
											2003-06-18 18:08:56 +00:00
										 |  |  | 	<tr> | 
					
						
							|  |  |  | 		<td></td> | 
					
						
							| 
									
										
										
										
											2003-07-26 11:11:25 +00:00
										 |  |  | 		<? | 
					
						
							|  |  |  | 			// Samba 3 has more list views
 | 
					
						
							|  |  |  | 			if ($_SESSION['config']->get_samba3() == "yes") { | 
					
						
							|  |  |  | 				echo '<td width="120" align="center"><a href="./lists/listdomains.php" target="mainpart">' . _("Domains") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 				echo '<td width="120" align="center"><a href="./lists/listusers.php" target="mainpart">' . _("Users") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 				echo '<td width="120" align="center"><a href="./lists/listgroups.php" target="mainpart">' . _("Groups") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 				echo '<td width="120" align="center"><a href="./lists/listhosts.php" target="mainpart">' . _("Hosts") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			else { | 
					
						
							|  |  |  | 				echo '<td width="200" align="center"><a href="./lists/listusers.php" target="mainpart">' . _("Users") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 				echo '<td width="200" align="center"><a href="./lists/listgroups.php" target="mainpart">' . _("Groups") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 				echo '<td width="200" align="center"><a href="./lists/listhosts.php" target="mainpart">' . _("Hosts") . '</a></td>' . "\n"; | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		?>
 | 
					
						
							| 
									
										
										
										
											2003-06-18 18:08:56 +00:00
										 |  |  | 		<td></td> | 
					
						
							| 
									
										
										
										
											2003-06-01 13:59:13 +00:00
										 |  |  | 	</tr> | 
					
						
							| 
									
										
										
										
											2003-04-09 17:10:00 +00:00
										 |  |  | </table> | 
					
						
							|  |  |  | </body> | 
					
						
							| 
									
										
										
										
											2003-06-04 18:47:40 +00:00
										 |  |  | </html> |