Dotclear

Changeset 2503:fd451ccbaa59 for inc


Ignore:
Timestamp:
10/29/13 16:31:16 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2504:d81b0e204d62, 2506:39edf8aaacef
Message:

Request confirmation before restoring old installation archive (update.php), fixes #1823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r2487 r2503  
    1616class dcPage 
    1717{ 
    18      private static $loaded_js=array(); 
     18     private static $loaded_js = array(); 
    1919     private static $N_TYPES = array( 
    20           "success" => "success",  
    21           "warning" => "warning-msg",  
    22           "error" => "error",  
    23           "message" => "message",  
     20          "success" => "success", 
     21          "warning" => "warning-msg", 
     22          "error" => "error", 
     23          "message" => "message", 
    2424          "static" => "static-msg"); 
    2525 
     
    2929          global $core; 
    3030 
    31           if ($core->blog && $core->auth->check($permissions,$core->blog->id)) 
    32           { 
     31          if ($core->blog && $core->auth->check($permissions,$core->blog->id)) { 
    3332               return; 
    3433          } 
     
    114113          $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 
    115114          if (!$user_ui_hide_std_favicon) { 
    116                echo  
     115               echo 
    117116               '<link rel="icon" type="image/png" href="images/favicon96-login.png" />'. 
    118117               '<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />'; 
     
    213212               $notifications = array(); 
    214213          } 
    215            
     214 
    216215          $n = array_merge($options,array('class' => $class,'ts' => time(), 'text' => $message)); 
    217216          if ($type != "static") { 
     
    566565                    "</script>\n"; 
    567566     } 
    568       
     567 
    569568     public static function jsCommon() 
    570569     { 
     
    597596          self::jsVar('dotclear.img_menu_on','images/menu_on.png'). 
    598597          self::jsVar('dotclear.img_menu_off','images/menu_off.png'). 
    599            
     598 
    600599          self::jsVar('dotclear.img_plus_theme_src','images/plus-theme.png'). 
    601600          self::jsVar('dotclear.img_plus_theme_alt',__('uncover')). 
     
    677676          self::jsVar('dotclear.msg.confirm_delete_backup', 
    678677               __('Are you sure you want to delete this backup?')). 
     678          self::jsVar('dotclear.msg.confirm_revert_backup', 
     679               __('Are you sure you want to revert to this backup?')). 
    679680          self::jsVar('dotclear.msg.zip_file_content', 
    680681               __('Zip file content')). 
     
    746747               $default = "'".html::escapeJS($default)."'"; 
    747748          } 
    748            
     749 
    749750          return 
    750751          self::jsLoad('js/jquery/jquery.pageTabs.js'). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map