Changeset 782:01efbf050a8a for inc/admin/lib.dc.page.php
- Timestamp:
- 12/06/11 11:43:14 (14 years ago)
- Branch:
- formfilters
- Parents:
- 781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r680 r782 515 515 } 516 516 517 public static function jqueryUI() 518 { 519 return 520 '<link rel="stylesheet" type="text/css" href="style/jquery-ui-1.8.16.custom.css" />'."\n". 521 self::jsLoad('js/jquery/jquery-ui-1.8.16.custom.min.js'); 522 } 523 517 524 public static function jsColorPicker() 518 525 { -
inc/admin/lib.dc.page.php
r756 r782 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 0Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 16 16 class dcPage 17 17 { 18 private static $loaded_js=array(); 19 18 20 # Auth check 19 21 public static function check($permissions) … … 73 75 __('Blogs:').' '. 74 76 $core->formNonce(). 75 form::combo('switchblog',$blogs,$core->blog->id , '',1).77 form::combo('switchblog',$blogs,$core->blog->id). 76 78 '</label>'. 77 79 '<noscript><div><input type="submit" value="'.__('ok').'" /></div></noscript>'; … … 96 98 97 99 self::jsLoadIE7(). 98 ' <style type="text/css">'."\n". 99 ' @import "style/default.css";'."\n". 100 " </style>\n"; 100 ' <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" />'."\n"; 101 101 if (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl') { 102 echo ' <style type="text/css">'."\n".' @import "style/default-rtl.css";'."\n"." </style>\n"; 102 echo 103 ' <link rel="stylesheet" href="style/default-rtl.css" type="text/css" media="screen" />'."\n"; 104 } 105 106 $core->auth->user_prefs->addWorkspace('interface'); 107 $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 108 if (!$user_ui_hide_std_favicon) { 109 echo '<link rel="icon" type="image/png" href="images/favicon.png" />'; 103 110 } 104 111 … … 116 123 '">'."\n". 117 124 118 '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 119 120 121 echo 122 '<div id="info-box">'. 123 '<form action="index.php" method="post"><div>'. 125 '<div id="header">'. 126 '<ul id="prelude"><li><a href="#content">Aller au contenu</a></li><li><a href="#main-menu">Aller au menu</a></li></ul>'."\n". 127 '<div id="top"><h1><a href="index.php">'.DC_VENDOR_NAME.'</a></h1></div>'."\n"; 128 129 echo 130 '<div id="info-boxes">'. 131 '<div id="info-box1">'. 132 '<form action="index.php" method="post">'. 124 133 $blog_box. 125 134 '<a href="'.$core->blog->url.'" onclick="window.open(this.href);return false;" title="'.__('Go to site').' ('.__('new window').')'.'">'.__('Go to site').' <img src="images/outgoing.png" alt="" /></a>'. 126 '</ div></form>'.135 '</form>'. 127 136 '</div>'. 128 '<div id="info-box2"><div>'. 129 ' '.__('User:').' <strong>'.$core->auth->userID().'</strong>'. 130 ' - <a href="index.php?logout=1" class="logout">'.__('Logout').' <img src="images/logout.png" alt="" /></a>'. 137 '<div id="info-box2">'. 138 '<a'.(preg_match('/index.php$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="index.php">'.__('My dashboard').'</a>'. 139 '<span> | </span><a'.(preg_match('/preferences.php(\?.*)?$/',$_SERVER['REQUEST_URI']) ? ' class="active"' : '').' href="preferences.php">'.__('My preferences').'</a>'. 140 '<span> | </span><a href="index.php?logout=1" class="logout">'.sprintf(__('Logout %s'),$core->auth->userID()).' <img src="images/logout.png" alt="" /></a>'. 141 '</div>'. 131 142 '</div>'. 132 143 '</div>'; … … 172 183 '<div id="footer"><p>'. 173 184 sprintf(__('Thank you for using %s.'),'<a href="http://dotclear.org/">Dotclear '.DC_VERSION.'</a>'). 174 ' <span class="credit"> (Icons by <a href="http://dryicons.com/">Dryicons</a>)</span>'.175 185 '</p></div>'."\n". 176 186 "</div>\n"; // End of #wrapper … … 204 214 205 215 self::jsLoadIE7(). 206 ' <style type="text/css">'."\n". 207 ' @import "style/default.css";'."\n". 208 " </style>\n"; 216 ' <link rel="stylesheet" href="style/default.css" type="text/css" media="screen" />'."\n"; 209 217 if (l10n::getTextDirection($GLOBALS['_lang']) == 'rtl') { 210 echo ' <style type="text/css">'."\n".' @import "style/default-rtl.css";'."\n"." </style>\n"; 218 echo 219 ' <link rel="stylesheet" href="style/default-rtl.css" type="text/css" media="screen" />'."\n"; 211 220 } 212 221 … … 264 273 } else { 265 274 $prof_url = http::getSelfURI(); 266 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '& amp;';275 $prof_url .= (strpos($prof_url,'?') === false) ? '?' : '&'; 267 276 $prof_url .= 'XDEBUG_PROFILE'; 268 $res .= '<p><a href="'. $prof_url.'">Trigger profiler</a></p>';277 $res .= '<p><a href="'.html::escapeURL($prof_url).'">Trigger profiler</a></p>'; 269 278 } 270 279 … … 343 352 public static function jsLoad($src) 344 353 { 345 return '<script type="text/javascript" src="'.html::escapeHTML($src).'"></script>'."\n"; 354 $escaped_src = html::escapeHTML($src); 355 if (!isset(self::$loaded_js[$escaped_src])) { 356 self::$loaded_js[$escaped_src]=true; 357 return '<script type="text/javascript" src="'.$escaped_src.'"></script>'."\n"; 358 } 346 359 } 347 360 … … 358 371 self::jsLoad('js/jquery/jquery.bgFade.js'). 359 372 self::jsLoad('js/common.js'). 373 self::jsLoad('js/prelude.js'). 360 374 361 375 '<script type="text/javascript">'."\n".
Note: See TracChangeset
for help on using the changeset viewer.