Dotclear

Changeset 3175


Ignore:
Timestamp:
08/26/13 14:06:55 (10 years ago)
Author:
brol
Message:

Version 1.4 : label en correspondance avec les input, ajout style.

Location:
plugins/fakemeup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/fakemeup/_define.php

    r3173 r3175  
    1616     /* Description*/         "Fakes Dotclear digest to force automatic updates", 
    1717     /* Author */             "Bruno Hondelatte", 
    18      /* Version */            '1.3', 
     18     /* Version */            '1.4', 
    1919     /* Permissions */        'admin' 
    2020); 
  • plugins/fakemeup/index.php

    r3173 r3175  
    1919          throw new Exception(__('Unable to read digests file.')); 
    2020     } 
    21       
     21 
    2222     $opts = FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES; 
    2323     $contents = file($digests_file,$opts); 
    24       
     24 
    2525     $changed = array(); 
    2626     $same = array(); 
    2727     $removed = array(); 
    28       
     28 
    2929     foreach ($contents as $digest) 
    3030     { 
     
    3232               continue; 
    3333          } 
    34            
     34 
    3535          $md5 = $m[1]; 
    3636          $filename = $root.'/'.$m[2]; 
    37            
     37 
    3838          # Invalid checksum 
    3939          if (is_readable($filename)) { 
     
    4747               $removed[$m[2]] = true; 
    4848          } 
    49            
    50      } 
    51       
     49 
     50     } 
     51 
    5252     # No checksum found in digests file 
    5353     if (empty($md5)) { 
    5454          throw new Exception(__('Invalid digests file.')); 
    5555     } 
    56       
     56 
    5757     return array("same"=>$same,"changed"=>$changed,"removed" => $removed); 
    5858} 
     
    110110?> 
    111111<html> 
    112 <head><title><?php echo __('Fake Me Up'); ?></title></head> 
     112<head><title><?php echo __('Fake Me Up'); ?></title> 
     113<style type="text/css"> 
     114  .message h3 { 
     115    color:#fff; 
     116     } 
     117</style> 
     118</head> 
    113119<body> 
    114120<?php 
    115121     global $_lang; 
    116       
     122 
    117123     echo '<h2>'.__('Fake Me Up').'</h2>'; 
    118124     if (isset($_POST['erase_backup'])) { 
     
    174180               echo '<div class="error"><p>'.__('Fake Me Up has already been run once.').'</p>'. 
    175181                    '<form action="'.$p_url.'" method="post">'. 
    176                     '<p><input type="checkbox" name="erase_backup" id="erase_backup" />&nbsp;'. 
    177                     '<label for="confirm" class="inline">'.__("Remove the backup digest file, I want to play again").'</label>'. 
     182                    '<p><input type="checkbox" name="erase_backup" id="erase_backup" class="inline" />&nbsp;'. 
     183                    '<label for="erase_backup" class="inline">'.__("Remove the backup digest file, I want to play again").'</label>'. 
    178184                    $core->formNonce(). 
    179185                    '</p>'. 
     
    186192               echo '<form action="'.$p_url.'" method="post">'. 
    187193                    '<p><input type="checkbox" name="disclaimer_ok" id="disclaimer_ok" />&nbsp;'. 
    188                     '<label for="confirm" class="inline">'.__("I have read and understood the disclaimer and wish to continue anyway").'</label>'. 
     194                    '<label for="disclaimer_ok" class="inline">'.__("I have read and understood the disclaimer and wish to continue anyway").'</label>'. 
    189195                    $core->formNonce(). 
    190196                    '</p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map