* @author Loïc Vinet * */ /** * Class admin : contains all the administration functions and the administration menu management * * @author Claire Figueras * @license GPL * @package Maarch LetterBox 2.3 * @version 1.1 */ class admin { /** * Allow to modify admin link * * @access private * @param string [$what] users, types ou hist * @return string url * */ public function adminlink($what) { // Allow to modify admin link $link = ""; if($what == "users") { $link = "index.php?page=users"; } elseif($what == "types") { $link = "index.php?page=types"; } elseif($what == "hist") { $link = "index.php?page=hist"; } elseif($what == "groups") { $link = "index.php?page=groups"; } elseif($what == "admin") { $link = "index.php?page=admin"; } elseif($what == "basket") { $link = "index.php?page=basket"; } elseif($what == "liste") { $link = "index.php?page=liste"; } elseif($what == "models") { $link = "index.php?page=models"; } elseif($what == "domain") { $link = "index.php?page=domains"; } elseif($what == "emet") { $link = "index.php?page=emet"; } elseif($what == "sender") { $link = "index.php?page=sender"; } elseif($what == "coll") { $link = "index.php?page=coll"; } elseif($what == "ldap") { $link = "index.php?page=ldap_param"; } echo $link; } /** * Explain all the administration functions */ public function admin_menu() { // Explain all the administration functions ?>