X-Git-Url: http://git.dj3c1t.com/index.cgi?a=blobdiff_plain;f=mw%2Fapp%2Fout%2Fdefault%2Ffunctions.php;fp=mw%2Fapp%2Fout%2Fdefault%2Ffunctions.php;h=af0564e68db364769ef032b606b1f0c358f5d8af;hb=37006f4b48170e3d2ee7ac4d1e7dd47df57734e9;hp=6d94ffac6e81a0568e4f02f5a375377c41a2423c;hpb=eefcb5168f6353f56399fd6fa594e2b221d43e5d;p=mtweb diff --git a/mw/app/out/default/functions.php b/mw/app/out/default/functions.php index 6d94ffa..af0564e 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