Changeset 2750
- Timestamp:
- 11/12/10 17:33:56 (13 years ago)
- Location:
- plugins/browsingHistory
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/browsingHistory/_define.php
r2587 r2750 17 17 /* Description*/ "Add a widget of browsing history", 18 18 /* Author */ "JC Denis", 19 /* Version */ '0.1 ',19 /* Version */ '0.1.1', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #2010 082922 /* date */ #20101112 23 23 ?> -
plugins/browsingHistory/_install.php
r2587 r2750 22 22 { 23 23 # 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','<')) 25 25 { 26 throw new Exception(' Plugin called browsingHistory requires Dotclear 2.2 or higher.');26 throw new Exception('browsingHistory requires Dotclear 2.2'); 27 27 } 28 28 -
plugins/browsingHistory/_prepend.php
r2587 r2750 1 1 <?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 13 if (!defined('DC_RC_PATH')){return;} 2 14 3 15 global $__autoload; -
plugins/browsingHistory/default-templates/browsinghistory.html
r2587 r2750 4 4 <tpl:BrowsingHistoryIf has_image="1">{{tpl:BrowsingHistoryFirstImage}}</tpl:BrowsingHistoryIf> 5 5 <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> 7 7 </div> 8 8 <tpl:BrowsingHistoriesFooter></div></tpl:BrowsingHistoriesFooter> -
plugins/browsingHistory/inc/class.browsinghistory.php
r2587 r2750 1 1 <?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 13 if (!defined('DC_RC_PATH')){return;} 2 14 3 15 class browsingHistory … … 40 52 } 41 53 54 # max len = 39 42 55 private function getIP() 43 56 { 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; 45 62 } 46 63 -
plugins/browsingHistory/release.txt
r2587 r2750 1 0.1.1 20101112 2 * Fixed install on nightly build 3 * Added missing license 4 1 5 0.1 20100829 2 6 * First lab release
Note: See TracChangeset
for help on using the changeset viewer.