Editeur Editez un fichier

Edition d'un fichier

Editez le fichier applications/nuasix/settings.php
                    <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
						<!--begin::Container-->
						<div class="container-xxl" id="kt_content_container">
							<!--begin::Sitemap-->
							<div class="card">
								<!--begin::Body-->
								<div class="card-body p-5 px-lg-19 py-lg-16">
									<!--begin::Heading-->
									<div class="mb-15">
										<!--begin::Title-->
										<h1 class="fs-2x text-dark mb-6"><?= __("Réglages")?></h1>
										<!--end::Title-->
										<!--begin::Text-->
										<div class="fs-5 text-muted fw-bold"><?= __("Configurez et personnalisez votre environnement Nuasix")?></div>
										<!--end::Text-->
									</div>
									<!--end::Heading-->
									<!--begin::Row-->
									<div class="row g-10 mb-15">
                                        <?php 
                                        if( $user -> hasPrivilege("nx_read_user") || $user -> hasPrivilege("nx_read_role") || $user -> hasPrivilege("nx_read_permission") ) {
                                        ?>
										<!--begin::Col-->
                                        <div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Utilisateurs")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
												<?= ($user -> hasPrivilege("nx_read_user") ? '<a href="index.php?page_slug=users-insights" class="link-primary mb-6">'.__("Utilisateurs").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_role") ? '<a href="index.php?page_slug=roles" class="link-primary mb-6">'.__("Rôles").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_permission") ? '<a href="index.php?page_slug=permissions" class="link-primary mb-6">'.__("Permissions").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                            
                                        if( $user -> hasPrivilege("api_read_command") || $user -> hasPrivilege("api_read_form") || $user -> hasPrivilege("api_read_authentification") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("API")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("api_read_command") ? '<a href="index.php?page_slug=api_functions" class="link-primary mb-6">'.__("Fonctions").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("api_read_form") ? '<a href="index.php?page_slug=api_forms" class="link-primary mb-6">'.__("Formulaires").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("api_read_authentification") ? '<a href="index.php?page_slug=api_authentifications" class="link-primary mb-6">'.__("Authentifications").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                            
                                        if( $user -> hasPrivilege("nx_read_setting") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Profils")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_read_setting") ? '<a href="index.php?page_slug=languages" class="link-primary mb-6">'.__("Langues").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_setting") ? '<a href="index.php?page_slug=profile-searchs" class="link-primary mb-6">'.__("Profil de recherche").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_setting") ? '<a href="index.php?page_slug=profile-settings" class="link-primary mb-6">'.__("Profil de réglage").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        ?>
									</div>
									<!--end::Row-->
									<!--begin::Row-->
									<div class="row g-10 mb-18">
                                        <?php
                                        if( $user -> hasPrivilege("nx_read_entite") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Entités")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_read_entite") ? '<a href="index.php?page_slug=entites" class="link-primary mb-6">'.__("Gestion entités").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        
                                        if( $user -> hasPrivilege("nx_read_page") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Ressources")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_read_page") ? '<a href="index.php?page_slug=pages" class="link-primary mb-6">'.__("Pages").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_page") ? '<a href="index.php?page_slug=plugins" class="link-primary mb-6">'.__("Plugins").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_page") ? '<a href="index.php?page_slug=resources" class="link-primary mb-6">'.__("Ressources").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_page") ? '<a href="index.php?page_slug=features" class="link-primary mb-6">'.__("Fonctionnalités").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_page") ? '<a href="index.php?page_slug=icons" class="link-primary mb-6">'.__("Icônes").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        
                                        if( $user -> hasPrivilege("nx_edit_own_user") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Compte")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_edit_own_user") ? '<a href="index.php?page_slug=account" class="link-primary mb-6">'.__("Modifier mon compte").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        ?>
									</div>
									<!--end::Row-->
                                    <!--begin::Row-->
									<div class="row g-10 mb-18">
                                        <?php 
                                        if( $user -> hasPrivilege("nx_read_application") || $user -> hasPrivilege("api_read_command") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Applications")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_read_application") ? '<a href="index.php?page_slug=marketplace" class="link-primary mb-6">'.__("Marketplace").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_application") ? '<a href="index.php?page_slug=application-single" class="link-primary mb-6">'.__("Paramètres").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("api_read_command") ? '<a href="index.php?page_slug=application-functions" class="link-primary mb-6">'.__("Fonctions").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_backup") ? '<a href="index.php?page_slug=backups" class="link-primary mb-6">'.__("Sauvegardes").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        
                                        if( $user -> superAdmin() ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Plugins")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <a href="plugins/dbManager/api_db_manager.php" class="link-primary mb-6"><?= __("API - Manager")?></a>
                                                <a href="plugins/nxManager/nx_manager.php" class="link-primary mb-6"><?= __("NX - Manager")?></a>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        
                                        if( $user -> hasPrivilege("nx_read_template") ) {
                                        ?>
										<!--begin::Col-->
										<div class="col-sm-4">
											<!--begin::Title-->
											<h3 class="fw-bolder text-dark mb-7"><?= __("Modèles")?></h3>
											<!--end::Title-->
											<!--begin::Links-->
											<div class="d-flex flex-column fw-bold fs-4">
                                                <?= ($user -> hasPrivilege("nx_read_template") ? '<a href="index.php?page_slug=reports" class="link-primary mb-6">'.__("Modèles de rapport").'</a>' : '') ?>
                                                <?= ($user -> hasPrivilege("nx_read_template") ? '<a href="index.php?page_slug=templates" class="link-primary mb-6">'.__("Modèles de mail").'</a>' : '') ?>
											</div>
											<!--end::Links-->
										</div>
										<!--end::Col-->
                                        <?php 
                                        }
                                        ?>
									</div>
									<!--end::Row-->
								</div>
								<!--end::Body-->
							</div>
							<!--end::Sitemap-->
						</div>
						<!--end::Container-->
					</div>

Conseils et liens

Liens vers des ressources utiles pour l'édition de fichier