X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fout%2Fdefault%2Ffunctions.php;h=20ba7a991dd75fd592329a1bc482ba9a743fd0ba;hb=e1b64e4088232b9d7b4acb2dc24279bb38fcafba;hp=6d94ffac6e81a0568e4f02f5a375377c41a2423c;hpb=4947a4d83a2e96ee33135abdca8685b4c07e165c;p=mtweb diff --git a/mw/app/out/default/functions.php b/mw/app/out/default/functions.php index 6d94ffa..20ba7a9 100644 --- a/mw/app/out/default/functions.php +++ b/mw/app/out/default/functions.php @@ -1,5 +1,11 @@ add_js_file($this->out_url("js/jquery-1.8.3.min.js")); + if($this->etat("mod") == "users" && $this->etat("controller") == "identification"){ + $this->add_js_file($this->out_url("js/md5.js")); + $this->add_js_file($this->out_url("js/login.js")); + } + if(!function_exists("mw_navig")) : function mw_navig($current, $total, $max, $base_url, $start_param, $legende = null){ $navig = ""; @@ -53,4 +59,27 @@ } endif; + if(!function_exists("esc_attr")) : + function esc_attr($content){ + return htmlspecialchars($content, ENT_COMPAT, "UTF-8"); + } + endif; + + if(!function_exists("get_menu_ul")) : + function get_menu_ul($menu, $indent = ""){ + $html = ""; + if($menu["subs"]){ + $html .= $indent."
\n"; + } + return $html; + } + endif; + ?> \ No newline at end of file