Example #1
0
" class="checkbox-perso switched">
								<input type="checkbox" class="test-check" id="<?php 
    echo $gestion_module_page->getUrl()[$i];
    ?>
" <?php 
    if (\core\modules\GestionModule::getModuleActiver($gestion_module_page->getNom()[$i]) === true) {
        ?>
checked<?php 
    }
    ?>
>
							</label>
						</td>
						<td>
							<?php 
    if (\core\modules\GestionModule::getModuleInstaller($gestion_module_page->getNom()[$i]) == 1) {
        ?>
								<a class="supprimer open-popup" popup="popup-delete-module" href="<?php 
        echo ADMWEBROOT;
        ?>
controller/core/modules/installation/supprimer?id_module=<?php 
        echo $gestion_module_page->getIdModule()[$i];
        ?>
">Supprimer</a>
							<?php 
    }
    ?>
						</td>
					</tr>
				<?php 
}
<?php

\core\modules\GestionModule::setActiverDesactiverModule($_GET['activer'], $_GET['url_module']);
echo "success";
Example #3
0
 /**
  * fonction qui permet de tester qu'une route existe bien
  * appellee dans redirectError.class.php
  * @param $url
  */
 public function getRouteModuleExist($url)
 {
     $dbc = \core\App::getDb();
     $query = $dbc->select()->from("module")->get();
     if (is_array($query) && count($query) > 0) {
         foreach ($query as $obj) {
             $test_module = ChaineCaractere::FindInString($url, $obj->url);
             $test_module1 = ChaineCaractere::FindInString($url, str_replace("/", "", $obj->url));
             $module_activer = \core\modules\GestionModule::getModuleActiver($obj->nom_module);
             if (($test_module === true || $test_module1 === true) && $module_activer === true) {
                 return true;
             }
         }
     }
 }
Example #4
0
    ?>
						<li><i class="fa fa-link"></i><a href="<?php 
    echo ADMWEBROOT;
    ?>
gestion-navigation/index">Gestion de la navigation</a>
						</li>
					<?php 
}
?>

					<!-- pour afficher le menu des modules -->
					<?php 
for ($i = 0; $i < count($gestion_module->getUrl()); $i++) {
    ?>
						<?php 
    if (\core\modules\GestionModule::getModuleActiver($gestion_module->getNom()[$i]) == true && $droit_acces->getDroitAccesPage($gestion_module->getUrl()[$i] . "index") == true) {
        ?>
							<li>
								<i class="fa <?php 
        echo $gestion_module->getIcone()[$i];
        ?>
"></i>
								<a href="<?php 
        echo MODULEADMWEBROOT . $gestion_module->getUrl()[$i];
        ?>
index">Gestion <?php 
        echo $gestion_module->getNom()[$i];
        ?>
 (V<?php 
        echo $gestion_module->getVersion()[$i];
        ?>