Dotclear

Changeset 2750


Ignore:
Timestamp:
11/12/10 17:33:56 (13 years ago)
Author:
JcDenis
Message:

browsingHistory 0.1.1:

  • Fixed install on nightly build
  • Added missing license
Location:
plugins/browsingHistory
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/browsingHistory/_define.php

    r2587 r2750  
    1717     /* Description*/         "Add a widget of browsing history", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.1', 
     19     /* Version */            '0.1.1', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20100829 
     22     /* date */          #20101112 
    2323?> 
  • plugins/browsingHistory/_install.php

    r2587 r2750  
    2222{ 
    2323     # Check DC version 
    24      if (version_compare(DC_VERSION,'2.2-alpha','<')) 
     24     if (version_compare(str_replace("-r","-p",DC_VERSION),'2.2-alpha','<')) 
    2525     { 
    26           throw new Exception('Plugin called browsingHistory requires Dotclear 2.2 or higher.'); 
     26          throw new Exception('browsingHistory requires Dotclear 2.2'); 
    2727     } 
    2828      
  • plugins/browsingHistory/_prepend.php

    r2587 r2750  
    11<?php 
     2# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# This file is part of browsingHistory, a plugin for Dotclear 2. 
     4#  
     5# Copyright (c) 2009-2010 JC Denis and contributors 
     6# jcdenis@gdwd.com 
     7#  
     8# Licensed under the GPL version 2.0 license. 
     9# A copy of this license is available in LICENSE file or at 
     10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     11# -- END LICENSE BLOCK ------------------------------------ 
     12 
     13if (!defined('DC_RC_PATH')){return;} 
    214 
    315global $__autoload; 
  • plugins/browsingHistory/default-templates/browsinghistory.html

    r2587 r2750  
    44  <tpl:BrowsingHistoryIf has_image="1">{{tpl:BrowsingHistoryFirstImage}}</tpl:BrowsingHistoryIf> 
    55  <h4><a href="{{tpl:BrowsingHistoryURL}}" title="{{tpl:lang Browse on}} {{tpl:BrowsingHistoryDate}}, {{tpl:BrowsingHistoryTime}}">{{tpl:BrowsingHistoryTitle encode_html="1"}}</a></h4> 
    6   <tpl:BrowsingHistoryIf has_text="1"><p>{{tpl:BrowsingHistoryText remove_html="1" encode_html="1"}}</p></tpl:BrowsingHistoryIf> 
     6  <tpl:BrowsingHistoryIf has_text="1"><p>{{tpl:BrowsingHistoryText remove_html="1" encode_html="1" cut_string="250"}} [ <a href="{{tpl:BrowsingHistoryURL}}" title="{{tpl:lang Continue reading}}">...</a> ]</p></tpl:BrowsingHistoryIf> 
    77 </div> 
    88 <tpl:BrowsingHistoriesFooter></div></tpl:BrowsingHistoriesFooter> 
  • plugins/browsingHistory/inc/class.browsinghistory.php

    r2587 r2750  
    11<?php 
     2# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# This file is part of browsingHistory, a plugin for Dotclear 2. 
     4#  
     5# Copyright (c) 2009-2010 JC Denis and contributors 
     6# jcdenis@gdwd.com 
     7#  
     8# Licensed under the GPL version 2.0 license. 
     9# A copy of this license is available in LICENSE file or at 
     10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     11# -- END LICENSE BLOCK ------------------------------------ 
     12 
     13if (!defined('DC_RC_PATH')){return;} 
    214 
    315class browsingHistory 
     
    4052     } 
    4153      
     54     # max len = 39 
    4255     private function getIP() 
    4356     { 
    44           return md5(http::browserUID(DC_MASTER_KEY)); 
     57          $ip = http::realIP(); 
     58          if (!$ip) { 
     59               return md5(http::browserUID(DC_MASTER_KEY)); 
     60          } 
     61          return $ip; 
    4562     } 
    4663      
  • plugins/browsingHistory/release.txt

    r2587 r2750  
     10.1.1 20101112 
     2 * Fixed install on nightly build 
     3 * Added missing license 
     4 
    150.1 20100829 
    26 * First lab release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map