Subversion Repositories ALCASAR

Rev

Rev 2825 | Rev 2858 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2825 Rev 2852
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: menu.php 2825 2020-05-31 17:01:33Z rexy $
2
# $Id: menu.php 2852 2020-07-18 10:08:26Z rexy $
3
// written by Rexy & Tom HOUDAYER
3
// written by Rexy & Tom HOUDAYER
4
 
4
 
5
/****************************************************************
5
/****************************************************************
6
*			GLOBAL FILE PATHS			*
6
*			GLOBAL FILE PATHS			*
7
*****************************************************************/
7
*****************************************************************/
Line 86... Line 86...
86
	$l_stat_global_network	= "Trafic global";
86
	$l_stat_global_network	= "Trafic global";
87
	$l_stat_detail_network	= "Trafic détaillé";
87
	$l_stat_detail_network	= "Trafic détaillé";
88
	$l_security		= "Sécurité";
88
	$l_security		= "Sécurité";
89
	$l_menu			= "Menu";
89
	$l_menu			= "Menu";
90
	$l_gammu		= "Auto enregistrement (SMS)";
90
	$l_gammu		= "Auto enregistrement (SMS)";
91
	$l_archive		= "Archivage";
-
 
92
	$l_log			= "Générer les journaux";
-
 
93
	$l_backup_archive	= "Archives";
91
	$l_backup_archive	= "Archives";
94
	$l_activity_report	= "Rapport d'activité";
-
 
95
	$l_backup_log		= "Journaux d'imputabilité";
92
	$l_accountability_logs		= "Journaux d'imputabilité";
96
	$l_since		= "depuis le :";
93
	$l_since		= "depuis le :";
-
 
94
	$l_doc_language = "fr";
-
 
95
} else if ($Language === 'es') {	// Spanish
-
 
96
	$l_home			= "INICIO";
-
 
97
	$l_system		= "SISTEMA";
-
 
98
	$l_auth			= "GESTIONAR";
-
 
99
	$l_filter		= "FILTRADO";
-
 
100
	$l_statistics		= "ESTADISTICAS";
-
 
101
	$l_backup		= "BACKUPS";
-
 
102
	$l_activity		= "Actividad";
-
 
103
	$l_blacklist		= "Lista Negra";
-
 
104
	$l_whitelist		= "Lista Blanca";
-
 
105
	$l_network		= "Red";
-
 
106
	$l_ldap			= "LDAP/A.D.";
-
 
107
	$l_access_nb		= "Registros de accesos ACC";
-
 
108
	$l_create_user		= "Crear usuarios";
-
 
109
	$l_edit_user		= "Administrar usuarios";
-
 
110
	$l_create_group		= "Crear un grupo";
-
 
111
	$l_edit_group		= "Administrar grupos";
-
 
112
	$l_import_empty		= "Importar / Purgar";
-
 
113
	$l_protocols		= "Protocolos";
-
 
114
	$l_stat_user_day	= "Por conexión";
-
 
115
	$l_stat_con		= "Registros globales";
-
 
116
	$l_stat_daily		= "Uso diario";
-
 
117
	$l_stat_global_network	= "Tráfico global";
-
 
118
	$l_stat_detail_network	= "Tráfico detallado";
-
 
119
	$l_security		= "Seguridad";
-
 
120
	$l_menu			= "Principal";
-
 
121
	$l_gammu		= "Auto-registro (SMS)";
-
 
122
	$l_backup_archive	= "Archivos";
-
 
123
	$l_accountability_logs		= "registros de responsabilidad";
-
 
124
	$l_since		= "desde: ";
-
 
125
	$l_doc_language = "en";
97
} else {			// English
126
} else {			// English
98
	$Language		= 'en';
127
	$Language		= 'en';
99
	$l_home			= "HOME";
128
	$l_home			= "HOME";
100
	$l_system		= "SYSTEM";
129
	$l_system		= "SYSTEM";
101
	$l_auth			= "AUTHENTICATION";
130
	$l_auth			= "AUTHENTICATION";
Line 121... Line 150...
121
	$l_stat_detail_network	= "Detailed traffic";
150
	$l_stat_detail_network	= "Detailed traffic";
122
	$l_security		= "Security";
151
	$l_security		= "Security";
123
	$l_menu			= "Main";
152
	$l_menu			= "Main";
124
	$l_gammu		= "Auto registration (SMS)";
153
	$l_gammu		= "Auto registration (SMS)";
125
	$l_backup_archive	= "Archives";
154
	$l_backup_archive	= "Archives";
126
	$l_backup_log		= "Log generation";
-
 
127
	$l_activity_report	= "Activity report";
155
	$l_accountability_logs		= "accountability logs";
128
	$l_since		= "since:";
156
	$l_since		= "since:";
-
 
157
	$l_doc_language = "en";
129
}
158
}
130
 
159
 
131
// Get access log count
160
// Get access log count
132
$tab = file(ACC_ACCESS_LOG);
161
$tab = file(ACC_ACCESS_LOG);
133
$accAccessCounter = count($tab);
162
$accAccessCounter = count($tab);
Line 216... Line 245...
216
					<?php if ($right === 0 || $right === 1):	// admin, backup ?>
245
					<?php if ($right === 0 || $right === 1):	// admin, backup ?>
217
						<li>
246
						<li>
218
							<div class="caret"></div><a href="#"><?= $l_backup ?></a>
247
							<div class="caret"></div><a href="#"><?= $l_backup ?></a>
219
							<ul>
248
							<ul>
220
								<li><div class="caret"></div><a href="backup/sauvegarde.php" target="REXY2"><?= $l_backup_archive ?></a></li>
249
								<li><div class="caret"></div><a href="backup/sauvegarde.php" target="REXY2"><?= $l_backup_archive ?></a></li>
221
								<li><div class="caret"></div><a href="backup/log_generation.php" target="REXY2"><?= $l_backup_log ?></a></li>
250
								<li><div class="caret"></div><a href="backup/log_generation.php" target="REXY2"><?= $l_accountability_logs ?></a></li>
222
							</ul>
251
							</ul>
223
						</li>
252
						</li>
224
					<?php endif; ?>
253
					<?php endif; ?>
225
				</ul>
254
				</ul>
226
			</div>
255
			</div>
Line 232... Line 261...
232
			Documents
261
			Documents
233
		</div>
262
		</div>
234
		<div class="panel-row">
263
		<div class="panel-row">
235
			<div class="menu">
264
			<div class="menu">
236
				<ul>
265
				<ul>
237
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-presentation-$Language.pdf" ?>" target="_blank">Presentation</a></li>
266
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-presentation-$l_doc_language.pdf" ?>" target="_blank">Presentation</a></li>
238
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-installation-$Language.pdf" ?>" target="_blank">Installation</a></li>
267
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-installation-$l_doc_language.pdf" ?>" target="_blank">Installation</a></li>
239
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-exploitation-$Language.pdf" ?>" target="_blank">Exploitation</a></li>
268
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-exploitation-$l_doc_language.pdf" ?>" target="_blank">Exploitation</a></li>
240
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-technique.pdf" ?>" target="_blank">Technique</a></li>
269
					<li><div class="caret"></div><a href="<?= "alcasar-$installed_version-technique.pdf" ?>" target="_blank">Technique</a></li>
241
				</ul>
270
				</ul>
242
			</div>
271
			</div>
243
		</div>
272
		</div>
244
	</div>
273
	</div>