From ae22a12b8adcc5788406b8637ab4db48085681fe Mon Sep 17 00:00:00 2001 From: TsT Date: Wed, 23 Oct 2013 23:21:36 +0200 Subject: [PATCH 001/658] uniform if syntax --- tpl/editlink.html | 12 ++++++------ tpl/includes.html | 2 +- tpl/linklist.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tpl/editlink.html b/tpl/editlink.html index 4a2c30c..48945a3 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -4,8 +4,8 @@ {if="empty($GLOBALS['disablejquery'])"}{/if} @@ -41,4 +41,4 @@ $(document).ready(function() {/if} - \ No newline at end of file + diff --git a/tpl/includes.html b/tpl/includes.html index 2b61f1e..cc57380 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -6,4 +6,4 @@ -{if condition="is_file('inc/user.css')"}{/if} +{if="is_file('inc/user.css')"}{/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index ddc38cb..5a74273 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -42,7 +42,7 @@ {/if} {$value.title|htmlspecialchars}
- {if="$value.description"}
{$value.description}
{/if} + {if="$value.description"}
{$value.description}
{/if} {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} {$value.localdate|htmlspecialchars} - permalink - {else} From 4ade7393a33e0ae3b40bb6a4dc8e051b0ed04169 Mon Sep 17 00:00:00 2001 From: Emilien Klein Date: Sun, 27 Jul 2014 22:57:30 +0200 Subject: [PATCH 002/658] Release version 0.0.42 beta --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index c102e42..fdc4fba 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ '); // Suffix to encapsulate data in php code. // http://server.com/x/shaarli --> /shaarli/ From ebb2880dfcfd16b07744c6a2f98edb82133bfb04 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Wed, 13 Mar 2013 21:27:03 +0100 Subject: [PATCH 003/658] Adds a configuration variable "titleLink" which allows to customize the link on the title. --- index.php | 4 ++++ tpl/configure.html | 3 ++- tpl/page.header.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index fdc4fba..5dd0353 100644 --- a/index.php +++ b/index.php @@ -105,6 +105,7 @@ if (empty($GLOBALS['redirector'])) $GLOBALS['redirector']=''; if (empty($GLOBALS['disablesessionprotection'])) $GLOBALS['disablesessionprotection']=false; if (empty($GLOBALS['disablejquery'])) $GLOBALS['disablejquery']=false; if (empty($GLOBALS['privateLinkByDefault'])) $GLOBALS['privateLinkByDefault']=false; +if (empty($GLOBALS['titleLink'])) $GLOBALS['titleLink']='?'; // I really need to rewrite Shaarli with a proper configuation manager. // Run config screen if first run: @@ -657,6 +658,7 @@ class pageBuilder $this->tpl->assign('pagetitle','Shaarli'); $this->tpl->assign('privateonly',!empty($_SESSION['privateonly'])); // Show only private links ? if (!empty($GLOBALS['title'])) $this->tpl->assign('pagetitle',$GLOBALS['title']); + if (!empty($GLOBALS['titleLink'])) $this->tpl->assign('titleLink',$GLOBALS['titleLink']); if (!empty($GLOBALS['pagetitle'])) $this->tpl->assign('pagetitle',$GLOBALS['pagetitle']); $this->tpl->assign('shaarlititle',empty($GLOBALS['title']) ? 'Shaarli': $GLOBALS['title'] ); return; @@ -1395,6 +1397,7 @@ function renderPage() $tz = $_POST['continent'].'/'.$_POST['city']; $GLOBALS['timezone'] = $tz; $GLOBALS['title']=$_POST['title']; + $GLOBALS['titleLink']=$_POST['titleLink']; $GLOBALS['redirector']=$_POST['redirector']; $GLOBALS['disablesessionprotection']=!empty($_POST['disablesessionprotection']); $GLOBALS['disablejquery']=!empty($_POST['disablejquery']); @@ -2257,6 +2260,7 @@ function writeConfig() if (is_file($GLOBALS['config']['CONFIG_FILE']) && !isLoggedIn()) die('You are not authorized to alter config.'); // Only logged in user can alter config. $config='Page title: + Title link: Timezone:{$timezone_form} Redirector
(e.g. http://anonym.to/? will mask the HTTP_REFERER) @@ -29,4 +30,4 @@ {include="page.footer"} - \ No newline at end of file + diff --git a/tpl/page.header.html b/tpl/page.header.html index 125b365..37a18f7 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -2,7 +2,7 @@
Shaare your links...
{if="!empty($linkcount)"}{$linkcount} links{/if}
- {$shaarlititle|htmlspecialchars} + {$shaarlititle|htmlspecialchars} {if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"} {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} From e411f7f9d7682256fdba017d409e8356c4644ab9 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Sun, 27 Jul 2014 16:30:03 +0200 Subject: [PATCH 004/658] Adds the tip for the title link in the configuration page --- tpl/configure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/configure.html b/tpl/configure.html index 2a433ad..ef20e94 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -11,7 +11,7 @@ Page title: - Title link: + Title link:
Timezone:{$timezone_form} Redirector
(e.g. http://anonym.to/? will mask the HTTP_REFERER) From 25f5c59db6ac482ae2dd7996c9dd6794680c2a5b Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 31 Jul 2014 23:12:29 +0200 Subject: [PATCH 005/658] Adds configuration variables, TPL and TMP, for RainTPL The path for templates and temporary files are now part of the configuration. For a custom install, it's possible to put these writable directories elsewhere than in the read-only source code. --- index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 5dd0353..fedad2b 100644 --- a/index.php +++ b/index.php @@ -26,6 +26,8 @@ $GLOBALS['config']['CACHEDIR'] = 'cache'; // Cache directory for thumbnails for $GLOBALS['config']['PAGECACHE'] = 'pagecache'; // Page cache directory. $GLOBALS['config']['ENABLE_LOCALCACHE'] = true; // Enable Shaarli to store thumbnail in a local cache. Disable to reduce webspace usage. $GLOBALS['config']['PUBSUBHUB_URL'] = ''; // PubSubHubbub support. Put an empty string to disable, or put your hub url here to enable. +$GLOBALS['config']['RAINTPL_TMP'] = 'tmp' ; // Raintpl cache directory +$GLOBALS['config']['RAINTPL_TPL'] = 'tpl/' ; // Raintpl template directory (keep the trailling slash!) $GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt'; // For updates check of Shaarli. $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; // Updates check frequency for Shaarli. 86400 seconds=24 hours // Note: You must have publisher.php in the same directory as Shaarli index.php @@ -63,9 +65,9 @@ error_reporting(E_ALL^E_WARNING); // See all error except warnings. //error_reporting(-1); // See all errors (for debugging only) include "inc/rain.tpl.class.php"; //include Rain TPL -raintpl::$tpl_dir = "tpl/"; // template directory -if (!is_dir('tmp')) { mkdir('tmp',0705); chmod('tmp',0705); } -raintpl::$cache_dir = "tmp/"; // cache directory +raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory +if (!is_dir($GLOBALS['config']['RAINTPL_TMP'])) { mkdir($GLOBALS['config']['RAINTPL_TMP'],0705); chmod($GLOBALS['config']['RAINTPL_TMP'],0705); } +raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory ob_start(); // Output buffering for the page cache. @@ -88,7 +90,7 @@ header("Pragma: no-cache"); // Directories creations (Note that your web host may require differents rights than 705.) if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } -if (!is_dir('tmp')) { mkdir('tmp',0705); chmod('tmp',0705); } // For RainTPL temporary files. +if (!is_dir($GLOBALS['config']['RAINTPL_TMP'])) { mkdir($GLOBALS['config']['RAINTPL_TMP'],0705);chmod($GLOBALS['config']['RAINTPL_TMP'],0705); } // For RainTPL temporary files. if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. // Second check to see if Shaarli can write in its directory, because on some hosts is_writable() is not reliable. if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its data directory ('.realpath($GLOBALS['config']['DATADIR']).').
'); From c614a35db8c49bc953c6fcd83161def61a76d945 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 31 Jul 2014 23:17:30 +0200 Subject: [PATCH 006/658] Removed redundant check on RAINTPL_TMP directory The same test is already on line 93 --- index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/index.php b/index.php index fedad2b..3301b13 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,6 @@ error_reporting(E_ALL^E_WARNING); // See all error except warnings. include "inc/rain.tpl.class.php"; //include Rain TPL raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory -if (!is_dir($GLOBALS['config']['RAINTPL_TMP'])) { mkdir($GLOBALS['config']['RAINTPL_TMP'],0705); chmod($GLOBALS['config']['RAINTPL_TMP'],0705); } raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory ob_start(); // Output buffering for the page cache. From e7416aba2c7a06fc96e37700f555c2b70a5ac859 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Mon, 4 Aug 2014 00:13:30 +0200 Subject: [PATCH 007/658] Adds empty directories: cache, data, pagecache and tmp. Removes mkdirs. They are still in .gitignore because their future content will still be ignored. --- cache/.placeholder | 0 data/.placeholder | 0 index.php | 4 ---- pagecache/.placeholder | 0 tmp/.placeholder | 0 5 files changed, 4 deletions(-) create mode 100644 cache/.placeholder create mode 100644 data/.placeholder create mode 100644 pagecache/.placeholder create mode 100644 tmp/.placeholder diff --git a/cache/.placeholder b/cache/.placeholder new file mode 100644 index 0000000..e69de29 diff --git a/data/.placeholder b/data/.placeholder new file mode 100644 index 0000000..e69de29 diff --git a/index.php b/index.php index 3301b13..747f113 100644 --- a/index.php +++ b/index.php @@ -88,14 +88,11 @@ header("Pragma: no-cache"); // Directories creations (Note that your web host may require differents rights than 705.) if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); -if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } -if (!is_dir($GLOBALS['config']['RAINTPL_TMP'])) { mkdir($GLOBALS['config']['RAINTPL_TMP'],0705);chmod($GLOBALS['config']['RAINTPL_TMP'],0705); } // For RainTPL temporary files. if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. // Second check to see if Shaarli can write in its directory, because on some hosts is_writable() is not reliable. if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its data directory ('.realpath($GLOBALS['config']['DATADIR']).').
'); if ($GLOBALS['config']['ENABLE_LOCALCACHE']) { - if (!is_dir($GLOBALS['config']['CACHEDIR'])) { mkdir($GLOBALS['config']['CACHEDIR'],0705); chmod($GLOBALS['config']['CACHEDIR'],0705); } if (!is_file($GLOBALS['config']['CACHEDIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['CACHEDIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. } @@ -188,7 +185,6 @@ class pageCache public function cache($page) { if (!$this->shouldBeCached) return; - if (!is_dir($GLOBALS['config']['PAGECACHE'])) { mkdir($GLOBALS['config']['PAGECACHE'],0705); chmod($GLOBALS['config']['PAGECACHE'],0705); } file_put_contents($this->filename,$page); } diff --git a/pagecache/.placeholder b/pagecache/.placeholder new file mode 100644 index 0000000..e69de29 diff --git a/tmp/.placeholder b/tmp/.placeholder new file mode 100644 index 0000000..e69de29 From 3bb684f59f04511ed157833d3d9552ee0e65d980 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Mon, 4 Aug 2014 00:38:37 +0200 Subject: [PATCH 008/658] Removes htaccess file creation and adds them in the repository I also removed the previously created placeholders, which after all, have no more utility. --- cache/.htaccess | 2 ++ cache/.placeholder | 0 data/.htaccess | 2 ++ data/.placeholder | 0 index.php | 7 ------- pagecache/.htaccess | 2 ++ pagecache/.placeholder | 0 tmp/.htaccess | 2 ++ tmp/.placeholder | 0 9 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 cache/.htaccess delete mode 100644 cache/.placeholder create mode 100644 data/.htaccess delete mode 100644 data/.placeholder create mode 100644 pagecache/.htaccess delete mode 100644 pagecache/.placeholder create mode 100644 tmp/.htaccess delete mode 100644 tmp/.placeholder diff --git a/cache/.htaccess b/cache/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/cache/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/cache/.placeholder b/cache/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/data/.htaccess b/data/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/data/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/data/.placeholder b/data/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/index.php b/index.php index 747f113..3136193 100644 --- a/index.php +++ b/index.php @@ -88,13 +88,6 @@ header("Pragma: no-cache"); // Directories creations (Note that your web host may require differents rights than 705.) if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); -if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['DATADIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. -// Second check to see if Shaarli can write in its directory, because on some hosts is_writable() is not reliable. -if (!is_file($GLOBALS['config']['DATADIR'].'/.htaccess')) die('
ERROR: Shaarli does not have the right to write in its data directory ('.realpath($GLOBALS['config']['DATADIR']).').
'); -if ($GLOBALS['config']['ENABLE_LOCALCACHE']) -{ - if (!is_file($GLOBALS['config']['CACHEDIR'].'/.htaccess')) { file_put_contents($GLOBALS['config']['CACHEDIR'].'/.htaccess',"Allow from none\nDeny from all\n"); } // Protect data files. -} // Handling of old config file which do not have the new parameters. if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); diff --git a/pagecache/.htaccess b/pagecache/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/pagecache/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/pagecache/.placeholder b/pagecache/.placeholder deleted file mode 100644 index e69de29..0000000 diff --git a/tmp/.htaccess b/tmp/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/tmp/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/tmp/.placeholder b/tmp/.placeholder deleted file mode 100644 index e69de29..0000000 From a1795ddcf3d1dcef0ca213a5bfb75b8237dfb646 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 11 Aug 2014 00:04:51 +0200 Subject: [PATCH 009/658] bookmarklet: use selected text as description when adding a new link * Based on romnGit's work at https://github.com/sebsauvage/Shaarli/pull/104 * Fixes https://github.com/shaarli/Shaarli/issues/18 * Closes https://github.com/sebsauvage/Shaarli/pull/104 * Fixes https://github.com/sebsauvage/Shaarli/issues/53 * Fixes https://github.com/sebsauvage/Shaarli/issues/129 * Fixes https://github.com/sebsauvage/Shaarli/issues/33 --- index.php | 6 +++--- tpl/tools.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 5dd0353..24b93fa 100644 --- a/index.php +++ b/index.php @@ -425,7 +425,7 @@ if (isset($_POST['login'])) session_regenerate_id(true); } // Optional redirect after login: - if (isset($_GET['post'])) { header('Location: ?post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); exit; } + if (isset($_GET['post'])) { header('Location: ?post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); exit; } if (isset($_POST['returnurl'])) { if (endsWith($_POST['returnurl'],'?do=login')) { header('Location: ?'); exit; } // Prevent loops over login screen. @@ -437,7 +437,7 @@ if (isset($_POST['login'])) { ban_loginFailed(); $redir = ''; - if (isset($_GET['post'])) { $redir = '&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):''); } + if (isset($_GET['post'])) { $redir = '&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):''); } echo ''; // Redirect to login screen. exit; } @@ -1336,7 +1336,7 @@ function renderPage() // Show login screen, then redirect to ?post=... if (isset($_GET['post'])) { - header('Location: ?do=login&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); // Redirect to login page, then back to post link. + header('Location: ?do=login&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); // Redirect to login page, then back to post link. exit; } $PAGE = new pageBuilder; diff --git a/tpl/tools.html b/tpl/tools.html index 48ecc97..ba1c1e8 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -10,7 +10,7 @@ Rename/delete tags : Rename or delete a tag in all links

Import : Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)

Export : Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)

- Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "Shaare link" button in any page you want to share.


+ Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "Shaare link" button in any page you want to share.


From ad6c27b7b858dfa29e65f14ef444fad318d5895b Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 11 Aug 2014 20:41:50 +0200 Subject: [PATCH 010/658] Fix grammar, punctuation, spelling, trailing whitepaces and newlines; Fix typo in css Based on respencer's work at https://github.com/respencer/Shaarli/ Closes https://github.com/sebsauvage/Shaarli/pull/103 --- README.md | 4 +- inc/shaarli.css | 10 +- index.php | 254 ++++++++++++++++++++++----------------------- tpl/configure.html | 4 +- tpl/import.html | 2 +- 5 files changed, 137 insertions(+), 137 deletions(-) diff --git a/README.md b/README.md index cff718c..a89d577 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,12 @@ Features: * **FAST** * Dead-simple installation: Drop the files, open the page. No database required. * Easy to use: Single button in your browser to bookmark a page - * Save url, title, description (unlimited size). Classify links with tags (with autocomplete) + * Save URL, title, description (unlimited size). Classify links with tags (with autocomplete) * Tag renaming, merging and deletion. * Automatic thumbnails for various services (imgur, imageshack.us, flickr, youtube, vimeo, dailymotion…) * Automatic conversion of URLs to clickable links in descriptions. Support for http/ftp/file/apt/magnet protocols. * Save links as public or private - * 1-clic access to your private links/notes + * 1-click access to your private links/notes * Browse links by page, filter by tag or use the full text search engine * Permalinks (with QR-Code) for easy reference * RSS and ATOM feeds (which can be filtered by tag or text search) diff --git a/inc/shaarli.css b/inc/shaarli.css index cdc0579..13e6ab3 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -1,4 +1,4 @@ -/* CSS Stylsheet for Shaarli - http://sebsauvage.net/wiki/doku.php?id=php:shaarli */ +/* Cascading Stylesheet for Shaarli - http://sebsauvage.net/wiki/doku.php?id=php:shaarli */ /* CSS Reset from Yahoo to cope with browsers CSS inconsistencies. */ /* @@ -408,13 +408,13 @@ div.dailyEntryDescription overflow:auto; } -/* Common css screwdriver */ +/* Common CSS screwdriver */ .clear{ clear:both; } /* For lazy images loading in picture wall. - using http://www.appelsiini.net/projects/lazyload + Using http://www.appelsiini.net/projects/lazyload */ .lazyimage { display:none; } @@ -451,7 +451,7 @@ a {color:#000!important;text-decoration:none!important;} #searchform_value { width:70% !important; } #tagfilter_value { width:70% !important; } div.qrcode { position:relative; float:left; top:-10px; left:0px; } -#paging_privatelinks { float;none; } +#paging_privatelinks { float:none; } #paging_linksperpage { float:none; margin-bottom:10px; font-size:smaller;} #paging_older,#paging_newer,#paging_linksperpage a { border: 1px solid black; padding:3px 5px 3px 5px; background-color:#666; color:#fff; border-radius: 5px 5px 5px 5px;} .thumbnail { float:none; height:auto; margin: 0px; text-align:center;} @@ -466,4 +466,4 @@ div.dailyEntryDescription { font-size:10pt; } } /* Highlight search results */ -.highlight { background-color: #FFFF33; } +.highlight { background-color: #FFFF33; } \ No newline at end of file diff --git a/index.php b/index.php index 5dd0353..07f877d 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,9 @@ '); // Suffix to encapsulate data in php code. +define('PHPPREFIX',''); // Suffix to encapsulate data in PHP code. // http://server.com/x/shaarli --> /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); @@ -48,8 +48,8 @@ session_set_cookie_params($cookie['lifetime'],$cookiedir,$_SERVER['HTTP_HOST']); // Set session parameters on server side. define('INACTIVITY_TIMEOUT',3600); // (in seconds). If the user does not access any page within this time, his/her session is considered expired. ini_set('session.use_cookies', 1); // Use cookies to store session. -ini_set('session.use_only_cookies', 1); // Force cookies for session (phpsessionID forbidden in URL) -ini_set('session.use_trans_sid', false); // Prevent php to use sessionID in URL if cookies are disabled. +ini_set('session.use_only_cookies', 1); // Force cookies for session (phpsessionID forbidden in URL). +ini_set('session.use_trans_sid', false); // Prevent PHP form using sessionID in URL if cookies are disabled. session_name('shaarli'); if (session_id() == '') session_start(); // Start session if needed (Some server auto-start sessions). @@ -85,7 +85,7 @@ header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); -// Directories creations (Note that your web host may require differents rights than 705.) +// Directories creations (Note that your web host may require different rights than 705.) if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); if (!is_dir($GLOBALS['config']['DATADIR'])) { mkdir($GLOBALS['config']['DATADIR'],0705); chmod($GLOBALS['config']['DATADIR'],0705); } if (!is_dir('tmp')) { mkdir('tmp',0705); chmod('tmp',0705); } // For RainTPL temporary files. @@ -119,13 +119,13 @@ define('STAY_SIGNED_IN_TOKEN', sha1($GLOBALS['hash'].$_SERVER["REMOTE_ADDR"].$GL autoLocale(); // Sniff browser language and set date format accordingly. header('Content-Type: text/html; charset=utf-8'); // We use UTF-8 for proper international characters handling. -// Check php version +// Check PHP version function checkphpversion() { if (version_compare(PHP_VERSION, '5.1.0') < 0) { header('Content-Type: text/plain; charset=utf-8'); - echo 'Your server supports php '.PHP_VERSION.'. Shaarli requires at least php 5.1.0, and thus cannot run. Sorry.'; + echo 'Your server supports PHP '.PHP_VERSION.'. Shaarli requires at least php 5.1.0, and thus cannot run. Sorry.'; exit; } } @@ -144,7 +144,7 @@ function checkUpdate() $version=shaarli_version; list($httpstatus,$headers,$data) = getHTTP('http://sebsauvage.net/files/shaarli_version.txt',2); if (strpos($httpstatus,'200 OK')!==false) $version=$data; - // If failed, nevermind. We don't want to bother the user with that. + // If failed, never mind. We don't want to bother the user with that. file_put_contents($GLOBALS['config']['UPDATECHECK_FILENAME'],$version); // touch file date } // Compare versions: @@ -160,11 +160,11 @@ function checkUpdate() class pageCache { private $url; // Full URL of the page to cache (typically the value returned by pageUrl()) - private $shouldBeCached; // boolean: Should this url be cached ? - private $filename; // Name of the cache file for this url + private $shouldBeCached; // boolean: Should this url be cached? + private $filename; // Name of the cache file for this url. /* - $url = url (typically the value returned by pageUrl()) + $url = URL (typically the value returned by pageUrl()) $shouldBeCached = boolean. If false, the cache will be disabled. */ public function __construct($url,$shouldBeCached) @@ -227,7 +227,7 @@ function nl2br_escaped($html) } /* Returns the small hash of a string, using RFC 4648 base64url format - eg. smallHash('20111006_131924') --> yZH23w + e.g. smallHash('20111006_131924') --> yZH23w Small hashes: - are unique (well, as unique as crc32, at last) - are always 6 characters long. @@ -241,7 +241,7 @@ function smallHash($text) return strtr($t, '+/', '-_'); } -// In a string, converts urls to clickable links. +// In a string, converts URLs to clickable links. // Function inspired from http://www.php.net/manual/en/function.preg-replace.php#85722 function text2clickable($url) { @@ -262,8 +262,8 @@ function keepMultipleSpaces($text) function autoLocale() { $loc='en_US'; // Default if browser does not send HTTP_ACCEPT_LANGUAGE - if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) // eg. "fr,fr-fr;q=0.8,en;q=0.5,en-us;q=0.3" - { // (It's a bit crude, but it works very well. Prefered language is always presented first.) + if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) // e.g. "fr,fr-fr;q=0.8,en;q=0.5,en-us;q=0.3" + { // (It's a bit crude, but it works very well. Preferred language is always presented first.) if (preg_match('/([a-z]{2}(-[a-z]{2})?)/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) $loc=$matches[1]; } setlocale(LC_TIME,$loc); // LC_TIME = Set local for date/time format only. @@ -300,7 +300,7 @@ function allIPs() } function fillSessionInfo() { - $_SESSION['uid'] = sha1(uniqid('',true).'_'.mt_rand()); // generate unique random number (different than phpsessionid) + $_SESSION['uid'] = sha1(uniqid('',true).'_'.mt_rand()); // Generate unique random number (different than phpsessionid) $_SESSION['ip']=allIPs(); // We store IP address(es) of the client to make sure session is not hijacked. $_SESSION['username']=$GLOBALS['login']; $_SESSION['expires_on']=time()+INACTIVITY_TIMEOUT; // Set session expiration. @@ -404,7 +404,7 @@ if (isset($_POST['login'])) { if (!ban_canLogin()) die('I said: NO. You are banned for the moment. Go away.'); if (isset($_POST['password']) && tokenOk($_POST['token']) && (check_auth($_POST['login'], $_POST['password']))) - { // Login/password is ok. + { // Login/password is OK. ban_loginOk(); // If user wants to keep the session cookie even after the browser closes: if (!empty($_POST['longlastingsession'])) @@ -415,7 +415,7 @@ if (isset($_POST['login'])) $cookiedir = ''; if(dirname($_SERVER['SCRIPT_NAME'])!='/') $cookiedir=dirname($_SERVER["SCRIPT_NAME"]).'/'; session_set_cookie_params($_SESSION['longlastingsession'],$cookiedir,$_SERVER['HTTP_HOST']); // Set session cookie expiration on client side - // Note: Never forget the trailing slash on the cookie path ! + // Note: Never forget the trailing slash on the cookie path! session_regenerate_id(true); // Send cookie with new expiration date to browser. } else // Standard session expiration (=when browser closes) @@ -447,7 +447,7 @@ if (isset($_POST['login'])) // Misc utility functions: // Returns the server URL (including port and http/https), without path. -// eg. "http://myserver.com:8080" +// e.g. "http://myserver.com:8080" // You can append $_SERVER['SCRIPT_NAME'] to get the current script URL. function serverUrl() { @@ -457,24 +457,24 @@ function serverUrl() } // Returns the absolute URL of current script, without the query. -// (eg. http://sebsauvage.net/links/) +// (e.g. http://sebsauvage.net/links/) function indexUrl() { $scriptname = $_SERVER["SCRIPT_NAME"]; // If the script is named 'index.php', we remove it (for better looking URLs, - // eg. http://mysite.com/shaarli/?abcde instead of http://mysite.com/shaarli/index.php?abcde) + // e.g. http://mysite.com/shaarli/?abcde instead of http://mysite.com/shaarli/index.php?abcde) if (endswith($scriptname,'index.php')) $scriptname = substr($scriptname,0,strlen($scriptname)-9); return serverUrl() . $scriptname; } // Returns the absolute URL of current script, WITH the query. -// (eg. http://sebsauvage.net/links/?toto=titi&spamspamspam=humbug) +// (e.g. http://sebsauvage.net/links/?toto=titi&spamspamspam=humbug) function pageUrl() { return indexUrl().(!empty($_SERVER["QUERY_STRING"]) ? '?'.$_SERVER["QUERY_STRING"] : ''); } -// Convert post_max_size/upload_max_filesize (eg.'16M') parameters to bytes. +// Convert post_max_size/upload_max_filesize (e.g. '16M') parameters to bytes. function return_bytes($val) { $val = trim($val); $last=strtolower($val[strlen($val)-1]); @@ -495,7 +495,7 @@ function getMaxFileSize() $size2 = return_bytes(ini_get('upload_max_filesize')); // Return the smaller of two: $maxsize = min($size1,$size2); - // FIXME: Then convert back to readable notations ? (eg. 2M instead of 2000000) + // FIXME: Then convert back to readable notations ? (e.g. 2M instead of 2000000) return $maxsize; } @@ -543,7 +543,7 @@ function linkdate2iso8601($linkdate) function linkdate2locale($linkdate) { return utf8_encode(strftime('%c',linkdate2timestamp($linkdate))); // %c is for automatic date format according to locale. - // Note that if you use a local which is not installed on your webserver, + // Note that if you use a locale which is not installed on your webserver, // the date will not be displayed in the chosen locale, but probably in US notation. } @@ -565,10 +565,10 @@ function http_parse_headers_shaarli( $headers ) } /* GET an URL. - Input: $url : url to get (http://...) + Input: $url : URL to get (http://...) $timeout : Network timeout (will wait this many seconds for an anwser before giving up). - Output: An array. [0] = HTTP status message (eg. "HTTP/1.1 200 OK") or error message - [1] = associative array containing HTTP response headers (eg. echo getHTTP($url)[1]['Content-Type']) + Output: An array. [0] = HTTP status message (e.g. "HTTP/1.1 200 OK") or error message + [1] = associative array containing HTTP response headers (e.g. echo getHTTP($url)[1]['Content-Type']) [2] = data Example: list($httpstatus,$headers,$data) = getHTTP('http://sebauvage.net/'); if (strpos($httpstatus,'200 OK')!==false) @@ -584,11 +584,11 @@ function getHTTP($url,$timeout=30) $context = stream_context_create($options); $data=file_get_contents($url,false,$context,-1, 4000000); // We download at most 4 Mb from source. if (!$data) { return array('HTTP Error',array(),''); } - $httpStatus=$http_response_header[0]; // eg. "HTTP/1.1 200 OK" + $httpStatus=$http_response_header[0]; // e.g. "HTTP/1.1 200 OK" $responseHeaders=http_parse_headers_shaarli($http_response_header); return array($httpStatus,$responseHeaders,$data); } - catch (Exception $e) // getHTTP *can* fail silentely (we don't care if the title cannot be fetched) + catch (Exception $e) // getHTTP *can* fail silently (we don't care if the title cannot be fetched) { return array($e->getMessage(),'',''); } @@ -614,14 +614,14 @@ function getToken() return $rnd; } -// Tells if a token is ok. Using this function will destroy the token. -// true=token is ok. +// Tells if a token is OK. Using this function will destroy the token. +// true=token is OK. function tokenOk($token) { if (isset($_SESSION['tokens'][$token])) { unset($_SESSION['tokens'][$token]); // Token is used: destroy it. - return true; // Token is ok. + return true; // Token is OK. } return false; // Wrong token, or already used. } @@ -656,7 +656,7 @@ class pageBuilder $this->tpl->assign('version',shaarli_version); $this->tpl->assign('scripturl',indexUrl()); $this->tpl->assign('pagetitle','Shaarli'); - $this->tpl->assign('privateonly',!empty($_SESSION['privateonly'])); // Show only private links ? + $this->tpl->assign('privateonly',!empty($_SESSION['privateonly'])); // Show only private links? if (!empty($GLOBALS['title'])) $this->tpl->assign('pagetitle',$GLOBALS['title']); if (!empty($GLOBALS['titleLink'])) $this->tpl->assign('titleLink',$GLOBALS['titleLink']); if (!empty($GLOBALS['pagetitle'])) $this->tpl->assign('pagetitle',$GLOBALS['pagetitle']); @@ -672,7 +672,7 @@ class pageBuilder } // Render a specific page (using a template). - // eg. pb.renderPage('picwall') + // e.g. pb.renderPage('picwall') public function renderPage($page) { if ($this->tpl===false) $this->initialize(); // Lazy initialization @@ -691,10 +691,10 @@ class pageBuilder Available keys: title : Title of the link - url : URL of the link. Can be absolute or relative. Relative URLs are permalinks (eg.'?m-ukcw') + url : URL of the link. Can be absolute or relative. Relative URLs are permalinks (e.g.'?m-ukcw') description : description of the entry - private : Is this link private ? 0=no, other value=yes - linkdate : date of the creation of this entry, in the form YYYYMMDD_HHMMSS (eg.'20110914_192317') + private : Is this link private? 0=no, other value=yes + linkdate : date of the creation of this entry, in the form YYYYMMDD_HHMMSS (e.g.'20110914_192317') tags : tags attached to this entry (separated by spaces) We implement 3 interfaces: @@ -704,15 +704,15 @@ class pageBuilder */ class linkdb implements Iterator, Countable, ArrayAccess { - private $links; // List of links (associative array. Key=linkdate (eg. "20110823_124546"), value= associative array (keys:title,description...) + private $links; // List of links (associative array. Key=linkdate (e.g. "20110823_124546"), value= associative array (keys:title,description...) private $urls; // List of all recorded URLs (key=url, value=linkdate) for fast reserve search (url-->linkdate) private $keys; // List of linkdate keys (for the Iterator interface implementation) private $position; // Position in the $this->keys array. (for the Iterator interface implementation.) - private $loggedin; // Is the used logged in ? (used to filter private links) + private $loggedin; // Is the user logged in? (used to filter private links) // Constructor: function __construct($isLoggedIn) - // Input : $isLoggedIn : is the used logged in ? + // Input : $isLoggedIn : is the user logged in? { $this->loggedin = $isLoggedIn; $this->checkdb(); // Make sure data file exists. @@ -726,7 +726,7 @@ class linkdb implements Iterator, Countable, ArrayAccess public function offsetSet($offset, $value) { if (!$this->loggedin) die('You are not authorized to add a link.'); - if (empty($value['linkdate']) || empty($value['url'])) die('Internal Error: A link should always have a linkdate and url.'); + if (empty($value['linkdate']) || empty($value['url'])) die('Internal Error: A link should always have a linkdate and URL.'); if (empty($offset)) die('You must specify a key.'); $this->links[$offset] = $value; $this->urls[$value['url']]=$offset; @@ -789,19 +789,19 @@ class linkdb implements Iterator, Countable, ArrayAccess invalidateCaches(); } - // Returns the link for a given URL (if it exists). false it does not exist. + // Returns the link for a given URL (if it exists). False if it does not exist. public function getLinkFromUrl($url) { if (isset($this->urls[$url])) return $this->links[$this->urls[$url]]; return false; } - // Case insentitive search among links (in url, title and description). Returns filtered list of links. - // eg. print_r($mydb->filterFulltext('hollandais')); + // Case insensitive search among links (in the URLs, title and description). Returns filtered list of links. + // e.g. print_r($mydb->filterFulltext('hollandais')); public function filterFulltext($searchterms) { // FIXME: explode(' ',$searchterms) and perform a AND search. - // FIXME: accept double-quotes to search for a string "as is" ? + // FIXME: accept double-quotes to search for a string "as is"? $filtered=array(); $s = strtolower($searchterms); foreach($this->links as $l) @@ -818,7 +818,7 @@ class linkdb implements Iterator, Countable, ArrayAccess // Filter by tag. // You can specify one or more tags (tags can be separated by space or comma). - // eg. print_r($mydb->filterTags('linux programming')); + // e.g. print_r($mydb->filterTags('linux programming')); public function filterTags($tags,$casesensitive=false) { $t = str_replace(',',' ',($casesensitive?$tags:strtolower($tags))); @@ -834,9 +834,9 @@ class linkdb implements Iterator, Countable, ArrayAccess return $filtered; } - // Filter by day. Day must be in the form 'YYYYMMDD' (eg. '20120125') + // Filter by day. Day must be in the form 'YYYYMMDD' (e.g. '20120125') // Sort order is: older articles first. - // eg. print_r($mydb->filterDay('20120125')); + // e.g. print_r($mydb->filterDay('20120125')); public function filterDay($day) { $filtered=array(); @@ -891,13 +891,13 @@ class linkdb implements Iterator, Countable, ArrayAccess } // ------------------------------------------------------------------------------------------ -// Ouput the last N links in RSS 2.0 format. +// Output the last N links in RSS 2.0 format. function showRSS() { header('Content-Type: application/rss+xml; charset=utf-8'); // $usepermalink : If true, use permalink instead of final link. - // User just has to add 'permalink' in URL parameters. eg. http://mysite.com/shaarli/?do=rss&permalinks + // User just has to add 'permalink' in URL parameters. e.g. http://mysite.com/shaarli/?do=rss&permalinks $usepermalinks = isset($_GET['permalinks']); // Cache system @@ -906,9 +906,9 @@ function showRSS() $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } // If cached was not found (or not usable), then read the database and build the response: - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if user it not logged in). - // Optionnaly filter the results: + // Optionally filter the results: $linksToDisplay=array(); if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); @@ -965,13 +965,13 @@ function showRSS() } // ------------------------------------------------------------------------------------------ -// Ouput the last N links in ATOM format. +// Output the last N links in ATOM format. function showATOM() { header('Content-Type: application/atom+xml; charset=utf-8'); // $usepermalink : If true, use permalink instead of final link. - // User just has to add 'permalink' in URL parameters. eg. http://mysite.com/shaarli/?do=atom&permalinks + // User just has to add 'permalink' in URL parameters. e.g. http://mysite.com/shaarli/?do=atom&permalinks $usepermalinks = isset($_GET['permalinks']); // Cache system @@ -983,7 +983,7 @@ function showATOM() $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). - // Optionnaly filter the results: + // Optionally filter the results: $linksToDisplay=array(); if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); @@ -1079,7 +1079,7 @@ function showDailyRSS() if (empty($days[$day])) $days[$day]=array(); $days[$day][]=$linkdate; } - if (count($days)>$nb_of_days) break; // Have we collected enough days ? + if (count($days)>$nb_of_days) break; // Have we collected enough days? } // Build the RSS feed. @@ -1158,7 +1158,7 @@ function showDaily() } /* We need to spread the articles on 3 columns. - I did not want to use a javascript lib like http://masonry.desandro.com/ + I did not want to use a JavaScript lib like http://masonry.desandro.com/ so I manually spread entries with a simple method: I roughly evaluate the height of a div according to title and description length. */ @@ -1169,7 +1169,7 @@ function showDaily() // Roughly estimate length of entry (by counting characters) // Title: 30 chars = 1 line. 1 line is 30 pixels height. // Description: 836 characters gives roughly 342 pixel height. - // This is not perfect, but it's usually ok. + // This is not perfect, but it's usually OK. $length=strlen($link['title'])+(342*strlen($link['description']))/836; if ($link['thumbnail']) $length +=100; // 1 thumbnails roughly takes 100 pixels height. // Then put in column which is the less filled: @@ -1222,7 +1222,7 @@ function renderPage() // -------- Picture wall if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=picwall')) { - // Optionnaly filter the results: + // Optionally filter the results: $links=array(); if (!empty($_GET['searchterm'])) $links = $LINKSDB->filterFulltext($_GET['searchterm']); elseif (!empty($_GET['searchtags'])) $links = $LINKSDB->filterTags(trim($_GET['searchtags'])); @@ -1302,7 +1302,7 @@ function renderPage() if (isset($_GET['linksperpage'])) { if (is_numeric($_GET['linksperpage'])) { $_SESSION['LINKS_PER_PAGE']=abs(intval($_GET['linksperpage'])); } - // Make sure the referer is from Shaarli itself. + // Make sure the referrer is Shaarli itself. $referer = '?'; if (!empty($_SERVER['HTTP_REFERER']) && strcmp(parse_url($_SERVER['HTTP_REFERER'],PHP_URL_HOST),$_SERVER['HTTP_HOST'])==0) $referer = $_SERVER['HTTP_REFERER']; @@ -1321,7 +1321,7 @@ function renderPage() { unset($_SESSION['privateonly']); // See all links } - // Make sure the referer is from Shaarli itself. + // Make sure the referrer is Shaarli itself. $referer = '?'; if (!empty($_SERVER['HTTP_REFERER']) && strcmp(parse_url($_SERVER['HTTP_REFERER'],PHP_URL_HOST),$_SERVER['HTTP_HOST'])==0) $referer = $_SERVER['HTTP_REFERER']; @@ -1332,7 +1332,7 @@ function renderPage() // -------- Handle other actions allowed for non-logged in users: if (!isLoggedIn()) { - // User tries to post new link but is not loggedin: + // User tries to post new link but is not logged in: // Show login screen, then redirect to ?post=... if (isset($_GET['post'])) { @@ -1342,7 +1342,7 @@ function renderPage() $PAGE = new pageBuilder; buildLinkList($PAGE,$LINKSDB); // Compute list of links to display $PAGE->renderPage('linklist'); - exit; // Never remove this one ! All operations below are reserved for logged in user. + exit; // Never remove this one! All operations below are reserved for logged in user. } // -------- All other functions are reserved for the registered user: @@ -1363,7 +1363,7 @@ function renderPage() if ($GLOBALS['config']['OPEN_SHAARLI']) die('You are not supposed to change a password on an Open Shaarli.'); if (!empty($_POST['setpassword']) && !empty($_POST['oldpassword'])) { - if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away ! + if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away! // Make sure old password is correct. $oldhash = sha1($_POST['oldpassword'].$GLOBALS['login'].$GLOBALS['salt']); @@ -1390,7 +1390,7 @@ function renderPage() { if (!empty($_POST['title']) ) { - if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away ! + if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away! $tz = 'UTC'; if (!empty($_POST['continent']) && !empty($_POST['city'])) if (isTZvalid($_POST['continent'],$_POST['city'])) @@ -1414,7 +1414,7 @@ function renderPage() $PAGE->assign('title',htmlspecialchars( empty($GLOBALS['title']) ? '' : $GLOBALS['title'] , ENT_QUOTES)); $PAGE->assign('redirector',htmlspecialchars( empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector'] , ENT_QUOTES)); list($timezone_form,$timezone_js) = templateTZform($GLOBALS['timezone']); - $PAGE->assign('timezone_form',$timezone_form); // FIXME: put entire tz form generation in template ? + $PAGE->assign('timezone_form',$timezone_form); // FIXME: Put entire tz form generation in template? $PAGE->assign('timezone_js',$timezone_js); $PAGE->renderPage('configure'); exit; @@ -1438,7 +1438,7 @@ function renderPage() if (!empty($_POST['deletetag']) && !empty($_POST['fromtag'])) { $needle=trim($_POST['fromtag']); - $linksToAlter = $LINKSDB->filterTags($needle,true); // true for case-sensitive tag search. + $linksToAlter = $LINKSDB->filterTags($needle,true); // True for case-sensitive tag search. foreach($linksToAlter as $key=>$value) { $tags = explode(' ',trim($value['tags'])); @@ -1446,7 +1446,7 @@ function renderPage() $value['tags']=trim(implode(' ',$tags)); $LINKSDB[$key]=$value; } - $LINKSDB->savedb(); // save to disk + $LINKSDB->savedb(); // Save to disk. echo ''; exit; } @@ -1459,17 +1459,17 @@ function renderPage() foreach($linksToAlter as $key=>$value) { $tags = explode(' ',trim($value['tags'])); - $tags[array_search($needle,$tags)] = trim($_POST['totag']); // Remplace tags value. + $tags[array_search($needle,$tags)] = trim($_POST['totag']); // Replace tags value. $value['tags']=trim(implode(' ',$tags)); $LINKSDB[$key]=$value; } - $LINKSDB->savedb(); // save to disk + $LINKSDB->savedb(); // Save to disk. echo ''; exit; } } - // -------- User wants to add a link without using the bookmarklet: show form. + // -------- User wants to add a link without using the bookmarklet: Show form. if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=addlink')) { $PAGE = new pageBuilder; @@ -1481,7 +1481,7 @@ function renderPage() // -------- User clicked the "Save" button when editing a link: Save link to database. if (isset($_POST['save_edit'])) { - if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away ! + if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away! $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. $linkdate=$_POST['lf_linkdate']; $url = trim($_POST['lf_url']); @@ -1491,7 +1491,7 @@ function renderPage() 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. $LINKSDB[$linkdate] = $link; - $LINKSDB->savedb(); // save to disk + $LINKSDB->savedb(); // Save to disk. pubsubhub(); // If we are called from the bookmarklet, we must close the popup: @@ -1505,7 +1505,7 @@ function renderPage() // -------- User clicked the "Cancel" button when editing a link. if (isset($_POST['cancel_edit'])) { - // If we are called from the bookmarklet, we must close the popup; + // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. @@ -1513,12 +1513,12 @@ function renderPage() exit; } - // -------- User clicked the "Delete" button when editing a link : Delete link from database. + // -------- User clicked the "Delete" button when editing a link: Delete link from database. if (isset($_POST['delete_link'])) { if (!tokenOk($_POST['token'])) die('Wrong token.'); // We do not need to ask for confirmation: - // - confirmation is handled by javascript + // - confirmation is handled by JavaScript // - we are protected from XSRF by the token. $linkdate=$_POST['lf_linkdate']; unset($LINKSDB[$linkdate]); @@ -1568,7 +1568,7 @@ function renderPage() $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; - // If this is an HTTP link, we try go get the page to extact the title (otherwise we will to straight to the edit form.) + // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http') { list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. @@ -1622,7 +1622,7 @@ function renderPage() exit; } $exportWhat=$_GET['what']; - if (!array_intersect(array('all','public','private'),array($exportWhat))) die('What are you trying to export ???'); + if (!array_intersect(array('all','public','private'),array($exportWhat))) die('What are you trying to export???'); header('Content-Type: text/html; charset=utf-8'); header('Content-disposition: attachment; filename=bookmarks_'.$exportWhat.'_'.strval(date('Ymd_His')).'.html'); @@ -1695,8 +1695,8 @@ function importFile() $filename=$_FILES['filetoupload']['name']; $filesize=$_FILES['filetoupload']['size']; $data=file_get_contents($_FILES['filetoupload']['tmp_name']); - $private = (empty($_POST['private']) ? 0 : 1); // Should the links be imported as private ? - $overwrite = !empty($_POST['overwrite']) ; // Should the imported links overwrite existing ones ? + $private = (empty($_POST['private']) ? 0 : 1); // Should the links be imported as private? + $overwrite = !empty($_POST['overwrite']) ; // Should the imported links overwrite existing ones? $import_count=0; // Sniff file type: @@ -1707,7 +1707,7 @@ function importFile() if ($type=='netscape') { // This is a standard Netscape-style bookmark file. - // This format is supported by all browsers (except IE, of course), also delicious, diigo and others. + // This format is supported by all browsers (except IE, of course), also Delicious, Diigo and others. foreach(explode('
',$data) as $html) // explode is very fast { $link = array('linkdate'=>'','title'=>'','url'=>'','description'=>'','tags'=>'','private'=>0); @@ -1741,14 +1741,14 @@ function importFile() // Make sure date/time is not already used by another link. // (Some bookmark files have several different links with the same ADD_DATE) - // We increment date by 1 second until we find a date which is not used in db. + // We increment date by 1 second until we find a date which is not used in DB. // (so that links that have the same date/time are more or less kept grouped by date, but do not conflict.) while (!empty($LINKSDB[date('Ymd_His',$raw_add_date)])) { $raw_add_date++; }// Yes, I know it's ugly. $link['linkdate']=date('Ymd_His',$raw_add_date); $LINKSDB[$link['linkdate']] = $link; $import_count++; } - else // link already present in database. + else // Link already present in database. { if ($overwrite) { // If overwrite is required, we import link data, except date/time. @@ -1799,13 +1799,13 @@ function buildLinkList($PAGE,$LINKSDB) { header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); echo '

404 Not found.

Oh crap. The link you are trying to reach does not exist or has been deleted.'; - echo '
You would mind clicking here ?'; + echo '
You would mind clicking here?'; exit; } $search_type='permalink'; } else - $linksToDisplay = $LINKSDB; // otherwise, display without filtering. + $linksToDisplay = $LINKSDB; // Otherwise, display without filtering. // Option: Show only private links if (!empty($_SESSION['privateonly'])) @@ -1819,11 +1819,11 @@ function buildLinkList($PAGE,$LINKSDB) } // ---- Handle paging. - /* Can someone explain to me why you get the following error when using array_keys() on an object which implements the interface ArrayAccess ??? + /* Can someone explain to me why you get the following error when using array_keys() on an object which implements the interface ArrayAccess??? "Warning: array_keys() expects parameter 1 to be array, object given in ... " If my class implements ArrayAccess, why won't array_keys() accept it ? ( $keys=array_keys($linksToDisplay); ) */ - $keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks php. + $keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP. // If there is only a single link, we change on-the-fly the title of the page. if (count($linksToDisplay)==1) $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'].' - '.$GLOBALS['title']; @@ -1870,7 +1870,7 @@ function buildLinkList($PAGE,$LINKSDB) $PAGE->assign('result_count',count($linksToDisplay)); $PAGE->assign('search_type',$search_type); $PAGE->assign('search_crits',$search_crits); - $PAGE->assign('redirector',empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']); // optional redirector URL + $PAGE->assign('redirector',empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']); // Optional redirector URL. $PAGE->assign('token',$token); $PAGE->assign('links',$linkDisp); return; @@ -1878,9 +1878,9 @@ function buildLinkList($PAGE,$LINKSDB) // Compute the thumbnail for a link. // -// with a link to the original URL. +// With a link to the original URL. // Understands various services (youtube.com...) -// Input: $url = url for which the thumbnail must be found. +// Input: $url = URL for which the thumbnail must be found. // $href = if provided, this URL will be followed instead of $url // Returns an associative array with thumbnail attributes (src,href,width,height,style,alt) // Some of them may be missing. @@ -1891,7 +1891,7 @@ function computeThumbnail($url,$href=false) if ($href==false) $href=$url; // For most hosts, the URL of the thumbnail can be easily deduced from the URL of the link. - // (eg. http://www.youtube.com/watch?v=spVypYk4kto ---> http://img.youtube.com/vi/spVypYk4kto/default.jpg ) + // (e.g. http://www.youtube.com/watch?v=spVypYk4kto ---> http://img.youtube.com/vi/spVypYk4kto/default.jpg ) // ^^^^^^^^^^^ ^^^^^^^^^^^ $domain = parse_url($url,PHP_URL_HOST); if ($domain=='youtube.com' || $domain=='www.youtube.com') @@ -1964,17 +1964,17 @@ function computeThumbnail($url,$href=false) ) { if ($domain=='vimeo.com') - { // Make sure this vimeo url points to a video (/xxx... where xxx is numeric) + { // Make sure this vimeo URL points to a video (/xxx... where xxx is numeric) $path = parse_url($url,PHP_URL_PATH); if (!preg_match('!/\d+.+?!',$path)) return array(); // This is not a single video URL. } if ($domain=='xkcd.com' || endsWith($domain,'.xkcd.com')) - { // Make sure this url points to a single comic (/xxx... where xxx is numeric) + { // Make sure this URL points to a single comic (/xxx... where xxx is numeric) $path = parse_url($url,PHP_URL_PATH); if (!preg_match('!/\d+.+?!',$path)) return array(); } if ($domain=='ted.com' || endsWith($domain,'.ted.com')) - { // Make sure this TED url points to a video (/talks/...) + { // Make sure this TED URL points to a video (/talks/...) $path = parse_url($url,PHP_URL_PATH); if ("/talks/" !== substr($path,0,7)) return array(); // This is not a single video URL. } @@ -2001,7 +2001,7 @@ function computeThumbnail($url,$href=false) // Returns the HTML code to display a thumbnail for a link // with a link to the original URL. // Understands various services (youtube.com...) -// Input: $url = url for which the thumbnail must be found. +// Input: $url = URL for which the thumbnail must be found. // $href = if provided, this URL will be followed instead of $url // Returns '' if no thumbnail available. function thumbnail($url,$href=false) @@ -2022,7 +2022,7 @@ function thumbnail($url,$href=false) // Returns the HTML code to display a thumbnail for a link // for the picture wall (using lazy image loading) // Understands various services (youtube.com...) -// Input: $url = url for which the thumbnail must be found. +// Input: $url = URL for which the thumbnail must be found. // $href = if provided, this URL will be followed instead of $url // Returns '' if no thumbnail available. function lazyThumbnail($url,$href=false) @@ -2032,7 +2032,7 @@ function lazyThumbnail($url,$href=false) $html=''; - // Lazy image (only loaded by javascript when in the viewport). + // Lazy image (only loaded by JavaScript when in the viewport). if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled) $html.='alert("Shaarli is now configured. Please enter your login/password and start shaaring your links !");document.location=\'?do=login\';'; + echo ''; exit; } @@ -2114,14 +2114,14 @@ function install() exit; } -// Generates the timezone selection form and javascript. +// Generates the timezone selection form and JavaScript. // Input: (optional) current timezone (can be 'UTC/UTC'). It will be pre-selected. // Output: array(html,js) // Example: list($htmlform,$js) = templateTZform('Europe/Paris'); // Europe/Paris pre-selected. -// Returns array('','') if server does not support timezones list. (eg. php 5.1 on free.fr) +// Returns array('','') if server does not support timezones list. (e.g. PHP 5.1 on free.fr) function templateTZform($ptz=false) { - if (function_exists('timezone_identifiers_list')) // because of old php version (5.1) which can be found on free.fr + if (function_exists('timezone_identifiers_list')) // because of old PHP version (5.1) which can be found on free.fr { // Try to split the provided timezone. if ($ptz==false) { $l=timezone_identifiers_list(); $ptz=$l[0]; } @@ -2130,7 +2130,7 @@ function templateTZform($ptz=false) // Display config form: $timezone_form = ''; $timezone_js = ''; - // The list is in the forme "Europe/Paris", "America/Argentina/Buenos_Aires"... + // The list is in the form "Europe/Paris", "America/Argentina/Buenos_Aires"... // We split the list in continents/cities. $continents = array(); $cities = array(); @@ -2168,9 +2168,9 @@ function templateTZform($ptz=false) function isTZvalid($continent,$city) { $tz = $continent.'/'.$city; - if (function_exists('timezone_identifiers_list')) // because of old php version (5.1) which can be found on free.fr + if (function_exists('timezone_identifiers_list')) // because of old PHP version (5.1) which can be found on free.fr { - if (in_array($tz, timezone_identifiers_list())) // it's a valid timezone ? + if (in_array($tz, timezone_identifiers_list())) // it's a valid timezone? return true; } return false; @@ -2213,7 +2213,7 @@ if (!function_exists('json_encode')) { } // Webservices (for use with jQuery/jQueryUI) -// eg. index.php?ws=tags&term=minecr +// e.g. index.php?ws=tags&term=minecr function processWS() { if (empty($_GET['ws']) || empty($_GET['term'])) return; @@ -2221,7 +2221,7 @@ function processWS() $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). header('Content-Type: application/json; charset=utf-8'); - // Search in tags (case insentitive, cumulative search) + // Search in tags (case insensitive, cumulative search) if ($_GET['ws']=='tags') { $tags=explode(' ',str_replace(',',' ',$term)); $last = array_pop($tags); // Get the last term ("a b c d" ==> "a b c", "d") @@ -2237,7 +2237,7 @@ function processWS() exit; } - // Search a single tag (case sentitive, single tag search) + // Search a single tag (case sensitive, single tag search) if ($_GET['ws']=='singletag') { /* To speed up things, we store list of tags in session */ @@ -2253,7 +2253,7 @@ function processWS() // Re-write configuration file according to globals. // Requires some $GLOBALS to be set (login,hash,salt,title). -// If the config file cannot be saved, an error message is dislayed and the user is redirected to "Tools" menu. +// If the config file cannot be saved, an error message is displayed and the user is redirected to "Tools" menu. // (otherwise, the function simply returns.) function writeConfig() { @@ -2273,12 +2273,12 @@ function writeConfig() } } -/* Because some f*cking services like Flickr require an extra HTTP request to get the thumbnail URL, +/* Because some f*cking services like flickr require an extra HTTP request to get the thumbnail URL, I have deported the thumbnail URL code generation here, otherwise this would slow down page generation. - The following function takes the URL a link (eg. a flickr page) and return the proper thumbnail. - This function is called by passing the url: + The following function takes the URL a link (e.g. a flickr page) and return the proper thumbnail. + This function is called by passing the URL: http://mywebsite.com/shaarli/?do=genthumbnail&hmac=[HMAC]&url=[URL] - [URL] is the URL of the link (eg. a flickr page) + [URL] is the URL of the link (e.g. a flickr page) [HMAC] is the signature for the [URL] (so that these URL cannot be forged). The function below will fetch the image from the webservice and store it in the cache. */ @@ -2286,7 +2286,7 @@ function genThumbnail() { // Make sure the parameters in the URL were generated by us. $sign = hash_hmac('sha256', $_GET['url'], $GLOBALS['salt']); - if ($sign!=$_GET['hmac']) die('Naughty boy !'); + if ($sign!=$_GET['hmac']) die('Naughty boy!'); // Let's see if we don't already have the image for this URL in the cache. $thumbname=hash('sha1',$_GET['url']).'.jpg'; @@ -2311,22 +2311,22 @@ function genThumbnail() if ($domain=='flickr.com' || endsWith($domain,'.flickr.com')) { - // Crude replacement to handle new Flickr domain policy (They prefer www. now) + // Crude replacement to handle new flickr domain policy (They prefer www. now) $url = str_replace('http://flickr.com/','http://www.flickr.com/',$url); // Is this a link to an image, or to a flickr page ? $imageurl=''; if (endswith(parse_url($url,PHP_URL_PATH),'.jpg')) - { // This is a direct link to an image. eg. http://farm1.staticflickr.com/5/5921913_ac83ed27bd_o.jpg + { // This is a direct link to an image. e.g. http://farm1.staticflickr.com/5/5921913_ac83ed27bd_o.jpg preg_match('!(http://farm\d+\.staticflickr\.com/\d+/\d+_\w+_)\w.jpg!',$url,$matches); if (!empty($matches[1])) $imageurl=$matches[1].'m.jpg'; } - else // this is a flickr page (html) + else // This is a flickr page (html) { list($httpstatus,$headers,$data) = getHTTP($url,20); // Get the flickr html page. if (strpos($httpstatus,'200 OK')!==false) { - // Flickr now nicely provides the URL of the thumbnail in each flickr page. + // flickr now nicely provides the URL of the thumbnail in each flickr page. preg_match('!Security: Features: - + New link: @@ -30,4 +30,4 @@ {include="page.footer"} - + \ No newline at end of file diff --git a/tpl/import.html b/tpl/import.html index 9e581fc..259e56e 100644 --- a/tpl/import.html +++ b/tpl/import.html @@ -5,7 +5,7 @@
The Daily Shaarli
——————————— {$day} ———————————
-
+
{if="$linksToDisplay"}
{loop="col1"}
-
permalink
+ {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if} @@ -32,7 +32,7 @@
{loop="col2"}
-
permalink
+ {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if} @@ -44,7 +44,7 @@
{loop="col3"}
-
permalink
+ {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} {if="$value.thumbnail"}
{$value.thumbnail}
{/if} @@ -53,11 +53,10 @@ {/loop}
{else} -
No articles on this day.
+
No articles on this day.
{/if} -
-
-
+
-
{include="page.footer"} - \ No newline at end of file + diff --git a/tpl/editlink.html b/tpl/editlink.html index 48945a3..454dfff 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -12,10 +12,10 @@
- URL

- Title

- Description

- Tags

+ URL

+ Title

+ Description

+ Tags

{if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}  
@@ -23,9 +23,9 @@  
{/if} - - - {if="!$link_is_new"}{/if} + + + {if="!$link_is_new"}{/if} {if="$http_referer"}{/if} diff --git a/tpl/export.html b/tpl/export.html index 938cbe6..911b02c 100644 --- a/tpl/export.html +++ b/tpl/export.html @@ -7,9 +7,10 @@
{include="page.footer"} - \ No newline at end of file + diff --git a/tpl/install.html b/tpl/install.html index 4034ef1..32b8811 100644 --- a/tpl/install.html +++ b/tpl/install.html @@ -2,20 +2,19 @@ {include="includes"}{$timezone_js} -
+

Shaarli

It looks like it's the first time you run Shaarli. Please configure it:
-
-
- + +
{$timezone_html} - +
Login:
Password:
Page title:
{include="page.footer"} - \ No newline at end of file + diff --git a/tpl/linklist.html b/tpl/linklist.html index d33fc3c..eadbc4c 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -4,9 +4,9 @@ diff --git a/tpl/loginform.html b/tpl/loginform.html index 805a014..954f6f1 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -13,7 +13,7 @@ Login:     Password :
- + {if="$returnurl"}{/if} @@ -23,4 +23,4 @@ {include="page.footer"} - \ No newline at end of file + diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 8e5869c..b494bf7 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -2,7 +2,7 @@ Shaarli {$version|htmlspecialchars} - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.
{if="$newversion"} -
Shaarli {$newversion|htmlspecialchars} is available.
+
Shaarli {$newversion|htmlspecialchars} is available.
{/if} {if="isLoggedIn()"} diff --git a/tpl/page.header.html b/tpl/page.header.html index 654a551..17c0c75 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -1,6 +1,6 @@ -
Shaare your links...
+
Shaare your links...
{if="!empty($linkcount)"}{$linkcount} links{/if}
{$shaarlititle|htmlspecialchars} @@ -17,7 +17,7 @@ {/if} RSS Feed {if="$GLOBALS['config']['SHOW_ATOM']"} - ATOM Feed + ATOM Feed {/if} Tag cloud Picture wall diff --git a/tpl/tagcloud.html b/tpl/tagcloud.html index 0dd2c0d..9418e24 100644 --- a/tpl/tagcloud.html +++ b/tpl/tagcloud.html @@ -6,10 +6,10 @@
{loop="tags"} - {$value.count}{$key|htmlspecialchars} + {$value.count}{$key|htmlspecialchars} {/loop}
{include="page.footer"} - \ No newline at end of file + diff --git a/tpl/tools.html b/tpl/tools.html index ba1c1e8..ae31902 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -10,10 +10,10 @@ Rename/delete tags : Rename or delete a tag in all links

Import : Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)

Export : Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)

- Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "Shaare link" button in any page you want to share.


+ Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "Shaare link" button in any page you want to share.


{include="page.footer"} - \ No newline at end of file + From e0a9e1470497c61c93b9f493fe502168cd69634b Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 5 Dec 2014 01:05:23 +0100 Subject: [PATCH 035/658] =?UTF-8?q?bookmarklet:=20add=20=E2=9C=9A=20sign?= =?UTF-8?q?=20to=20make=20it=20more=20recognizable=20in=20toolbars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tpl/tools.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/tools.html b/tpl/tools.html index ae31902..c2520fd 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -10,7 +10,7 @@ Rename/delete tags : Rename or delete a tag in all links

Import : Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)

Export : Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)

- Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "Shaare link" button in any page you want to share.


+ ✚Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "✚Shaare link" button in any page you want to share.


From 569be2e8d5b64f57bf6f0daf329f33deea69eda6 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 16 Dec 2014 19:21:58 +0100 Subject: [PATCH 036/658] prevent disclosing full path when raising "Shaarli directory not writeable" error * work on https://github.com/shaarli/Shaarli/issues/78 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 38958a7..d30cb05 100644 --- a/index.php +++ b/index.php @@ -89,7 +89,7 @@ header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // Directories creations (Note that your web host may require different rights than 705.) -if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory ('.realpath(dirname(__FILE__)).').
'); +if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory.').
'); // Handling of old config file which do not have the new parameters. if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); From 509762236b4074bc7f1d344c5436fe8983db60dc Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 16 Dec 2014 19:24:37 +0100 Subject: [PATCH 037/658] prevent disclosing PHP version on PHP version check error * fixes https://github.com/shaarli/Shaarli/issues/78 * fixes https://github.com/sebsauvage/Shaarli/issues/214 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d30cb05..4bbd902 100644 --- a/index.php +++ b/index.php @@ -118,7 +118,7 @@ function checkphpversion() if (version_compare(PHP_VERSION, '5.1.0') < 0) { header('Content-Type: text/plain; charset=utf-8'); - echo 'Your server supports PHP '.PHP_VERSION.'. Shaarli requires at least php 5.1.0, and thus cannot run. Sorry.'; + echo 'Your PHP version is obsolete! Shaarli requires at least php 5.1.0, and thus cannot run. Sorry. Your PHP version has known security vulnerabilities and should be updated as soon as possible.'; exit; } } From 60b83e7cf763be3a68529f1d945710edaeb87967 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 16 Dec 2014 19:52:06 +0100 Subject: [PATCH 038/658] fix quoting error introduced in 712501812b6f927b048b9d7f767cb15a370b3c81 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 4bbd902..02a6725 100644 --- a/index.php +++ b/index.php @@ -89,7 +89,7 @@ header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // Directories creations (Note that your web host may require different rights than 705.) -if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory.').
'); +if (!is_writable(realpath(dirname(__FILE__)))) die('
ERROR: Shaarli does not have the right to write in its own directory.
'); // Handling of old config file which do not have the new parameters. if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.htmlspecialchars(indexUrl()); From 2e45fdd8ff84678215ac838133f89c57580b59af Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Mon, 22 Dec 2014 16:43:37 +0100 Subject: [PATCH 039/658] Made tag/title search unicode aware, fixes #75 --- index.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 35e83eb..e2c6886 100644 --- a/index.php +++ b/index.php @@ -794,14 +794,16 @@ class linkdb implements Iterator, Countable, ArrayAccess { // FIXME: explode(' ',$searchterms) and perform a AND search. // FIXME: accept double-quotes to search for a string "as is"? + // Using mb_convert_case($val, MB_CASE_LOWER, 'UTF-8') allows us to perform searches on + // Unicode text. See https://github.com/shaarli/Shaarli/issues/75 for examples. $filtered=array(); - $s = strtolower($searchterms); + $s = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8'); foreach($this->links as $l) { - $found= (strpos(strtolower($l['title']),$s)!==false) - || (strpos(strtolower($l['description']),$s)!==false) - || (strpos(strtolower($l['url']),$s)!==false) - || (strpos(strtolower($l['tags']),$s)!==false); + $found= (strpos(mb_convert_case($l['title'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) + || (strpos(mb_convert_case($l['description'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) + || (strpos(mb_convert_case($l['url'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) + || (strpos(mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8'),$s) !== false); if ($found) $filtered[$l['linkdate']] = $l; } krsort($filtered); @@ -813,12 +815,14 @@ class linkdb implements Iterator, Countable, ArrayAccess // e.g. print_r($mydb->filterTags('linux programming')); public function filterTags($tags,$casesensitive=false) { - $t = str_replace(',',' ',($casesensitive?$tags:strtolower($tags))); + // Same as above, we use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) + // TODO: is $casesensitive ever true ? + $t = str_replace(',',' ',($casesensitive?$tags:mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8'))); $searchtags=explode(' ',$t); $filtered=array(); foreach($this->links as $l) { - $linktags = explode(' ',($casesensitive?$l['tags']:strtolower($l['tags']))); + $linktags = explode(' ',($casesensitive?$l['tags']:mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8'))); if (count(array_intersect($linktags,$searchtags)) == count($searchtags)) $filtered[$l['linkdate']] = $l; } From cae64e52e47811a3fbef534f296b8952680d0d8f Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Mon, 22 Dec 2014 17:11:53 +0100 Subject: [PATCH 040/658] Refactored the daily column generation (only one loop) --- index.php | 5 +--- tpl/daily.html | 67 +++++++++++++++++++++++--------------------------- 2 files changed, 32 insertions(+), 40 deletions(-) diff --git a/index.php b/index.php index 02a6725..b280ee9 100644 --- a/index.php +++ b/index.php @@ -1173,10 +1173,7 @@ function showDaily() $PAGE = new pageBuilder; $PAGE->assign('linksToDisplay',$linksToDisplay); $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('col1',$columns[0]); - $PAGE->assign('col1',$columns[0]); - $PAGE->assign('col2',$columns[1]); - $PAGE->assign('col3',$columns[2]); + $PAGE->assign('cols', $columns); $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000')))); $PAGE->assign('previousday',$previousday); $PAGE->assign('nextday',$nextday); diff --git a/tpl/daily.html b/tpl/daily.html index c15a706..b92425b 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -7,7 +7,7 @@
All links of one day
in a single page.
{if="$previousday"} <Previous day{else}<Previous day{/if} - - + - {if="$nextday"}Next day>{else}Next day>{/if}

Daily RSS Feed @@ -15,43 +15,38 @@
The Daily Shaarli
——————————— {$day} ———————————
- + {if="$linksToDisplay"} -
- {loop="col1"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
+ {loop="cols"} + {if="isset($value[0])"} +
+ {loop="value"} + {$link=$value} +
+ + {if="$link.tags"} +
+ {loop="link.taglist"} + {$value|htmlspecialchars} - + {/loop} +
+ {/if} + + {if="$link.thumbnail"} +
{$link.thumbnail}
+ {/if} +
{$link.formatedDescription}
+
+ {/loop} +
+ {/if} {/loop} -
- -
- {loop="col2"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
- {/loop} -
- -
- {loop="col3"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
- {/loop} -
{else}
No articles on this day.
{/if} From 1e3b2740e522a8fde6bfef1030cd9b4a5eae0304 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 24 Dec 2014 20:00:17 +0100 Subject: [PATCH 041/658] improve tag cloud font size scaling * use logarithmic scales * remove bold style --- inc/shaarli.css | 1 - index.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index e7396cc..d52de92 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -562,7 +562,6 @@ a.qrcode img { } #cloudtag a { - font-weight:bold; color: black; text-decoration: none; } diff --git a/index.php b/index.php index 02a6725..7843f2b 100644 --- a/index.php +++ b/index.php @@ -1251,8 +1251,9 @@ function renderPage() ksort($tags); $tagList=array(); foreach($tags as $key=>$value) + // Tag font size scaling: default 15 and 30 logarithm bases affect scaling, 22 and 6 are arbitrary font sizes for max and min sizes. { - $tagList[$key] = array('count'=>$value,'size'=>max(40*$value/$maxcount,8)); + $tagList[$key] = array('count'=>$value,'size'=>log($value, 15) / log($maxcount, 30) * (22-6) + 6); } $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); From 657837af111387c93b3a75149d93856df12c00d9 Mon Sep 17 00:00:00 2001 From: Emilien Klein Date: Sun, 4 Jan 2015 15:19:14 -0500 Subject: [PATCH 042/658] Redirect to home page after deleting a link Fixes issue 87 --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.php b/index.php index c4c45e5..e50c018 100644 --- a/index.php +++ b/index.php @@ -1546,9 +1546,7 @@ function renderPage() // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } - $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); - if ($returnurl=='?') { $returnurl = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '?'); } - header('Location: '.$returnurl); // After deleting the link, redirect to the page the user was on. + header('Location: ?'); // After deleting the link, redirect to the home page. exit; } From 8079dfd1cdec41a0bb3ee7ec2b974e8e64376d83 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 12 Dec 2014 17:01:02 +0100 Subject: [PATCH 043/658] W3C compliance (work on issue #64 - https://github.com/shaarli/Shaarli/issues/64): * fix duplicate IDs - #paging_older, #paging_newer become classes as the paging is displayed twice (top, bottom) in the linklist * fix duplicate IDs - #paging_privatelinks and #paging_linksperpage become classes * daily links are now valid (use &) * name attribute is not used anymore on a tag in link list * center tag is replaced by CSS in picwall and tag cloud * action in form tag can't be empty, use # instead * fixed configure table with CSS instead of cellpadding, border, and valign * export links are now valid * remove "size" in input tag * Fix missing alt attributes for img elements * tpl/daily: Use HTML entities instead of char escape codes * tpl/export: fix missing closing tag * Remove obsolete language attribute on + {/if} diff --git a/tpl/picwall.html b/tpl/picwall.html index b78e260..bfaabf7 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -9,15 +9,15 @@ -
-
- {loop="linksToDisplay"} -
- {$value.thumbnail}{$value.title|htmlspecialchars} -
- {/loop} +
+
+ {loop="linksToDisplay"} +
+ {$value.thumbnail}{$value.title|htmlspecialchars} +
+ {/loop} +
-
{include="page.footer"} {if="empty($GLOBALS['disablejquery'])"} diff --git a/tpl/tagcloud.html b/tpl/tagcloud.html index 9418e24..97205e2 100644 --- a/tpl/tagcloud.html +++ b/tpl/tagcloud.html @@ -3,13 +3,13 @@ {include="includes"} -
-
- {loop="tags"} - {$value.count}{$key|htmlspecialchars} - {/loop} +
+
+ {loop="tags"} + {$value.count}{$key|htmlspecialchars} + {/loop} +
-
{include="page.footer"} From fe16b01edb80ac2f2212125fadba8358dff91b95 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 8 Jan 2015 15:09:46 +0100 Subject: [PATCH 044/658] * removed the language attribute on the script element since it is obsolete and we can safely omit it. * make QRCode JS works with IE : * behave as a normal link if canvas aren't supported (<=IE8) * default parameter values in JS aren't widely supported (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters ), use this method instead: http://stackoverflow.com/a/148918/1484919 * dataset isn't supported in IE9 use getAttribute instead * addEventListener works with IE9+ and other browsers --- index.php | 30 +++++++++++++++--------------- tpl/changetag.html | 4 ++-- tpl/editlink.html | 2 +- tpl/linklist.html | 20 ++++++++++++++------ 4 files changed, 32 insertions(+), 24 deletions(-) diff --git a/index.php b/index.php index e50c018..4cb25ab 100644 --- a/index.php +++ b/index.php @@ -430,7 +430,7 @@ if (isset($_POST['login'])) ban_loginFailed(); $redir = ''; if (isset($_GET['post'])) { $redir = '&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):''); } - echo ''; // Redirect to login screen. + echo ''; // Redirect to login screen. exit; } } @@ -1387,12 +1387,12 @@ function renderPage() // Make sure old password is correct. $oldhash = sha1($_POST['oldpassword'].$GLOBALS['login'].$GLOBALS['salt']); - if ($oldhash!=$GLOBALS['hash']) { echo ''; exit; } + if ($oldhash!=$GLOBALS['hash']) { echo ''; exit; } // Save new password $GLOBALS['salt'] = sha1(uniqid('',true).'_'.mt_rand()); // Salt renders rainbow-tables attacks useless. $GLOBALS['hash'] = sha1($_POST['setpassword'].$GLOBALS['login'].$GLOBALS['salt']); writeConfig(); - echo ''; + echo ''; exit; } else // show the change password form. @@ -1423,7 +1423,7 @@ function renderPage() $GLOBALS['disablejquery']=!empty($_POST['disablejquery']); $GLOBALS['privateLinkByDefault']=!empty($_POST['privateLinkByDefault']); writeConfig(); - echo ''; + echo ''; exit; } else // Show the configuration form. @@ -1467,7 +1467,7 @@ function renderPage() $LINKSDB[$key]=$value; } $LINKSDB->savedb(); // Save to disk. - echo ''; + echo ''; exit; } @@ -1484,7 +1484,7 @@ function renderPage() $LINKSDB[$key]=$value; } $LINKSDB->savedb(); // Save to disk. - echo ''; + echo ''; exit; } } @@ -1515,7 +1515,7 @@ function renderPage() pubsubhub(); // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. @@ -1526,7 +1526,7 @@ function renderPage() if (isset($_POST['cancel_edit'])) { // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. header('Location: '.$returnurl); // After canceling, redirect to the page the user was on. @@ -1545,7 +1545,7 @@ function renderPage() $LINKSDB->savedb(); // save to disk // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } header('Location: ?'); // After deleting the link, redirect to the home page. exit; } @@ -1681,7 +1681,7 @@ HTML; if (!isset($_POST['token']) || (!isset($_FILES)) || (isset($_FILES['filetoupload']['size']) && $_FILES['filetoupload']['size']==0)) { $returnurl = ( empty($_SERVER['HTTP_REFERER']) ? '?' : $_SERVER['HTTP_REFERER'] ); - echo ''; + echo ''; exit; } if (!tokenOk($_POST['token'])) die('Wrong token.'); @@ -1785,11 +1785,11 @@ function importFile() } $LINKSDB->savedb(); - echo ''; + echo ''; } else { - echo ''; + echo ''; } } @@ -2123,7 +2123,7 @@ function install() $GLOBALS['hash'] = sha1($_POST['setpassword'].$GLOBALS['login'].$GLOBALS['salt']); $GLOBALS['title'] = (empty($_POST['title']) ? 'Shared links on '.htmlspecialchars(indexUrl()) : $_POST['title'] ); writeConfig(); - echo ''; + echo ''; exit; } @@ -2177,7 +2177,7 @@ function templateTZform($ptz=false) $cities_html = $cities[$pcontinent]; $timezone_form = "Continent: "; $timezone_form .= "    City:
"; - $timezone_js = "" ; @@ -2292,7 +2292,7 @@ function writeConfig() $config .= ' ?>'; if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0) { - echo ''; + echo ''; exit; } } diff --git a/tpl/changetag.html b/tpl/changetag.html index 79fea9a..fdfb0b3 100644 --- a/tpl/changetag.html +++ b/tpl/changetag.html @@ -12,11 +12,11 @@   or 
(Case sensitive) - +
{include="page.footer"} {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} -{/if} +{if="empty($GLOBALS['disablejquery'])"}{/if} {include="includes"} {if="empty($GLOBALS['disablejquery'])"} - - - + + + {/if} From 5a2cbde945e5729bef59c0c45a0da22fbbd092b3 Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Tue, 27 Jan 2015 12:17:56 +0100 Subject: [PATCH 049/658] Fixed license info, reverted qr.js to GPL Added full GPLv3 and CC-BY license I also accidentally declared qr.js as MIT and CC-BY, when it was GPLv3. I don't even. --- COPYING | 522 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 510 insertions(+), 12 deletions(-) diff --git a/COPYING b/COPYING index ea6ed40..b39cd64 100644 --- a/COPYING +++ b/COPYING @@ -49,7 +49,7 @@ License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) Mika Tuupola, https://github.com/tuupola Files: inc/qr.js -License: MIT License (http://opensource.org/licenses/MIT), Creative Commons +License: GPLv3 License (http://opensource.org/licenses/gpl-3.0) Copyright: (C) 2014 Alasdair Mercer, http://neocotic.com, https://github.com/neocotic/qr.js ---------------------------------------------------- @@ -76,18 +76,193 @@ freely, subject to the following restrictions: ---------------------------------------------------- GPLv3 LICENSE -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +GNU GENERAL PUBLIC LICENSE -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +Version 3, 29 June 2007 -You should have received a copy of the GNU General Public License -along with this program. If not, see . +Copyright (C) 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. +TERMS AND CONDITIONS +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. +1. Source Code. + +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. +2. Basic Permissions. + +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. +3. Protecting Users' Legal Rights From Anti-Circumvention Law. + +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. +4. Conveying Verbatim Copies. + +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. +5. Conveying Modified Source Versions. + +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. +6. Conveying Non-Source Forms. + +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. +7. Additional Terms. + +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. +8. Termination. + +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. +11. Patents. + +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. +13. Use with the GNU Affero General Public License. + +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. ---------------------------------------------------- MIT LICENSE @@ -108,4 +283,327 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +THE SOFTWARE. + +---------------------------------------------------- +Creative Commons License (CC-BY 3.0) +Creative Commons Legal Code + +Attribution 3.0 Unported + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR + DAMAGES RESULTING FROM ITS USE. + +License + +THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE +COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY +COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS +AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. + +BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE +TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY +BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS +CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND +CONDITIONS. + +1. Definitions + + a. "Adaptation" means a work based upon the Work, or upon the Work and + other pre-existing works, such as a translation, adaptation, + derivative work, arrangement of music or other alterations of a + literary or artistic work, or phonogram or performance and includes + cinematographic adaptations or any other form in which the Work may be + recast, transformed, or adapted including in any form recognizably + derived from the original, except that a work that constitutes a + Collection will not be considered an Adaptation for the purpose of + this License. For the avoidance of doubt, where the Work is a musical + work, performance or phonogram, the synchronization of the Work in + timed-relation with a moving image ("synching") will be considered an + Adaptation for the purpose of this License. + b. "Collection" means a collection of literary or artistic works, such as + encyclopedias and anthologies, or performances, phonograms or + broadcasts, or other works or subject matter other than works listed + in Section 1(f) below, which, by reason of the selection and + arrangement of their contents, constitute intellectual creations, in + which the Work is included in its entirety in unmodified form along + with one or more other contributions, each constituting separate and + independent works in themselves, which together are assembled into a + collective whole. A work that constitutes a Collection will not be + considered an Adaptation (as defined above) for the purposes of this + License. + c. "Distribute" means to make available to the public the original and + copies of the Work or Adaptation, as appropriate, through sale or + other transfer of ownership. + d. "Licensor" means the individual, individuals, entity or entities that + offer(s) the Work under the terms of this License. + e. "Original Author" means, in the case of a literary or artistic work, + the individual, individuals, entity or entities who created the Work + or if no individual or entity can be identified, the publisher; and in + addition (i) in the case of a performance the actors, singers, + musicians, dancers, and other persons who act, sing, deliver, declaim, + play in, interpret or otherwise perform literary or artistic works or + expressions of folklore; (ii) in the case of a phonogram the producer + being the person or legal entity who first fixes the sounds of a + performance or other sounds; and, (iii) in the case of broadcasts, the + organization that transmits the broadcast. + f. "Work" means the literary and/or artistic work offered under the terms + of this License including without limitation any production in the + literary, scientific and artistic domain, whatever may be the mode or + form of its expression including digital form, such as a book, + pamphlet and other writing; a lecture, address, sermon or other work + of the same nature; a dramatic or dramatico-musical work; a + choreographic work or entertainment in dumb show; a musical + composition with or without words; a cinematographic work to which are + assimilated works expressed by a process analogous to cinematography; + a work of drawing, painting, architecture, sculpture, engraving or + lithography; a photographic work to which are assimilated works + expressed by a process analogous to photography; a work of applied + art; an illustration, map, plan, sketch or three-dimensional work + relative to geography, topography, architecture or science; a + performance; a broadcast; a phonogram; a compilation of data to the + extent it is protected as a copyrightable work; or a work performed by + a variety or circus performer to the extent it is not otherwise + considered a literary or artistic work. + g. "You" means an individual or entity exercising rights under this + License who has not previously violated the terms of this License with + respect to the Work, or who has received express permission from the + Licensor to exercise rights under this License despite a previous + violation. + h. "Publicly Perform" means to perform public recitations of the Work and + to communicate to the public those public recitations, by any means or + process, including by wire or wireless means or public digital + performances; to make available to the public Works in such a way that + members of the public may access these Works from a place and at a + place individually chosen by them; to perform the Work to the public + by any means or process and the communication to the public of the + performances of the Work, including by public digital performance; to + broadcast and rebroadcast the Work by any means including signs, + sounds or images. + i. "Reproduce" means to make copies of the Work by any means including + without limitation by sound or visual recordings and the right of + fixation and reproducing fixations of the Work, including storage of a + protected performance or phonogram in digital form or other electronic + medium. + +2. Fair Dealing Rights. Nothing in this License is intended to reduce, +limit, or restrict any uses free from copyright or rights arising from +limitations or exceptions that are provided for in connection with the +copyright protection under copyright law or other applicable laws. + +3. License Grant. Subject to the terms and conditions of this License, +Licensor hereby grants You a worldwide, royalty-free, non-exclusive, +perpetual (for the duration of the applicable copyright) license to +exercise the rights in the Work as stated below: + + a. to Reproduce the Work, to incorporate the Work into one or more + Collections, and to Reproduce the Work as incorporated in the + Collections; + b. to create and Reproduce Adaptations provided that any such Adaptation, + including any translation in any medium, takes reasonable steps to + clearly label, demarcate or otherwise identify that changes were made + to the original Work. For example, a translation could be marked "The + original work was translated from English to Spanish," or a + modification could indicate "The original work has been modified."; + c. to Distribute and Publicly Perform the Work including as incorporated + in Collections; and, + d. to Distribute and Publicly Perform Adaptations. + e. For the avoidance of doubt: + + i. Non-waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme cannot be waived, the Licensor + reserves the exclusive right to collect such royalties for any + exercise by You of the rights granted under this License; + ii. Waivable Compulsory License Schemes. In those jurisdictions in + which the right to collect royalties through any statutory or + compulsory licensing scheme can be waived, the Licensor waives the + exclusive right to collect such royalties for any exercise by You + of the rights granted under this License; and, + iii. Voluntary License Schemes. The Licensor waives the right to + collect royalties, whether individually or, in the event that the + Licensor is a member of a collecting society that administers + voluntary licensing schemes, via that society, from any exercise + by You of the rights granted under this License. + +The above rights may be exercised in all media and formats whether now +known or hereafter devised. The above rights include the right to make +such modifications as are technically necessary to exercise the rights in +other media and formats. Subject to Section 8(f), all rights not expressly +granted by Licensor are hereby reserved. + +4. Restrictions. The license granted in Section 3 above is expressly made +subject to and limited by the following restrictions: + + a. You may Distribute or Publicly Perform the Work only under the terms + of this License. You must include a copy of, or the Uniform Resource + Identifier (URI) for, this License with every copy of the Work You + Distribute or Publicly Perform. You may not offer or impose any terms + on the Work that restrict the terms of this License or the ability of + the recipient of the Work to exercise the rights granted to that + recipient under the terms of the License. You may not sublicense the + Work. You must keep intact all notices that refer to this License and + to the disclaimer of warranties with every copy of the Work You + Distribute or Publicly Perform. When You Distribute or Publicly + Perform the Work, You may not impose any effective technological + measures on the Work that restrict the ability of a recipient of the + Work from You to exercise the rights granted to that recipient under + the terms of the License. This Section 4(a) applies to the Work as + incorporated in a Collection, but this does not require the Collection + apart from the Work itself to be made subject to the terms of this + License. If You create a Collection, upon notice from any Licensor You + must, to the extent practicable, remove from the Collection any credit + as required by Section 4(b), as requested. If You create an + Adaptation, upon notice from any Licensor You must, to the extent + practicable, remove from the Adaptation any credit as required by + Section 4(b), as requested. + b. If You Distribute, or Publicly Perform the Work or any Adaptations or + Collections, You must, unless a request has been made pursuant to + Section 4(a), keep intact all copyright notices for the Work and + provide, reasonable to the medium or means You are utilizing: (i) the + name of the Original Author (or pseudonym, if applicable) if supplied, + and/or if the Original Author and/or Licensor designate another party + or parties (e.g., a sponsor institute, publishing entity, journal) for + attribution ("Attribution Parties") in Licensor's copyright notice, + terms of service or by other reasonable means, the name of such party + or parties; (ii) the title of the Work if supplied; (iii) to the + extent reasonably practicable, the URI, if any, that Licensor + specifies to be associated with the Work, unless such URI does not + refer to the copyright notice or licensing information for the Work; + and (iv) , consistent with Section 3(b), in the case of an Adaptation, + a credit identifying the use of the Work in the Adaptation (e.g., + "French translation of the Work by Original Author," or "Screenplay + based on original Work by Original Author"). The credit required by + this Section 4 (b) may be implemented in any reasonable manner; + provided, however, that in the case of a Adaptation or Collection, at + a minimum such credit will appear, if a credit for all contributing + authors of the Adaptation or Collection appears, then as part of these + credits and in a manner at least as prominent as the credits for the + other contributing authors. For the avoidance of doubt, You may only + use the credit required by this Section for the purpose of attribution + in the manner set out above and, by exercising Your rights under this + License, You may not implicitly or explicitly assert or imply any + connection with, sponsorship or endorsement by the Original Author, + Licensor and/or Attribution Parties, as appropriate, of You or Your + use of the Work, without the separate, express prior written + permission of the Original Author, Licensor and/or Attribution + Parties. + c. Except as otherwise agreed in writing by the Licensor or as may be + otherwise permitted by applicable law, if You Reproduce, Distribute or + Publicly Perform the Work either by itself or as part of any + Adaptations or Collections, You must not distort, mutilate, modify or + take other derogatory action in relation to the Work which would be + prejudicial to the Original Author's honor or reputation. Licensor + agrees that in those jurisdictions (e.g. Japan), in which any exercise + of the right granted in Section 3(b) of this License (the right to + make Adaptations) would be deemed to be a distortion, mutilation, + modification or other derogatory action prejudicial to the Original + Author's honor and reputation, the Licensor will waive or not assert, + as appropriate, this Section, to the fullest extent permitted by the + applicable national law, to enable You to reasonably exercise Your + right under Section 3(b) of this License (right to make Adaptations) + but not otherwise. + +5. Representations, Warranties and Disclaimer + +UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR +OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY +KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, +INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, +FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF +LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, +WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION +OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. + +6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE +LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR +ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES +ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS +BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. Termination + + a. This License and the rights granted hereunder will terminate + automatically upon any breach by You of the terms of this License. + Individuals or entities who have received Adaptations or Collections + from You under this License, however, will not have their licenses + terminated provided such individuals or entities remain in full + compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will + survive any termination of this License. + b. Subject to the above terms and conditions, the license granted here is + perpetual (for the duration of the applicable copyright in the Work). + Notwithstanding the above, Licensor reserves the right to release the + Work under different license terms or to stop distributing the Work at + any time; provided, however that any such election will not serve to + withdraw this License (or any other license that has been, or is + required to be, granted under the terms of this License), and this + License will continue in full force and effect unless terminated as + stated above. + +8. Miscellaneous + + a. Each time You Distribute or Publicly Perform the Work or a Collection, + the Licensor offers to the recipient a license to the Work on the same + terms and conditions as the license granted to You under this License. + b. Each time You Distribute or Publicly Perform an Adaptation, Licensor + offers to the recipient a license to the original Work on the same + terms and conditions as the license granted to You under this License. + c. If any provision of this License is invalid or unenforceable under + applicable law, it shall not affect the validity or enforceability of + the remainder of the terms of this License, and without further action + by the parties to this agreement, such provision shall be reformed to + the minimum extent necessary to make such provision valid and + enforceable. + d. No term or provision of this License shall be deemed waived and no + breach consented to unless such waiver or consent shall be in writing + and signed by the party to be charged with such waiver or consent. + e. This License constitutes the entire agreement between the parties with + respect to the Work licensed here. There are no understandings, + agreements or representations with respect to the Work not specified + here. Licensor shall not be bound by any additional provisions that + may appear in any communication from You. This License may not be + modified without the mutual written agreement of the Licensor and You. + f. The rights granted under, and the subject matter referenced, in this + License were drafted utilizing the terminology of the Berne Convention + for the Protection of Literary and Artistic Works (as amended on + September 28, 1979), the Rome Convention of 1961, the WIPO Copyright + Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 + and the Universal Copyright Convention (as revised on July 24, 1971). + These rights and subject matter take effect in the relevant + jurisdiction in which the License terms are sought to be enforced + according to the corresponding provisions of the implementation of + those treaty provisions in the applicable national law. If the + standard suite of rights granted under applicable copyright law + includes additional rights not granted under this License, such + additional rights are deemed to be included in the License; this + License is not intended to restrict the license of any rights under + applicable law. + + +Creative Commons Notice + + Creative Commons is not a party to this License, and makes no warranty + whatsoever in connection with the Work. Creative Commons will not be + liable to You or any party on any legal theory for any damages + whatsoever, including without limitation any general, special, + incidental or consequential damages arising in connection to this + license. Notwithstanding the foregoing two (2) sentences, if Creative + Commons has expressly identified itself as the Licensor hereunder, it + shall have all rights and obligations of Licensor. + + Except for the limited purpose of indicating to the public that the + Work is licensed under the CCPL, Creative Commons does not authorize + the use by either party of the trademark "Creative Commons" or any + related trademark or logo of Creative Commons without the prior + written consent of Creative Commons. Any permitted use will be in + compliance with Creative Commons' then-current trademark usage + guidelines, as may be published on its website or otherwise made + available upon request from time to time. For the avoidance of doubt, + this trademark restriction does not form part of this License. + + Creative Commons may be contacted at https://creativecommons.org/. + From ed5b38ddd249c0e50eec7e06e74c9d1c2e864dab Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Fri, 21 Nov 2014 21:31:21 +0100 Subject: [PATCH 050/658] Feature: enable/disable permalinks for RSS The option to see the shortlinks or permalinks has been added to the configuration panel. It is a simple checkbox This option is disabled by default (meaning that shortlinks are the default) Updated writeConfig() to save this option Also fixed a slight typo in config.html. Removed useless CSS & fixed a comment Enabled permalinks for the ATOM feed and fixed the isPermaLink attribute for the tag Reverted to default behavior and clarified its meaning EnableRssPermalinks is an oddly behaving option: when enabled, it shows a permalink in the description and a full link in the element title, and swaps it around when disabled. This clarifies the option for end-users Also, moved enable_rss_permalinks to $GLOBALS['config'] because it is a config option. fix indent --- inc/shaarli.css | 4 ++++ index.php | 12 ++++++++---- tpl/configure.html | 12 +++++++++--- tpl/tools.html | 12 ++++++------ 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index 325515e..f6e580b 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -1039,6 +1039,10 @@ div.dailyNoEntry { } } +#toolsdiv a.button-description { + clear: none; +} + /* Highlight search results */ .highlight { background-color: #FFFF33; diff --git a/index.php b/index.php index d48e388..818fa68 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,7 @@ date_default_timezone_set('UTC'); // ----------------------------------------------------------------------------------------------- -// Hardcoded parameter (These parameters can be overwritten by creating the file /config/options.php) +// Hardcoded parameter (These parameters can be overwritten by creating the file /data/options.php) $GLOBALS['config']['DATADIR'] = 'data'; // Data subdirectory $GLOBALS['config']['CONFIG_FILE'] = $GLOBALS['config']['DATADIR'].'/config.php'; // Configuration file (user login/password) $GLOBALS['config']['DATASTORE'] = $GLOBALS['config']['DATADIR'].'/datastore.php'; // Data storage file. @@ -33,6 +33,7 @@ $GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/las $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; // Updates check frequency for Shaarli. 86400 seconds=24 hours // Note: You must have publisher.php in the same directory as Shaarli index.php $GLOBALS['config']['ARCHIVE_ORG'] = false; // For each link, add a link to an archived version on archive.org +$GLOBALS['config']['ENABLE_RSS_PERMALINKS'] = true; // Enable RSS permalinks by default. This corresponds to the default behavior of shaarli before this was added as an option. // ----------------------------------------------------------------------------------------------- // You should not touch below (or at your own risks!) // Optional config file. @@ -894,7 +895,8 @@ function showRSS() // $usepermalink : If true, use permalink instead of final link. // User just has to add 'permalink' in URL parameters. e.g. http://mysite.com/shaarli/?do=rss&permalinks - $usepermalinks = isset($_GET['permalinks']); + // Also enabled through a config option + $usepermalinks = isset($_GET['permalinks']) || !$GLOBALS['config']['ENABLE_RSS_PERMALINKS']; // Cache system $query = $_SERVER["QUERY_STRING"]; @@ -936,7 +938,7 @@ function showRSS() $absurl = htmlspecialchars($link['url']); if (startsWith($absurl,'?')) $absurl=$pageaddr.$absurl; // make permalink URL absolute if ($usepermalinks===true) - echo ''.htmlspecialchars($link['title']).''.$guid.''.$guid.''; + echo ''.htmlspecialchars($link['title']).''.$guid.''.$guid.''; else echo ''.htmlspecialchars($link['title']).''.$guid.''.$absurl.''; if (!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()) echo ''.htmlspecialchars($rfc822date)."\n"; @@ -968,7 +970,7 @@ function showATOM() // $usepermalink : If true, use permalink instead of final link. // User just has to add 'permalink' in URL parameters. e.g. http://mysite.com/shaarli/?do=atom&permalinks - $usepermalinks = isset($_GET['permalinks']); + $usepermalinks = isset($_GET['permalinks']) || !$GLOBALS['config']['ENABLE_RSS_PERMALINKS']; // Cache system $query = $_SERVER["QUERY_STRING"]; @@ -1423,6 +1425,7 @@ function renderPage() $GLOBALS['disablesessionprotection']=!empty($_POST['disablesessionprotection']); $GLOBALS['disablejquery']=!empty($_POST['disablejquery']); $GLOBALS['privateLinkByDefault']=!empty($_POST['privateLinkByDefault']); + $GLOBALS['config']['ENABLE_RSS_PERMALINKS']= !empty($_POST['enableRssPermalinks']); writeConfig(); echo ''; exit; @@ -2290,6 +2293,7 @@ function writeConfig() $config .= '$GLOBALS[\'disablesessionprotection\']='.var_export($GLOBALS['disablesessionprotection'],true).'; '; $config .= '$GLOBALS[\'disablejquery\']='.var_export($GLOBALS['disablejquery'],true).'; '; $config .= '$GLOBALS[\'privateLinkByDefault\']='.var_export($GLOBALS['privateLinkByDefault'],true).'; '; + $config .= '$GLOBALS[\'config\'][\'ENABLE_RSS_PERMALINKS\']='.var_export($GLOBALS['config']['ENABLE_RSS_PERMALINKS'], true).'; '; $config .= ' ?>'; if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0) { diff --git a/tpl/configure.html b/tpl/configure.html index 89e48bd..c096018 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -21,8 +21,14 @@ Features: - New link: - + New link: + + + + Enable RSS Permalinks + + + @@ -30,4 +36,4 @@
{include="page.footer"} - \ No newline at end of file + diff --git a/tpl/tools.html b/tpl/tools.html index c2520fd..bf0539b 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -6,12 +6,12 @@ {include="page.header"}
{include="page.footer"} From e6ea0f9653937bcac38b6ae5b834c93e1e0fafe4 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 17 Dec 2014 07:47:43 +0100 Subject: [PATCH 051/658] Update README and Shaarli's footer * remove version number display from main page * update project URL in footer, fixes https://github.com/shaarli/Shaarli/issues/89 * update copyright notice in the footer * mention origins of the fork in README, fixes https://github.com/shaarli/Shaarli/issues/105 * update License section in the README * remove screenshots as mediacru.sh is down --- README.md | 20 ++++++++++++-------- tpl/page.footer.html | 4 ++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d074378..6b5086f 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,15 @@ It is designed to be personal (single-user), fast and handy. * You will be automatically notified by a discreet popup if a new version is available * **Shaarli is a bookmarking application, but you can use it for micro-blogging (like Twitter), a pastebin, an online notepad, a snippet repository, etc. See [Usage examples](https://github.com/shaarli/Shaarli/wiki#usage-examples)** + ## Links + * **[Wiki/documentation](https://github.com/shaarli/Shaarli/wiki)** * [Bugs/Feature requests/Discussion](https://github.com/shaarli/Shaarli/issues/) ## Installing + Shaarli requires php 5.1 * Download the latest stable release from https://github.com/shaarli/Shaarli/releases @@ -56,21 +59,22 @@ Shaarli requires php 5.1 _To get the development version, download https://github.com/shaarli/Shaarli/archive/master.zip or `git clone https://github.com/shaarli/Shaarli`_ + ## Upgrading + Delete all files and directories except the `data` directory, then unzip the new version of Shaarli. You will not lose your links and you will not have to reconfigure it. -## Screenshots - -[![](https://cdn.mediacru.sh/AjZc6-emICeO.png)](https://cdn.mediacru.sh/kE8SyD-PvGuC.png) [![](https://cdn.mediacru.sh/MfC-DzklMYs2.png)](https://cdn.mediacru.sh/iqTvO1-yP9pU.png) [![](https://cdn.mediacru.sh/dxmXskaubYcg.png)](https://cdn.mediacru.sh/mMoi31f94wdL.png) [![](https://cdn.mediacru.sh/-ptB2veFivBp.png)](https://cdn.mediacru.sh/GcoZPZmCZ-DR.png) [![](https://cdn.mediacru.sh/QmRdTAr8x427.png)](https://cdn.mediacru.sh/TDDujpMWT31q.png) ## About -Original Project page: http://sebsauvage.net/wiki/doku.php?id=php:shaarli -Shaarli is developed by [Sébastien SAUVAGE](http://sebsauvage.net) and [contributors](COPYING). - -Shaarli is [Free Software](https://en.wikipedia.org/wiki/Free_software) distributed under the [zlib/libpng License](http://www.gzip.org/zlib/zlib_license.html) - This friendly fork is maintained by the community at https://github.com/shaarli/Shaarli +This is a community fork of the original [Shaarli](https://github.com/sebsauvage/Shaarli/) project by [sebsauvage](http://sebsauvage.net/). The original project is currently unmaintained, and the developer [has informed us](https://github.com/sebsauvage/Shaarli/issues/191) that he would have no time to work on Shaarli in the near future. The Shaarli community has carried on the work to provide [many patches](https://github.com/shaarli/Shaarli/compare/sebsauvage:master...master) for [bug fixes and enhancements](https://github.com/shaarli/Shaarli/issues?q=is%3Aclosed+) in this repository, and will keep maintaining the project for the foreseeable future, while keeping Shaarli simple and efficient. If you'd like to help, have a look at the current [issues](https://github.com/shaarli/Shaarli/issues) and [pull requests](https://github.com/shaarli/Shaarli/pulls) and feel free to report bugs and feature requests, propose solutions to existing problems and send us pull requests. + + +## License + +Shaarli is [Free Software](http://en.wikipedia.org/wiki/Free_software). See [COPYING](COPYING) for a detail of the contributors and licenses for each individual component. + diff --git a/tpl/page.footer.html b/tpl/page.footer.html index e55a3cb..448e9f8 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -1,8 +1,8 @@ {if="$newversion"} -
Shaarli {$newversion|htmlspecialchars} is available.
+
Shaarli {$newversion|htmlspecialchars} is available.
{/if} {if="isLoggedIn()"} From a6e0134d07f7a77f1da97d9d563e339057ff8d54 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 7 Feb 2015 20:19:27 +0100 Subject: [PATCH 052/658] Fix missing authors and licenses in COPYING * add idleman for original CSS * add yahoo inc. for CSS reset * split the main css code and the yahoo reset CSS in 2 files * add copyright information for RainTPL, add LGPL license --- COPYING | 198 +++++++++++++++++++++++++++++++++++++++++++++- inc/reset.css | 6 ++ inc/shaarli.css | 9 +-- tpl/includes.html | 1 + 4 files changed, 204 insertions(+), 10 deletions(-) create mode 100644 inc/reset.css diff --git a/COPYING b/COPYING index b39cd64..715ba35 100644 --- a/COPYING +++ b/COPYING @@ -15,8 +15,14 @@ Copyright: (c) 2011-2015 Sébastien SAUVAGE (c) 2011-2015 nodiscc (c) 2011-2015 Florian Eula (c) 2011-2015 Arthur Hoaro - (c) 2011-2015 virtualtam - (c) 2011-2015 qwertygc + (c) 2011-2015 virtualtam + (c) 2011-2015 qwertygc + (c) 2011-2015 idleman + + +Files: inc/reset.css +License: BSD (http://opensource.org/licenses/BSD-3-Clause) +Copyright: (c) 2010, Yahoo! Inc. Files: images/calendar.png, images/edit_icon.png, images/feed-icon-14x14.png, images/private.png, images/private_16x16.png, images/private_16x16_active.png, images/qrcode.png, images/tag_blue.png License: CC-BY (http://creativecommons.org/licenses/by/3.0/) @@ -52,6 +58,11 @@ Files: inc/qr.js License: GPLv3 License (http://opensource.org/licenses/gpl-3.0) Copyright: (C) 2014 Alasdair Mercer, http://neocotic.com, https://github.com/neocotic/qr.js +Files: inc/rain.tpl.class.php +Copyright: 2011-2012, Federico Ulfo + 2011-2012, The Rain Team +License: LGPL-3+ (https://www.gnu.org/licenses/lgpl-3.0.txt) + ---------------------------------------------------- ZLIB/LIBPNG LICENSE @@ -607,3 +618,186 @@ Creative Commons Notice Creative Commons may be contacted at https://creativecommons.org/. + + +---------------------------------------------------- +BSD License + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------ +LGPL License + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/inc/reset.css b/inc/reset.css new file mode 100644 index 0000000..e29699e --- /dev/null +++ b/inc/reset.css @@ -0,0 +1,6 @@ +/* CSS Reset from Yahoo to cope with browsers CSS inconsistencies. */ +/* + Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html + version: 2.8.2r1 + */ +html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;} \ No newline at end of file diff --git a/inc/shaarli.css b/inc/shaarli.css index f6e580b..bb564e9 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -1,11 +1,4 @@ -/* Cascading Stylesheet for Shaarli - http://sebsauvage.net/wiki/doku.php?id=php:shaarli */ - -/* CSS Reset from Yahoo to cope with browsers CSS inconsistencies. */ -/* - Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html - version: 2.8.2r1 - */ -html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;} +/* Cascading Stylesheet for Shaarli - https://github.com/shaarli/Shaarli */ body { font-family: "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif; diff --git a/tpl/includes.html b/tpl/includes.html index efc658e..53996fb 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -5,5 +5,6 @@ + {if="is_file('inc/user.css')"}{/if} From 225eff62a1f665ecdfdfc145bd81fc671d0961bb Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 17 Feb 2015 20:58:11 +0100 Subject: [PATCH 053/658] fix broken reset.css URL introduced in a6e0134 --- tpl/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/includes.html b/tpl/includes.html index 53996fb..93cdfd5 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -5,6 +5,6 @@ - + {if="is_file('inc/user.css')"}{/if} From d528433d73bd0ad3eb3d7a9c26a40d68aca84aeb Mon Sep 17 00:00:00 2001 From: feula Date: Sun, 15 Feb 2015 02:24:26 +0100 Subject: [PATCH 054/658] redirect to previous search (if any) when deleting a link * Fixes https://github.com/shaarli/Shaarli/issues/110 --- index.php | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 818fa68..3af3869 100644 --- a/index.php +++ b/index.php @@ -1550,7 +1550,37 @@ function renderPage() // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } - header('Location: ?'); // After deleting the link, redirect to the home page. + // Pick where we're going to redirect + // ============================================================= + // Basically, we can't redirect to where we were previously if it was a permalink + // or an edit_link, because it would 404. + // Cases: + // - / : nothing in $_GET, redirect to self + // - /?page : redirect to self + // - /?searchterm : redirect to self (there might be other links) + // - /?searchtags : redirect to self + // - /permalink : redirect to / (the link does not exist anymore) + // - /?edit_link : redirect to / (the link does not exist anymore) + // PHP treats the permalink as a $_GET variable, so we need to check if every condition for self + // redirect is not satisfied, and only then redirect to / + $location = "?"; + // Self redirection + if (count($_GET) == 0 || + isset($_GET['page']) || + isset($_GET['searchterm']) || + isset($_GET['searchtags'])) { + + if (isset($_POST['returnurl'])) { + $location = $_POST['returnurl']; // Handle redirects given by the form + } + + if ($location === "?" && + isset($_SERVER['HTTP_REFERER'])) { // Handle HTTP_REFERER in case we're not coming from the same place. + $location = $_SERVER['HTTP_REFERER']; + } + } + + header('Location: ' . $location); // After deleting the link, redirect to appropriate location exit; } From ff69d87ed95747beae3fc60d450fe79ddc21398e Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Thu, 25 Dec 2014 14:00:50 +0100 Subject: [PATCH 055/658] Only verify login state at the beginning of the request. Moved login check into a function --- index.php | 79 +++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 57 insertions(+), 22 deletions(-) diff --git a/index.php b/index.php index 3af3869..fdd9aec 100644 --- a/index.php +++ b/index.php @@ -113,6 +113,53 @@ define('STAY_SIGNED_IN_TOKEN', sha1($GLOBALS['hash'].$_SERVER["REMOTE_ADDR"].$GL autoLocale(); // Sniff browser language and set date format accordingly. header('Content-Type: text/html; charset=utf-8'); // We use UTF-8 for proper international characters handling. +//================================================================================================== +// Checking session state (i.e. is the user still logged in) +//================================================================================================== + +function setup_login_state() { + $userIsLoggedIn = false; // By default, we do not consider the user as logged in; + $loginFailure = false; // If set to true, every attempt to authenticate the user will fail. This indicates that an important condition isn't met. + if ($GLOBALS['config']['OPEN_SHAARLI']) { + $userIsLoggedIn = true; + } + if (!isset($GLOBALS['login'])) { + $userIsLoggedIn = false; // Shaarli is not configured yet. + $loginFailure = true; + } + if (isset($_COOKIE['shaarli_staySignedIn']) && + $_COOKIE['shaarli_staySignedIn']===STAY_SIGNED_IN_TOKEN && + !$loginFailure) + { + fillSessionInfo(); + $userIsLoggedIn = true; + } + // If session does not exist on server side, or IP address has changed, or session has expired, logout. + if (empty($_SESSION['uid']) || + ($GLOBALS['disablesessionprotection']==false && $_SESSION['ip']!=allIPs()) || + time() >= $_SESSION['expires_on']) + { + logout(); + $userIsLoggedIn = false; + $loginFailure = true; + } + if (!empty($_SESSION['longlastingsession'])) { + $_SESSION['expires_on']=time()+$_SESSION['longlastingsession']; // In case of "Stay signed in" checked. + } + else { + $_SESSION['expires_on']=time()+INACTIVITY_TIMEOUT; // Standard session expiration date. + } + if (!$loginFailure) { + $userIsLoggedIn = true; + } + + return $userIsLoggedIn; +} +//================================================================================================== +$userIsLoggedIn = setup_login_state(); +//================================================================================================== +//================================================================================================== + // Check PHP version function checkphpversion() { @@ -316,30 +363,19 @@ function check_auth($login,$password) // Returns true if the user is logged in. function isLoggedIn() { - if ($GLOBALS['config']['OPEN_SHAARLI']) return true; - - if (!isset($GLOBALS['login'])) return false; // Shaarli is not configured yet. - - if (@$_COOKIE['shaarli_staySignedIn']===STAY_SIGNED_IN_TOKEN) - { - fillSessionInfo(); - return true; - } - // If session does not exist on server side, or IP address has changed, or session has expired, logout. - if (empty($_SESSION['uid']) || ($GLOBALS['disablesessionprotection']==false && $_SESSION['ip']!=allIPs()) || time()>=$_SESSION['expires_on']) - { - logout(); - return false; - } - if (!empty($_SESSION['longlastingsession'])) $_SESSION['expires_on']=time()+$_SESSION['longlastingsession']; // In case of "Stay signed in" checked. - else $_SESSION['expires_on']=time()+INACTIVITY_TIMEOUT; // Standard session expiration date. - - return true; + global $userIsLoggedIn; + return $userIsLoggedIn; } // Force logout. -function logout() { if (isset($_SESSION)) { unset($_SESSION['uid']); unset($_SESSION['ip']); unset($_SESSION['username']); unset($_SESSION['privateonly']); } -setcookie('shaarli_staySignedIn', FALSE, 0, WEB_PATH); +function logout() { + if (isset($_SESSION)) { + unset($_SESSION['uid']); + unset($_SESSION['ip']); + unset($_SESSION['username']); + unset($_SESSION['privateonly']); + } + setcookie('shaarli_staySignedIn', FALSE, 0, WEB_PATH); } @@ -2074,7 +2110,6 @@ function thumbnail($url,$href=false) return $html; } - // Returns the HTML code to display a thumbnail for a link // for the picture wall (using lazy image loading) // Understands various services (youtube.com...) From 6e838176a1413ce09a4d6630f8438072af9f8fce Mon Sep 17 00:00:00 2001 From: Emilien Klein Date: Thu, 19 Feb 2015 12:05:18 +0100 Subject: [PATCH 056/658] Added Gitter badge (Fixes #116) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6b5086f..0397621 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Shaarli, the personal, minimalist, super-fast, no-database delicious clone. You want to share the links you discover ? Shaarli is a minimalist delicious clone you can install on your own website. It is designed to be personal (single-user), fast and handy. +[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Features: From be3f0b4ec361f63a6fa4ed8291c912c9a426cd16 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 20 Feb 2015 19:41:53 +0100 Subject: [PATCH 057/658] bump version to 0.0.43beta --- index.php | 4 ++-- shaarli_version.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index fdd9aec..dfebdca 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ '); // Suffix to encapsulate data in PHP code. // http://server.com/x/shaarli --> /shaarli/ diff --git a/shaarli_version.txt b/shaarli_version.txt index 5404909..b6cffb3 100644 --- a/shaarli_version.txt +++ b/shaarli_version.txt @@ -1 +1 @@ -0.0.42 beta +0.0.43beta From f81139c9b22acb10be803165604a58f821be8f76 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Feb 2015 21:46:21 +0100 Subject: [PATCH 058/658] Fixes shaarli/Shaarli#46: allow 'javascript:' links sharing --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index dfebdca..c87b944 100644 --- a/index.php +++ b/index.php @@ -1545,7 +1545,7 @@ function renderPage() $tags = trim(preg_replace('/\s\s+/',' ', $_POST['lf_tags'])); // Remove multiple spaces. $linkdate=$_POST['lf_linkdate']; $url = trim($_POST['lf_url']); - if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) + if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?') && !startsWith($url,'javascript:')) $url = 'http://'.$url; $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); From 329e0768792b4fd22e548c0e1c4153aec3d6bcd1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Feb 2015 22:28:10 +0100 Subject: [PATCH 059/658] shaarli/Shaarli#34: Make update check optional * Add a check box at installation (checked by default) * Add a check box in configuration page --- index.php | 4 ++++ tpl/configure.html | 4 ++++ tpl/install.html | 25 ++++++++++++++----------- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index dfebdca..9d4ce15 100644 --- a/index.php +++ b/index.php @@ -178,6 +178,7 @@ function checkphpversion() function checkUpdate() { if (!isLoggedIn()) return ''; // Do not check versions for visitors. + if (empty($GLOBALS['config']['ENABLE_UPDATECHECK'])) return ''; // Do not check if the user doesn't want to. // Get latest version number at most once a day. if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])alert("Configuration was saved.");document.location=\'?do=tools\';'; exit; @@ -2191,6 +2193,7 @@ function install() $GLOBALS['salt'] = sha1(uniqid('',true).'_'.mt_rand()); // Salt renders rainbow-tables attacks useless. $GLOBALS['hash'] = sha1($_POST['setpassword'].$GLOBALS['login'].$GLOBALS['salt']); $GLOBALS['title'] = (empty($_POST['title']) ? 'Shared links on '.htmlspecialchars(indexUrl()) : $_POST['title'] ); + $GLOBALS['config']['ENABLE_UPDATECHECK'] = !empty($_POST['updateCheck']); writeConfig(); echo ''; exit; @@ -2359,6 +2362,7 @@ function writeConfig() $config .= '$GLOBALS[\'disablejquery\']='.var_export($GLOBALS['disablejquery'],true).'; '; $config .= '$GLOBALS[\'privateLinkByDefault\']='.var_export($GLOBALS['privateLinkByDefault'],true).'; '; $config .= '$GLOBALS[\'config\'][\'ENABLE_RSS_PERMALINKS\']='.var_export($GLOBALS['config']['ENABLE_RSS_PERMALINKS'], true).'; '; + $config .= '$GLOBALS[\'config\'][\'ENABLE_UPDATECHECK\']='.var_export($GLOBALS['config']['ENABLE_UPDATECHECK'], true).'; '; $config .= ' ?>'; if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0) { diff --git a/tpl/configure.html b/tpl/configure.html index c096018..887be32 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -29,6 +29,10 @@ + + Update: + + diff --git a/tpl/install.html b/tpl/install.html index df42bf6..88eb540 100644 --- a/tpl/install.html +++ b/tpl/install.html @@ -3,17 +3,20 @@ {include="includes"}{$timezone_js}
-

Shaarli

-It looks like it's the first time you run Shaarli. Please configure it:
-
- - - -{$timezone_html} - - -
Login:
Password:
Page title:
-
+

Shaarli

+ It looks like it's the first time you run Shaarli. Please configure it:
+
+ + + + {$timezone_html} + + + + +
Login:
Password:
Page title:
Update: +
+
{include="page.footer"} From dbcad7406eedaeba259a6e1584ba3b0823115c8d Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 25 Feb 2015 13:25:45 +0100 Subject: [PATCH 060/658] Prevent visitors from reading shaarli version * fixes https://github.com/shaarli/Shaarli/issues/122 * the shaarli version is now in a php comment block, which prevents visitors from reading it when it is place on a PHP-enabled server, but still allows the update mechanism to read it from the source on github. --- index.php | 4 ++-- shaarli_version.php | 1 + shaarli_version.txt | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 shaarli_version.php delete mode 100644 shaarli_version.txt diff --git a/index.php b/index.php index 9d4ce15..99c3765 100644 --- a/index.php +++ b/index.php @@ -184,8 +184,8 @@ function checkUpdate() if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])','',str_replace(' diff --git a/shaarli_version.txt b/shaarli_version.txt deleted file mode 100644 index b6cffb3..0000000 --- a/shaarli_version.txt +++ /dev/null @@ -1 +0,0 @@ -0.0.43beta From 34047d23fb5e09b6bc2728f0f8827eaa038f02ea Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 1 Mar 2015 10:47:01 +0100 Subject: [PATCH 061/658] Lazy load images with the light lib bLazy.js instead of jQuery: * Remove jquery.lazyload lib * Add blazy lib * Add a bit of CSS animation * Delete unused picwall2 template --- COPYING | 4 +- inc/blazy-1.3.1.js | 232 +++++++++++++++++++++++++++++ inc/blazy-1.3.1.min.js | 6 + inc/jquery.lazyload-1.9.3.js | 242 ------------------------------- inc/jquery.lazyload-1.9.3.min.js | 2 - inc/shaarli.css | 12 ++ index.php | 7 +- tpl/picwall.html | 12 +- tpl/picwall2.html | 19 --- 9 files changed, 256 insertions(+), 280 deletions(-) create mode 100644 inc/blazy-1.3.1.js create mode 100644 inc/blazy-1.3.1.min.js delete mode 100644 inc/jquery.lazyload-1.9.3.js delete mode 100644 inc/jquery.lazyload-1.9.3.min.js delete mode 100644 tpl/picwall2.html diff --git a/COPYING b/COPYING index 715ba35..ec4f768 100644 --- a/COPYING +++ b/COPYING @@ -50,9 +50,9 @@ Files: Files: inc/jquery*.js, inc/jquery-ui*.js License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) jQuery Foundation and other contributors,https://jquery.com/download/ -Files: inc/jquery-lazyload*.js +Files: inc/blazy*.js License: MIT License (http://opensource.org/licenses/MIT) -Copyright: (C) Mika Tuupola, https://github.com/tuupola +Copyright: (C) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy Files: inc/qr.js License: GPLv3 License (http://opensource.org/licenses/gpl-3.0) diff --git a/inc/blazy-1.3.1.js b/inc/blazy-1.3.1.js new file mode 100644 index 0000000..cfc2dbd --- /dev/null +++ b/inc/blazy-1.3.1.js @@ -0,0 +1,232 @@ +/*! + hey, [be]Lazy.js - v1.3.1 - 2015.02.01 + A lazy loading and multi-serving image script + (c) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy +*/ +;(function(root, blazy) { + if (typeof define === 'function' && define.amd) { + // AMD. Register bLazy as an anonymous module + define(blazy); + } else if (typeof exports === 'object') { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = blazy(); + } else { + // Browser globals. Register bLazy on window + root.Blazy = blazy(); + } +})(this, function () { + 'use strict'; + + //vars + var source, options, viewport, images, count, isRetina, destroyed; + //throttle vars + var validateT, saveViewportOffsetT; + + // constructor + function Blazy(settings) { + //IE7- fallback for missing querySelectorAll support + if (!document.querySelectorAll) { + var s=document.createStyleSheet(); + document.querySelectorAll = function(r, c, i, j, a) { + a=document.all, c=[], r = r.replace(/\[for\b/gi, '[htmlFor').split(','); + for (i=r.length; i--;) { + s.addRule(r[i], 'k:v'); + for (j=a.length; j--;) a[j].currentStyle.k && c.push(a[j]); + s.removeRule(0); + } + return c; + }; + } + //init vars + destroyed = true; + images = []; + viewport = {}; + //options + options = settings || {}; + options.error = options.error || false; + options.offset = options.offset || 100; + options.success = options.success || false; + options.selector = options.selector || '.b-lazy'; + options.separator = options.separator || '|'; + options.container = options.container ? document.querySelectorAll(options.container) : false; + options.errorClass = options.errorClass || 'b-error'; + options.breakpoints = options.breakpoints || false; + options.successClass = options.successClass || 'b-loaded'; + options.src = source = options.src || 'data-src'; + isRetina = window.devicePixelRatio > 1; + viewport.top = 0 - options.offset; + viewport.left = 0 - options.offset; + //throttle, ensures that we don't call the functions too often + validateT = throttle(validate, 25); + saveViewportOffsetT = throttle(saveViewportOffset, 50); + + saveViewportOffset(); + + //handle multi-served image src + each(options.breakpoints, function(object){ + if(object.width >= window.screen.width) { + source = object.src; + return false; + } + }); + + // start lazy load + initialize(); + } + + /* public functions + ************************************/ + Blazy.prototype.revalidate = function() { + initialize(); + }; + Blazy.prototype.load = function(element, force){ + if(!isElementLoaded(element)) loadImage(element, force); + }; + Blazy.prototype.destroy = function(){ + if(options.container){ + each(options.container, function(object){ + unbindEvent(object, 'scroll', validateT); + }); + } + unbindEvent(window, 'scroll', validateT); + unbindEvent(window, 'resize', validateT); + unbindEvent(window, 'resize', saveViewportOffsetT); + count = 0; + images.length = 0; + destroyed = true; + }; + + /* private helper functions + ************************************/ + function initialize(){ + // First we create an array of images to lazy load + createImageArray(options.selector); + // Then we bind resize and scroll events if not already binded + if(destroyed) { + destroyed = false; + if(options.container) { + each(options.container, function(object){ + bindEvent(object, 'scroll', validateT); + }); + } + bindEvent(window, 'resize', saveViewportOffsetT); + bindEvent(window, 'resize', validateT); + bindEvent(window, 'scroll', validateT); + } + // And finally, we start to lazy load. Should bLazy ensure domready? + validate(); + } + + function validate() { + for(var i = 0; i 0 && ele.offsetHeight > 0)) { + var dataSrc = ele.getAttribute(source) || ele.getAttribute(options.src); // fallback to default data-src + if(dataSrc) { + var dataSrcSplitted = dataSrc.split(options.separator); + var src = dataSrcSplitted[isRetina && dataSrcSplitted.length > 1 ? 1 : 0]; + var img = new Image(); + // cleanup markup, remove data source attributes + each(options.breakpoints, function(object){ + ele.removeAttribute(object.src); + }); + ele.removeAttribute(options.src); + img.onerror = function() { + if(options.error) options.error(ele, "invalid"); + ele.className = ele.className + ' ' + options.errorClass; + }; + img.onload = function() { + // Is element an image or should we add the src as a background image? + ele.nodeName.toLowerCase() === 'img' ? ele.src = src : ele.style.backgroundImage = 'url("' + src + '")'; + ele.className = ele.className + ' ' + options.successClass; + if(options.success) options.success(ele); + }; + img.src = src; //preload image + } else { + if(options.error) options.error(ele, "missing"); + ele.className = ele.className + ' ' + options.errorClass; + } + } + } + + function elementInView(ele) { + var rect = ele.getBoundingClientRect(); + + return ( + // Intersection + rect.right >= viewport.left + && rect.bottom >= viewport.top + && rect.left <= viewport.right + && rect.top <= viewport.bottom + ); + } + + function isElementLoaded(ele) { + return (' ' + ele.className + ' ').indexOf(' ' + options.successClass + ' ') !== -1; + } + + function createImageArray(selector) { + var nodelist = document.querySelectorAll(selector); + count = nodelist.length; + //converting nodelist to array + for(var i = count; i--; images.unshift(nodelist[i])){} + } + + function saveViewportOffset(){ + viewport.bottom = (window.innerHeight || document.documentElement.clientHeight) + options.offset; + viewport.right = (window.innerWidth || document.documentElement.clientWidth) + options.offset; + } + + function bindEvent(ele, type, fn) { + if (ele.attachEvent) { + ele.attachEvent && ele.attachEvent('on' + type, fn); + } else { + ele.addEventListener(type, fn, false); + } + } + + function unbindEvent(ele, type, fn) { + if (ele.detachEvent) { + ele.detachEvent && ele.detachEvent('on' + type, fn); + } else { + ele.removeEventListener(type, fn, false); + } + } + + function each(object, fn){ + if(object && fn) { + var l = object.length; + for(var i = 0; i=window.screen.width)return r=b.src,!1});h()}function h(){y(a.selector);m&&(m=!1,a.container&&n(a.container,function(b){p(b,"scroll",f)}),p(window,"resize",t),p(window,"resize",f),p(window,"scroll",f));w()}function w(){for(var b=0;b=e.left&&c.bottom>=e.top&&c.left<=e.right&&c.top<=e.bottom||-1!==(" "+g.className+" ").indexOf(" "+a.successClass+" "))d.prototype.load(g),k.splice(b,1),l--,b--}0===l&&d.prototype.destroy()}function z(b,g){if(g||0 settings.failure_limit) { - return false; - } - } - }); - - } - - if(options) { - /* Maintain BC for a couple of versions. */ - if (undefined !== options.failurelimit) { - options.failure_limit = options.failurelimit; - delete options.failurelimit; - } - if (undefined !== options.effectspeed) { - options.effect_speed = options.effectspeed; - delete options.effectspeed; - } - - $.extend(settings, options); - } - - /* Cache container as jQuery as object. */ - $container = (settings.container === undefined || - settings.container === window) ? $window : $(settings.container); - - /* Fire one scroll event per scroll. Not one scroll event per image. */ - if (0 === settings.event.indexOf("scroll")) { - $container.bind(settings.event, function() { - return update(); - }); - } - - this.each(function() { - var self = this; - var $self = $(self); - - self.loaded = false; - - /* If no src attribute given use data:uri. */ - if ($self.attr("src") === undefined || $self.attr("src") === false) { - if ($self.is("img")) { - $self.attr("src", settings.placeholder); - } - } - - /* When appear is triggered load original image. */ - $self.one("appear", function() { - if (!this.loaded) { - if (settings.appear) { - var elements_left = elements.length; - settings.appear.call(self, elements_left, settings); - } - $("") - .bind("load", function() { - - var original = $self.attr("data-" + settings.data_attribute); - $self.hide(); - if ($self.is("img")) { - $self.attr("src", original); - } else { - $self.css("background-image", "url('" + original + "')"); - } - $self[settings.effect](settings.effect_speed); - - self.loaded = true; - - /* Remove image from array so it is not looped next time. */ - var temp = $.grep(elements, function(element) { - return !element.loaded; - }); - elements = $(temp); - - if (settings.load) { - var elements_left = elements.length; - settings.load.call(self, elements_left, settings); - } - }) - .attr("src", $self.attr("data-" + settings.data_attribute)); - } - }); - - /* When wanted event is triggered load original image */ - /* by triggering appear. */ - if (0 !== settings.event.indexOf("scroll")) { - $self.bind(settings.event, function() { - if (!self.loaded) { - $self.trigger("appear"); - } - }); - } - }); - - /* Check if something appears when window is resized. */ - $window.bind("resize", function() { - update(); - }); - - /* With IOS5 force loading images when navigating with back button. */ - /* Non optimal workaround. */ - if ((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)) { - $window.bind("pageshow", function(event) { - if (event.originalEvent && event.originalEvent.persisted) { - elements.each(function() { - $(this).trigger("appear"); - }); - } - }); - } - - /* Force initial check if images should appear. */ - $(document).ready(function() { - update(); - }); - - return this; - }; - - /* Convenience methods in jQuery namespace. */ - /* Use as $.belowthefold(element, {threshold : 100, container : window}) */ - - $.belowthefold = function(element, settings) { - var fold; - - if (settings.container === undefined || settings.container === window) { - fold = (window.innerHeight ? window.innerHeight : $window.height()) + $window.scrollTop(); - } else { - fold = $(settings.container).offset().top + $(settings.container).height(); - } - - return fold <= $(element).offset().top - settings.threshold; - }; - - $.rightoffold = function(element, settings) { - var fold; - - if (settings.container === undefined || settings.container === window) { - fold = $window.width() + $window.scrollLeft(); - } else { - fold = $(settings.container).offset().left + $(settings.container).width(); - } - - return fold <= $(element).offset().left - settings.threshold; - }; - - $.abovethetop = function(element, settings) { - var fold; - - if (settings.container === undefined || settings.container === window) { - fold = $window.scrollTop(); - } else { - fold = $(settings.container).offset().top; - } - - return fold >= $(element).offset().top + settings.threshold + $(element).height(); - }; - - $.leftofbegin = function(element, settings) { - var fold; - - if (settings.container === undefined || settings.container === window) { - fold = $window.scrollLeft(); - } else { - fold = $(settings.container).offset().left; - } - - return fold >= $(element).offset().left + settings.threshold + $(element).width(); - }; - - $.inviewport = function(element, settings) { - return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && - !$.belowthefold(element, settings) && !$.abovethetop(element, settings); - }; - - /* Custom selectors for your convenience. */ - /* Use as $("img:below-the-fold").something() or */ - /* $("img").filter(":below-the-fold").something() which is faster */ - - $.extend($.expr[":"], { - "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); }, - "above-the-top" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, - "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); }, - "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); }, - "in-viewport" : function(a) { return $.inviewport(a, {threshold : 0}); }, - /* Maintain BC for couple of versions. */ - "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); }, - "right-of-fold" : function(a) { return $.rightoffold(a, {threshold : 0}); }, - "left-of-fold" : function(a) { return !$.rightoffold(a, {threshold : 0}); } - }); - -})(jQuery, window, document); diff --git a/inc/jquery.lazyload-1.9.3.min.js b/inc/jquery.lazyload-1.9.3.min.js deleted file mode 100644 index 615b90e..0000000 --- a/inc/jquery.lazyload-1.9.3.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Lazy Load 1.9.3 - MIT license - Copyright 2010-2013 Mika Tuupola */ -!function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document); \ No newline at end of file diff --git a/inc/shaarli.css b/inc/shaarli.css index bb564e9..a88143c 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -647,9 +647,21 @@ a.qrcode img { float: left; } +.b-lazy { + -webkit-transition: opacity 500ms ease-in-out; + -moz-transition: opacity 500ms ease-in-out; + -o-transition: opacity 500ms ease-in-out; + transition: opacity 500ms ease-in-out; + opacity: 0; +} +.b-lazy.b-loaded { + opacity: 1; +} + .picwall_pictureframe img { max-width: 100%; height: auto; + color: transparent; } /* Adapt the width of the image */ .picwall_pictureframe a { diff --git a/index.php b/index.php index 99c3765..890eb58 100644 --- a/index.php +++ b/index.php @@ -2125,11 +2125,8 @@ function lazyThumbnail($url,$href=false) $html=''; - // Lazy image (only loaded by JavaScript when in the viewport). - if (!empty($GLOBALS['disablejquery'])) // (except if jQuery is disabled) - $html.=' {include="includes"} -{if="empty($GLOBALS['disablejquery'])"} - - - -{/if} + @@ -20,12 +16,8 @@ {include="page.footer"} -{if="empty($GLOBALS['disablejquery'])"} -{/if} \ No newline at end of file diff --git a/tpl/picwall2.html b/tpl/picwall2.html deleted file mode 100644 index 44d08b0..0000000 --- a/tpl/picwall2.html +++ /dev/null @@ -1,19 +0,0 @@ - - -{include="includes"} - - - - -{include="page.footer"} - - \ No newline at end of file From bc1ef5b94a711a0db249f1773db9b3ca1da31c6c Mon Sep 17 00:00:00 2001 From: Alexis J Date: Wed, 4 Mar 2015 18:02:47 +0100 Subject: [PATCH 062/658] Add some filters to clean URLs --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index 99c3765..d714040 100644 --- a/index.php +++ b/index.php @@ -1646,6 +1646,11 @@ function renderPage() $i=strpos($url,'&utm_source='); if ($i!==false) $url=substr($url,0,$i); $i=strpos($url,'?utm_source='); if ($i!==false) $url=substr($url,0,$i); $i=strpos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i); + $i=strpos($url,'?fb_'); if ($i!==false) $url=substr($url,0,$i); + $i=strpos($url,'?__scoop'); if ($i!==false) $url=substr($url,0,$i); + $i=strpos($url,'#tk.rss_all?'); if ($i!==false) $url=substr($url,0,$i); + $i=strpos($url,'?utm_campaign='); if ($i!==false) $url=substr($url,0,$i); + $i=strpos($url,'?utm_medium='); if ($i!==false) $url=substr($url,0,$i); $link_is_new = false; $link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link) From ad2a397c66a3da8061564602b43db6f2002f0064 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 Mar 2015 19:52:24 +0100 Subject: [PATCH 063/658] cleanup: refactor annoying URL patterns in a single loop * fixes https://github.com/shaarli/Shaarli/issues/133 --- index.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index d714040..cc3d736 100644 --- a/index.php +++ b/index.php @@ -1642,15 +1642,12 @@ function renderPage() { $url=$_GET['post']; - // We remove the annoying parameters added by FeedBurner and GoogleFeedProxy (?utm_source=...) - $i=strpos($url,'&utm_source='); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'?utm_source='); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'?fb_'); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'?__scoop'); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'#tk.rss_all?'); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'?utm_campaign='); if ($i!==false) $url=substr($url,0,$i); - $i=strpos($url,'?utm_medium='); if ($i!==false) $url=substr($url,0,$i); + // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... + $annoyingpatterns = array('&utm_source=', '?utm_source=', '#xtor=RSS-', '?fb_', '?__scoop', '#tk.rss_all?', '?utm_campaign=', '?utm_medium='); + foreach($annoyingpatterns as $pattern) + { + $i=strpos($url,$pattern); if ($i!==false) $url=substr($url,0,$i); + } $link_is_new = false; $link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link) From 403a19940961eaf3edae84c7e9c4fa0bd074e940 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 5 Mar 2015 13:33:30 +0100 Subject: [PATCH 064/658] Improve annoying URL parameters cleaning: * Use regular expressions to avoid suplicating params depending on their position in the URL (¶m=,?param=) * Only remove the relevant URL pattern and don't remove following params, fixes https://github.com/shaarli/Shaarli/issues/136 * Credits to Marcus Rohrmoser (https://github.com/mro) --- index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index cc3d736..0b507b4 100644 --- a/index.php +++ b/index.php @@ -1642,11 +1642,12 @@ function renderPage() { $url=$_GET['post']; + // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... - $annoyingpatterns = array('&utm_source=', '?utm_source=', '#xtor=RSS-', '?fb_', '?__scoop', '#tk.rss_all?', '?utm_campaign=', '?utm_medium='); + $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/'); foreach($annoyingpatterns as $pattern) { - $i=strpos($url,$pattern); if ($i!==false) $url=substr($url,0,$i); + $url = preg_replace($pattern, "", $url); } $link_is_new = false; From baf5cbf27d18467d838a24b6f451036cebaa27bf Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 5 Mar 2015 13:40:43 +0100 Subject: [PATCH 065/658] Improve URL cleaning: * also remove action_type_map, action_ref_map and action_object maps params used by facebook --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 0b507b4..bc4fa1e 100644 --- a/index.php +++ b/index.php @@ -1644,7 +1644,7 @@ function renderPage() // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... - $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/'); + $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/', '/[\?&]action_ref_map=[^&]*/', '/[\?&]action_type_map=[^&]*/', '/[\?&]action_object_map=[^&]*/'); foreach($annoyingpatterns as $pattern) { $url = preg_replace($pattern, "", $url); From 1f7f8ce067b278a4837364191513d04f7548cef9 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 3 Mar 2015 23:09:13 +0100 Subject: [PATCH 066/658] cleanup: remove version number from CSS links * fixes https://github.com/shaarli/Shaarli/issues/134 --- tpl/includes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/includes.html b/tpl/includes.html index 93cdfd5..5e298fa 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -6,5 +6,5 @@ - -{if="is_file('inc/user.css')"}{/if} + +{if="is_file('inc/user.css')"}{/if} From 572fbafe5b66a22beab381bc705b96e486026340 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 Mar 2015 08:39:22 +0100 Subject: [PATCH 067/658] remove duplicate license information, fixes https://github.com/shaarli/Shaarli/issues/135 --- inc/LICENSE | 120 ---------------------------------------------------- 1 file changed, 120 deletions(-) delete mode 100644 inc/LICENSE diff --git a/inc/LICENSE b/inc/LICENSE deleted file mode 100644 index 8711a29..0000000 --- a/inc/LICENSE +++ /dev/null @@ -1,120 +0,0 @@ -JQuery 1.11.2 -=============================================================================== -Copyright jQuery Foundation and other contributors, https://jquery.org/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/jquery - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -All files located in the node_modules and external directories are -externally maintained libraries used by this software which have their -own licenses; we recommend you read them, as their terms may differ from -the terms above. - - - -JQuery UI 1.11.2 -=============================================================================== -Copyright jQuery Foundation and other contributors, https://jquery.org/ - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/jquery/jquery-ui - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code contained within the demos directory. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -All files located in the node_modules and external directories are -externally maintained libraries used by this software which have their -own licenses; we recommend you read them, as their terms may differ from -the terms above. - - - -QR.js 1.1.3 -=============================================================================== -Copyright (C) 2014 Alasdair Mercer, http://neocotic.com - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - - - - -JQuery Lazyload 1.9.3 -=============================================================================== -By Mika Tuupola (https://github.com/tuupola) - -All code licensed under the MIT License[1]. All images licensed under -Creative Commons Attribution 3.0 Unported License[2]. In other words you are -basically free to do whatever you want. Just don’t remove my name from the -source. - -[1]: http://opensource.org/licenses/mit-license.php -[2]: http://creativecommons.org/licenses/by/3.0/deed.en_US \ No newline at end of file From 473f37a2eea01af869f87c843217d216994346e3 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 Mar 2015 19:08:02 +0100 Subject: [PATCH 068/658] update README: add note about php-gd and git-based upgrade --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0397621..d1aa03d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ It is designed to be personal (single-user), fast and handy. ## Installing -Shaarli requires php 5.1 +Shaarli requires php 5.1. `php-gd` is optional and provides thumbnail resizing. * Download the latest stable release from https://github.com/shaarli/Shaarli/releases * Unpack the archive in a directory on your web server @@ -63,9 +63,8 @@ _To get the development version, download https://github.com/shaarli/Shaarli/arc ## Upgrading -Delete all files and directories except the `data` directory, then unzip the new version of Shaarli. -You will not lose your links and you will not have to reconfigure it. - + * **If you installed from the zip:** Delete all files and directories except the `data` directory, then unzip the new version of Shaarli. You will not lose your links and you will not have to reconfigure it. + * **If you installed using `git clone`**: run `git pull` in your Shaarli directory. ## About From 35c2c4db5b5179e571023ab7fa7d3ecc03c85391 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 Mar 2015 19:09:01 +0100 Subject: [PATCH 069/658] Redirect to homepage after adding a link via "Add Link" dialog * Fixes https://github.com/shaarli/Shaarli/issues/115 --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index a8326a2..cda918d 100644 --- a/index.php +++ b/index.php @@ -1560,6 +1560,7 @@ function renderPage() if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. + if (strstr($returnurl, "do=addlink")) { $returnurl = '?'; } //if we come from ?do=addlink, set returnurl to homepage instead header('Location: '.$returnurl); // After saving the link, redirect to the page the user was on. exit; } From 9811b3efbca58bf464752e401d278fe677089a9c Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 Mar 2015 22:46:57 +0100 Subject: [PATCH 070/658] add bountysource.com badge * Bountysource is the funding platform for open-source software. Users can improve the open-source projects they love by creating/collecting bounties and pledging to fundraisers. * https://github.com/bountysource/frontend/wiki/Frequently-Asked-Questions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d1aa03d..7f0b7d5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Shaarli, the personal, minimalist, super-fast, no-database delicious clone. You want to share the links you discover ? Shaarli is a minimalist delicious clone you can install on your own website. It is designed to be personal (single-user), fast and handy. -[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli) [![Bountysource](https://www.bountysource.com/badge/team?team_id=19583&style=bounties_received)](https://www.bountysource.com/teams/shaarli/issues) ## Features: From a056d988e7c4e6610fbfc0d6207d2809998574af Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 5 Mar 2015 13:54:00 +0100 Subject: [PATCH 071/658] fix broken CSS file URL introduced in 1f7f8ce067b278a4837364191513d04f7548cef9 --- tpl/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/includes.html b/tpl/includes.html index 5e298fa..26f2e2b 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -6,5 +6,5 @@ - + {if="is_file('inc/user.css')"}{/if} From 3a10fa0e3f0d0978dc359d1407b93fe425f44b25 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 5 Mar 2015 18:14:25 +0100 Subject: [PATCH 072/658] fix broken URL for user.css --- tpl/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/includes.html b/tpl/includes.html index 26f2e2b..623e19e 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -7,4 +7,4 @@ -{if="is_file('inc/user.css')"}{/if} +{if="is_file('inc/user.css')"}{/if} From 00f98bdacaba026e3d16aed36605bc21b72903ab Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 25 Feb 2015 22:08:50 +0100 Subject: [PATCH 073/658] Code quality: Makefile to run static code checkers Relates to #71 Relates to #95 Additions: - Makefile for easy usage, - Composer file to declare dev & test dependencies. Features: - PHP Copy/Paste Detect: detect duplicate code; - PHP Code Sniffer: static analysis, syntax checking, - PHP Mess Detector: static analysis, syntax checking. Signed-off-by: VirtualTam --- .gitignore | 9 ++++- Makefile | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++ composer.json | 14 ++++++++ 3 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 composer.json diff --git a/.gitignore b/.gitignore index 6452c2c..33d8a48 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,11 @@ pagecache .project # Ignore raintpl generated pages -*.rtpl.php \ No newline at end of file +*.rtpl.php + +# Ignore test dependencies +composer.lock +/vendor/ + +# Ignore test output +phpmd.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e17c862 --- /dev/null +++ b/Makefile @@ -0,0 +1,94 @@ +# Shaarli, the personal, minimalist, super-fast, no-database delicious clone. +# +# Makefile for PHP code analysis & testing +# +# Prerequisites: +# - install Composer, either: +# - from your distro's package manager; +# - from the official website (https://getcomposer.org/download/); +# - install/update test dependencies: +# $ composer install # 1st setup +# $ composer update +BIN = vendor/bin +PHP_SOURCE = index.php +MESS_DETECTOR_RULES = cleancode,codesize,controversial,design,naming,unusedcode + +all: static_analysis_summary + +## +# Concise status of the project +# +# These targets are non-blocking: || exit 0 +## +static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary + +## +# PHP_CodeSniffer +# +# Detects PHP syntax errors +# +# Documentation (usage, output formatting): +# - http://pear.php.net/manual/en/package.php.php-codesniffer.usage.php +# - http://pear.php.net/manual/en/package.php.php-codesniffer.reporting.php +## +code_sniffer: code_sniffer_full + +# - errors by Git author +code_sniffer_blame: + @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame + +# - all errors/warnings +code_sniffer_full: + @$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 + +# - errors grouped by kind +code_sniffer_source: + @$(BIN)/phpcs $(PHP_SOURCE) --report-source || exit 0 + +## +# PHP Copy/Paste Detector +# +# Detects code redundancy +# +# Documentation: https://github.com/sebastianbergmann/phpcpd +## +copy_paste: + @echo "-----------------------" + @echo "PHP COPY/PASTE DETECTOR" + @echo "-----------------------" + @$(BIN)/phpcpd $(PHP_SOURCE) || exit 0 + @echo + +## +# PHP Mess Detector +# +# Detects PHP syntax errors, sorted by category +# +# Rules documentation: http://phpmd.org/rules/index.html +# +mess_title: + @echo "-----------------" + @echo "PHP MESS DETECTOR" + @echo "-----------------" + +# - all warnings +mess_detector: mess_title + @$(BIN)/phpmd $(PHP_SOURCE) text $(MESS_DETECTOR_RULES) | sed 's_.*\/__' + +# - all warnings +# the generated HTML contains links to PHPMD's documentation +mess_detector_html: + @$(BIN)/phpmd $(PHP_SOURCE) html $(MESS_DETECTOR_RULES) \ + --reportfile phpmd.html || exit 0 + +# - warnings grouped by message, sorted by descending frequency order +mess_detector_grouped: mess_title + @$(BIN)/phpmd $(PHP_SOURCE) text $(MESS_DETECTOR_RULES) \ + | cut -f 2 | sort | uniq -c | sort -nr + +# - summary: number of warnings by rule set +mess_detector_summary: mess_title + @for rule in $$(echo $(MESS_DETECTOR_RULES) | tr ',' ' '); do \ + warnings=$$($(BIN)/phpmd $(PHP_SOURCE) text $$rule | wc -l); \ + printf "$$warnings\t$$rule\n"; \ + done; diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d1f613c --- /dev/null +++ b/composer.json @@ -0,0 +1,14 @@ +{ + "name": "shaarli/shaarli", + "description": "The personal, minimalist, super-fast, no-database delicious clone", + "license": "MIT", + "support": { + "issues": "https://github.com/shaarli/Shaarli/issues" + }, + "require": {}, + "require-dev": { + "phpmd/phpmd" : "@stable", + "sebastian/phpcpd": "*", + "squizlabs/php_codesniffer": "2.*" + } +} From 1b434b5270312dfc96d30ccce091b9dda611ee45 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 6 Mar 2015 22:50:30 +0100 Subject: [PATCH 074/658] tools dialog: add a 'Add Note' bookmarklet to immediatly open a note (text post) compose window * Fixes https://github.com/shaarli/Shaarli/issues/142 * Fixes https://github.com/sebsauvage/Shaarli/issues/59 --- tpl/tools.html | 1 + 1 file changed, 1 insertion(+) diff --git a/tpl/tools.html b/tpl/tools.html index bf0539b..e912f61 100644 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -11,6 +11,7 @@ Import : Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)

Export : Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)

✚Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "✚Shaare link" button in any page you want to share.


+ ✚Add Note ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    Then click "✚Add Note" button anytime to start composing a (default private) Note (text post) to your Shaarli.


From 610bf4186a1406e7aa852681b09c8cb788443e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Jovanovi=C4=87?= Date: Tue, 10 Mar 2015 14:44:51 -0500 Subject: [PATCH 075/658] Fix menu dynamic resize, padding, private icon pixelation --- images/private.png | Bin 2636 -> 813 bytes inc/shaarli.css | 95 ++++++++++++++++++++++++++++----------------- 2 files changed, 59 insertions(+), 36 deletions(-) diff --git a/images/private.png b/images/private.png index 1364b355f3f32832a0a6a02b026cf2ebb453f36f..8919d658c305ba29310253bfc6efd1ac4ee05f4b 100644 GIT binary patch delta 779 zcmV+m1N8jN6s-m!iBL{Q4GJ0x0000DNk~Le0000G0000G2nGNE03Y-JVUZy)f8PTM z7B?7<)YhN?00O#6L_t(I%Z-!oYZ7rB$3OQAcc*uG{+ZWARAUXRy&rzy{rddi^TyyG znwy)W=I7__JkK*2hG8U0PKLwbe{g$y`#S(YI-LgWqA3=OL7`9pQ52a-ByuYp4&P=N zCO}aXu4&qrcDr3El}c~(`TPg~fV>DO6bitytZjLDS&GNwn+ppI5z{nn0B~wq*2wSo zf3hsgL(}w&TrM{zri~s7g|4oxtv!fFqxV~_7O}UtCm$al7Y2iY!{hNpe_Sq?Q`hyc zUa$8vISt@;yRYy(f1PDnp67W*Q53RVF7MDZot;c3&w|0=q9}?XgisNm22d1*8jVJv zY1*mZ@8_e@=uMx`_fXgM8C6xwmSr&*hF$CT`^+BzNs<5n03p;H3sj^765=y6lFreuC6{xrBW$P)AX&at=Fomwogt@-pR7O|Eo#!{K3=dG-NUvAUTf1 zyk0LailTos8VwD@VKA!I>YH}E{ZiNU?%#5f$z%Wker6#M2)JD?*FD292)EmfHJi<9 zyqT z1aD6W05AZc_uqdX9zA-bpFDYDe^W}$dc9VTXO+F;h!)|OkZ*BkYEz1C{AN?PlZQmSm* zHe-xIp68j?I--=OS(d3F2+p58dGZ|q=wAzr?(OYW9mnZ6o6XT+FlaTKe@!0%Jgv1` zE||9<-Er(XkrdfQ-hXJ^MRl}cNUM&t0#ojY6m z`}^Hyv)L$$!qr+kwOY+a2*GN#ij`7pN@);9(bZ%!Sm*73i!t`q#~*+EFL2f` zP2c9`W|dO9Rj=0{4hDn6f5XGWo$c-IKIh!avdq$2vud@<0l-+66)U9@N~ze`*oZji z-xfu2CZ+7=d2RsUfBwa^zW@r?YPGWO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V diff --git a/inc/shaarli.css b/inc/shaarli.css index a88143c..56e2d8b 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -84,21 +84,14 @@ h1 { .linkeditbuttons { position: absolute; - left: -1px; + left: 2px; padding: 4px 2px 2px 2px; - background-color: #f0f0f0; -webkit-border-radius: 0px 6px 6px 0px; -moz-border-radius: 0px 6px 6px 0px; -o-border-radius: 0px 6px 6px 0px; -ms-border-radius: 0px 6px 6px 0px; border-radius: 0px 6px 6px 0px; - - -webkit-box-shadow: 0px 0px 3px 0px #333333; - -moz-box-shadow: 0px 0px 3px 0px #333333; - -o-box-shadow: 0px 0px 3px 0px #333333; - -ms-box-shadow: 0px 0px 3px 0px #333333; - box-shadow: 0px 0px 3px 0px #333333; } #pageheader #logo { @@ -111,26 +104,21 @@ h1 { cursor: pointer; } -#pageheader #linkcount { - float: right; - font-style: italic; - color: #bbb; - text-align: right; - padding-right: 5px; +#pageheader #menu { + width: 100%; } -#pageheader { - background-color: #333333; - background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333333), to(#111111)); - background: -webkit-linear-gradient(#333333, #111111); - background: -moz-linear-gradient(#333333, #111111); - background: -ms-linear-gradient(#333333, #111111); - background: -o-linear-gradient(#333333, #111111); - background: linear-gradient(#333333, #111111); - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); - width: auto; - padding: 0 10px 5px 10px; +#pageheader #menu ul { margin: auto; + padding: 7px 0px 0px 0px; + float: none; +} + +#pageheader #menu ul li { + list-style: none; + display: inline; + position: relative; + box-sizing: border-box; } #pageheader a { @@ -146,8 +134,32 @@ h1 { border-radius: 5px 5px 5px 5px; margin: 10px 3px 3px 3px; color: #A2DD42; - float: left; text-decoration: none; + line-height: 2.5; + white-space: nowrap; +} + +#pageheader #linkcount { + float: right; + font-style: italic; + color: #bbb; + text-align: right; + padding-right: 5px; + margin: 3px 3px 0px 0px; +} + +#pageheader { + background-color: #333333; + background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333333), to(#111111)); + background: -webkit-linear-gradient(#333333, #111111); + background: -moz-linear-gradient(#333333, #111111); + background: -ms-linear-gradient(#333333, #111111); + background: -o-linear-gradient(#333333, #111111); + background: linear-gradient(#333333, #111111); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); + width: auto; + padding: 0 10px 5px 10px; + margin: auto; } #pageheader .search { @@ -291,6 +303,7 @@ h1 { .paging_linksperpage { float: right; padding-right: 5px; + margin: 0px 10px 2px 0px; } .paging_linksperpage form.linksperpage { @@ -388,12 +401,12 @@ a.qrcode img { } #linklist li.private { - background: url('../images/private.png') no-repeat 10px center; - padding-left: 60px; + background: url('../images/private.png') no-repeat 4px center; + padding-left: 30px; } #linklist li { - padding-left: 26px; + padding-left: 30px; } .private .linktitle a { @@ -468,9 +481,9 @@ a.qrcode img { background: -o-linear-gradient(#F2F2F2, #ffffff); background: linear-gradient(#F2F2F2, #ffffff); box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); - padding: 3px 3px 3px 20px; + padding: 3px 5px 3px 20px; height: 20px; - border-radius: 3px 3px 3px 3px; + border-radius: 5px; cursor: pointer; background-image: url('../images/tag_blue.png'); background-repeat: no-repeat; @@ -515,9 +528,10 @@ a.qrcode img { #footer { font-size: 8pt; text-align: center; - border-top: 1px solid #ddd; color: #888; clear: both; + max-width: 30em; + margin: 15px auto 15px auto; } #footer a { @@ -613,7 +627,12 @@ a.qrcode img { .thumbnail { float: right; - margin-left: 10px; + margin: 0px 10px 0px 10px; +} + +.thumbnail img { + border-radius: 5px; + box-shadow: 0.5px 0.5px 0.5px 1px #dde4e6; } /* If you want thumbnails on the left: @@ -938,7 +957,11 @@ div.dailyNoEntry { display: none; } - #pageheader a { + #pageheader #menu ul { + text-align: center; + } + + #pageheader #menu a { padding: 5px; border-radius: 5px 5px 5px 5px; margin: 3px; @@ -946,9 +969,9 @@ div.dailyNoEntry { .searchform, .tagfilter { display: block !important; - margin: 0px !important; + margin: 0px 3px 7px 0px !important; padding: 0px !important; - width: 100% !important; + width: 97% !important; } .searchform input, .tagfilter input { From 4aca798e47fcaa6daf90c43714111dc4d15e1f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Jovanovi=C4=87?= Date: Tue, 10 Mar 2015 18:13:23 -0500 Subject: [PATCH 076/658] added menu div and cleaned up code --- tpl/page.header.html | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/tpl/page.header.html b/tpl/page.header.html index 17c0c75..0fd65e4 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -1,28 +1,43 @@ - -
Shaare your links...
- {if="!empty($linkcount)"}{$linkcount} links{/if}
- {$shaarlititle|htmlspecialchars} + + +
+ {if="!empty($linkcount)"}{$linkcount} links{/if} +
+ + + + +
From 4a1a1190a6c9f72f72bce7e8989541e58f366a90 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 8 Mar 2015 00:53:05 +0100 Subject: [PATCH 077/658] picwall: link directly to the target URL (not the permalink) --- index.php | 1 - tpl/picwall.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/index.php b/index.php index 066058e..6189e0b 100644 --- a/index.php +++ b/index.php @@ -1271,7 +1271,6 @@ function renderPage() if ($thumb!='') // Only output links which have a thumbnail. { $link['thumbnail']=$thumb; // Thumbnail HTML code. - $link['permalink']=$permalink; $linksToDisplay[]=$link; // Add to array. } } diff --git a/tpl/picwall.html b/tpl/picwall.html index ea1ef42..e686afe 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -9,7 +9,7 @@
{loop="linksToDisplay"}
- {$value.thumbnail}{$value.title|htmlspecialchars} + {$value.thumbnail}{$value.title|htmlspecialchars}
{/loop}
From 736a73a96d3deaf239f83f0c56dde2e4127a6e5a Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 12 Mar 2015 13:19:03 +0100 Subject: [PATCH 078/658] update COPYING --- COPYING | 1 + 1 file changed, 1 insertion(+) diff --git a/COPYING b/COPYING index ec4f768..7312abd 100644 --- a/COPYING +++ b/COPYING @@ -18,6 +18,7 @@ Copyright: (c) 2011-2015 Sébastien SAUVAGE (c) 2011-2015 virtualtam (c) 2011-2015 qwertygc (c) 2011-2015 idleman + (c) 2015 Miloš Jovanović Files: inc/reset.css From 4f8063b6394351749dee7fa3f5ab23cacbbd19a8 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 12 Mar 2015 14:38:08 +0100 Subject: [PATCH 079/658] theme: decrease border-radius to 3px everywhere --- inc/shaarli.css | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index 56e2d8b..34c3222 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -17,7 +17,7 @@ input, textarea { background: linear-gradient(#dedede, #ffffff); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); padding: 5px; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; border: none; color: #000; } @@ -131,7 +131,7 @@ h1 { background: linear-gradient(#333333, #000000); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); padding: 5px; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; margin: 10px 3px 3px 3px; color: #A2DD42; text-decoration: none; @@ -191,7 +191,7 @@ h1 { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); padding: 5px; border: none; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; margin: 10px 3px 3px 3px; color: #cecece; } @@ -237,7 +237,7 @@ h1 { padding: 0 5px 0 5px; margin: 5px 0 5px 0; height: 20px; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; cursor: pointer; } @@ -483,7 +483,7 @@ a.qrcode img { box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); padding: 3px 5px 3px 20px; height: 20px; - border-radius: 5px; + border-radius: 3px; cursor: pointer; background-image: url('../images/tag_blue.png'); background-repeat: no-repeat; @@ -631,7 +631,7 @@ a.qrcode img { } .thumbnail img { - border-radius: 5px; + border-radius: 3px; box-shadow: 0.5px 0.5px 0.5px 1px #dde4e6; } @@ -963,7 +963,7 @@ div.dailyNoEntry { #pageheader #menu a { padding: 5px; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; margin: 3px; } @@ -1015,7 +1015,7 @@ div.dailyNoEntry { padding: 3px 5px 3px 5px; background-color: #666; color: #fff; - border-radius: 5px 5px 5px 5px; + border-radius: 3px 3px 3px 3px; } .thumbnail { From bdd1715b249561ed919e4f03a06aec1f4c327335 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 Mar 2015 21:29:56 +0100 Subject: [PATCH 080/658] Use awesomplete as autocomplete lib and remove jQuery - shaarli/Shaarli#148 * Add awesomplete dependancy (source + min + CSS) * Remove jQuery and jQuery-UI dependancy * Few CSS ajustements * Use tags complete list as RainTPL var (and display it as HTML) * Remove "disable jQuery" feature * Remove tag list web service --- COPYING | 8 +- inc/awesomplete.css | 97 + inc/awesomplete.js | 388 + inc/awesomplete.min.js | 10 + inc/jquery-1.11.2.js | 10346 --------------------- inc/jquery-1.11.2.min.js | 4 - inc/jquery-ui-1.11.2.js | 16582 ---------------------------------- inc/jquery-ui-1.11.2.min.js | 13 - inc/shaarli.css | 31 +- index.php | 43 +- tpl/changetag.html | 35 +- tpl/configure.html | 3 - tpl/editlink.html | 30 +- 13 files changed, 562 insertions(+), 27028 deletions(-) create mode 100644 inc/awesomplete.css create mode 100644 inc/awesomplete.js create mode 100644 inc/awesomplete.min.js delete mode 100644 inc/jquery-1.11.2.js delete mode 100644 inc/jquery-1.11.2.min.js delete mode 100644 inc/jquery-ui-1.11.2.js delete mode 100644 inc/jquery-ui-1.11.2.min.js diff --git a/COPYING b/COPYING index ec4f768..720cf64 100644 --- a/COPYING +++ b/COPYING @@ -46,10 +46,6 @@ Files: images/logo.png License: zlib/libpng Copyright: (c) 2011-2014 idleman idleman@idleman.fr -Files: Files: inc/jquery*.js, inc/jquery-ui*.js -License: MIT License (http://opensource.org/licenses/MIT) -Copyright: (C) jQuery Foundation and other contributors,https://jquery.com/download/ - Files: inc/blazy*.js License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy @@ -63,6 +59,10 @@ Copyright: 2011-2012, Federico Ulfo 2011-2012, The Rain Team License: LGPL-3+ (https://www.gnu.org/licenses/lgpl-3.0.txt) +Files: inc/awesomplete* +License: MIT License (http://opensource.org/licenses/MIT) +Copyright: (C) 2015 Lea Verou - https://github.com/LeaVerou/awesomplete + ---------------------------------------------------- ZLIB/LIBPNG LICENSE diff --git a/inc/awesomplete.css b/inc/awesomplete.css new file mode 100644 index 0000000..76f903f --- /dev/null +++ b/inc/awesomplete.css @@ -0,0 +1,97 @@ +[hidden] { display: none; } + +.visually-hidden { + position: absolute; + clip: rect(0, 0, 0, 0); +} + +div.awesomplete { + display: inline-block; + position: relative; + width: 100%; +} + +div.awesomplete > input { + display: block; +} + +div.awesomplete > ul { + position: absolute; + left: 0; + z-index: 1; + min-width: 100%; + box-sizing: border-box; + list-style: none; + padding: 0; + border-radius: .3em; + margin: .2em 0 0; + background: #FFF; + border: 1px solid rgba(0,0,0,.3); + box-shadow: .05em .2em .6em rgba(0,0,0,.2); + text-shadow: none; +} + +div.awesomplete > ul[hidden], +div.awesomplete > ul:empty { + display: none; +} + +@supports (transform: scale(0)) { + div.awesomplete > ul { + transition: .3s cubic-bezier(.4,.2,.5,1.4); + transform-origin: 1.43em -.43em; + } + + div.awesomplete > ul[hidden], + div.awesomplete > ul:empty { + opacity: 0; + transform: scale(0); + display: block; + transition-timing-function: ease; + } +} + +/* Pointer */ +div.awesomplete > ul:before { + content: ""; + position: absolute; + top: -.43em; + left: 1em; + width: 0; height: 0; + padding: .4em; + background: white; + border: inherit; + border-right: 0; + border-bottom: 0; + -webkit-transform: rotate(45deg); + transform: rotate(45deg); +} + +div.awesomplete > ul > li { + position: relative; + padding: .2em .5em; + cursor: pointer; +} + +div.awesomplete > ul > li:hover { + background: hsl(200, 40%, 80%); + color: black; +} + +div.awesomplete > ul > li[aria-selected="true"] { + background: hsl(205, 40%, 40%); + color: white; +} + +div.awesomplete mark { + background: hsl(65, 100%, 50%); +} + +div.awesomplete li:hover mark { + background: hsl(68, 101%, 41%); +} + +div.awesomplete li[aria-selected="true"] mark { + background: hsl(86, 102%, 21%); + color: inherit; +} \ No newline at end of file diff --git a/inc/awesomplete.js b/inc/awesomplete.js new file mode 100644 index 0000000..fae550e --- /dev/null +++ b/inc/awesomplete.js @@ -0,0 +1,388 @@ +/** + * Simple, lightweight, usable local autocomplete library for modern browsers + * Because there weren’t enough autocomplete scripts in the world? Because I’m completely insane and have NIH syndrome? Probably both. :P + * @author Lea Verou http://leaverou.github.io/awesomplete + * MIT license + */ + +(function () { + + var _ = function (input, o) { + var me = this; + + // Setup + + this.input = $(input); + this.input.setAttribute("aria-autocomplete", "list"); + + o = o || {}; + + configure.call(this, { + minChars: 2, + maxItems: 10, + autoFirst: false, + filter: _.FILTER_CONTAINS, + sort: _.SORT_BYLENGTH, + item: function (text, input) { + return $.create("li", { + innerHTML: text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "$&"), + "aria-selected": "false" + }); + }, + replace: function (text) { + this.input.value = text; + } + }, o); + + this.index = -1; + + // Create necessary elements + + this.container = $.create("div", { + className: "awesomplete", + around: input + }); + + this.ul = $.create("ul", { + hidden: "", + inside: this.container + }); + + this.status = $.create("span", { + className: "visually-hidden", + role: "status", + "aria-live": "assertive", + "aria-relevant": "additions", + inside: this.container + }); + + // Bind events + + $.bind(this.input, { + "input": this.evaluate.bind(this), + "blur": this.close.bind(this), + "keydown": function(evt) { + var c = evt.keyCode; + + // If the dropdown `ul` is in view, then act on keydown for the following keys: + // Enter / Esc / Up / Down + if(me.opened) { + if (c === 13 && me.selected) { // Enter + evt.preventDefault(); + me.select(); + } + else if (c === 27) { // Esc + me.close(); + } + else if (c === 38 || c === 40) { // Down/Up arrow + evt.preventDefault(); + me[c === 38? "previous" : "next"](); + } + } + } + }); + + $.bind(this.input.form, {"submit": this.close.bind(this)}); + + $.bind(this.ul, {"mousedown": function(evt) { + var li = evt.target; + + if (li !== this) { + + while (li && !/li/i.test(li.nodeName)) { + li = li.parentNode; + } + + if (li) { + me.select(li); + } + } + }}); + + if (this.input.hasAttribute("list")) { + this.list = "#" + input.getAttribute("list"); + input.removeAttribute("list"); + } + else { + this.list = this.input.getAttribute("data-list") || o.list || []; + } + + _.all.push(this); + }; + + _.prototype = { + set list(list) { + if (Array.isArray(list)) { + this._list = list; + } + else if (typeof list === "string" && list.indexOf(",") > -1) { + this._list = list.split(/\s*,\s*/); + } + else { // Element or CSS selector + list = $(list); + + if (list && list.children) { + this._list = slice.apply(list.children).map(function (el) { + return el.innerHTML.trim(); + }); + } + } + + if (document.activeElement === this.input) { + this.evaluate(); + } + }, + + get selected() { + return this.index > -1; + }, + + get opened() { + return this.ul && this.ul.getAttribute("hidden") == null; + }, + + close: function () { + this.ul.setAttribute("hidden", ""); + this.index = -1; + + $.fire(this.input, "awesomplete-close"); + }, + + open: function () { + this.ul.removeAttribute("hidden"); + + if (this.autoFirst && this.index === -1) { + this.goto(0); + } + + $.fire(this.input, "awesomplete-open"); + }, + + next: function () { + var count = this.ul.children.length; + + this.goto(this.index < count - 1? this.index + 1 : -1); + }, + + previous: function () { + var count = this.ul.children.length; + + this.goto(this.selected? this.index - 1 : count - 1); + }, + + // Should not be used, highlights specific item without any checks! + goto: function (i) { + var lis = this.ul.children; + + if (this.selected) { + lis[this.index].setAttribute("aria-selected", "false"); + } + + this.index = i; + + if (i > -1 && lis.length > 0) { + lis[i].setAttribute("aria-selected", "true"); + this.status.textContent = lis[i].textContent; + } + + $.fire(this.input, "awesomplete-highlight"); + }, + + select: function (selected) { + selected = selected || this.ul.children[this.index]; + + if (selected) { + var prevented; + + $.fire(this.input, "awesomplete-select", { + text: selected.textContent, + preventDefault: function () { + prevented = true; + } + }); + + if (!prevented) { + this.replace(selected.textContent); + this.close(); + $.fire(this.input, "awesomplete-selectcomplete"); + } + } + }, + + evaluate: function() { + var me = this; + var value = this.input.value; + + if (value.length >= this.minChars && this._list.length > 0) { + this.index = -1; + // Populate list with options that match + this.ul.innerHTML = ""; + + this._list + .filter(function(item) { + return me.filter(item, value); + }) + .sort(this.sort) + .every(function(text, i) { + me.ul.appendChild(me.item(text, value)); + + return i < me.maxItems - 1; + }); + + if (this.ul.children.length === 0) { + this.close(); + } else { + this.open(); + } + } + else { + this.close(); + } + } + }; + +// Static methods/properties + + _.all = []; + + _.FILTER_CONTAINS = function (text, input) { + return RegExp($.regExpEscape(input.trim()), "i").test(text); + }; + + _.FILTER_STARTSWITH = function (text, input) { + return RegExp("^" + $.regExpEscape(input.trim()), "i").test(text); + }; + + _.SORT_BYLENGTH = function (a, b) { + if (a.length !== b.length) { + return a.length - b.length; + } + + return a < b? -1 : 1; + }; + +// Private functions + + function configure(properties, o) { + for (var i in properties) { + var initial = properties[i], + attrValue = this.input.getAttribute("data-" + i.toLowerCase()); + + if (typeof initial === "number") { + this[i] = +attrValue; + } + else if (initial === false) { // Boolean options must be false by default anyway + this[i] = attrValue !== null; + } + else if (initial instanceof Function) { + this[i] = null; + } + else { + this[i] = attrValue; + } + + this[i] = this[i] || o[i] || initial; + } + } + +// Helpers + + var slice = Array.prototype.slice; + + function $(expr, con) { + return typeof expr === "string"? (con || document).querySelector(expr) : expr || null; + } + + function $$(expr, con) { + return slice.call((con || document).querySelectorAll(expr)); + } + + $.create = function(tag, o) { + var element = document.createElement(tag); + + for (var i in o) { + var val = o[i]; + + if (i === "inside") { + $(val).appendChild(element); + } + else if (i === "around") { + var ref = $(val); + ref.parentNode.insertBefore(element, ref); + element.appendChild(ref); + } + else if (i in element) { + element[i] = val; + } + else { + element.setAttribute(i, val); + } + } + + return element; + }; + + $.bind = function(element, o) { + if (element) { + for (var event in o) { + var callback = o[event]; + + event.split(/\s+/).forEach(function (event) { + element.addEventListener(event, callback); + }); + } + } + }; + + $.fire = function(target, type, properties) { + var evt = document.createEvent("HTMLEvents"); + + evt.initEvent(type, true, true ); + + for (var j in properties) { + evt[j] = properties[j]; + } + + target.dispatchEvent(evt); + }; + + $.regExpEscape = function (s) { + return s.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"); + } + +// Initialization + + function init() { + $$("input.awesomplete").forEach(function (input) { + new Awesomplete(input); + }); + } + +// Are we in a browser? Check for Document constructor + if (typeof Document !== 'undefined') { + // DOM already loaded? + if (document.readyState !== "loading") { + init(); + } + else { + // Wait for it + document.addEventListener("DOMContentLoaded", init); + } + } + + _.$ = $; + _.$$ = $$; + +// Make sure to export Awesomplete on self when in a browser + if (typeof self !== 'undefined') { + self.Awesomplete = _; + } + +// Expose Awesomplete as a CJS module + if (typeof exports === 'object') { + module.exports = _; + } + + return _; + +}()); diff --git a/inc/awesomplete.min.js b/inc/awesomplete.min.js new file mode 100644 index 0000000..3bfb05e --- /dev/null +++ b/inc/awesomplete.min.js @@ -0,0 +1,10 @@ +// Awesomplete - Lea Verou - MIT license +(function(){function m(a,b){for(var c in a){var f=a[c],e=this.input.getAttribute("data-"+c.toLowerCase());this[c]="number"===typeof f?+e:!1===f?null!==e:f instanceof Function?null:e;this[c]=this[c]||b[c]||f}}function d(a,b){return"string"===typeof a?(b||document).querySelector(a):a||null}function h(a,b){return k.call((b||document).querySelectorAll(a))}function l(){h("input.awesomplete").forEach(function(a){new Awesomplete(a)})}var g=self.Awesomplete=function(a,b){var c=this;this.input=d(a);this.input.setAttribute("aria-autocomplete", + "list");b=b||{};m.call(this,{minChars:2,maxItems:10,autoFirst:!1,filter:g.FILTER_CONTAINS,sort:g.SORT_BYLENGTH,item:function(a,b){return d.create("li",{innerHTML:a.replace(RegExp(d.regExpEscape(b.trim()),"gi"),"$&"),"aria-selected":"false"})},replace:function(a){this.input.value=a}},b);this.index=-1;this.container=d.create("div",{className:"awesomplete",around:a});this.ul=d.create("ul",{hidden:"",inside:this.container});this.status=d.create("span",{className:"visually-hidden",role:"status", + "aria-live":"assertive","aria-relevant":"additions",inside:this.container});d.bind(this.input,{input:this.evaluate.bind(this),blur:this.close.bind(this),keydown:function(a){var b=a.keyCode;if(c.opened)if(13===b&&c.selected)a.preventDefault(),c.select();else if(27===b)c.close();else if(38===b||40===b)a.preventDefault(),c[38===b?"previous":"next"]()}});d.bind(this.input.form,{submit:this.close.bind(this)});d.bind(this.ul,{mousedown:function(a){a=a.target;if(a!==this){for(;a&&!/li/i.test(a.nodeName);)a= + a.parentNode;a&&c.select(a)}}});this.input.hasAttribute("list")?(this.list="#"+a.getAttribute("list"),a.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||b.list||[];g.all.push(this)};g.prototype={set list(a){Array.isArray(a)?this._list=a:"string"===typeof a&&-1=this.minChars&&0= 0 && j < len ? [ this[j] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(null); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: deletedIds.sort, - splice: deletedIds.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var src, copyIsArray, copy, name, options, clone, - target = arguments[0] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) { - target = {}; - } - - // extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) { - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { - if ( copyIsArray ) { - copyIsArray = false; - clone = src && jQuery.isArray(src) ? src : []; - - } else { - clone = src && jQuery.isPlainObject(src) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend({ - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return jQuery.type(obj) === "function"; - }, - - isArray: Array.isArray || function( obj ) { - return jQuery.type(obj) === "array"; - }, - - isWindow: function( obj ) { - /* jshint eqeqeq: false */ - return obj != null && obj == obj.window; - }, - - isNumeric: function( obj ) { - // parseFloat NaNs numeric-cast false positives (null|true|false|"") - // ...but misinterprets leading-number strings, particularly hex literals ("0x...") - // subtraction forces infinities to NaN - // adding 1 corrects loss of precision from parseFloat (#15100) - return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0; - }, - - isEmptyObject: function( obj ) { - var name; - for ( name in obj ) { - return false; - } - return true; - }, - - isPlainObject: function( obj ) { - var key; - - // Must be an Object. - // Because of IE, we also have to check the presence of the constructor property. - // Make sure that DOM nodes and window objects don't pass through, as well - if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { - return false; - } - - try { - // Not own constructor property must be Object - if ( obj.constructor && - !hasOwn.call(obj, "constructor") && - !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { - return false; - } - } catch ( e ) { - // IE8,9 Will throw exceptions on certain host objects #9897 - return false; - } - - // Support: IE<9 - // Handle iteration over inherited properties before own properties. - if ( support.ownLast ) { - for ( key in obj ) { - return hasOwn.call( obj, key ); - } - } - - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - for ( key in obj ) {} - - return key === undefined || hasOwn.call( obj, key ); - }, - - type: function( obj ) { - if ( obj == null ) { - return obj + ""; - } - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call(obj) ] || "object" : - typeof obj; - }, - - // Evaluates a script in a global context - // Workarounds based on findings by Jim Driscoll - // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context - globalEval: function( data ) { - if ( data && jQuery.trim( data ) ) { - // We use execScript on Internet Explorer - // We use an anonymous function so that context is window - // rather than jQuery in Firefox - ( window.execScript || function( data ) { - window[ "eval" ].call( window, data ); - } )( data ); - } - }, - - // Convert dashed to camelCase; used by the css and data modules - // Microsoft forgot to hump their vendor prefix (#9572) - camelCase: function( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - }, - - // args is for internal usage only - each: function( obj, callback, args ) { - var value, - i = 0, - length = obj.length, - isArray = isArraylike( obj ); - - if ( args ) { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.apply( obj[ i ], args ); - - if ( value === false ) { - break; - } - } - } - - // A special, fast, case for the most common use of each - } else { - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } else { - for ( i in obj ) { - value = callback.call( obj[ i ], i, obj[ i ] ); - - if ( value === false ) { - break; - } - } - } - } - - return obj; - }, - - // Support: Android<4.1, IE<9 - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArraylike( Object(arr) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - var len; - - if ( arr ) { - if ( indexOf ) { - return indexOf.call( arr, elem, i ); - } - - len = arr.length; - i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; - - for ( ; i < len; i++ ) { - // Skip accessing in sparse arrays - if ( i in arr && arr[ i ] === elem ) { - return i; - } - } - } - - return -1; - }, - - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - while ( j < len ) { - first[ i++ ] = second[ j++ ]; - } - - // Support: IE<9 - // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) - if ( len !== len ) { - while ( second[j] !== undefined ) { - first[ i++ ] = second[ j++ ]; - } - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var value, - i = 0, - length = elems.length, - isArray = isArraylike( elems ), - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArray ) { - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // Bind a function to a context, optionally partially applying any - // arguments. - proxy: function( fn, context ) { - var args, proxy, tmp; - - if ( typeof context === "string" ) { - tmp = fn[ context ]; - context = fn; - fn = tmp; - } - - // Quick check to determine if target is callable, in the spec - // this throws a TypeError, but we will just return undefined. - if ( !jQuery.isFunction( fn ) ) { - return undefined; - } - - // Simulated bind - args = slice.call( arguments, 2 ); - proxy = function() { - return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); - }; - - // Set the guid of unique handler to the same of original handler, so it can be removed - proxy.guid = fn.guid = fn.guid || jQuery.guid++; - - return proxy; - }, - - now: function() { - return +( new Date() ); - }, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -}); - -// Populate the class2type map -jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -}); - -function isArraylike( obj ) { - var length = obj.length, - type = jQuery.type( obj ); - - if ( type === "function" || jQuery.isWindow( obj ) ) { - return false; - } - - if ( obj.nodeType === 1 && length ) { - return true; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.2.0-pre - * http://sizzlejs.com/ - * - * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2014-12-16 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // General-purpose constants - MAX_NEGATIVE = 1 << 31, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // http://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - // http://www.w3.org/TR/css3-syntax/#characters - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - // Loosely modeled on CSS identifier characters - // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors - // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = characterEncoding.replace( "w", "w#" ), - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + characterEncoding + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - rescape = /'|\\/g, - - // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }; - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - // QSA vars - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - nodeType = context.nodeType; - - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - if ( !seed && documentIsHTML ) { - - // Try to shortcut find operations when possible (e.g., not under DocumentFragment) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - // Speed-up: Sizzle("#ID") - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document (jQuery #6963) - if ( elem && elem.parentNode ) { - // Handle the case where IE, Opera, and Webkit return items - // by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - // Context is not a document - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - // Speed-up: Sizzle("TAG") - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Speed-up: Sizzle(".CLASS") - } else if ( (m = match[3]) && support.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // QSA path - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType !== 1 && selector; - - // qSA works strangely on Element-rooted queries - // We can work around this by specifying an extra ID on the root - // and working up from there (Thanks to Andrew Dupont for the technique) - // IE 8 doesn't work on object elements - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created div and expects a boolean result - */ -function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - // release memory in IE - div = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, parent, - doc = node ? node.ownerDocument || node : preferredDoc; - - // If no document and documentElement is available, return - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Set our document - document = doc; - docElem = doc.documentElement; - parent = doc.defaultView; - - // Support: IE>8 - // If iframe document is assigned to "document" variable and if iframe has been reloaded, - // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 - // IE6-8 do not support the defaultView property so parent will be undefined - if ( parent && parent !== parent.top ) { - // IE11 does not have attachEvent, so all must suffer - if ( parent.addEventListener ) { - parent.addEventListener( "unload", unloadHandler, false ); - } else if ( parent.attachEvent ) { - parent.attachEvent( "onunload", unloadHandler ); - } - } - - /* Support tests - ---------------------------------------------------------------------- */ - documentIsHTML = !isXML( doc ); - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( doc.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - // ID find and filter - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var m = context.getElementById( id ); - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - return m && m.parentNode ? [ m ] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - // Support: IE6/7 - // getElementById is not reliable as a find shortcut - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See http://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( div ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // http://bugs.jquery.com/ticket/12359 - docElem.appendChild( div ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( div.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+ - if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibing-combinator selector` fails - if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( div ) { - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( div.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( div, "div" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully does not implement inclusive descendent - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - // Seek `elem` from a previously-cached index - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - // Use previously-cached element index if available - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) - } else { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - // Cache the index of each encountered element - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (oldCache = outerCache[ dir ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - outerCache[ dir ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context !== document && context; - } - - // Add elements passing elementMatchers directly to results - // Keep `i` a string if there are no elements so `matchedCount` will be "00" below - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // Apply set filters to unmatched elements - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is no seed and only one group - if ( match.length === 1 ) { - - // Take a shortcut and set the context if the root selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( div1 ) { - // Should return 1, but returns 4 (following) - return div1.compareDocumentPosition( document.createElement("div") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( div ) { - div.innerHTML = ""; - return div.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( div ) { - div.innerHTML = ""; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; -jQuery.expr[":"] = jQuery.expr.pseudos; -jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; - - - -var rneedsContext = jQuery.expr.match.needsContext; - -var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); - - - -var risSimple = /^.[^:#\[\.,]*$/; - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( jQuery.isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - /* jshint -W018 */ - return !!qualifier.call( elem, i, elem ) !== not; - }); - - } - - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - }); - - } - - if ( typeof qualifier === "string" ) { - if ( risSimple.test( qualifier ) ) { - return jQuery.filter( qualifier, elements, not ); - } - - qualifier = jQuery.filter( qualifier, elements ); - } - - return jQuery.grep( elements, function( elem ) { - return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; - }); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - return elems.length === 1 && elem.nodeType === 1 ? - jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : - jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - })); -}; - -jQuery.fn.extend({ - find: function( selector ) { - var i, - ret = [], - self = this, - len = self.length; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - }) ); - } - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - // Needed because $( selector, context ) becomes $( context ).find( selector ) - ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); - ret.selector = this.selector ? this.selector + " " + selector : selector; - return ret; - }, - filter: function( selector ) { - return this.pushStack( winnow(this, selector || [], false) ); - }, - not: function( selector ) { - return this.pushStack( winnow(this, selector || [], true) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -}); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // Use the correct document accordingly with window argument (sandbox) - document = window.document, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, - - init = jQuery.fn.init = function( selector, context ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) { - context = context instanceof jQuery ? context[0] : context; - - // scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[1], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - // Properties of context are called as methods if possible - if ( jQuery.isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[2] ); - - // Check parentNode to catch when Blackberry 4.6 returns - // nodes that are no longer in the document #6963 - if ( elem && elem.parentNode ) { - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id !== match[2] ) { - return rootjQuery.find( selector ); - } - - // Otherwise, we inject the element directly into the jQuery object - this.length = 1; - this[0] = elem; - } - - this.context = document; - this.selector = selector; - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || rootjQuery ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this.context = this[0] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) { - return typeof rootjQuery.ready !== "undefined" ? - rootjQuery.ready( selector ) : - // Execute immediately if ready is not present - selector( jQuery ); - } - - if ( selector.selector !== undefined ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - // methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.extend({ - dir: function( elem, dir, until ) { - var matched = [], - cur = elem[ dir ]; - - while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { - if ( cur.nodeType === 1 ) { - matched.push( cur ); - } - cur = cur[dir]; - } - return matched; - }, - - sibling: function( n, elem ) { - var r = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - r.push( n ); - } - } - - return r; - } -}); - -jQuery.fn.extend({ - has: function( target ) { - var i, - targets = jQuery( target, this ), - len = targets.length; - - return this.filter(function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( this, targets[i] ) ) { - return true; - } - } - }); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? - jQuery( selectors, context || this.context ) : - 0; - - for ( ; i < l; i++ ) { - for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { - // Always skip document fragments - if ( cur.nodeType < 11 && (pos ? - pos.index(cur) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector(cur, selectors)) ) { - - matched.push( cur ); - break; - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; - } - - // index in selector - if ( typeof elem === "string" ) { - return jQuery.inArray( this[0], jQuery( elem ) ); - } - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem, this ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.unique( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter(selector) - ); - } -}); - -function sibling( cur, dir ) { - do { - cur = cur[ dir ]; - } while ( cur && cur.nodeType !== 1 ); - - return cur; -} - -jQuery.each({ - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return jQuery.dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return jQuery.dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return jQuery.dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return jQuery.dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return jQuery.dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return jQuery.dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return jQuery.sibling( elem.firstChild ); - }, - contents: function( elem ) { - return jQuery.nodeName( elem, "iframe" ) ? - elem.contentDocument || elem.contentWindow.document : - jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var ret = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - ret = jQuery.filter( selector, ret ); - } - - if ( this.length > 1 ) { - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - ret = jQuery.unique( ret ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - ret = ret.reverse(); - } - } - - return this.pushStack( ret ); - }; -}); -var rnotwhite = (/\S+/g); - - - -// String to Object options format cache -var optionsCache = {}; - -// Convert String-formatted options into Object-formatted ones and store in cache -function createOptions( options ) { - var object = optionsCache[ options ] = {}; - jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { - object[ flag ] = true; - }); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - ( optionsCache[ options ] || createOptions( options ) ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - // Last fire value (for non-forgettable lists) - memory, - // Flag to know if list was already fired - fired, - // End of the loop when firing - firingLength, - // Index of currently firing callback (modified by remove if needed) - firingIndex, - // First callback to fire (used internally by add and fireWith) - firingStart, - // Actual callback list - list = [], - // Stack of fire calls for repeatable lists - stack = !options.once && [], - // Fire callbacks - fire = function( data ) { - memory = options.memory && data; - fired = true; - firingIndex = firingStart || 0; - firingStart = 0; - firingLength = list.length; - firing = true; - for ( ; list && firingIndex < firingLength; firingIndex++ ) { - if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { - memory = false; // To prevent further calls using add - break; - } - } - firing = false; - if ( list ) { - if ( stack ) { - if ( stack.length ) { - fire( stack.shift() ); - } - } else if ( memory ) { - list = []; - } else { - self.disable(); - } - } - }, - // Actual Callbacks object - self = { - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - // First, we save the current length - var start = list.length; - (function add( args ) { - jQuery.each( args, function( _, arg ) { - var type = jQuery.type( arg ); - if ( type === "function" ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && type !== "string" ) { - // Inspect recursively - add( arg ); - } - }); - })( arguments ); - // Do we need to add the callbacks to the - // current firing batch? - if ( firing ) { - firingLength = list.length; - // With memory, if we're not firing then - // we should call right away - } else if ( memory ) { - firingStart = start; - fire( memory ); - } - } - return this; - }, - // Remove a callback from the list - remove: function() { - if ( list ) { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - // Handle firing indexes - if ( firing ) { - if ( index <= firingLength ) { - firingLength--; - } - if ( index <= firingIndex ) { - firingIndex--; - } - } - } - }); - } - return this; - }, - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); - }, - // Remove all callbacks from the list - empty: function() { - list = []; - firingLength = 0; - return this; - }, - // Have the list do nothing anymore - disable: function() { - list = stack = memory = undefined; - return this; - }, - // Is it disabled? - disabled: function() { - return !list; - }, - // Lock the list in its current state - lock: function() { - stack = undefined; - if ( !memory ) { - self.disable(); - } - return this; - }, - // Is it locked? - locked: function() { - return !stack; - }, - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( list && ( !fired || stack ) ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - if ( firing ) { - stack.push( args ); - } else { - fire( args ); - } - } - return this; - }, - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -jQuery.extend({ - - Deferred: function( func ) { - var tuples = [ - // action, add listener, listener list, final state - [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], - [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], - [ "notify", "progress", jQuery.Callbacks("memory") ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - then: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - return jQuery.Deferred(function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; - // deferred[ done | fail | progress ] for forwarding actions to newDefer - deferred[ tuple[1] ](function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && jQuery.isFunction( returned.promise ) ) { - returned.promise() - .done( newDefer.resolve ) - .fail( newDefer.reject ) - .progress( newDefer.notify ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); - } - }); - }); - fns = null; - }).promise(); - }, - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Keep pipe for back-compat - promise.pipe = promise.then; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 3 ]; - - // promise[ done | fail | progress ] = list.add - promise[ tuple[1] ] = list.add; - - // Handle state - if ( stateString ) { - list.add(function() { - // state = [ resolved | rejected ] - state = stateString; - - // [ reject_list | resolve_list ].disable; progress_list.lock - }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); - } - - // deferred[ resolve | reject | notify ] - deferred[ tuple[0] ] = function() { - deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); - return this; - }; - deferred[ tuple[0] + "With" ] = list.fireWith; - }); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( subordinate /* , ..., subordinateN */ ) { - var i = 0, - resolveValues = slice.call( arguments ), - length = resolveValues.length, - - // the count of uncompleted subordinates - remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, - - // the master Deferred. If resolveValues consist of only a single Deferred, just use that. - deferred = remaining === 1 ? subordinate : jQuery.Deferred(), - - // Update function for both resolve and progress values - updateFunc = function( i, contexts, values ) { - return function( value ) { - contexts[ i ] = this; - values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( values === progressValues ) { - deferred.notifyWith( contexts, values ); - - } else if ( !(--remaining) ) { - deferred.resolveWith( contexts, values ); - } - }; - }, - - progressValues, progressContexts, resolveContexts; - - // add listeners to Deferred subordinates; treat others as resolved - if ( length > 1 ) { - progressValues = new Array( length ); - progressContexts = new Array( length ); - resolveContexts = new Array( length ); - for ( ; i < length; i++ ) { - if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { - resolveValues[ i ].promise() - .done( updateFunc( i, resolveContexts, resolveValues ) ) - .fail( deferred.reject ) - .progress( updateFunc( i, progressContexts, progressValues ) ); - } else { - --remaining; - } - } - } - - // if we're not waiting on anything, resolve the master - if ( !remaining ) { - deferred.resolveWith( resolveContexts, resolveValues ); - } - - return deferred.promise(); - } -}); - - -// The deferred used on DOM ready -var readyList; - -jQuery.fn.ready = function( fn ) { - // Add the callback - jQuery.ready.promise().done( fn ); - - return this; -}; - -jQuery.extend({ - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Hold (or release) the ready event - holdReady: function( hold ) { - if ( hold ) { - jQuery.readyWait++; - } else { - jQuery.ready( true ); - } - }, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). - if ( !document.body ) { - return setTimeout( jQuery.ready ); - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - - // Trigger any bound ready events - if ( jQuery.fn.triggerHandler ) { - jQuery( document ).triggerHandler( "ready" ); - jQuery( document ).off( "ready" ); - } - } -}); - -/** - * Clean-up method for dom ready events - */ -function detach() { - if ( document.addEventListener ) { - document.removeEventListener( "DOMContentLoaded", completed, false ); - window.removeEventListener( "load", completed, false ); - - } else { - document.detachEvent( "onreadystatechange", completed ); - window.detachEvent( "onload", completed ); - } -} - -/** - * The ready event handler and self cleanup method - */ -function completed() { - // readyState === "complete" is good enough for us to call the dom ready in oldIE - if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { - detach(); - jQuery.ready(); - } -} - -jQuery.ready.promise = function( obj ) { - if ( !readyList ) { - - readyList = jQuery.Deferred(); - - // Catch cases where $(document).ready() is called after the browser event has already occurred. - // we once tried to use readyState "interactive" here, but it caused issues like the one - // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 - if ( document.readyState === "complete" ) { - // Handle it asynchronously to allow scripts the opportunity to delay ready - setTimeout( jQuery.ready ); - - // Standards-based browsers support DOMContentLoaded - } else if ( document.addEventListener ) { - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed, false ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed, false ); - - // If IE event model is used - } else { - // Ensure firing before onload, maybe late but safe also for iframes - document.attachEvent( "onreadystatechange", completed ); - - // A fallback to window.onload, that will always work - window.attachEvent( "onload", completed ); - - // If IE and not a frame - // continually check to see if the document is ready - var top = false; - - try { - top = window.frameElement == null && document.documentElement; - } catch(e) {} - - if ( top && top.doScroll ) { - (function doScrollCheck() { - if ( !jQuery.isReady ) { - - try { - // Use the trick by Diego Perini - // http://javascript.nwbox.com/IEContentLoaded/ - top.doScroll("left"); - } catch(e) { - return setTimeout( doScrollCheck, 50 ); - } - - // detach all dom ready events - detach(); - - // and execute any waiting functions - jQuery.ready(); - } - })(); - } - } - } - return readyList.promise( obj ); -}; - - -var strundefined = typeof undefined; - - - -// Support: IE<9 -// Iteration over object's inherited properties before its own -var i; -for ( i in jQuery( support ) ) { - break; -} -support.ownLast = i !== "0"; - -// Note: most support tests are defined in their respective modules. -// false until the test is run -support.inlineBlockNeedsLayout = false; - -// Execute ASAP in case we need to set body.style.zoom -jQuery(function() { - // Minified: var a,b,c,d - var val, div, body, container; - - body = document.getElementsByTagName( "body" )[ 0 ]; - if ( !body || !body.style ) { - // Return for frameset docs that don't have a body - return; - } - - // Setup - div = document.createElement( "div" ); - container = document.createElement( "div" ); - container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; - body.appendChild( container ).appendChild( div ); - - if ( typeof div.style.zoom !== strundefined ) { - // Support: IE<8 - // Check if natively block-level elements act like inline-block - // elements when setting their display to 'inline' and giving - // them layout - div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; - - support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; - if ( val ) { - // Prevent IE 6 from affecting layout for positioned elements #11048 - // Prevent IE from shrinking the body in IE 7 mode #12869 - // Support: IE<8 - body.style.zoom = 1; - } - } - - body.removeChild( container ); -}); - - - - -(function() { - var div = document.createElement( "div" ); - - // Execute the test only if not already executed in another module. - if (support.deleteExpando == null) { - // Support: IE<9 - support.deleteExpando = true; - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - } - - // Null elements to avoid leaks in IE. - div = null; -})(); - - -/** - * Determines whether an object can have data - */ -jQuery.acceptData = function( elem ) { - var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ], - nodeType = +elem.nodeType || 1; - - // Do not set data on non-element DOM nodes because it will not be cleared (#8335). - return nodeType !== 1 && nodeType !== 9 ? - false : - - // Nodes accept data unless otherwise specified; rejection can be conditional - !noData || noData !== true && elem.getAttribute("classid") === noData; -}; - - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /([A-Z])/g; - -function dataAttr( elem, key, data ) { - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - - var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); - - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = data === "true" ? true : - data === "false" ? false : - data === "null" ? null : - // Only convert to a number if it doesn't change the string - +data + "" === data ? +data : - rbrace.test( data ) ? jQuery.parseJSON( data ) : - data; - } catch( e ) {} - - // Make sure we set the data so it isn't changed later - jQuery.data( elem, key, data ); - - } else { - data = undefined; - } - } - - return data; -} - -// checks a cache object for emptiness -function isEmptyDataObject( obj ) { - var name; - for ( name in obj ) { - - // if the public data object is empty, the private is still empty - if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { - continue; - } - if ( name !== "toJSON" ) { - return false; - } - } - - return true; -} - -function internalData( elem, name, data, pvt /* Internal Use Only */ ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var ret, thisCache, - internalKey = jQuery.expando, - - // We have to handle DOM nodes and JS objects differently because IE6-7 - // can't GC object references properly across the DOM-JS boundary - isNode = elem.nodeType, - - // Only DOM nodes need the global jQuery cache; JS object data is - // attached directly to the object so GC can occur automatically - cache = isNode ? jQuery.cache : elem, - - // Only defining an ID for JS objects if its cache already exists allows - // the code to shortcut on the same path as a DOM node with no cache - id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; - - // Avoid doing any more work than we need to when trying to get data on an - // object that has no data at all - if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { - return; - } - - if ( !id ) { - // Only DOM nodes need a new unique ID for each element since their data - // ends up in the global cache - if ( isNode ) { - id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++; - } else { - id = internalKey; - } - } - - if ( !cache[ id ] ) { - // Avoid exposing jQuery metadata on plain JS objects when the object - // is serialized using JSON.stringify - cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; - } - - // An object can be passed to jQuery.data instead of a key/value pair; this gets - // shallow copied over onto the existing cache - if ( typeof name === "object" || typeof name === "function" ) { - if ( pvt ) { - cache[ id ] = jQuery.extend( cache[ id ], name ); - } else { - cache[ id ].data = jQuery.extend( cache[ id ].data, name ); - } - } - - thisCache = cache[ id ]; - - // jQuery data() is stored in a separate object inside the object's internal data - // cache in order to avoid key collisions between internal data and user-defined - // data. - if ( !pvt ) { - if ( !thisCache.data ) { - thisCache.data = {}; - } - - thisCache = thisCache.data; - } - - if ( data !== undefined ) { - thisCache[ jQuery.camelCase( name ) ] = data; - } - - // Check for both converted-to-camel and non-converted data property names - // If a data property was specified - if ( typeof name === "string" ) { - - // First Try to find as-is property data - ret = thisCache[ name ]; - - // Test for null|undefined property data - if ( ret == null ) { - - // Try to find the camelCased property - ret = thisCache[ jQuery.camelCase( name ) ]; - } - } else { - ret = thisCache; - } - - return ret; -} - -function internalRemoveData( elem, name, pvt ) { - if ( !jQuery.acceptData( elem ) ) { - return; - } - - var thisCache, i, - isNode = elem.nodeType, - - // See jQuery.data for more information - cache = isNode ? jQuery.cache : elem, - id = isNode ? elem[ jQuery.expando ] : jQuery.expando; - - // If there is already no cache entry for this object, there is no - // purpose in continuing - if ( !cache[ id ] ) { - return; - } - - if ( name ) { - - thisCache = pvt ? cache[ id ] : cache[ id ].data; - - if ( thisCache ) { - - // Support array or space separated string names for data keys - if ( !jQuery.isArray( name ) ) { - - // try the string as a key before any manipulation - if ( name in thisCache ) { - name = [ name ]; - } else { - - // split the camel cased version by spaces unless a key with the spaces exists - name = jQuery.camelCase( name ); - if ( name in thisCache ) { - name = [ name ]; - } else { - name = name.split(" "); - } - } - } else { - // If "name" is an array of keys... - // When data is initially created, via ("key", "val") signature, - // keys will be converted to camelCase. - // Since there is no way to tell _how_ a key was added, remove - // both plain key and camelCase key. #12786 - // This will only penalize the array argument path. - name = name.concat( jQuery.map( name, jQuery.camelCase ) ); - } - - i = name.length; - while ( i-- ) { - delete thisCache[ name[i] ]; - } - - // If there is no data left in the cache, we want to continue - // and let the cache object itself get destroyed - if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { - return; - } - } - } - - // See jQuery.data for more information - if ( !pvt ) { - delete cache[ id ].data; - - // Don't destroy the parent cache unless the internal data object - // had been the only thing left in it - if ( !isEmptyDataObject( cache[ id ] ) ) { - return; - } - } - - // Destroy the cache - if ( isNode ) { - jQuery.cleanData( [ elem ], true ); - - // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) - /* jshint eqeqeq: false */ - } else if ( support.deleteExpando || cache != cache.window ) { - /* jshint eqeqeq: true */ - delete cache[ id ]; - - // When all else fails, null - } else { - cache[ id ] = null; - } -} - -jQuery.extend({ - cache: {}, - - // The following elements (space-suffixed to avoid Object.prototype collisions) - // throw uncatchable exceptions if you attempt to set expando properties - noData: { - "applet ": true, - "embed ": true, - // ...but Flash objects (which have this classid) *can* handle expandos - "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" - }, - - hasData: function( elem ) { - elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; - return !!elem && !isEmptyDataObject( elem ); - }, - - data: function( elem, name, data ) { - return internalData( elem, name, data ); - }, - - removeData: function( elem, name ) { - return internalRemoveData( elem, name ); - }, - - // For internal use only. - _data: function( elem, name, data ) { - return internalData( elem, name, data, true ); - }, - - _removeData: function( elem, name ) { - return internalRemoveData( elem, name, true ); - } -}); - -jQuery.fn.extend({ - data: function( key, value ) { - var i, name, data, - elem = this[0], - attrs = elem && elem.attributes; - - // Special expections of .data basically thwart jQuery.access, - // so implement the relevant behavior ourselves - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = jQuery.data( elem ); - - if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE11+ - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = jQuery.camelCase( name.slice(5) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - jQuery._data( elem, "parsedAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each(function() { - jQuery.data( this, key ); - }); - } - - return arguments.length > 1 ? - - // Sets one value - this.each(function() { - jQuery.data( this, key, value ); - }) : - - // Gets one value - // Try to fetch any internally stored data first - elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined; - }, - - removeData: function( key ) { - return this.each(function() { - jQuery.removeData( this, key ); - }); - } -}); - - -jQuery.extend({ - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = jQuery._data( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || jQuery.isArray(data) ) { - queue = jQuery._data( elem, type, jQuery.makeArray(data) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // not intended for public consumption - generates a queueHooks object, or returns the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return jQuery._data( elem, key ) || jQuery._data( elem, key, { - empty: jQuery.Callbacks("once memory").add(function() { - jQuery._removeData( elem, type + "queue" ); - jQuery._removeData( elem, key ); - }) - }); - } -}); - -jQuery.fn.extend({ - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[0], type ); - } - - return data === undefined ? - this : - this.each(function() { - var queue = jQuery.queue( this, type, data ); - - // ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[0] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - }); - }, - dequeue: function( type ) { - return this.each(function() { - jQuery.dequeue( this, type ); - }); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = jQuery._data( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -}); -var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var isHidden = function( elem, el ) { - // isHidden might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); - }; - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - length = elems.length, - bulk = key == null; - - // Sets many values - if ( jQuery.type( key ) === "object" ) { - chainable = true; - for ( i in key ) { - jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !jQuery.isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < length; i++ ) { - fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); - } - } - } - - return chainable ? - elems : - - // Gets - bulk ? - fn.call( elems ) : - length ? fn( elems[0], key ) : emptyGet; -}; -var rcheckableType = (/^(?:checkbox|radio)$/i); - - - -(function() { - // Minified: var a,b,c - var input = document.createElement( "input" ), - div = document.createElement( "div" ), - fragment = document.createDocumentFragment(); - - // Setup - div.innerHTML = "
a"; - - // IE strips leading whitespace when .innerHTML is used - support.leadingWhitespace = div.firstChild.nodeType === 3; - - // Make sure that tbody elements aren't automatically inserted - // IE will insert them into empty tables - support.tbody = !div.getElementsByTagName( "tbody" ).length; - - // Make sure that link elements get serialized correctly by innerHTML - // This requires a wrapper element in IE - support.htmlSerialize = !!div.getElementsByTagName( "link" ).length; - - // Makes sure cloning an html5 element does not cause problems - // Where outerHTML is undefined, this still works - support.html5Clone = - document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav>"; - - // Check if a disconnected checkbox will retain its checked - // value of true after appended to the DOM (IE6/7) - input.type = "checkbox"; - input.checked = true; - fragment.appendChild( input ); - support.appendChecked = input.checked; - - // Make sure textarea (and checkbox) defaultValue is properly cloned - // Support: IE6-IE11+ - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; - - // #11217 - WebKit loses check when the name is after the checked attribute - fragment.appendChild( div ); - div.innerHTML = ""; - - // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 - // old WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE<9 - // Opera does not clone events (and typeof div.attachEvent === undefined). - // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() - support.noCloneEvent = true; - if ( div.attachEvent ) { - div.attachEvent( "onclick", function() { - support.noCloneEvent = false; - }); - - div.cloneNode( true ).click(); - } - - // Execute the test only if not already executed in another module. - if (support.deleteExpando == null) { - // Support: IE<9 - support.deleteExpando = true; - try { - delete div.test; - } catch( e ) { - support.deleteExpando = false; - } - } -})(); - - -(function() { - var i, eventName, - div = document.createElement( "div" ); - - // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) - for ( i in { submit: true, change: true, focusin: true }) { - eventName = "on" + i; - - if ( !(support[ i + "Bubbles" ] = eventName in window) ) { - // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) - div.setAttribute( eventName, "t" ); - support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false; - } - } - - // Null elements to avoid leaks in IE. - div = null; -})(); - - -var rformElems = /^(?:input|select|textarea)$/i, - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, - rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - var tmp, events, t, handleObjIn, - special, eventHandle, handleObj, - handlers, type, namespaces, origType, - elemData = jQuery._data( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !(events = elemData.events) ) { - events = elemData.events = {}; - } - if ( !(eventHandle = elemData.handle) ) { - eventHandle = elemData.handle = function( e ) { - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ? - jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : - undefined; - }; - // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events - eventHandle.elem = elem; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnotwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend({ - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join(".") - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !(handlers = events[ type ]) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener/attachEvent if the special events handler returns false - if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - // Bind the global event handler to the element - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle, false ); - - } else if ( elem.attachEvent ) { - elem.attachEvent( "on" + type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - // Nullify elem to prevent memory leaks in IE - elem = null; - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - var j, handleObj, tmp, - origCount, t, events, - special, handlers, type, - namespaces, origType, - elemData = jQuery.hasData( elem ) && jQuery._data( elem ); - - if ( !elemData || !(events = elemData.events) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnotwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[t] ) || []; - type = origType = tmp[1]; - namespaces = ( tmp[2] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - delete elemData.handle; - - // removeData also checks for emptiness and clears the expando if empty - // so use it instead of delete - jQuery._removeData( elem, "events" ); - } - }, - - trigger: function( event, data, elem, onlyHandlers ) { - var handle, ontype, cur, - bubbleType, special, tmp, i, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; - - cur = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf(".") >= 0 ) { - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split("."); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf(":") < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join("."); - event.namespace_re = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === (elem.ownerDocument || document) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { - - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && jQuery.acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && - jQuery.acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name name as the event. - // Can't use an .isFunction() check here because IE6/7 fails that test. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - try { - elem[ type ](); - } catch ( e ) { - // IE<9 dies on focus/blur to hidden element (#1486,#12518) - // only reproducible on winXP IE8 native, not IE9 in IE8 mode - } - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - dispatch: function( event ) { - - // Make a writable jQuery.Event from the native event object - event = jQuery.event.fix( event ); - - var i, ret, handleObj, matched, j, - handlerQueue = [], - args = slice.call( arguments ), - handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[0] = event; - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or - // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). - if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) - .apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( (event.result = ret) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var sel, handleObj, matches, i, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - // Black-hole SVG instance trees (#13180) - // Avoid non-left-click bubbling in Firefox (#3861) - if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { - - /* jshint eqeqeq: false */ - for ( ; cur != this; cur = cur.parentNode || this ) { - /* jshint eqeqeq: true */ - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { - matches = []; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matches[ sel ] === undefined ) { - matches[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) >= 0 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matches[ sel ] ) { - matches.push( handleObj ); - } - } - if ( matches.length ) { - handlerQueue.push({ elem: cur, handlers: matches }); - } - } - } - } - - // Add the remaining (directly-bound) handlers - if ( delegateCount < handlers.length ) { - handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); - } - - return handlerQueue; - }, - - fix: function( event ) { - if ( event[ jQuery.expando ] ) { - return event; - } - - // Create a writable copy of the event object and normalize some properties - var i, prop, copy, - type = event.type, - originalEvent = event, - fixHook = this.fixHooks[ type ]; - - if ( !fixHook ) { - this.fixHooks[ type ] = fixHook = - rmouseEvent.test( type ) ? this.mouseHooks : - rkeyEvent.test( type ) ? this.keyHooks : - {}; - } - copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; - - event = new jQuery.Event( originalEvent ); - - i = copy.length; - while ( i-- ) { - prop = copy[ i ]; - event[ prop ] = originalEvent[ prop ]; - } - - // Support: IE<9 - // Fix target property (#1925) - if ( !event.target ) { - event.target = originalEvent.srcElement || document; - } - - // Support: Chrome 23+, Safari? - // Target should not be a text node (#504, #13143) - if ( event.target.nodeType === 3 ) { - event.target = event.target.parentNode; - } - - // Support: IE<9 - // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) - event.metaKey = !!event.metaKey; - - return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; - }, - - // Includes some event props shared by KeyEvent and MouseEvent - props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), - - fixHooks: {}, - - keyHooks: { - props: "char charCode key keyCode".split(" "), - filter: function( event, original ) { - - // Add which for key events - if ( event.which == null ) { - event.which = original.charCode != null ? original.charCode : original.keyCode; - } - - return event; - } - }, - - mouseHooks: { - props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), - filter: function( event, original ) { - var body, eventDoc, doc, - button = original.button, - fromElement = original.fromElement; - - // Calculate pageX/Y if missing and clientX/Y available - if ( event.pageX == null && original.clientX != null ) { - eventDoc = event.target.ownerDocument || document; - doc = eventDoc.documentElement; - body = eventDoc.body; - - event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); - event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); - } - - // Add relatedTarget, if necessary - if ( !event.relatedTarget && fromElement ) { - event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - // Note: button is not normalized, so don't use it - if ( !event.which && button !== undefined ) { - event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); - } - - return event; - } - }, - - special: { - load: { - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - try { - this.focus(); - return false; - } catch ( e ) { - // Support: IE<9 - // If we error on focus to hidden element (#1486, #12518), - // let .trigger() run the handlers - } - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return jQuery.nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - }, - - simulate: function( type, elem, event, bubble ) { - // Piggyback on a donor event to simulate a different one. - // Fake originalEvent to avoid donor's stopPropagation, but if the - // simulated event prevents default then we do the same on the donor. - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true, - originalEvent: {} - } - ); - if ( bubble ) { - jQuery.event.trigger( e, null, elem ); - } else { - jQuery.event.dispatch.call( elem, e ); - } - if ( e.isDefaultPrevented() ) { - event.preventDefault(); - } - } -}; - -jQuery.removeEvent = document.removeEventListener ? - function( elem, type, handle ) { - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle, false ); - } - } : - function( elem, type, handle ) { - var name = "on" + type; - - if ( elem.detachEvent ) { - - // #8545, #7054, preventing memory leaks for custom events in IE6-8 - // detachEvent needed property on element, by name of that event, to properly expose it to GC - if ( typeof elem[ name ] === strundefined ) { - elem[ name ] = null; - } - - elem.detachEvent( name, handle ); - } - }; - -jQuery.Event = function( src, props ) { - // Allow instantiation without the 'new' keyword - if ( !(this instanceof jQuery.Event) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - // Support: IE < 9, Android < 4.0 - src.returnValue === false ? - returnTrue : - returnFalse; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || jQuery.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - if ( !e ) { - return; - } - - // If preventDefault exists, run it on the original event - if ( e.preventDefault ) { - e.preventDefault(); - - // Support: IE - // Otherwise set the returnValue property of the original event to false - } else { - e.returnValue = false; - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - if ( !e ) { - return; - } - // If stopPropagation exists, run it on the original event - if ( e.stopPropagation ) { - e.stopPropagation(); - } - - // Support: IE - // Set the cancelBubble property of the original event to true - e.cancelBubble = true; - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && e.stopImmediatePropagation ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Create mouseenter/leave events using mouseover/out and event-time checks -jQuery.each({ - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mousenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || (related !== target && !jQuery.contains( target, related )) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -}); - -// IE submit delegation -if ( !support.submitBubbles ) { - - jQuery.event.special.submit = { - setup: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Lazy-add a submit handler when a descendant form may potentially be submitted - jQuery.event.add( this, "click._submit keypress._submit", function( e ) { - // Node name check avoids a VML-related crash in IE (#9807) - var elem = e.target, - form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; - if ( form && !jQuery._data( form, "submitBubbles" ) ) { - jQuery.event.add( form, "submit._submit", function( event ) { - event._submit_bubble = true; - }); - jQuery._data( form, "submitBubbles", true ); - } - }); - // return undefined since we don't need an event listener - }, - - postDispatch: function( event ) { - // If form was submitted by the user, bubble the event up the tree - if ( event._submit_bubble ) { - delete event._submit_bubble; - if ( this.parentNode && !event.isTrigger ) { - jQuery.event.simulate( "submit", this.parentNode, event, true ); - } - } - }, - - teardown: function() { - // Only need this for delegated form submit events - if ( jQuery.nodeName( this, "form" ) ) { - return false; - } - - // Remove delegated handlers; cleanData eventually reaps submit handlers attached above - jQuery.event.remove( this, "._submit" ); - } - }; -} - -// IE change delegation and checkbox/radio fix -if ( !support.changeBubbles ) { - - jQuery.event.special.change = { - - setup: function() { - - if ( rformElems.test( this.nodeName ) ) { - // IE doesn't fire change on a check/radio until blur; trigger it on click - // after a propertychange. Eat the blur-change in special.change.handle. - // This still fires onchange a second time for check/radio after blur. - if ( this.type === "checkbox" || this.type === "radio" ) { - jQuery.event.add( this, "propertychange._change", function( event ) { - if ( event.originalEvent.propertyName === "checked" ) { - this._just_changed = true; - } - }); - jQuery.event.add( this, "click._change", function( event ) { - if ( this._just_changed && !event.isTrigger ) { - this._just_changed = false; - } - // Allow triggered, simulated change events (#11500) - jQuery.event.simulate( "change", this, event, true ); - }); - } - return false; - } - // Delegated event; lazy-add a change handler on descendant inputs - jQuery.event.add( this, "beforeactivate._change", function( e ) { - var elem = e.target; - - if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { - jQuery.event.add( elem, "change._change", function( event ) { - if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { - jQuery.event.simulate( "change", this.parentNode, event, true ); - } - }); - jQuery._data( elem, "changeBubbles", true ); - } - }); - }, - - handle: function( event ) { - var elem = event.target; - - // Swallow native change events from checkbox/radio, we already triggered them above - if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { - return event.handleObj.handler.apply( this, arguments ); - } - }, - - teardown: function() { - jQuery.event.remove( this, "._change" ); - - return !rformElems.test( this.nodeName ); - } - }; -} - -// Create "bubbling" focus and blur events -if ( !support.focusinBubbles ) { - jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = jQuery._data( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = jQuery._data( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - jQuery._removeData( doc, fix ); - } else { - jQuery._data( doc, fix, attaches ); - } - } - }; - }); -} - -jQuery.fn.extend({ - - on: function( types, selector, data, fn, /*INTERNAL*/ one ) { - var type, origFn; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - this.on( type, selector, data, types[ type ], one ); - } - return this; - } - - if ( data == null && fn == null ) { - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return this; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return this.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - }); - }, - one: function( types, selector, data, fn ) { - return this.on( types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each(function() { - jQuery.event.remove( this, types, fn, selector ); - }); - }, - - trigger: function( type, data ) { - return this.each(function() { - jQuery.event.trigger( type, data, this ); - }); - }, - triggerHandler: function( type, data ) { - var elem = this[0]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -}); - - -function createSafeFragment( document ) { - var list = nodeNames.split( "|" ), - safeFrag = document.createDocumentFragment(); - - if ( safeFrag.createElement ) { - while ( list.length ) { - safeFrag.createElement( - list.pop() - ); - } - } - return safeFrag; -} - -var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + - "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", - rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, - rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), - rleadingWhitespace = /^\s+/, - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - rtagName = /<([\w:]+)/, - rtbody = /\s*$/g, - - // We have to close these tags to support XHTML (#13200) - wrapMap = { - option: [ 1, "" ], - legend: [ 1, "
", "
" ], - area: [ 1, "", "" ], - param: [ 1, "", "" ], - thead: [ 1, "", "
" ], - tr: [ 2, "", "
" ], - col: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, - // unless wrapped in a div with non-breaking characters in front of it. - _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] - }, - safeFragment = createSafeFragment( document ), - fragmentDiv = safeFragment.appendChild( document.createElement("div") ); - -wrapMap.optgroup = wrapMap.option; -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - -function getAll( context, tag ) { - var elems, elem, - i = 0, - found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) : - typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) : - undefined; - - if ( !found ) { - for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { - if ( !tag || jQuery.nodeName( elem, tag ) ) { - found.push( elem ); - } else { - jQuery.merge( found, getAll( elem, tag ) ); - } - } - } - - return tag === undefined || tag && jQuery.nodeName( context, tag ) ? - jQuery.merge( [ context ], found ) : - found; -} - -// Used in buildFragment, fixes the defaultChecked property -function fixDefaultChecked( elem ) { - if ( rcheckableType.test( elem.type ) ) { - elem.defaultChecked = elem.checked; - } -} - -// Support: IE<8 -// Manipulating tables requires a tbody -function manipulationTarget( elem, content ) { - return jQuery.nodeName( elem, "table" ) && - jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? - - elem.getElementsByTagName("tbody")[0] || - elem.appendChild( elem.ownerDocument.createElement("tbody") ) : - elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - var match = rscriptTypeMasked.exec( elem.type ); - if ( match ) { - elem.type = match[1]; - } else { - elem.removeAttribute("type"); - } - return elem; -} - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var elem, - i = 0; - for ( ; (elem = elems[i]) != null; i++ ) { - jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); - } -} - -function cloneCopyEvent( src, dest ) { - - if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { - return; - } - - var type, i, l, - oldData = jQuery._data( src ), - curData = jQuery._data( dest, oldData ), - events = oldData.events; - - if ( events ) { - delete curData.handle; - curData.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - - // make the cloned public data object a copy from the original - if ( curData.data ) { - curData.data = jQuery.extend( {}, curData.data ); - } -} - -function fixCloneNodeIssues( src, dest ) { - var nodeName, e, data; - - // We do not need to do anything for non-Elements - if ( dest.nodeType !== 1 ) { - return; - } - - nodeName = dest.nodeName.toLowerCase(); - - // IE6-8 copies events bound via attachEvent when using cloneNode. - if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { - data = jQuery._data( dest ); - - for ( e in data.events ) { - jQuery.removeEvent( dest, e, data.handle ); - } - - // Event data gets referenced instead of copied if the expando gets copied too - dest.removeAttribute( jQuery.expando ); - } - - // IE blanks contents when cloning scripts, and tries to evaluate newly-set text - if ( nodeName === "script" && dest.text !== src.text ) { - disableScript( dest ).text = src.text; - restoreScript( dest ); - - // IE6-10 improperly clones children of object elements using classid. - // IE10 throws NoModificationAllowedError if parent is null, #12132. - } else if ( nodeName === "object" ) { - if ( dest.parentNode ) { - dest.outerHTML = src.outerHTML; - } - - // This path appears unavoidable for IE9. When cloning an object - // element in IE9, the outerHTML strategy above is not sufficient. - // If the src has innerHTML and the destination does not, - // copy the src.innerHTML into the dest.innerHTML. #10324 - if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { - dest.innerHTML = src.innerHTML; - } - - } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - // IE6-8 fails to persist the checked state of a cloned checkbox - // or radio button. Worse, IE6-7 fail to give the cloned element - // a checked appearance if the defaultChecked value isn't also set - - dest.defaultChecked = dest.checked = src.checked; - - // IE6-7 get confused and end up setting the value of a cloned - // checkbox/radio button to an empty string instead of "on" - if ( dest.value !== src.value ) { - dest.value = src.value; - } - - // IE6-8 fails to return the selected option to the default selected - // state when cloning options - } else if ( nodeName === "option" ) { - dest.defaultSelected = dest.selected = src.defaultSelected; - - // IE6-8 fails to set the defaultValue to the correct value when - // cloning other types of input fields - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -jQuery.extend({ - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var destElements, node, clone, i, srcElements, - inPage = jQuery.contains( elem.ownerDocument, elem ); - - if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { - clone = elem.cloneNode( true ); - - // IE<=8 does not properly clone detached, unknown element nodes - } else { - fragmentDiv.innerHTML = elem.outerHTML; - fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); - } - - if ( (!support.noCloneEvent || !support.noCloneChecked) && - (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { - - // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - // Fix all IE cloning issues - for ( i = 0; (node = srcElements[i]) != null; ++i ) { - // Ensure that the destination node is not null; Fixes #9587 - if ( destElements[i] ) { - fixCloneNodeIssues( node, destElements[i] ); - } - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0; (node = srcElements[i]) != null; i++ ) { - cloneCopyEvent( node, destElements[i] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - destElements = srcElements = node = null; - - // Return the cloned set - return clone; - }, - - buildFragment: function( elems, context, scripts, selection ) { - var j, elem, contains, - tmp, tag, tbody, wrap, - l = elems.length, - - // Ensure a safe fragment - safe = createSafeFragment( context ), - - nodes = [], - i = 0; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( jQuery.type( elem ) === "object" ) { - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || safe.appendChild( context.createElement("div") ); - - // Deserialize a standard representation - tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - - tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; - - // Descend through wrappers to the right content - j = wrap[0]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Manually add leading whitespace removed by IE - if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { - nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); - } - - // Remove IE's autoinserted from table fragments - if ( !support.tbody ) { - - // String was a , *may* have spurious - elem = tag === "table" && !rtbody.test( elem ) ? - tmp.firstChild : - - // String was a bare or - wrap[1] === "
" && !rtbody.test( elem ) ? - tmp : - 0; - - j = elem && elem.childNodes.length; - while ( j-- ) { - if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { - elem.removeChild( tbody ); - } - } - } - - jQuery.merge( nodes, tmp.childNodes ); - - // Fix #12392 for WebKit and IE > 9 - tmp.textContent = ""; - - // Fix #12392 for oldIE - while ( tmp.firstChild ) { - tmp.removeChild( tmp.firstChild ); - } - - // Remember the top-level container for proper cleanup - tmp = safe.lastChild; - } - } - } - - // Fix #11356: Clear elements from fragment - if ( tmp ) { - safe.removeChild( tmp ); - } - - // Reset defaultChecked for any radios and checkboxes - // about to be appended to the DOM in IE 6/7 (#8060) - if ( !support.appendChecked ) { - jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); - } - - i = 0; - while ( (elem = nodes[ i++ ]) ) { - - // #4087 - If origin and destination elements are the same, and this is - // that element, do not do anything - if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( safe.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( (elem = tmp[ j++ ]) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - tmp = null; - - return safe; - }, - - cleanData: function( elems, /* internal */ acceptData ) { - var elem, type, id, data, - i = 0, - internalKey = jQuery.expando, - cache = jQuery.cache, - deleteExpando = support.deleteExpando, - special = jQuery.event.special; - - for ( ; (elem = elems[i]) != null; i++ ) { - if ( acceptData || jQuery.acceptData( elem ) ) { - - id = elem[ internalKey ]; - data = id && cache[ id ]; - - if ( data ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Remove cache only if it was not already removed by jQuery.event.remove - if ( cache[ id ] ) { - - delete cache[ id ]; - - // IE does not allow us to delete expando properties from nodes, - // nor does it have a removeAttribute function on Document nodes; - // we must handle all of these cases - if ( deleteExpando ) { - delete elem[ internalKey ]; - - } else if ( typeof elem.removeAttribute !== strundefined ) { - elem.removeAttribute( internalKey ); - - } else { - elem[ internalKey ] = null; - } - - deletedIds.push( id ); - } - } - } - } - } -}); - -jQuery.fn.extend({ - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); - }, null, value, arguments.length ); - }, - - append: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - }); - }, - - prepend: function() { - return this.domManip( arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - }); - }, - - before: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - }); - }, - - after: function() { - return this.domManip( arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - }); - }, - - remove: function( selector, keepData /* Internal Use Only */ ) { - var elem, - elems = selector ? jQuery.filter( selector, this ) : this, - i = 0; - - for ( ; (elem = elems[i]) != null; i++ ) { - - if ( !keepData && elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem ) ); - } - - if ( elem.parentNode ) { - if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { - setGlobalEval( getAll( elem, "script" ) ); - } - elem.parentNode.removeChild( elem ); - } - } - - return this; - }, - - empty: function() { - var elem, - i = 0; - - for ( ; (elem = this[i]) != null; i++ ) { - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - } - - // Remove any remaining nodes - while ( elem.firstChild ) { - elem.removeChild( elem.firstChild ); - } - - // If this is a select, ensure that it displays empty (#12336) - // Support: IE<9 - if ( elem.options && jQuery.nodeName( elem, "select" ) ) { - elem.options.length = 0; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map(function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - }); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined ) { - return elem.nodeType === 1 ? - elem.innerHTML.replace( rinlinejQuery, "" ) : - undefined; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - ( support.htmlSerialize || !rnoshimcache.test( value ) ) && - ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && - !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) { - - value = value.replace( rxhtmlTag, "<$1>" ); - - try { - for (; i < l; i++ ) { - // Remove element nodes and prevent memory leaks - elem = this[i] || {}; - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch(e) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var arg = arguments[ 0 ]; - - // Make the changes, replacing each context element with the new content - this.domManip( arguments, function( elem ) { - arg = this.parentNode; - - jQuery.cleanData( getAll( this ) ); - - if ( arg ) { - arg.replaceChild( elem, this ); - } - }); - - // Force removal if there was no new content (e.g., from empty arguments) - return arg && (arg.length || arg.nodeType) ? this : this.remove(); - }, - - detach: function( selector ) { - return this.remove( selector, true ); - }, - - domManip: function( args, callback ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var first, node, hasScripts, - scripts, doc, fragment, - i = 0, - l = this.length, - set = this, - iNoClone = l - 1, - value = args[0], - isFunction = jQuery.isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return this.each(function( index ) { - var self = set.eq( index ); - if ( isFunction ) { - args[0] = value.call( this, index, self.html() ); - } - self.domManip( args, callback ); - }); - } - - if ( l ) { - fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - if ( first ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( this[i], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { - - if ( node.src ) { - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); - } - } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); - } - } - } - } - - // Fix #11809: Avoid leaking memory - fragment = first = null; - } - } - - return this; - } -}); - -jQuery.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - i = 0, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone(true); - jQuery( insert[i] )[ original ]( elems ); - - // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -}); - - -var iframe, - elemdisplay = {}; - -/** - * Retrieve the actual display of a element - * @param {String} name nodeName of the element - * @param {Object} doc Document object - */ -// Called only from within defaultDisplay -function actualDisplay( name, doc ) { - var style, - elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), - - // getDefaultComputedStyle might be reliably used only on attached element - display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? - - // Use of this method is a temporary fix (more like optmization) until something better comes along, - // since it was removed from specification and supported only in FF - style.display : jQuery.css( elem[ 0 ], "display" ); - - // We don't have any data stored on the element, - // so use "detach" method as fast way to get rid of the element - elem.detach(); - - return display; -} - -/** - * Try to determine the default display value of an element - * @param {String} nodeName - */ -function defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - - // Use the already-created iframe if possible - iframe = (iframe || jQuery( "');if(g.attr("src",f),e.replaceWith(g),c.width&&g.css("width",c.width),c.height)g.css("height",c.height);else{var h=function(){var b=g.offset(),c=a(window).height(),d=c-b.top-5;g.height(d)};g.load(function(){h()}),a(window).resize(function(){h()})}})}var c={name:"iframe",version:a.md.version,once:function(){a.md.linkGimmick(this,"iframe",b)}};a.md.registerGimmick(c)}(jQuery),function(a){function b(b){b.remove();var c=document.createElement("script");c.type="text/javascript",c.src=a.md.prepareLink("cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",{forceHTTP:!0}),document.getElementsByTagName("head")[0].appendChild(c)}var c={name:"math",once:function(){a.md.linkGimmick(this,"math",b)}};a.md.registerGimmick(c)}(jQuery),function(a){"use strict";var b=[{name:"bootstrap",url:"netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"},{name:"amelia",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/amelia/bootstrap.min.css"},{name:"cerulean",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/cerulean/bootstrap.min.css"},{name:"cosmo",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/cosmo/bootstrap.min.css"},{name:"cyborg",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/cyborg/bootstrap.min.css"},{name:"flatly",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css"},{name:"journal",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/journal/bootstrap.min.css"},{name:"readable",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/readable/bootstrap.min.css"},{name:"simplex",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/simplex/bootstrap.min.css"},{name:"slate",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/slate/bootstrap.min.css"},{name:"spacelab",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/spacelab/bootstrap.min.css"},{name:"united",url:"netdna.bootstrapcdn.com/bootswatch/3.0.0/united/bootstrap.min.css"},{name:"yeti",url:"netdna.bootstrapcdn.com/bootswatch/3.0.2/yeti/bootstrap.min.css"}],c=!1,d={name:"Themes",version:a.md.version,once:function(){a.md.linkGimmick(this,"themechooser",h,"skel_ready"),a.md.linkGimmick(this,"theme",g)}};a.md.registerGimmick(d);var e=a.md.getLogger(),f=function(c){if(c.inverse=c.inverse||!1,void 0===c.url){if(!c.name)return void e.error("Theme name must be given!");var d=b.filter(function(a){return a.name===c.name})[0];if(!d)return void e.error("Theme "+name+" not found, removing link");c=a.extend(c,d)}a('link[rel=stylesheet][href*="netdna.bootstrapcdn.com"]').remove();var f=a("style[id*=bootstrap]").length>0;"bootstrap"===c.name&&f||(a("style[id*=bootstrap]").remove(),a('').attr("href",a.md.prepareLink(c.url)).appendTo("head")),c.inverse===!0?(a("#md-main-navbar").removeClass("navbar-default"),a("#md-main-navbar").addClass("navbar-inverse")):(a("#md-main-navbar").addClass("navbar-default"),a("#md-main-navbar").removeClass("navbar-inverse"))},g=function(b,d,e){d.name=d.name||e,b.each(function(b,e){a.md.stage("postgimmick").subscribe(function(b){a(e);void 0!==window.localStorage.theme&&c||f(d),b()})}),b.remove()},h=function(d,e,f){return c=!0,a.md.stage("bootstrap").subscribe(function(a){i(e),a()}),d.each(function(c,d){var e=a(d),g=a('
    ');g.eq(0).text(f),a.each(b,function(b,c){var d=a("
  • ");g.eq(1).append(d);a("").text(c.name).attr("href","").click(function(a){a.preventDefault(),window.localStorage.theme=c.name,window.location.reload()}).appendTo(d)}),g.eq(1).append('
  • ');var h=a("
  • "),i=a("Use default");i.click(function(a){a.preventDefault(),window.localStorage.removeItem("theme"),window.location.reload()}),h.append(i),g.eq(1).append(h),g.eq(1).append('
  • '),g.eq(1).append('
  • Powered by Bootswatch
  • '),e.replaceWith(g)})},i=function(b){window.localStorage.theme&&(b=a.extend({name:window.localStorage.theme},b),f(b))}}(jQuery),function(a){var b=a.md.prepareLink("platform.twitter.com/widgets.js"),c='!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="'+b+'";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");',d={name:"TwitterGimmick",version:a.md.version,once:function(){a.md.linkGimmick(this,"twitterfollow",e),a.md.registerScript(this,c,{license:"EXCEPTION",loadstage:"postgimmick",finishstage:"all_ready"})}};a.md.registerGimmick(d);var e=function(b){return b.each(function(b,c){var d,e=a(c),f=e.attr("href");if(f.indexOf("twitter.com")<=0){d=e.attr("href"),f=a.md.prepareLink("twitter.com/"+d),"@"===d[0]&&(d=d.substring(1));var g=a('");e.replaceWith(g)}})}}(jQuery),function(a){function b(){var b=a("a[href*=youtube\\.com]:empty, a[href*=youtu\\.be]:empty");b.each(function(){var b=a(this),c=b.attr("href");if(void 0!==c){var d=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/,e=c.match(d);if(e&&11===e[1].length){var f=e[1],g=a('');g.attr("src","http://youtube.com/embed/"+f),b.replaceWith(g)}}})}var c={name:"youtube",load:function(){a.md.stage("gimmick").subscribe(function(a){b(),a()})}};a.md.registerGimmick(c)}(jQuery),function(a){"use strict";function b(b,c){var d={type:"class",style:"plain",direction:"LR",scale:"100"},e=a.extend({},d,c);return b.each(function(b,c){var d=a(c),f="http://yuml.me/diagram/",g=d.attr("href"),h=d.attr("title");h=h?h:"",g=g.replace(new RegExp("`","g"),"(").replace(new RegExp("´","g"),")"),f+=e.style+";dir:"+e.direction+";scale:"+e.scale+"/"+e.type+"/"+g;var i=a(''+h+'');d.replaceWith(i)})}var c={name:"yuml",version:a.md.version,once:function(){a.md.linkGimmick(this,"yuml",b),a.md.registerScript(this,"",{license:"LGPL",loadstage:"postgimmick",finishstage:"all_ready"})}};a.md.registerGimmick(c)}(jQuery); + + + + + + +
    +
    + + diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 448e9f8..b2a2fcb 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -1,5 +1,5 @@ {if="$newversion"}
    Shaarli {$newversion|htmlspecialchars} is available.
    From aa222440275f1cd7fb369ea1dd64a015a5b6d684 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 15 Mar 2015 14:23:25 +0100 Subject: [PATCH 083/658] bump version to 0.0.44beta --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index a82c440..11f944e 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ '); // Suffix to encapsulate data in PHP code. // http://server.com/x/shaarli --> /shaarli/ diff --git a/shaarli_version.php b/shaarli_version.php index d266380..e333d4e 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From 5b2a7cfe0f12b373fc0bf55c1e22413632f57b4d Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 16 Mar 2015 16:13:04 +0100 Subject: [PATCH 084/658] Revert to non-unicode characters for search buttons * Fixes #172 --- tpl/linklist.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/linklist.html b/tpl/linklist.html index 0b328af..353eca5 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -5,8 +5,8 @@ From c981b4d19cea6ee8001ba80e1d7e47cd3d2f7ff6 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 16 Mar 2015 16:16:03 +0100 Subject: [PATCH 085/658] restore normal font size for the "Add link" input field * Fixes second part of #172 --- inc/shaarli.css | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/shaarli.css b/inc/shaarli.css index 7bfdc42..c4348c7 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -336,6 +336,7 @@ h1 { #headerform input.linkurl { width: 50%; + font-size: inherit; } #toolsdiv { From 129ff3c2e50154d563de12c85ec7597df5bded5a Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 16 Mar 2015 16:17:31 +0100 Subject: [PATCH 086/658] bump version to 0.0.45beta --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1ab3419..0d3c330 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ '); // Suffix to encapsulate data in PHP code. // http://server.com/x/shaarli --> /shaarli/ diff --git a/shaarli_version.php b/shaarli_version.php index e333d4e..d225487 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From 3ea318dad05954e2043d5bb2f8572b103d7c3930 Mon Sep 17 00:00:00 2001 From: feula Date: Sun, 29 Mar 2015 17:31:34 +0200 Subject: [PATCH 087/658] Display notes as absolute urls. The deletion is related to Windows not handling quotes in filenames, see #179. It shouldn't delete the real file. Probably. Check it out. --- "doc/Mentions-of-Shaarli-in-\"the-press\".md" | 3 --- index.php | 24 +++++++++++++------ 2 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 "doc/Mentions-of-Shaarli-in-\"the-press\".md" diff --git "a/doc/Mentions-of-Shaarli-in-\"the-press\".md" "b/doc/Mentions-of-Shaarli-in-\"the-press\".md" deleted file mode 100644 index 60c22cf..0000000 --- "a/doc/Mentions-of-Shaarli-in-\"the-press\".md" +++ /dev/null @@ -1,3 +0,0 @@ -This page lists the publications (physical or on the Internet) that mention Shaarli. It is by no means a complete list, and you are invited to add to it, should you spot a Shaarli mentioned in the wild. - -* http://www.linuxjournal.com/content/youre-boss-ubos \ No newline at end of file diff --git a/index.php b/index.php index 0d3c330..eb7fd10 100644 --- a/index.php +++ b/index.php @@ -1940,15 +1940,25 @@ function buildLinkList($PAGE,$LINKSDB) while ($i<$end && $i Date: Thu, 12 Mar 2015 21:57:19 +0100 Subject: [PATCH 088/658] Define date format in templates instead of index.php. --- index.php | 16 +++------------- tpl/daily.html | 2 +- tpl/dailyrss.html | 2 +- tpl/linklist.html | 4 ++-- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index 0d3c330..9ab70f6 100644 --- a/index.php +++ b/index.php @@ -567,16 +567,6 @@ function linkdate2iso8601($linkdate) return date('c',linkdate2timestamp($linkdate)); // 'c' is for ISO 8601 date format. } -/* Converts a linkdate time (YYYYMMDD_HHMMSS) of an article to a localized date format. - (used to display link date on screen) - The date format is automatically chosen according to locale/languages sniffed from browser headers (see autoLocale()). */ -function linkdate2locale($linkdate) -{ - return utf8_encode(strftime('%c',linkdate2timestamp($linkdate))); // %c is for automatic date format according to locale. - // Note that if you use a locale which is not installed on your webserver, - // the date will not be displayed in the chosen locale, but probably in US notation. -} - // Parse HTTP response headers and return an associative array. function http_parse_headers_shaarli( $headers ) { @@ -1142,7 +1132,7 @@ function showDailyRSS() $l = $LINKSDB[$linkdate]; $l['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($l['description'])))); $l['thumbnail'] = thumbnail($l['url']); - $l['localdate']=linkdate2locale($l['linkdate']); + $l['timestamp'] = linkdate2timestamp($l['linkdate']); if (startsWith($l['url'],'?')) $l['url']=indexUrl().$l['url']; // make permalink URL absolute $links[$linkdate]=$l; } @@ -1190,7 +1180,7 @@ function showDaily() $linksToDisplay[$key]['taglist']=$taglist; $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); - $linksToDisplay[$key]['localdate'] = linkdate2locale($link['linkdate']); + $linksToDisplay[$key]['timestamp'] = linkdate2timestamp($link['linkdate']); } /* We need to spread the articles on 3 columns. @@ -1944,7 +1934,7 @@ function buildLinkList($PAGE,$LINKSDB) $title=$link['title']; $classLi = $i%2!=0 ? '' : 'publicLinkHightLight'; $link['class'] = ($link['private']==0 ? $classLi : 'private'); - $link['localdate']=linkdate2locale($link['linkdate']); + $link['timestamp']=linkdate2timestamp($link['linkdate']); $taglist = explode(' ',$link['tags']); uasort($taglist, 'strcasecmp'); $link['taglist']=$taglist; diff --git a/tpl/daily.html b/tpl/daily.html index c53e6f7..919795b 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -30,7 +30,7 @@ {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} {/if} {if="$link.tags"} diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html index 436e1cd..926704f 100644 --- a/tpl/dailyrss.html +++ b/tpl/dailyrss.html @@ -1,6 +1,6 @@ {loop="links"}

    {$value.title|htmlspecialchars}

    - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{$value.localdate|htmlspecialchars} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
    + {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp|htmlspecialchars)"} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
    {$value.url|htmlspecialchars}

    {if="$value.thumbnail"}{$value.thumbnail}{/if}
    {if="$value.description"}{$value.formatedDescription}{/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index 353eca5..766a80c 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -44,7 +44,7 @@
    {if="$value.description"}
    {$value.description}
    {/if} {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} - {$value.localdate|htmlspecialchars} - permalink - + {function="strftime('%c', $value.timestamp)"} - permalink - {else} permalink - {/if} @@ -53,7 +53,7 @@ {/if} - + QR-Code - {$value.url|htmlspecialchars}
    {if="$value.tags"}
    From 880cbf92ca0ee87a4b10a0621e44aa70d019aff7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 12 Mar 2015 21:43:21 +0100 Subject: [PATCH 089/658] Fixes autoLocale function by trying several way to find a correct one. --- index.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 9ab70f6..7795a59 100644 --- a/index.php +++ b/index.php @@ -302,12 +302,17 @@ function keepMultipleSpaces($text) // (Note that is may not work on your server if the corresponding local is not installed.) function autoLocale() { - $loc='en_US'; // Default if browser does not send HTTP_ACCEPT_LANGUAGE + $attempts = array('en_US'); // Default if browser does not send HTTP_ACCEPT_LANGUAGE if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) // e.g. "fr,fr-fr;q=0.8,en;q=0.5,en-us;q=0.3" { // (It's a bit crude, but it works very well. Preferred language is always presented first.) - if (preg_match('/([a-z]{2}(-[a-z]{2})?)/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) $loc=$matches[1]; + if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { + $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); + $attempts = array($loc, str_replace('_', '-', $loc), + $loc . '_' . strtoupper($loc), $loc . '_' . $loc, + $loc . '-' . strtoupper($loc), $loc . '-' . $loc); + } } - setlocale(LC_TIME,$loc); // LC_TIME = Set local for date/time format only. + setlocale(LC_TIME, $attempts); // LC_TIME = Set local for date/time format only. } // ------------------------------------------------------------------------------------------ @@ -549,7 +554,7 @@ function endsWith($haystack,$needle,$case=true) function linkdate2timestamp($linkdate) { $Y=$M=$D=$h=$m=$s=0; - $r = sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); + sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); return mktime($h,$m,$s,$M,$D,$Y); } From 3139a6cf8ddb9fd50e84e33d35739c9fb4a1914c Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 31 Mar 2015 20:02:50 +0200 Subject: [PATCH 090/658] Fix php error in daily RSS Use of undefined constant htmlspecialchars - assumed 'htmlspecialchars' in /var/www/links/tmp/dailyrss.* Thanks @alexisju in https://github.com/shaarli/Shaarli/commit/bec18701801cc140d760c261dd115fda1507a0dd --- tpl/dailyrss.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html index 926704f..a9b11e1 100644 --- a/tpl/dailyrss.html +++ b/tpl/dailyrss.html @@ -1,6 +1,6 @@ {loop="links"}

    {$value.title|htmlspecialchars}

    - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp|htmlspecialchars)"} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
    + {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
    {$value.url|htmlspecialchars}

    {if="$value.thumbnail"}{$value.thumbnail}{/if}
    {if="$value.description"}{$value.formatedDescription}{/if} From 2f4ab7cae2d3b1f13641a61c03d3b159b2c77379 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 31 Mar 2015 20:21:21 +0200 Subject: [PATCH 091/658] update doc --- doc/Home.md | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/doc/Home.md b/doc/Home.md index d68656e..c80b8c9 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -84,7 +84,8 @@ To change the configuration, create the file `data/options.php`, example: $GLOBALS['config']['ENABLE_THUMBNAILS'] = false; ?> ``` - The following parameters are available (parameters (default value)): + +**Do not edit config options in index.php! Your changes would be lost when you upgrade.** The following parameters are available (parameters (default value)): * `DATADIR ('data')` : This is the name of the subdirectory where Shaarli stores is data file. You can change it for better security. * `CONFIG_FILE ($GLOBALS['config']['DATADIR'].'/config.php')` : Name of file which is used to store login/password. @@ -96,6 +97,8 @@ To change the configuration, create the file `data/options.php`, example: * `OPEN_SHAARLI (false)` : If you set this option to true, anyone will be able to add/modify/delete/import/exports links without having to login. * `HIDE_TIMESTAMPS (false)` : If you set this option to true, the date/time of each link will not be displayed (including in RSS Feed). * `ENABLE_THUMBNAILS (true)` : Enable/disable thumbnails. + * `RAINTPL_TMP (tmp/)` : Raintpl cache directory (keep the trailing slash!) + * `RAINTPL_TPL (tpl/) : Raintpl template directory (keep the trailing slash!). Edit this option if you want to change the rendering template (page structure) used by Shaarli. See [Changing template](#changing-template) * `CACHEDIR ('cache')` : Directory where the thumbnails are stored. * `ENABLE_LOCALCACHE (true)` : If you have a limited quota on your webspace, you can set this option to false: Shaarli will not generate thumbnails which need to be cached locally (vimeo, flickr, etc.). Thumbnails will still be visible for the services which do not use the local cache (youtube.com, imgur.com, dailymotion.com, imageshack.us) * `UPDATECHECK_FILENAME ($GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt')` : name of the file used to store available shaarli version. @@ -114,6 +117,18 @@ To change the configuration, create the file `data/options.php`, example: See also: * [Download CSS styles for shaarlis listed in an opml file](https://github.com/shaarli/Shaarli/wiki/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file) +### Changing template + +| 💥 | This feature is currently being worked on and will be improved in the next releases. Experimental. | +|---------|---------| + + * Find the template you'd like to install. See the list of available templates (TODO). Find it's git clone URL or download the zip archive for the template. + * In your Shaarli `tpl/` directory, run `git clone https://url/of/my-template/` or unpack the zip archive. There should now be a `my-template/` directory under the `tpl/` dir, containing directly all the template files. + * Edit `data/options.php` to have Shaarli use this template. Eg. + +`$GLOBALS['config']['RAINTPL_TPL'] = 'tpl/my-template/' ;` + +You can find a list of compatible templates in [Related Software](#Related-software) # Backup @@ -205,7 +220,7 @@ Download [publisher.php](https://pubsubhubbub.googlecode.com/git/publisher_clien * [Example patch: add a new "via" field for links](Example-patch---add-new-via-field-for-links) * [Copy a Shaarli installation over SSH SCP, serve it locally with php cli](Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli) - * To display the array representing the data saved in datastore.php, use the following snippet + * To display the array representing the data saved in datastore.php, use the following snippet (TODO where is it gone?) ### Changing timestamp for a link * Look for `` in `tpl/editlink.tpl` (line 14) @@ -228,20 +243,24 @@ Unofficial but relatedd work on Shaarli. If you maintain one of these, please ge * [shaarchiver](https://github.com/nodiscc/shaarchiver) - Archive your Shaarli bookmarks and their content * [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider + * [Shaarlier for Android](https://play.google.com/store/apps/details?id=com.dimtion.shaarlier) - Android application to simply add links directly into your Shaarli * [shaarli-river](https://github.com/mknexen/shaarli-river) - an aggregator for shaarlis with many features * [Shaarlo](https://github.com/DMeloni/shaarlo) - an aggregator for shaarlis with many features ([Demo](http://shaarli.fr/)) * [kalvn/shaarli-blocks](https://github.com/kalvn/shaarli-blocks) - A template/theme for Shaarli - * [Vinm/Blue-theme-for Shaarli](https://github.com/Vinm/Blue-theme-for-Shaarli) - A template/theme for Shaarli + * [kalvn/Shaarli-Material](https://github.com/kalvn/Shaarli-Material) - +A theme (template) based on Google's Material Design for Shaarli, the superfast delicious clone. + * [Vinm/Blue-theme-for Shaarli](https://github.com/Vinm/Blue-theme-for-Shaarli) - A template/theme for Shaarli ([unmaintained](https://github.com/Vinm/Blue-theme-for-Shaarli/issues/2), compatibility unknown) * [vivienhaese/shaarlitheme](https://github.com/vivienhaese/shaarlitheme) - A Shaarli fork meant to be run in an openshift instance * [tt-rss-shaarli](https://github.com/jcsaaddupuy/tt-rss-shaarli) - [TinyTiny RSS](http://tt-rss.org/) plugin that adds support for sharing articles with Shaarli * [dhoko/ShaarliTemplate](https://github.com/dhoko/ShaarliTemplate) - A template/theme for Shaarli * [mknexen/shaarli-api](https://github.com/mknexen/shaarli-api) - a REST API for Shaarli - * [Shaarli-Albinomouse](https://github.com/alexisju/Shaarli-AlbinoMouse) - A fork of Shaarli with a different template + * [Albinomouse](https://github.com/alexisju/albinomouse-template) - A full template for Shaarli * [Shaarlimages](https://github.com/BoboTiG/shaarlimages) - An image-oriented aggregator for Shaarlis * [Shaarli Superhero Theme](https://github.com/AkibaTech/Shaarli---SuperHero-Theme) - A template/theme for Shaarli * [Limonade](https://github.com/misterair/limonade) - A fork of Shaarli with a new template * [octopress-shaarli](https://github.com/ahmet2mir/octopress-shaarli) - octoprress plugin to retrieve SHaarli links on the sidebara * [Bookie](https://github.com/bookieio/bookie) - Another self-hostable, Free bookmark sharing software, written in Python + * [Unmark](https://github.com/plainmade/unmark) - An open source to do app for bookmarks ([Homepage](https://unmark.it/)) @@ -251,7 +270,6 @@ Unofficial but relatedd work on Shaarli. If you maintain one of these, please ge * [A list of working Shaarli aggregators](https://raw.githubusercontent.com/Oros42/find_shaarlis/master/annuaires.json) * [A list of some known Shaarlis](https://github.com/Oros42/shaarlis_list) * [Adieu Delicious, Diigo et StumbleUpon. Salut Shaarli ! - sebsauvage.net](http://sebsauvage.net/rhaa/index.php?2011/09/16/09/29/58-adieu-delicious-diigo-et-stumbleupon-salut-shaarli-) (fr) _16/09/2011 - the original post about Shaarli_ - * [Mentions of Shaarli in the press](Mentions-of-Shaarli-in-%22the-press%22) * [Original ideas/fixme/TODO page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:ideas) * [Original discussion page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion) (fr) * [Original revisions history](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:history) From a5752e776c9ee5ee5a711a76e8c8066ee88f7192 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 12 Mar 2015 21:57:19 +0100 Subject: [PATCH 092/658] Fix bad merge commit Define date format in templates instead of index.php. Conflicts: index.php tpl/dailyrss.html --- index.php | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/index.php b/index.php index 83c507b..9ab70f6 100644 --- a/index.php +++ b/index.php @@ -567,16 +567,6 @@ function linkdate2iso8601($linkdate) return date('c',linkdate2timestamp($linkdate)); // 'c' is for ISO 8601 date format. } -/* Converts a linkdate time (YYYYMMDD_HHMMSS) of an article to a localized date format. - (used to display link date on screen) - The date format is automatically chosen according to locale/languages sniffed from browser headers (see autoLocale()). */ -function linkdate2locale($linkdate) -{ - return utf8_encode(strftime('%c',linkdate2timestamp($linkdate))); // %c is for automatic date format according to locale. - // Note that if you use a locale which is not installed on your webserver, - // the date will not be displayed in the chosen locale, but probably in US notation. -} - // Parse HTTP response headers and return an associative array. function http_parse_headers_shaarli( $headers ) { @@ -1142,7 +1132,7 @@ function showDailyRSS() $l = $LINKSDB[$linkdate]; $l['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($l['description'])))); $l['thumbnail'] = thumbnail($l['url']); - $l['localdate']=linkdate2locale($l['linkdate']); + $l['timestamp'] = linkdate2timestamp($l['linkdate']); if (startsWith($l['url'],'?')) $l['url']=indexUrl().$l['url']; // make permalink URL absolute $links[$linkdate]=$l; } @@ -1190,7 +1180,7 @@ function showDaily() $linksToDisplay[$key]['taglist']=$taglist; $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); - $linksToDisplay[$key]['localdate'] = linkdate2locale($link['linkdate']); + $linksToDisplay[$key]['timestamp'] = linkdate2timestamp($link['linkdate']); } /* We need to spread the articles on 3 columns. @@ -1940,21 +1930,14 @@ function buildLinkList($PAGE,$LINKSDB) while ($i<$end && $i Date: Wed, 1 Apr 2015 11:47:04 +0200 Subject: [PATCH 093/658] Display notes as absolute URLs --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.php b/index.php index 9ab70f6..765416e 100644 --- a/index.php +++ b/index.php @@ -1938,6 +1938,12 @@ function buildLinkList($PAGE,$LINKSDB) $taglist = explode(' ',$link['tags']); uasort($taglist, 'strcasecmp'); $link['taglist']=$taglist; + + if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. + strlen($link["url"]) === 7) { + $link["url"] = indexUrl() . $link["url"]; + } + $linkDisp[$keys[$i]] = $link; $i++; } From 326ae54d08b787d61e2807ea3ff5dc3171a695de Mon Sep 17 00:00:00 2001 From: dimtion Date: Sun, 5 Apr 2015 18:18:15 +0200 Subject: [PATCH 094/658] Fix missing permalink title when logged in --- index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/index.php b/index.php index 765416e..7d84aa0 100644 --- a/index.php +++ b/index.php @@ -1770,7 +1770,6 @@ HTML; // -------- Otherwise, simply display search form and links: $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); buildLinkList($PAGE,$LINKSDB); // Compute list of links to display $PAGE->renderPage('linklist'); exit; From 8438a2e5d0cb90a869d67516c6e6cf756f77a588 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 12 Mar 2015 21:43:21 +0100 Subject: [PATCH 095/658] Fixes autoLocale function by trying several way to find a correct one. Fix https://github.com/shaarli/Shaarli/issues/184 --- index.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 765416e..3192029 100644 --- a/index.php +++ b/index.php @@ -302,12 +302,17 @@ function keepMultipleSpaces($text) // (Note that is may not work on your server if the corresponding local is not installed.) function autoLocale() { - $loc='en_US'; // Default if browser does not send HTTP_ACCEPT_LANGUAGE + $attempts = array('en_US'); // Default if browser does not send HTTP_ACCEPT_LANGUAGE if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) // e.g. "fr,fr-fr;q=0.8,en;q=0.5,en-us;q=0.3" { // (It's a bit crude, but it works very well. Preferred language is always presented first.) - if (preg_match('/([a-z]{2}(-[a-z]{2})?)/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) $loc=$matches[1]; + if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { + $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); + $attempts = array($loc, str_replace('_', '-', $loc), + $loc . '_' . strtoupper($loc), $loc . '_' . $loc, + $loc . '-' . strtoupper($loc), $loc . '-' . $loc); + } } - setlocale(LC_TIME,$loc); // LC_TIME = Set local for date/time format only. + setlocale(LC_TIME, $attempts); // LC_TIME = Set local for date/time format only. } // ------------------------------------------------------------------------------------------ @@ -549,7 +554,7 @@ function endsWith($haystack,$needle,$case=true) function linkdate2timestamp($linkdate) { $Y=$M=$D=$h=$m=$s=0; - $r = sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); + sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); return mktime($h,$m,$s,$M,$D,$Y); } From f3e89f50ecae76ddd6bf77e23b4a84bec998bd69 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:16:17 +0200 Subject: [PATCH 096/658] cleanup: makefile comments --- Makefile | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 8f9ab9e..9635e53 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ # Shaarli, the personal, minimalist, super-fast, no-database delicious clone. -# # Makefile for PHP code analysis & testing -# + # Prerequisites: # - install Composer, either: # - from your distro's package manager; @@ -9,6 +8,7 @@ # - install/update test dependencies: # $ composer install # 1st setup # $ composer update + BIN = vendor/bin PHP_SOURCE = index.php MESS_DETECTOR_RULES = cleancode,codesize,controversial,design,naming,unusedcode @@ -17,41 +17,39 @@ all: static_analysis_summary ## # Concise status of the project -# # These targets are non-blocking: || exit 0 ## + static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary ## # PHP_CodeSniffer -# # Detects PHP syntax errors -# # Documentation (usage, output formatting): # - http://pear.php.net/manual/en/package.php.php-codesniffer.usage.php # - http://pear.php.net/manual/en/package.php.php-codesniffer.reporting.php ## + code_sniffer: code_sniffer_full -# - errors by Git author +### - errors by Git author code_sniffer_blame: @$(BIN)/phpcs $(PHP_SOURCE) --report-gitblame -# - all errors/warnings +### - all errors/warnings code_sniffer_full: @$(BIN)/phpcs $(PHP_SOURCE) --report-full --report-width=200 -# - errors grouped by kind +### - errors grouped by kind code_sniffer_source: @$(BIN)/phpcs $(PHP_SOURCE) --report-source || exit 0 ## # PHP Copy/Paste Detector -# # Detects code redundancy -# # Documentation: https://github.com/sebastianbergmann/phpcpd ## + copy_paste: @echo "-----------------------" @echo "PHP COPY/PASTE DETECTOR" @@ -61,32 +59,30 @@ copy_paste: ## # PHP Mess Detector -# # Detects PHP syntax errors, sorted by category -# # Rules documentation: http://phpmd.org/rules/index.html -# +## + mess_title: @echo "-----------------" @echo "PHP MESS DETECTOR" @echo "-----------------" -# - all warnings +### - all warnings mess_detector: mess_title @$(BIN)/phpmd $(PHP_SOURCE) text $(MESS_DETECTOR_RULES) | sed 's_.*\/__' -# - all warnings -# the generated HTML contains links to PHPMD's documentation +### - all warnings + HTML output contains links to PHPMD's documentation mess_detector_html: @$(BIN)/phpmd $(PHP_SOURCE) html $(MESS_DETECTOR_RULES) \ --reportfile phpmd.html || exit 0 -# - warnings grouped by message, sorted by descending frequency order +### - warnings grouped by message, sorted by descending frequency order mess_detector_grouped: mess_title @$(BIN)/phpmd $(PHP_SOURCE) text $(MESS_DETECTOR_RULES) \ | cut -f 2 | sort | uniq -c | sort -nr -# - summary: number of warnings by rule set +### - summary: number of warnings by rule set mess_detector_summary: mess_title @for rule in $$(echo $(MESS_DETECTOR_RULES) | tr ',' ' '); do \ warnings=$$($(BIN)/phpmd $(PHP_SOURCE) text $$rule | wc -l); \ @@ -95,12 +91,13 @@ mess_detector_summary: mess_title ## # Targets for repository and documentation maintenance -# -# remove all unversioned files +## + +### remove all unversioned files clean: @git clean -df -# update the local copy of the documentation +### update the local copy of the documentation doc: clean @rm -rf doc @git clone https://github.com/shaarli/Shaarli.wiki.git doc From 10070c3700aba137aab7b341d6116584f22715a3 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:18:04 +0200 Subject: [PATCH 097/658] doc: update documentation (sync from wiki) --- doc/Home.md | 69 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 11 deletions(-) diff --git a/doc/Home.md b/doc/Home.md index c80b8c9..bbece98 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -8,6 +8,52 @@ If you'd like a feature added, see if it fits in the list of [Ideas for Plugins] _Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the `doc/` directory of your Shaarli installation._ +---------------------------------------------------------------------------------- + + + +- [Basic Usage](#basic-usage) + - [Add the sharing button (_bookmarklet_) to your browser](#add-the-sharing-button-_bookmarklet_-to-your-browser) + - [Share links using the _bookmarklet_](#share-links-using-the-_bookmarklet_) +- [Other usage examples](#other-usage-examples) + - [Using Shaarli as a blog, notepad, pastebin...](#using-shaarli-as-a-blog-notepad-pastebin) + - [RSS Feeds or Picture Wall for a specific search/tag](#rss-feeds-or-picture-wall-for-a-specific-searchtag) +- [Configuration](#configuration) + - [Main data/options.php file](#main-dataoptionsphp-file) + - [Changing theme](#changing-theme) + - [Changing template](#changing-template) +- [Backup](#backup) +- [Troubleshooting](#troubleshooting) + - [I forgot my password !](#i-forgot-my-password-) + - [I'm locked out - Login bruteforce protection](#im-locked-out---login-bruteforce-protection) + - [List of all login attempts](#list-of-all-login-attempts) + - [Exporting from Diigo](#exporting-from-diigo) + - [Importing from SemanticScuttle](#importing-from-semanticscuttle) + - [Importing from Mister Wong](#importing-from-mister-wong) + - [Hosting problems](#hosting-problems) + - [Dates are not properly formatted](#dates-are-not-properly-formatted) + - [Problems on CentOS servers](#problems-on-centos-servers) + - [My session expires ! I can't stay logged in](#my-session-expires--i-cant-stay-logged-in) + - [`Sessions do not seem to work correctly on your server`](#sessions-do-not-seem-to-work-correctly-on-your-server) + - [pubsubhubbub support](#pubsubhubbub-support) +- [Notes](#notes) + - [Various hacks](#various-hacks) + - [Changing timestamp for a link](#changing-timestamp-for-a-link) +- [Related software](#related-software) +- [Other links](#other-links) +- [FAQ](#faq) + - [Why did you create Shaarli ?](#why-did-you-create-shaarli-) + - [Why use Shaarli and not Delicious/Diigo ?](#why-use-shaarli-and-not-deliciousdiigo-) + - [What does Shaarli mean ?](#what-does-shaarli-mean-) +- [Technical details](#technical-details) + - [Directory structure](#directory-structure) + - [Why not use a real database ? Files are slow !](#why-not-use-a-real-database--files-are-slow-) +- [Wiki - TODO](#wiki---todo) + + + + + ------------------------------------------------------------------ # Basic Usage @@ -139,17 +185,6 @@ You have two ways of backing up your database: * This can be done using the [shaarchiver](https://github.com/nodiscc/shaarchiver) tool. Example command: `./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all` - -# Login bruteforce protection -Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links. - -To remove the current IP bans, delete the file `data/ipbans.php` - -## List of all login attempts - -The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. -Search for `failed` in this file to look for unauthorized login attempts. - # Troubleshooting ### I forgot my password ! @@ -157,6 +192,18 @@ Search for `failed` in this file to look for unauthorized login attempts. Delete the file data/config.php and display the page again. You will be asked for a new login/password. + +### I'm locked out - Login bruteforce protection +Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links. + +To remove the current IP bans, delete the file `data/ipbans.php` + +### List of all login attempts + +The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. +Search for `failed` in this file to look for unauthorized login attempts. + + ### Exporting from Diigo If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.) From 82af78b272ab0036eec289eb338934736aabbdc2 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:35:01 +0200 Subject: [PATCH 098/658] use pandoc to generate local HTML documentation fixes https://github.com/shaarli/Shaarli/issues/178 run 'make htmldoc' --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 9635e53..e6f4285 100644 --- a/Makefile +++ b/Makefile @@ -102,3 +102,9 @@ doc: clean @rm -rf doc @git clone https://github.com/shaarli/Shaarli.wiki.git doc @rm -rf doc/.git + +### Convert local markdown documentation to HTML +htmldoc: + for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ + pandoc -f markdown_github -t html5 -s -c "github-markdown.css" -o doc/`basename $$file .md`.html "$$file"; \ + done; \ No newline at end of file From 7a32b172b82c2571d39d0b239e06d6be73b174f3 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:37:15 +0200 Subject: [PATCH 099/658] add local HTML documentation generated with 'make htmldoc' --- ...SH-SCP,-serve-it-locally-with-php-cli.html | 75 ++++ ...s-for-shaarlis-listed-in-an-opml-file.html | 167 ++++++++ ...e-patch---add-new-via-field-for-links.html | 201 ++++++++++ doc/Home.html | 368 ++++++++++++++++++ doc/Ideas-for-plugins.html | 26 ++ doc/_Sidebar.html | 70 ++++ 6 files changed, 907 insertions(+) create mode 100644 doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html create mode 100644 doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html create mode 100644 doc/Example-patch---add-new-via-field-for-links.html create mode 100644 doc/Home.html create mode 100644 doc/Ideas-for-plugins.html create mode 100644 doc/_Sidebar.html diff --git a/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html b/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html new file mode 100644 index 0000000..25e4bc6 --- /dev/null +++ b/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html @@ -0,0 +1,75 @@ + + + + + + + + + + + + +

    Example bash script:

    +
    #!/bin/bash
    +#Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
    +#Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
    +#Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
    +#Requires: ssh, scp and a working SSH access to the server where your Shaarli is installed
    +#Usage: ./local-shaarli.sh
    +#Author: nodiscc (nodiscc@gmail.com)
    +#License: MIT (http://opensource.org/licenses/MIT)
    +set -o errexit
    +set -o nounset
    +
    +##### CONFIG #################
    +#The port used by php's local server
    +php_local_port=7431
    +
    +#Name of the SSH server and path where Shaarli is installed
    +#TODO: pass these as command-line arguments
    +remotehost="my.ssh.server"
    +remote_shaarli_dir="/var/www/shaarli"
    +
    +
    +###### FUNCTIONS #############
    +_main() {
    +    _CBSyncShaarli
    +    _CBServeShaarli
    +}
    +
    +_CBSyncShaarli() {
    +    remote_temp_dir=$(ssh $remotehost mktemp -d)
    +    remote_ssh_user=$(ssh $remotehost whoami)
    +    ssh -t "$remotehost" sudo cp -r "$remote_shaarli_dir" "$remote_temp_dir"
    +    ssh -t "$remotehost" sudo chown -R "$remote_ssh_user":"$remote_ssh_user" "$remote_temp_dir"
    +    scp -rq "$remotehost":"$remote_temp_dir" local-shaarli
    +    ssh "$remotehost" rm -r "$remote_temp_dir"
    +}
    +
    +_CBServeShaarli() {
    +    #TODO: allow serving a previously downloaded Shaarli
    +    #TODO: ask before overwriting local copy, if it exists
    +    cd local-shaarli/
    +    php -S localhost:${php_local_port}
    +    echo "Please go to http://localhost:${php_local_port}"
    +}
    +
    +
    +##### MAIN #################
    +
    +_main
    +

    This outputs:

    +
    $ ./local-shaarli.sh
    +PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
    +Listening on http://localhost:7431
    +Document root is /home/user/local-shaarli/shaarli
    +Press Ctrl-C to quit.
    +
    +[Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /
    +[Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html
    +[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...
    + + diff --git a/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html b/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html new file mode 100644 index 0000000..0f32fb8 --- /dev/null +++ b/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html @@ -0,0 +1,167 @@ + + + + + + + + + + + + +

    Download CSS styles for shaarlis listed in an opml file

    +

    Example php script:

    +
    <!---- ?php -->
    +<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
    +<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
    +
    +/**
    + * Source: https://github.com/Riduidel
    + * Download css styles for shaarlis listed in an opml file
    + */
    +define("SHAARLI_RSS_OPML", "https://www.ecirtam.net/shaarlirss/custom/people.opml");
    +
    +define("THEMES_TEMP_FOLDER", "new_themes");
    +
    +if(!file_exists(THEMES_TEMP_FOLDER)) {
    +    mkdir(THEMES_TEMP_FOLDER);
    +}
    +
    +function siteUrl($pathInSite) {
    +    $indexPos = strpos($pathInSite, "index.php");
    +    if(!$indexPos) {
    +        return $pathInSite;
    +    } else {
    +        return substr($pathInSite, 0, $indexPos);
    +    }
    +}
    +
    +function createShaarliHashFromOPMLL($opmlFile) {
    +    $result = array();
    +    $opml = file_get_contents($opmlFile);
    +    $opmlXml = simplexml_load_string($opml);
    +    $outlineElements = $opmlXml->xpath("body/outline");
    +    foreach($outlineElements as $site) {
    +        $siteUrl = siteUrl((string) $site['htmlUrl']);
    +        $result[$siteUrl]=((string) $site['text']);
    +    }
    +    return $result;
    +}
    +
    +function getSiteFolder($url) {
    +    $domain = parse_url($url,  PHP_URL_HOST);
    +    return THEMES_TEMP_FOLDER."/".str_replace(".", "_", $domain);
    +}
    +
    +function get_http_response_code($theURL) {
    +     $headers = get_headers($theURL);
    +     return substr($headers[0], 9, 3);
    +}
    +
    +/**
    + * This makes the code PHP-5 only (particularly the call to "get_headers")
    + */
    +function copyUserStyleFrom($url, $name, $knownStyles) {
    +    $userStyle = $url."inc/user.css";
    +    if(in_array($url, $knownStyles)) {
    +        // TODO add log message
    +    } else {
    +        $statusCode = get_http_response_code($userStyle);
    +        if(intval($statusCode)<300) {
    +            $styleSheet = file_get_contents($userStyle);
    +            $siteFolder = getSiteFolder($url);
    +            if(!file_exists($siteFolder)) {
    +                mkdir($siteFolder);
    +            }
    +            if(!file_exists($siteFolder.'/user.css')) {
    +                // Copy stylesheet
    +                file_put_contents($siteFolder.'/user.css', $styleSheet);
    +            }
    +            if(!file_exists($siteFolder.'/README.md')) {
    +                // Then write a readme.md file
    +                file_put_contents($siteFolder.'/README.md', 
    +                    "User style from ".$name."\n"
    +                    ."============================="
    +                    ."\n\n"
    +                    ."This stylesheet was downloaded from ".$userStyle." on ".date(DATE_RFC822)
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/config.ini')) {
    +                // Write a config file containing useful informations
    +                file_put_contents($siteFolder.'/config.ini', 
    +                    "site_url=".$url."\n"
    +                    ."site_name=".$name."\n"
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/home.png')) {
    +                // And finally copy generated thumbnail
    +                $homeThumb = $siteFolder.'/home.png';
    +                file_put_contents($siteFolder.'/home.png', file_get_contents(getThumbnailUrl($url)));
    +            }
    +            echo 'Theme have been downloaded from  <a href="'.$url.'">'.$url.'</a> into '.$siteFolder
    +                .'. It looks like <img src="'.$homeThumb.'"><br/>';
    +        }
    +    }
    +}
    +
    +function getThumbnailUrl($url) {
    +    return 'http://api.webthumbnail.org/?url='.$url;
    +}
    +
    +function copyUserStylesFrom($urlToNames, $knownStyles) {
    +    foreach($urlToNames as $url => $name) {
    +        copyUserStyleFrom($url, $name, $knownStyles);
    +    }
    +}
    +
    +/**
    + * Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
    + * @param directory the directory we want to list files of
    + * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
    + * are not listed here
    + */
    +function getDirectoryList ($directory)  {
    +    $realPath = realpath($directory);
    +    // create an array to hold directory list
    +    $results = array();
    +    // create a handler for the directory
    +    $handler = opendir($directory);
    +    // open directory and walk through the filenames
    +    while ($file = readdir($handler)) {
    +        // if file isn't this directory or its parent, add it to the results
    +        if ($file != "." && $file != "..") {
    +            $results[] = realpath($realPath . "/" . $file);
    +        }
    +    }
    +    // tidy up: close the handler
    +    closedir($handler);
    +    // done!
    +    return $results;
    +}
    +
    +/**
    + * Start in themes folder and look in all subfolders for config.ini files. 
    + * These config.ini files allow us not to download styles again and again
    + */
    +function findKnownStyles() {
    +    $result = array();
    +    $subFolders = getDirectoryList("themes");
    +    foreach($subFolders as $folder) {
    +        $configFile = $folder."/config.ini";
    +        if(file_exists($configFile)) {
    +            $iniParameters = parse_ini_file($configFile);
    +            array_push($result, $iniParameters['site_url']);
    +        }
    +    }
    +    return $result;
    +}
    +
    +$knownStyles = findKnownStyles();
    +copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
    +
    +<!--- ? ---->
    + + diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html new file mode 100644 index 0000000..7df9d25 --- /dev/null +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -0,0 +1,201 @@ + + + + + + + + + + + + +

    Example patch to add a new field ("via") for links, an input field to set the "via" property from the "edit link" dialog, and display the "via" field in the link list display. Untested, use at your own risk

    +

    Thanks to @Knah-Tsaeb in https://github.com/sebsauvage/Shaarli/pull/158

    +
    From e0f363c18e8fe67990ed2bb1a08652e24e70bbcb Mon Sep 17 00:00:00 2001
    +From: Knah Tsaeb <knah-tsaeb@knah-tsaeb.org>
    +Date: Fri, 11 Oct 2013 15:18:37 +0200
    +Subject: [PATCH] Add a "via"/origin property for links, add new input in "edit link" dialog
    +Thanks to:
    +* https://github.com/Knah-Tsaeb/Shaarli/commit/040eb18ec8cdabd5ea855e108f81f97fbf0478c4
    +* https://github.com/Knah-Tsaeb/Shaarli/commit/4123658eae44d7564d1128ce52ddd5689efee813
    +* https://github.com/Knah-Tsaeb/Shaarli/commit/f1a8ca9cc8fe49b119d51b2d8382cc1a34542f96
    +
    +---
    + index.php         | 43 ++++++++++++++++++++++++++++++++-----------
    + tpl/editlink.html |  1 +
    + tpl/linklist.html |  1 +
    + 3 files changed, 34 insertions(+), 11 deletions(-)
    +
    +diff --git a/index.php b/index.php
    +index 6fae2f8..53f798e 100644
    +--- a/index.php
    ++++ b/index.php
    +@@ -436,6 +436,12 @@ if (isset($_POST['login']))
    + // ------------------------------------------------------------------------------------------
    + // Misc utility functions:
    + 
    ++// Try to get just domain for @via
    ++function getJustDomain($url){
    ++    $parts = parse_url($url);   
    ++    return trim($parts['host']);
    ++    }
    ++
    + // Returns the server URL (including port and http/https), without path.
    + // e.g. "http://myserver.com:8080"
    + // You can append $_SERVER['SCRIPT_NAME'] to get the current script URL.
    +@@ -799,7 +805,8 @@ class linkdb implements Iterator, Countable, ArrayAccess
    +             $found=   (strpos(strtolower($l['title']),$s)!==false)
    +                    || (strpos(strtolower($l['description']),$s)!==false)
    +                    || (strpos(strtolower($l['url']),$s)!==false)
    +-                   || (strpos(strtolower($l['tags']),$s)!==false);
    ++                   || (strpos(strtolower($l['tags']),$s)!==false)
    ++                   || (!empty($l['via']) && (strpos(strtolower($l['via']),$s)!==false));
    +             if ($found) $filtered[$l['linkdate']] = $l;
    +         }
    +         krsort($filtered);
    +@@ -814,7 +821,7 @@ class linkdb implements Iterator, Countable, ArrayAccess
    +         $t = str_replace(',',' ',($casesensitive?$tags:strtolower($tags)));
    +         $searchtags=explode(' ',$t);
    +         $filtered=array();
    +-        foreach($this->links as $l)
    ++        foreach($this-> links as $l)
    +         {
    +             $linktags = explode(' ',($casesensitive?$l['tags']:strtolower($l['tags'])));
    +             if (count(array_intersect($linktags,$searchtags)) == count($searchtags))
    +@@ -905,7 +912,7 @@ function showRSS()
    +     else $linksToDisplay = $LINKSDB;
    +     $nblinksToDisplay = 50;  // Number of links to display.
    +     if (!empty($_GET['nb']))  // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links.
    +-    { 
    ++    {
    +         $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ;
    +     }
    + 
    +@@ -944,7 +951,12 @@ function showRSS()
    +         // If user wants permalinks first, put the final link in description
    +         if ($usepermalinks===true) $descriptionlink = '(<a href="'.$absurl.'">Link</a>)';
    +         if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;
    +-        echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n";
    ++        if(!empty($link['via'])){
    ++          $via = '<br>Origine => <a href="'.htmlspecialchars($link['via']).'">'.htmlspecialchars(getJustDomain($link['via'])).'</a>';
    ++        } else {
    ++         $via = '';
    ++        }
    ++        echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$via.$descriptionlink.']]></description>'."\n</item>\n";
    +         $i++;
    +     }
    +     echo '</channel></rss><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->';
    +@@ -980,7 +992,7 @@ function showATOM()
    +     else $linksToDisplay = $LINKSDB;
    +     $nblinksToDisplay = 50;  // Number of links to display.
    +     if (!empty($_GET['nb']))  // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links.
    +-    { 
    ++    {
    +         $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ;
    +     }
    + 
    +@@ -1006,11 +1018,16 @@ function showATOM()
    + 
    +         // Add permalink in description
    +         $descriptionlink = htmlspecialchars('(<a href="'.$guid.'">Permalink</a>)');
    ++        if(isset($link['via']) && !empty($link['via'])){
    ++          $via = htmlspecialchars('</br> Origine => <a href="'.$link['via'].'">'.getJustDomain($link['via']).'</a>');
    ++        } else {
    ++          $via = '';
    ++        }
    +         // If user wants permalinks first, put the final link in description
    +         if ($usepermalinks===true) $descriptionlink = htmlspecialchars('(<a href="'.$absurl.'">Link</a>)');
    +         if (strlen($link['description'])>0) $descriptionlink = '&lt;br&gt;'.$descriptionlink;
    + 
    +-        $entries.='<content type="html">'.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink."</content>\n";
    ++        $entries.='<content type="html">'.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink.$via."</content>\n";
    +         if ($link['tags']!='') // Adding tags to each ATOM entry (as mentioned in ATOM specification)
    +         {
    +             foreach(explode(' ',$link['tags']) as $tag)
    +@@ -1478,7 +1495,7 @@ function renderPage()
    +         if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?'))
    +             $url = 'http://'.$url;
    +         $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),
    +-                      'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));
    ++                      'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags), 'via'=>trim($_POST['lf_via']));
    +         if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title.
    +         $LINKSDB[$linkdate] = $link;
    +         $LINKSDB->savedb(); // Save to disk.
    +@@ -1556,7 +1573,8 @@ function renderPage()
    +             $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet).
    +             $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that]
    +             $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL
    +-            $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL 
    ++            $via = (empty($_GET['via']) ? '' : $_GET['via'] );
    ++            $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL
    +             if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url;
    +             // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.)
    +             if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http')
    +@@ -1567,7 +1585,7 @@ function renderPage()
    +                     {
    +                         // Look for charset in html header.
    +                        preg_match('#<meta .*charset=.*>#Usi', $data, $meta);
    +- 
    ++
    +                        // If found, extract encoding.
    +                        if (!empty($meta[0]))
    +                        {
    +@@ -1577,7 +1595,7 @@ function renderPage()
    +                            $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8';
    +                        }
    +                        else { $html_charset = 'utf-8'; }
    +- 
    ++
    +                        // Extract title
    +                        $title = html_extract_title($data);
    +                        if (!empty($title))
    +@@ -1592,7 +1610,7 @@ function renderPage()
    +                 $url='?'.smallHash($linkdate);
    +                 $title='Note: ';
    +             }
    +-            $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'private'=>$private);
    ++            $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'via' => $via,'private'=>$private);
    +         }
    + 
    +         $PAGE = new pageBuilder;
    +@@ -1842,6 +1860,9 @@ function buildLinkList($PAGE,$LINKSDB)
    +         $taglist = explode(' ',$link['tags']);
    +         uasort($taglist, 'strcasecmp');
    +         $link['taglist']=$taglist;
    ++        if(!empty($link['via'])){
    ++          $link['via']=htmlspecialchars($link['via']);
    ++        }
    +         $linkDisp[$keys[$i]] = $link;
    +         $i++;
    +     }
    +diff --git a/tpl/editlink.html b/tpl/editlink.html
    +index 4a2c30c..14d4f9c 100644
    +--- a/tpl/editlink.html
    ++++ b/tpl/editlink.html
    +@@ -16,6 +16,7 @@
    +            <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br>
    +            <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br>
    +            <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br>
    ++           <i>Origine</i><br><input type="text" name="lf_via" value="{$link.via|htmlspecialchars}" style="width:100%"><br>
    +            {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}
    +             <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
    +             &nbsp;<label for="lf_private"><i>Private</i></label><br>
    +diff --git a/tpl/linklist.html b/tpl/linklist.html
    +index ddc38cb..0a8475f 100644
    +--- a/tpl/linklist.html
    ++++ b/tpl/linklist.html
    +@@ -43,6 +43,7 @@
    +                 <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
    +                 <br>
    +                 {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
    ++                {if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">Origine => {$value.via|getJustDomain}</a></div>{/if}
    +                 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
    +                     <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
    +                 {else}
    +-- 
    +2.1.1
    + + diff --git a/doc/Home.html b/doc/Home.html new file mode 100644 index 0000000..e4d117f --- /dev/null +++ b/doc/Home.html @@ -0,0 +1,368 @@ + + + + + + + + + + + + +

    Shaarli wiki

    +

    Welcome to the Shaarli wiki! Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli. For general info, read the README.

    +

    If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion or read the current issues. If you've found a bug, please create a new issue.

    +

    If you'd like a feature added, see if it fits in the list of Ideas for Plugins and update the corresponding bug report.

    +

    Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the doc/ directory of your Shaarli installation.

    +
    + + + + + + + + + +
    +

    Basic Usage

    +

    Add the sharing button (bookmarklet) to your browser

    +
      +
    • Open your Shaarli and Login
    • +
    • Click the Tools button in the top bar
    • +
    • Drag the ✚Shaare link button, and drop it to your browser's bookmarks bar.
    • +
    +

    This bookmarklet button in compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar.

    +

    + +
      +
    • When you are visiting a webpage you would like to share with Shaarli, click the bookmarklet you just added.
    • +
    • A window opens.
    • +
    • You can freely edit title, description, tags... to find it later using the text search or tag filtering.
    • +
    • You will be able to edit this link later using the edit button.
    • +
    • You can also check the “Private” box so that the link is saved but only visible to you.
    • +
    • Click Save.Voila! Your link is now shared.
    • +
    +

    Other usage examples

    +

    Shaarli can be used:

    +
      +
    • to share, comment and save interesting links and news
    • +
    • to bookmark useful/frequent personal links (as private links) and share them between computers
    • +
    • as a minimal blog/microblog/writing platform (no character limit)
    • +
    • as a read-it-later list (for example items tagged readlater)
    • +
    • to draft and save articles/ideas
    • +
    • to keep code snippets
    • +
    • to keep notes and documentation
    • +
    • as a shared clipboard between machines
    • +
    • as a todo list
    • +
    • to store playlists (e.g. with the music or video tags)
    • +
    • to keep extracts/comments from webpages that may disappear
    • +
    • to keep track of ongoing discussions (for example items tagged discussion)
    • +
    • to feed RSS aggregators (planets) with specific tags
    • +
    • to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...)
    • +
    +

    Using Shaarli as a blog, notepad, pastebin...

    +
      +
    • Go to your Shaarli setup and log in
    • +
    • Click the Add Link button
    • +
    • To share text only, do not enter any URL in the corresponding input field and click Add Link
    • +
    • Pick a title and enter your article, or note, in the description field; add a few tags; optionally check Private then click Save
    • +
    • Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink.
    • +
    +

    RSS Feeds or Picture Wall for a specific search/tag

    +

    It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag. For example, if you want to subscribe only to links tagged photography:

    +
      +
    • Go to the desired Shaarli instance.
    • +
    • Search for the photography tag in the Filter by tag box. Links tagged photography are displayed.
    • +
    • Click on the RSS Feed button.
    • +
    • You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag.
    • +
    • The same method also works for a full-text search (Search box) and for the Picture Wall (want to only see pictures about nature?)
    • +
    • You can also build the URL manually: https://my.shaarli.domain/?do=rss&searchtags=nature, https://my.shaarli.domain/links/?do=picwall&searchterm=poney
    • +
    +

    +

    Configuration

    +

    Main data/options.php file

    +

    To change the configuration, create the file data/options.php, example:

    +
        <?php
    +    $GLOBALS['config']['LINKS_PER_PAGE'] = 30;
    +    $GLOBALS['config']['HIDE_TIMESTAMPS'] = true;
    +    $GLOBALS['config']['ENABLE_THUMBNAILS'] = false;  
    +    ?>
    +

    Do not edit config options in index.php! Your changes would be lost when you upgrade. The following parameters are available (parameters (default value)):

    +
      +
    • DATADIR ('data') : This is the name of the subdirectory where Shaarli stores is data file. You can change it for better security.
    • +
    • CONFIG_FILE ($GLOBALS['config']['DATADIR'].'/config.php') : Name of file which is used to store login/password.
    • +
    • DATASTORE ($GLOBALS['config']['DATADIR'].'/datastore.php') : Name of file which contains the link database.
    • +
    • LINKS_PER_PAGE (20) : Default number of links per page displayed.
    • +
    • IPBANS_FILENAME ($GLOBALS['config']['DATADIR'].'/ipbans.php') : Name of file which records login attempts and IP bans.
    • +
    • BAN_AFTER (4) : An IP address will be banned after this many failed login attempts.
    • +
    • BAN_DURATION (1800) : Duration of ban (in seconds). (1800 seconds = 30 minutes)
    • +
    • OPEN_SHAARLI (false) : If you set this option to true, anyone will be able to add/modify/delete/import/exports links without having to login.
    • +
    • HIDE_TIMESTAMPS (false) : If you set this option to true, the date/time of each link will not be displayed (including in RSS Feed).
    • +
    • ENABLE_THUMBNAILS (true) : Enable/disable thumbnails.
    • +
    • RAINTPL_TMP (tmp/) : Raintpl cache directory (keep the trailing slash!)
    • +
    • `RAINTPL_TPL (tpl/) : Raintpl template directory (keep the trailing slash!). Edit this option if you want to change the rendering template (page structure) used by Shaarli. See Changing template
    • +
    • CACHEDIR ('cache') : Directory where the thumbnails are stored.
    • +
    • ENABLE_LOCALCACHE (true) : If you have a limited quota on your webspace, you can set this option to false: Shaarli will not generate thumbnails which need to be cached locally (vimeo, flickr, etc.). Thumbnails will still be visible for the services which do not use the local cache (youtube.com, imgur.com, dailymotion.com, imageshack.us)
    • +
    • UPDATECHECK_FILENAME ($GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt') : name of the file used to store available shaarli version.
    • +
    • UPDATECHECK_INTERVAL (86400) : Delay between new Shaarli version check. 86400 seconds = 24 hours. Note that if you do not login for a week, Shaarli will not check for new version for a week.
    • +
    • ENABLE_UPDATECHECK: Determines whether Shaarli check for new releases at https://github.com/shaarli/Shaarli
    • +
    • SHOW_ATOM (false) : Show an ATOM Feed button next to the Subscribe (RSS) button. ATOM feeds are available at the address ?do=atom regardless of this option.
    • +
    • ARCHIVE_ORG (false) : For each link, display a link to an archived version on archive.org
    • +
    • ENABLE_RSS_PERMALINKS (true): choose whether the RSS item title link points directly to the link, or to the entry on Shaarli (permalink). true is the original Shaarli bahevior (point directly to the link)
    • +
    +

    Changing theme

    +
      +
    • Shaarli's apparence can be modified by editing CSS rules in inc/user.css. This file allows to override rules defined in the main inc/shaarli.css (only add changed rules), or define a whole new theme.
    • +
    • Do not edit inc/shaarli.css! Your changes would be overriden when updating Shaarli.
    • +
    • Some themes are available at https://github.com/shaarli/shaarli-themes.
    • +
    +

    See also:

    + +

    Changing template

    +

    | 💥 | This feature is currently being worked on and will be improved in the next releases. Experimental. |
    |---------|---------|

    +
      +
    • Find the template you'd like to install. See the list of available templates (TODO). Find it's git clone URL or download the zip archive for the template.
    • +
    • In your Shaarli tpl/ directory, run git clone https://url/of/my-template/ or unpack the zip archive. There should now be a my-template/ directory under the tpl/ dir, containing directly all the template files.
    • +
    • Edit data/options.php to have Shaarli use this template. Eg.
    • +
    +

    $GLOBALS['config']['RAINTPL_TPL'] = 'tpl/my-template/' ;

    +

    You can find a list of compatible templates in Related Software

    +

    Backup

    +

    You have two ways of backing up your database:

    +
      +
    • Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.
    • +
    • Example command: rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    • +
    • Export your links as HTML (Menu Tools > Export). Restore by using the Import feature.
    • +
    • This can be done using the shaarchiver tool. Example command: ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    • +
    +

    Troubleshooting

    +

    I forgot my password !

    +

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    +

    I'm locked out - Login bruteforce protection

    +

    Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

    +

    To remove the current IP bans, delete the file data/ipbans.php

    +

    List of all login attempts

    +

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
    Search for failed in this file to look for unauthorized login attempts.

    +

    Exporting from Diigo

    +

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

    +

    Importing from SemanticScuttle

    +

    To correctly import the tags from a SemanticScuttle HTML export, edit the HTML file before importing and replace all occurences of tags= (lowercase) to TAGS= (uppercase).

    +

    Importing from Mister Wong

    +

    See this issue for import tweaks.

    +

    Hosting problems

    +
      +
    • On free.fr : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a sessions directory at the root of your webspace. Change the file extension to .php5 or create a .htaccess file in the directory where Shaarli is located containing:
    • +
    +
    php 1
    +SetEnv PHP_VER 5
    +
      +
    • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
    • +
    • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
    • +
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    • +
    +
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    +// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    +//if (strpos($status,'200 OK')) $title=html_extract_title($data);
    +
      +
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • +
    • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
    • +
    +

    Dates are not properly formatted

    +

    Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

    +

    Problems on CentOS servers

    +

    On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

    +

    My session expires ! I can't stay logged in

    +

    This can be caused by several things:

    +
      +
    • Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a session directory on the root of your website.) You may need to create the session directory of set it up.
    • +
    • Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the sessions subdirectory and add ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');. Make sure this directory is not browsable !)
    • +
    • If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses).
    • +
    • Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those.
    • +
    • You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time.
    • +
    • If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions.
    • +
    +

    Sessions do not seem to work correctly on your server

    +

    Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

    +

    pubsubhubbub support

    +

    Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config']['PUBSUBHUB_URL'] in your config.php

    +

    Notes

    +

    Various hacks

    + + +
      +
    • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
    • +
    • Remove type="hidden" from this line
    • +
    • A new date/time field becomes available in the edit/new link dialog. You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
    • +
    +
    $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
    +$out = unserialize(gzinflate(base64_decode($data)));
    +echo "<pre>"; // Pretty printing is love, pretty printing is life
    +print_r($out);
    +echo "</pre>";
    +exit;
    +

    This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation)

    +

    Related software

    +

    Unofficial but relatedd work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork. TODO contact repos owners to see if they'd like to standardize their work for the community fork.

    + +

    Other links

    + +

    FAQ

    +

    Why did you create Shaarli ?

    +

    I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… their Firefox addon sends to Diigo every single URL you visit (Don't believe me ? Use Tamper Data and open any page).

    +

    Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server.

    +

    Why use Shaarli and not Delicious/Diigo ?

    +

    With Shaarli:

    +
      +
    • The data is yours: It's hosted on your server.
    • +
    • Never fear of having your data locked-in.
    • +
    • Never fear to have your data sold to third party.
    • +
    • Your private links are not hosted on a third party server.
    • +
    • You are not tracked by browser addons (like Diigo does)
    • +
    • You can change the look and feel of the pages if you want.
    • +
    • You can change the behaviour of the program.
    • +
    • It's magnitude faster than most bookmarking services.
    • +
    +

    What does Shaarli mean ?

    +

    Shaarli is for shaaring your links.

    +

    Technical details

    +
      +
    • Application is protected against XSRF (Cross-site requests forgery): Forms which act on data (save,delete…) contain a token generated by the server. Any posted form which does not contain a valid token is rejected. Any token can only be used once. Token are attached to the session and cannot be reused in another session.
    • +
    • Sessions automatically expires after 60 minutes. Sessions are protected against highjacking: The sessionID cannot be used from a different IP address.
    • +
    • An .htaccess file protects the data file.
    • +
    • Link database is an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file. Thus even if the server does not support htaccess files, the data file will still not be readable by URL. The database looks like this:

      +
      <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
      +...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
    • +
    • The password is salted, hashed and stored in the data subdirectory, in a php file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks.
    • +
    • Shaarli relies on HTTP_REFERER for some functions (like redirects and clicking on tags). If you have disabled or masqueraded HTTP_REFERER in your browser, some features of Shaarli may not work
    • +
    • magic_quotes is a horrible option of php which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts.
    • +
    • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg.20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.

    • +
    +

    Directory structure

    +

    Here is the directory structure of Shaarli and the purpose of the different files:

    +
        index.php : Main program.
    +    COPYING : Shaarli license.
    +    inc/ : Includes (libraries, CSS…)
    +        shaarli.css : Shaarli stylesheet.
    +        jquery.min.js : jQuery javascript library.
    +        jquery-ui.min.js : jQuery-UI javascript library.
    +        jquery-MIT-LICENSE.txt: jQuery license.
    +        jquery.lazyload.min.js: LazyLoad javascript library.
    +        rain.tpl.class.php : RainTPL templating library.
    +    tpl/ : RainTPL templates for Shaarli. They are used to build the pages.
    +    images/ : Images and icons used in Shaarli.
    +    data/ : Directory where data is stored (bookmark database, configuration, logs, banlist…)
    +        config.php : Shaarli configuration (login, password, timezone, title…)
    +        datastore.php : Your link database (compressed).
    +        ipban.php : IP address ban system data.
    +        lastupdatecheck.txt : Update check timestamp file (used to check every 24 hours if a new version of Shaarli is available).
    +        log.txt : login/IPban log.
    +    cache/ : Directory containing the thumbnails cache. This directory is automatically created. You can erase it anytime you want.
    +    tmp/ : Temporary directory for compiled RainTPL templates. This directory is automatically created. You can erase it anytime you want.
    +

    Why not use a real database ? Files are slow !

    +

    Does browsing this page feel slow ? Try browsing older pages, too.

    +

    It's not slow at all, is it ? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why ?

    +

    The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time.

    +

    Wiki - TODO

    +
      +
    • Translate (new page can be called Home.fr, Home.es ...) and linked from Home
    • +
    • add more screenshots
    • +
    • add developer documentation (storage architecture, classes and functions, security handling, ...)
    • +
    • Contact related projects
    • +
    • Add a Table of Contents to the wiki (can be added to the sidebar)
    • +
    +

    ...

    + + diff --git a/doc/Ideas-for-plugins.html b/doc/Ideas-for-plugins.html new file mode 100644 index 0000000..8ca3572 --- /dev/null +++ b/doc/Ideas-for-plugins.html @@ -0,0 +1,26 @@ + + + + + + + + + + + + +

    Please list here ideas for potential plugins. Do not include lengthy discussion about why/how the plugin should work, but link instead to an issue where this would have been discussed.
    By listing these ideas here, we can keep the issues list a bit more clean, and have a centralized place where people wanting to contribute can find potential enhancement ideas.
    Also have a look at https://github.com/shaarli/Shaarli/issues/14 for other suggestions.

    + + + diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html new file mode 100644 index 0000000..b9e2ed3 --- /dev/null +++ b/doc/_Sidebar.html @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + From a57a12ef3ce95a8a100cd63436f0976721d83601 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:38:57 +0200 Subject: [PATCH 100/658] doc: sync doc/github-markdown.css from wiki --- doc/github-markdown.css | 277 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 doc/github-markdown.css diff --git a/doc/github-markdown.css b/doc/github-markdown.css new file mode 100644 index 0000000..2b853b3 --- /dev/null +++ b/doc/github-markdown.css @@ -0,0 +1,277 @@ +body { + font-family: Helvetica, arial, sans-serif; + font-size: 14px; + line-height: 1.6; + padding-top: 10px; + padding-bottom: 10px; + background-color: white; + padding: 10px 20%; } + +body > *:first-child { + margin-top: 0 !important; } +body > *:last-child { + margin-bottom: 0 !important; } + +a { + color: #4183C4; } +a.absent { + color: #cc0000; } +a.anchor { + display: block; + padding-left: 30px; + margin-left: -30px; + cursor: pointer; + position: absolute; + top: 0; + left: 0; + bottom: 0; } + +h1, h2, h3, h4, h5, h6 { + margin: 20px 0 10px; + padding: 0; + font-weight: bold; + -webkit-font-smoothing: antialiased; + cursor: text; + position: relative; } + +h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor { + background: url("../../images/modules/styleguide/para.png") no-repeat 10px center; + text-decoration: none; } + +h1 tt, h1 code { + font-size: inherit; } + +h2 tt, h2 code { + font-size: inherit; } + +h3 tt, h3 code { + font-size: inherit; } + +h4 tt, h4 code { + font-size: inherit; } + +h5 tt, h5 code { + font-size: inherit; } + +h6 tt, h6 code { + font-size: inherit; } + +h1 { + font-size: 28px; + color: black; } + +h2 { + font-size: 24px; + border-bottom: 1px solid #cccccc; + color: black; } + +h3 { + font-size: 18px; } + +h4 { + font-size: 16px; } + +h5 { + font-size: 14px; } + +h6 { + color: #777777; + font-size: 14px; } + +p, blockquote, ol, dl, table, pre { + margin: 15px 0; } + +hr { + background: transparent url("../../images/modules/pulls/dirty-shade.png") repeat-x 0 0; + border: 0 none; + color: #cccccc; + height: 4px; + padding: 0; } + +body > h2:first-child { + margin-top: 0; + padding-top: 0; } +body > h1:first-child { + margin-top: 0; + padding-top: 0; } + body > h1:first-child + h2 { + margin-top: 0; + padding-top: 0; } +body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child { + margin-top: 0; + padding-top: 0; } + +a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 { + margin-top: 0; + padding-top: 0; } + +h1 p, h2 p, h3 p, h4 p, h5 p, h6 p { + margin-top: 0; } + +li p.first { + display: inline-block; } + +ul, ol { + padding-left: 30px; } + +ul :first-child, ol :first-child { + margin-top: 0; } + +ul :last-child, ol :last-child { + margin-bottom: 0; } + +dl { + padding: 0; } + dl dt { + font-size: 14px; + font-weight: bold; + font-style: italic; + padding: 0; + margin: 15px 0 5px; } + dl dt:first-child { + padding: 0; } + dl dt > :first-child { + margin-top: 0; } + dl dt > :last-child { + margin-bottom: 0; } + dl dd { + margin: 0 0 15px; + padding: 0 15px; } + dl dd > :first-child { + margin-top: 0; } + dl dd > :last-child { + margin-bottom: 0; } + +blockquote { + border-left: 4px solid #dddddd; + padding: 0 15px; + color: #777777; } + blockquote > :first-child { + margin-top: 0; } + blockquote > :last-child { + margin-bottom: 0; } + +table { + padding: 0; } + table tr { + border-top: 1px solid #cccccc; + background-color: white; + margin: 0; + padding: 0; } + table tr:nth-child(2n) { + background-color: #f8f8f8; } + table tr th { + font-weight: bold; + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; } + table tr td { + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; } + table tr th :first-child, table tr td :first-child { + margin-top: 0; } + table tr th :last-child, table tr td :last-child { + margin-bottom: 0; } + +img { + max-width: 100%; } + +span.frame { + display: block; + overflow: hidden; } + span.frame > span { + border: 1px solid #dddddd; + display: block; + float: left; + overflow: hidden; + margin: 13px 0 0; + padding: 7px; + width: auto; } + span.frame span img { + display: block; + float: left; } + span.frame span span { + clear: both; + color: #333333; + display: block; + padding: 5px 0 0; } +span.align-center { + display: block; + overflow: hidden; + clear: both; } + span.align-center > span { + display: block; + overflow: hidden; + margin: 13px auto 0; + text-align: center; } + span.align-center span img { + margin: 0 auto; + text-align: center; } +span.align-right { + display: block; + overflow: hidden; + clear: both; } + span.align-right > span { + display: block; + overflow: hidden; + margin: 13px 0 0; + text-align: right; } + span.align-right span img { + margin: 0; + text-align: right; } +span.float-left { + display: block; + margin-right: 13px; + overflow: hidden; + float: left; } + span.float-left span { + margin: 13px 0 0; } +span.float-right { + display: block; + margin-left: 13px; + overflow: hidden; + float: right; } + span.float-right > span { + display: block; + overflow: hidden; + margin: 13px auto 0; + text-align: right; } + +code, tt { + margin: 0 2px; + padding: 0 5px; + white-space: nowrap; + border: 1px solid #eaeaea; + background-color: #f8f8f8; + border-radius: 3px; } + +pre code { + margin: 0; + padding: 0; + white-space: pre; + border: none; + background: transparent; } + +.highlight pre { + background-color: #f8f8f8; + border: 1px solid #cccccc; + font-size: 13px; + line-height: 19px; + overflow: auto; + padding: 6px 10px; + border-radius: 3px; } + +pre { + background-color: #f8f8f8; + border: 1px solid #cccccc; + font-size: 13px; + line-height: 19px; + overflow: auto; + padding: 6px 10px; + border-radius: 3px; } + pre code, pre tt { + background-color: transparent; + border: none; } From b84c913f7f18d431b07f40049c46acb4138cce8f Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:39:34 +0200 Subject: [PATCH 101/658] doc: point footer link to local html documentation --- tpl/page.footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/page.footer.html b/tpl/page.footer.html index b2a2fcb..42c621b 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -1,5 +1,5 @@ {if="$newversion"}
    Shaarli {$newversion|htmlspecialchars} is available.
    From 6811469e75e35bbf488fe5f7fc5501f483c4a37f Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sun, 5 Apr 2015 22:41:40 +0200 Subject: [PATCH 102/658] doc: remove old mdwiki index.html --- doc/index.html | 212 ------------------------------------------------- 1 file changed, 212 deletions(-) delete mode 100644 doc/index.html diff --git a/doc/index.html b/doc/index.html deleted file mode 100644 index 78e2814..0000000 --- a/doc/index.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - MDwiki - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - From da49603b86966ea9b915174c629b6329a2502473 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 8 Apr 2015 06:53:34 +0200 Subject: [PATCH 103/658] #193 add UTF8 by default to autoLocale --- index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 3192029..174f520 100644 --- a/index.php +++ b/index.php @@ -307,9 +307,10 @@ function autoLocale() { // (It's a bit crude, but it works very well. Preferred language is always presented first.) if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); - $attempts = array($loc, str_replace('_', '-', $loc), - $loc . '_' . strtoupper($loc), $loc . '_' . $loc, - $loc . '-' . strtoupper($loc), $loc . '-' . $loc); + $attempts = array($loc.'.UTF-8', $loc, str_replace('_', '-', $loc).'.UTF-8', str_replace('_', '-', $loc), + $loc . '_' . strtoupper($loc).'.UTF-8', $loc . '_' . strtoupper($loc), + $loc . '_' . $loc.'.UTF-8', $loc . '_' . $loc, $loc . '-' . strtoupper($loc).'.UTF-8', + $loc . '-' . strtoupper($loc), $loc . '-' . $loc.'.UTF-8', $loc . '-' . $loc); } } setlocale(LC_TIME, $attempts); // LC_TIME = Set local for date/time format only. From 8fa1ebd6059050566bd685c23d88ff4f60a20c55 Mon Sep 17 00:00:00 2001 From: feula Date: Thu, 9 Apr 2015 18:13:11 +0200 Subject: [PATCH 104/658] Allow disabling all public links, fixes #188 --- index.php | 7 +++++++ tpl/configure.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/index.php b/index.php index 3192029..0f39cdc 100644 --- a/index.php +++ b/index.php @@ -34,6 +34,7 @@ $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; // Updates check frequency // Note: You must have publisher.php in the same directory as Shaarli index.php $GLOBALS['config']['ARCHIVE_ORG'] = false; // For each link, add a link to an archived version on archive.org $GLOBALS['config']['ENABLE_RSS_PERMALINKS'] = true; // Enable RSS permalinks by default. This corresponds to the default behavior of shaarli before this was added as an option. +$GLOBALS['config']['DISABLE_PUBLIC_LINKS'] = false; // ----------------------------------------------------------------------------------------------- // You should not touch below (or at your own risks!) // Optional config file. @@ -1458,6 +1459,7 @@ function renderPage() $GLOBALS['privateLinkByDefault']=!empty($_POST['privateLinkByDefault']); $GLOBALS['config']['ENABLE_RSS_PERMALINKS']= !empty($_POST['enableRssPermalinks']); $GLOBALS['config']['ENABLE_UPDATECHECK'] = !empty($_POST['updateCheck']); + $GLOBALS['config']['DISABLE_PUBLIC_LINKS'] = !empty($_POST['disablePublicLinks']); writeConfig(); echo ''; exit; @@ -1899,9 +1901,13 @@ function buildLinkList($PAGE,$LINKSDB) } $search_type='permalink'; } + // We chose to disable all private links and the user isn't logged in, do not return any link. + else if ($GLOBALS['config']['DISABLE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); else $linksToDisplay = $LINKSDB; // Otherwise, display without filtering. + // Option: Show only private links if (!empty($_SESSION['privateonly'])) { @@ -2328,6 +2334,7 @@ function writeConfig() $config .= '$GLOBALS[\'privateLinkByDefault\']='.var_export($GLOBALS['privateLinkByDefault'],true).'; '; $config .= '$GLOBALS[\'config\'][\'ENABLE_RSS_PERMALINKS\']='.var_export($GLOBALS['config']['ENABLE_RSS_PERMALINKS'], true).'; '; $config .= '$GLOBALS[\'config\'][\'ENABLE_UPDATECHECK\']='.var_export($GLOBALS['config']['ENABLE_UPDATECHECK'], true).'; '; + $config .= '$GLOBALS[\'config\'][\'DISABLE_PUBLIC_LINKS\']='.var_export($GLOBALS['config']['DISABLE_PUBLIC_LINKS'], true).'; '; $config .= ' ?>'; if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0) { diff --git a/tpl/configure.html b/tpl/configure.html index 373d069..01f846c 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -27,6 +27,13 @@ +
    + + + From caee7ff9ccc302f85bd08714636e0be08fbd7cc4 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 10 Apr 2015 20:52:12 +0200 Subject: [PATCH 105/658] change wording and variable names for "Hide public links" feature --- index.php | 8 ++++---- tpl/configure.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 2014bce..07aeaa5 100644 --- a/index.php +++ b/index.php @@ -34,7 +34,7 @@ $GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; // Updates check frequency // Note: You must have publisher.php in the same directory as Shaarli index.php $GLOBALS['config']['ARCHIVE_ORG'] = false; // For each link, add a link to an archived version on archive.org $GLOBALS['config']['ENABLE_RSS_PERMALINKS'] = true; // Enable RSS permalinks by default. This corresponds to the default behavior of shaarli before this was added as an option. -$GLOBALS['config']['DISABLE_PUBLIC_LINKS'] = false; +$GLOBALS['config']['HIDE_PUBLIC_LINKS'] = false; // ----------------------------------------------------------------------------------------------- // You should not touch below (or at your own risks!) // Optional config file. @@ -1460,7 +1460,7 @@ function renderPage() $GLOBALS['privateLinkByDefault']=!empty($_POST['privateLinkByDefault']); $GLOBALS['config']['ENABLE_RSS_PERMALINKS']= !empty($_POST['enableRssPermalinks']); $GLOBALS['config']['ENABLE_UPDATECHECK'] = !empty($_POST['updateCheck']); - $GLOBALS['config']['DISABLE_PUBLIC_LINKS'] = !empty($_POST['disablePublicLinks']); + $GLOBALS['config']['HIDE_PUBLIC_LINKS'] = !empty($_POST['hidePublicLinks']); writeConfig(); echo ''; exit; @@ -1902,7 +1902,7 @@ function buildLinkList($PAGE,$LINKSDB) $search_type='permalink'; } // We chose to disable all private links and the user isn't logged in, do not return any link. - else if ($GLOBALS['config']['DISABLE_PUBLIC_LINKS'] && !isLoggedIn()) + else if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) $linksToDisplay = array(); else $linksToDisplay = $LINKSDB; // Otherwise, display without filtering. @@ -2334,7 +2334,7 @@ function writeConfig() $config .= '$GLOBALS[\'privateLinkByDefault\']='.var_export($GLOBALS['privateLinkByDefault'],true).'; '; $config .= '$GLOBALS[\'config\'][\'ENABLE_RSS_PERMALINKS\']='.var_export($GLOBALS['config']['ENABLE_RSS_PERMALINKS'], true).'; '; $config .= '$GLOBALS[\'config\'][\'ENABLE_UPDATECHECK\']='.var_export($GLOBALS['config']['ENABLE_UPDATECHECK'], true).'; '; - $config .= '$GLOBALS[\'config\'][\'DISABLE_PUBLIC_LINKS\']='.var_export($GLOBALS['config']['DISABLE_PUBLIC_LINKS'], true).'; '; + $config .= '$GLOBALS[\'config\'][\'HIDE_PUBLIC_LINKS\']='.var_export($GLOBALS['config']['HIDE_PUBLIC_LINKS'], true).'; '; $config .= ' ?>'; if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0) { diff --git a/tpl/configure.html b/tpl/configure.html index 01f846c..e4bd076 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -28,9 +28,9 @@ - + From 569ffb59d4f7c41e5deabd8b2a163a952acb1957 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 20 Apr 2015 14:36:25 +0200 Subject: [PATCH 106/658] doc: add demo to README fixes https://github.com/shaarli/Shaarli/issues/198 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 218475a..aef3f44 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ It is designed to be personal (single-user), fast and handy. * You will be automatically notified by a discreet popup if a new version is available * **Shaarli is a bookmarking application, but you can use it for micro-blogging (like Twitter), a pastebin, an online notepad, a snippet repository, etc. See [Usage examples](https://github.com/shaarli/Shaarli/wiki#usage-examples)** +## Demo +You can use this [public demo instance of Shaarli](http://shaarlidemo.tuxfamily.org/Shaarli). This demo runs the latest _development version_ of Shaarli and is updated/reset every day. + +Login: `demo` +Password: `demo` + ## Links From f5b059254f1bc0311a4a2912502353e77dbad1dc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 8 May 2015 11:38:01 +0100 Subject: [PATCH 107/658] Display date as today if no articles published On "The Daily Shaarli" page (index.php?do=daily), the date is "Tuesday 30, November 1999" if no articles have been published/shared. This patch checks the parameter ($linkdate) before the mktime call to prevent and generate the "day 0" string. mktime(0,0,0,0,0,0) returns 943916400 (hum?) --- index.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 07aeaa5..69a8a19 100644 --- a/index.php +++ b/index.php @@ -555,9 +555,12 @@ function endsWith($haystack,$needle,$case=true) PS: I could have used strptime(), but it does not exist on Windows. I'm too kind. */ function linkdate2timestamp($linkdate) { - $Y=$M=$D=$h=$m=$s=0; - sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); - return mktime($h,$m,$s,$M,$D,$Y); + if(strcmp($linkdate, '_000000') !== 0 || !$linkdate){ + $Y=$M=$D=$h=$m=$s=0; + $r = sscanf($linkdate,'%4d%2d%2d_%2d%2d%2d',$Y,$M,$D,$h,$m,$s); + return mktime($h,$m,$s,$M,$D,$Y); + } + return time(); } /* Converts a linkdate time (YYYYMMDD_HHMMSS) of an article to a RFC822 date. From 59c90f58086f6f1deab8d7a47296392d809652d2 Mon Sep 17 00:00:00 2001 From: feula Date: Mon, 11 May 2015 19:55:59 +0200 Subject: [PATCH 108/658] Properly hide all links >searchtags --- index.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 07aeaa5..3cbea36 100644 --- a/index.php +++ b/index.php @@ -943,8 +943,12 @@ function showRSS() // Optionally filter the results: $linksToDisplay=array(); if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); - elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); + else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $linksToDisplay = $LINKSDB; + + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); + $nblinksToDisplay = 50; // Number of links to display. if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. { @@ -1018,8 +1022,12 @@ function showATOM() // Optionally filter the results: $linksToDisplay=array(); if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); - elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); + else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $linksToDisplay = $LINKSDB; + + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); + $nblinksToDisplay = 50; // Number of links to display. if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. { @@ -1179,6 +1187,8 @@ function showDaily() } $linksToDisplay=$LINKSDB->filterDay($day); + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); // We pre-format some fields for proper output. foreach($linksToDisplay as $key=>$link) { @@ -1257,6 +1267,10 @@ function renderPage() if (!empty($_GET['searchterm'])) $links = $LINKSDB->filterFulltext($_GET['searchterm']); elseif (!empty($_GET['searchtags'])) $links = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $links = $LINKSDB; + + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $links = array(); + $body=''; $linksToDisplay=array(); @@ -1271,6 +1285,7 @@ function renderPage() $linksToDisplay[]=$link; // Add to array. } } + $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('linksToDisplay',$linksToDisplay); @@ -1282,6 +1297,8 @@ function renderPage() if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=tagcloud')) { $tags= $LINKSDB->allTags(); + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $tags = array(); // We sort tags alphabetically, then choose a font size according to count. // First, find max value. $maxcount=0; foreach($tags as $key=>$value) $maxcount=max($maxcount,$value); @@ -1880,12 +1897,16 @@ function buildLinkList($PAGE,$LINKSDB) if (isset($_GET['searchterm'])) // Fulltext search { $linksToDisplay = $LINKSDB->filterFulltext(trim($_GET['searchterm'])); + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); $search_crits=htmlspecialchars(trim($_GET['searchterm'])); $search_type='fulltext'; } elseif (isset($_GET['searchtags'])) // Search by tag { $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) + $linksToDisplay = array(); $search_crits=explode(' ',trim($_GET['searchtags'])); $search_type='tags'; } From d33c5d4c3b9c70441391a08e8bcb2a8c639a4635 Mon Sep 17 00:00:00 2001 From: Marsup Date: Mon, 11 May 2015 16:42:54 +0000 Subject: [PATCH 109/658] Add Firefox Social API to the tools. Fixes #101. --- index.php | 15 ++++++++------- tpl/editlink.html | 4 ++++ tpl/tools.html | 27 +++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 07aeaa5..fad0340 100644 --- a/index.php +++ b/index.php @@ -309,8 +309,8 @@ function autoLocale() if (preg_match('/([a-z]{2})-?([a-z]{2})?/i',$_SERVER['HTTP_ACCEPT_LANGUAGE'],$matches)) { $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); $attempts = array($loc.'.UTF-8', $loc, str_replace('_', '-', $loc).'.UTF-8', str_replace('_', '-', $loc), - $loc . '_' . strtoupper($loc).'.UTF-8', $loc . '_' . strtoupper($loc), - $loc . '_' . $loc.'.UTF-8', $loc . '_' . $loc, $loc . '-' . strtoupper($loc).'.UTF-8', + $loc . '_' . strtoupper($loc).'.UTF-8', $loc . '_' . strtoupper($loc), + $loc . '_' . $loc.'.UTF-8', $loc . '_' . $loc, $loc . '-' . strtoupper($loc).'.UTF-8', $loc . '-' . strtoupper($loc), $loc . '-' . $loc.'.UTF-8', $loc . '-' . $loc); } } @@ -1555,7 +1555,7 @@ function renderPage() pubsubhub(); // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($linkdate); // Scroll to the link which has been edited. if (strstr($returnurl, "do=addlink")) { $returnurl = '?'; } //if we come from ?do=addlink, set returnurl to homepage instead @@ -1567,7 +1567,7 @@ function renderPage() if (isset($_POST['cancel_edit'])) { // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' ); $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. header('Location: '.$returnurl); // After canceling, redirect to the page the user was on. @@ -1586,7 +1586,7 @@ function renderPage() $LINKSDB->savedb(); // save to disk // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; exit; } + if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } // Pick where we're going to redirect // ============================================================= // Basically, we can't redirect to where we were previously if it was a permalink @@ -1594,7 +1594,7 @@ function renderPage() // Cases: // - / : nothing in $_GET, redirect to self // - /?page : redirect to self - // - /?searchterm : redirect to self (there might be other links) + // - /?searchterm : redirect to self (there might be other links) // - /?searchtags : redirect to self // - /permalink : redirect to / (the link does not exist anymore) // - /?edit_link : redirect to / (the link does not exist anymore) @@ -1704,6 +1704,7 @@ function renderPage() $PAGE->assign('link_is_new',$link_is_new); $PAGE->assign('token',getToken()); // XSRF protection. $PAGE->assign('http_referer',(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')); + $PAGE->assign('source',(isset($_GET['source']) ? $_GET['source'] : '')); $PAGE->assign('tags', $LINKSDB->allTags()); $PAGE->renderPage('editlink'); exit; @@ -1954,7 +1955,7 @@ function buildLinkList($PAGE,$LINKSDB) strlen($link["url"]) === 7) { $link["url"] = indexUrl() . $link["url"]; } - + $linkDisp[$keys[$i]] = $link; $i++; } diff --git a/tpl/editlink.html b/tpl/editlink.html index b737b99..0276f08 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -9,7 +9,9 @@ {elseif="$link.description==''"}onload="document.linkform.lf_description.focus();" {else}onload="document.linkform.lf_tags.focus();"{/if} > +{if="$source !== 'firefoxsocialapi'"} {include="page.footer"} +{/if} {if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn())"} {include="page.footer"} From cbecab773526b0c39f3cffa1d4595b5caa781bda Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 3 Jun 2015 15:54:30 +0200 Subject: [PATCH 110/658] split annoyingpatterns list on multpile lines, add new patterns for removal: * utm_content= * fb= * xtor= closes https://github.com/shaarli/Shaarli/issues/136 --- index.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index a547fbe..9561f63 100644 --- a/index.php +++ b/index.php @@ -1664,7 +1664,20 @@ function renderPage() // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... - $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/', '/[\?&]action_ref_map=[^&]*/', '/[\?&]action_type_map=[^&]*/', '/[\?&]action_object_map=[^&]*/'); + $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', + '/[\?&]utm_campaign=[^&]*/', + '/[\?&]utm_medium=[^&]*/', + '/#xtor=RSS-[^&]*/', + '/[\?&]fb_[^&]*/', + '/[\?&]__scoop[^&]*/', + '/#tk\.rss_all\?/', + '/[\?&]action_ref_map=[^&]*/', + '/[\?&]action_type_map=[^&]*/', + '/[\?&]action_object_map=[^&]*/', + '/[\?&]utm_content=[^&]*/', + '/[\?&]fb=[^&]*/', + '/[\?&]xtor=[^&]*/' + ); foreach($annoyingpatterns as $pattern) { $url = preg_replace($pattern, "", $url); From 13d07f969914fa06d8648ef606962121d32c4be3 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 5 Jun 2015 00:46:05 +0200 Subject: [PATCH 111/658] Add Travis CI config Relates to #71 Signed-off-by: VirtualTam --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bcaf682 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: php +php: + - 5.6 + - 5.5 + - 5.4 +install: + - composer self-update + - composer install +script: + - make test From 65d62517443b67fc4a180c43b50fe62f11b9e3b6 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 9 Jun 2015 14:23:28 +0200 Subject: [PATCH 112/658] Add awesomplete to tag search shaarli/Shaarli#49 --- inc/shaarli.css | 11 ++++++++++- index.php | 1 + tpl/linklist.html | 14 ++++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index c4348c7..f541352 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -221,8 +221,17 @@ h1 { margin-left:24px; } +.tagfilter div.awesomplete { + width: inherit; +} + .tagfilter #tagfilter_value { - width: 10%; + width: 100%; + display: inline; +} + +.tagfilter li { + color: black; } .tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton { diff --git a/index.php b/index.php index 9561f63..021d93f 100644 --- a/index.php +++ b/index.php @@ -2018,6 +2018,7 @@ function buildLinkList($PAGE,$LINKSDB) $PAGE->assign('redirector',empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']); // Optional redirector URL. $PAGE->assign('token',$token); $PAGE->assign('links',$linkDisp); + $PAGE->assign('tags', $LINKSDB->allTags()); return; } diff --git a/tpl/linklist.html b/tpl/linklist.html index 766a80c..47e67e7 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -1,12 +1,21 @@ -{include="includes"} + + + {include="includes"} + @@ -129,5 +138,6 @@ function showQrCode(caller,loading) return false; } + From a037ac6963f111d0c9d5e4faa55f805edd93d91b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 9 Jun 2015 14:58:54 +0200 Subject: [PATCH 113/658] Do not load links if they're hidden (also fix shaarli/Shaarli#202) --- index.php | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/index.php b/index.php index 9561f63..1d63efc 100644 --- a/index.php +++ b/index.php @@ -794,6 +794,12 @@ class linkdb implements Iterator, Countable, ArrayAccess // Read database from disk to memory private function readdb() { + // Public links are hidden and user not logged in => nothing to show + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) { + $this->links = array(); + return; + } + // Read data $this->links=(file_exists($GLOBALS['config']['DATASTORE']) ? unserialize(gzinflate(base64_decode(substr(file_get_contents($GLOBALS['config']['DATASTORE']),strlen(PHPPREFIX),-strlen(PHPSUFFIX))))) : array() ); // Note that gzinflate is faster than gzuncompress. See: http://www.php.net/manual/en/function.gzdeflate.php#96439 @@ -948,9 +954,6 @@ function showRSS() if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $linksToDisplay = $LINKSDB; - - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); $nblinksToDisplay = 50; // Number of links to display. if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. @@ -1027,9 +1030,6 @@ function showATOM() if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $linksToDisplay = $LINKSDB; - - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); $nblinksToDisplay = 50; // Number of links to display. if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. @@ -1190,8 +1190,7 @@ function showDaily() } $linksToDisplay=$LINKSDB->filterDay($day); - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); + // We pre-format some fields for proper output. foreach($linksToDisplay as $key=>$link) { @@ -1270,9 +1269,6 @@ function renderPage() if (!empty($_GET['searchterm'])) $links = $LINKSDB->filterFulltext($_GET['searchterm']); elseif (!empty($_GET['searchtags'])) $links = $LINKSDB->filterTags(trim($_GET['searchtags'])); else $links = $LINKSDB; - - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $links = array(); $body=''; $linksToDisplay=array(); @@ -1300,8 +1296,7 @@ function renderPage() if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=tagcloud')) { $tags= $LINKSDB->allTags(); - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $tags = array(); + // We sort tags alphabetically, then choose a font size according to count. // First, find max value. $maxcount=0; foreach($tags as $key=>$value) $maxcount=max($maxcount,$value); @@ -1914,16 +1909,12 @@ function buildLinkList($PAGE,$LINKSDB) if (isset($_GET['searchterm'])) // Fulltext search { $linksToDisplay = $LINKSDB->filterFulltext(trim($_GET['searchterm'])); - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); $search_crits=htmlspecialchars(trim($_GET['searchterm'])); $search_type='fulltext'; } elseif (isset($_GET['searchtags'])) // Search by tag { $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); - if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); $search_crits=explode(' ',trim($_GET['searchtags'])); $search_type='tags'; } @@ -1939,9 +1930,6 @@ function buildLinkList($PAGE,$LINKSDB) } $search_type='permalink'; } - // We chose to disable all private links and the user isn't logged in, do not return any link. - else if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) - $linksToDisplay = array(); else $linksToDisplay = $LINKSDB; // Otherwise, display without filtering. From 3821b1ee88b2c99e59acda9b10437c76c76b19bf Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 10 Jun 2015 00:26:00 +0200 Subject: [PATCH 114/658] Create CONTIBUTING.md Contributing guidelines, fixes https://github.com/shaarli/Shaarli/issues/154 --- CONTRIBUTING.md | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..b819e0b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,80 @@ +## Contributing to Shaarli (community repository) + +### Bugs and feature requests +**Reporting bugs, feature requests: issues management** + +You can look through existing bugs/requests and help reporting them [here](https://github.com/shaarli/Shaarli/issues). + +Constructive input/experience reports/helping other users is welcome. + +The general guideline of the fork is to keep Shaarli simple (project and code maintenance, and features-wise), while providing customization capabilities (plugin system, making more settings configurable). + +Check the [milestones](https://github.com/shaarli/Shaarli/milestones) to see what issues have priority. + + * The issues list should preferably contain **only tasks that can be actioned immediately**. Anyone should be able to open the issues list, pick one and start working on it immediately. + * If you have a clear idea of a **feature you expect, or have a specific bug/defect to report**, [search the issues list, both open and closed](https://github.com/shaarli/Shaarli/issues?q=is%3Aissue) to check if it has been discussed, and comment on the appropriate issue. If you can't find one, please open a [new issue](https://github.com/shaarli/Shaarli/issues/new) + * **General discussions** fit in #44 so that we don't follow a slope where users and contributors have to track 90 "maybe" items in the bug tracker. Separate issues about clear, separate steps can be opened after discussion. + * You can also join instant discussion at https://gitter.im/shaarli/Shaarli, or via IRC as described [here](https://github.com/shaarli/Shaarli/issues/44#issuecomment-77745105) + +### Documentation +**the [wiki](https://github.com/shaarli/Shaarli/wiki) is world-writable** - anyone can edit or add chapters and pages. + + * Large changes should preferably be discussed in [General discussion](https://github.com/shaarli/Shaarli/issues/44) beforehand (you can post a draft there and edit it). + * If you create a new page, please link it from the new page (eg from the [Other links](https://github.com/shaarli/Shaarli/wiki#other-links) section. + * The wiki is a general documentation about Shaarli: usage, development, hacks, usage tricks, related links, projects. Try to keep it organized. + * The wiki will be synced to Shaarli's `doc/` directory on each release. Keep that in mind when reviewing the quality of your edits. + +You can make the project known by publishing blog posts/articles/videos about it and adding them to the links section in the wiki. + +### Translations +Currently Shaarli has no translation/internationalization/localization system available and is single-language. You can help by proposing an i18n system (issue https://github.com/shaarli/Shaarli/issues/121) + +### Beta testing +You can help testing Shaarli releases by immediately upgrading your installation after a [new version has been releases](https://github.com/shaarli/Shaarli/releases). + +All current development happens in [Pull Requests](https://github.com/shaarli/Shaarli/pulls). You can test proposed patches by cloning the Shaarli repo, adding the Pull Request branch and `git checkout` to it. You can also merge multiple Pull Requests to a testing branch. + +```bash +git clone https://github.com/shaarli/Shaarli +git remote add pull-request-25 owner/cool-new-feature +git remote add pull-request-26 anotherowner/bugfix +git remote update +git checkout -b testing +git merge cool-new-feature +git merge bugfix +``` + +Please report any problem you might find. + + +### Contributing code + +#### Adding your own changes + + * Pick or open an issue + * Fork the Shaarli repository on github + * `git clone` your fork + * starting from branch ` master`, switch to a new branch (eg. `git checkout -b my-awesome-feature`) + * edit the required files (from the Github web interface or your text editor) + * add and commit your changes with a meaningful commit message (eg `Cool new feature, fixes issue #1001`) + * Open your fork in the Github web interface and click the "Compare and Pull Request" button, enter required info and submit your Pull Request. + +All changes you will do on the `my-awesome-feature` in the future will be added to your Pull Request. Don't work directly on the master branch, don't do unrelated work on your `my-awesome-feature` branch. + +#### Contributing to an existing Pull Request + +TODO + +#### Useful links +If you are not familiar with Git or Github, here are a few links to set you on track: + + * https://try.github.io/ - 10 minutes Github workflow interactive tutorial + * http://ndpsoftware.com/git-cheatsheet.html - A Git cheatsheet + * http://www.wei-wang.com/ExplainGitWithD3 - Helps you understand some basic Git concepts visually + * https://www.atlassian.com/git/tutorial - Git tutorials + * https://www.atlassian.com/git/workflows - Git workflows + * http://git-scm.com/book - The official Git book, multiple languages + * http://www.vogella.com/tutorials/Git/article.html - Git tutorials + * http://think-like-a-git.net/resources.html - Guide to Git + * http://gitready.com/ - medium to advanced Git docs/tips/blog/articles + * https://github.com/btford/participating-in-open-source - Participating in Open Source From ca74886f30da323f42aa4bd70461003f46ef299b Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 12 Mar 2015 00:43:02 +0100 Subject: [PATCH 115/658] LinkDB: move to a proper file, add test coverage Relates to #71 LinkDB - move to application/LinkDB.php - code cleanup - indentation - whitespaces - formatting - comment cleanup - add missing documentation - unify formatting Test coverage for LinkDB - constructor - public / private access - link-related methods Shaarli utilities (LinkDB dependencies) - move startsWith() and endsWith() functions to application/Utils.php - add test coverage Dev utilities - Composer: add PHPUnit to dev dependencies - Makefile: - update lint targets - add test targets - generate coverage reports Signed-off-by: VirtualTam --- .gitignore | 4 +- Makefile | 33 ++- application/.htaccess | 2 + application/LinkDB.php | 412 ++++++++++++++++++++++++++ application/Utils.php | 45 +++ composer.json | 1 + index.php | 259 +--------------- phpunit.xml | 15 + tests/.htaccess | 2 + tests/LinkDBTest.php | 509 ++++++++++++++++++++++++++++++++ tests/UtilsTest.php | 78 +++++ tests/utils/ReferenceLinkDB.php | 128 ++++++++ 12 files changed, 1231 insertions(+), 257 deletions(-) create mode 100644 application/.htaccess create mode 100644 application/LinkDB.php create mode 100644 application/Utils.php create mode 100644 phpunit.xml create mode 100644 tests/.htaccess create mode 100644 tests/LinkDBTest.php create mode 100644 tests/UtilsTest.php create mode 100644 tests/utils/ReferenceLinkDB.php diff --git a/.gitignore b/.gitignore index 33d8a48..6fd0ccd 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,7 @@ pagecache composer.lock /vendor/ -# Ignore test output +# Ignore test data & output +coverage +tests/datastore.php phpmd.html diff --git a/Makefile b/Makefile index e6f4285..80efcfa 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,15 @@ # - install/update test dependencies: # $ composer install # 1st setup # $ composer update +# - install Xdebug for PHPUnit code coverage reports: +# - see http://xdebug.org/docs/install +# - enable in php.ini BIN = vendor/bin -PHP_SOURCE = index.php -MESS_DETECTOR_RULES = cleancode,codesize,controversial,design,naming,unusedcode +PHP_SOURCE = index.php application tests +PHP_COMMA_SOURCE = index.php,application,tests -all: static_analysis_summary +all: static_analysis_summary test ## # Concise status of the project @@ -21,6 +24,7 @@ all: static_analysis_summary ## static_analysis_summary: code_sniffer_source copy_paste mess_detector_summary + @echo ## # PHP_CodeSniffer @@ -62,6 +66,7 @@ copy_paste: # Detects PHP syntax errors, sorted by category # Rules documentation: http://phpmd.org/rules/index.html ## +MESS_DETECTOR_RULES = cleancode,codesize,controversial,design,naming,unusedcode mess_title: @echo "-----------------" @@ -70,11 +75,11 @@ mess_title: ### - all warnings mess_detector: mess_title - @$(BIN)/phpmd $(PHP_SOURCE) text $(MESS_DETECTOR_RULES) | sed 's_.*\/__' + @$(BIN)/phpmd $(PHP_COMMA_SOURCE) text $(MESS_DETECTOR_RULES) | sed 's_.*\/__' ### - all warnings + HTML output contains links to PHPMD's documentation mess_detector_html: - @$(BIN)/phpmd $(PHP_SOURCE) html $(MESS_DETECTOR_RULES) \ + @$(BIN)/phpmd $(PHP_COMMA_SOURCE) html $(MESS_DETECTOR_RULES) \ --reportfile phpmd.html || exit 0 ### - warnings grouped by message, sorted by descending frequency order @@ -85,10 +90,24 @@ mess_detector_grouped: mess_title ### - summary: number of warnings by rule set mess_detector_summary: mess_title @for rule in $$(echo $(MESS_DETECTOR_RULES) | tr ',' ' '); do \ - warnings=$$($(BIN)/phpmd $(PHP_SOURCE) text $$rule | wc -l); \ + warnings=$$($(BIN)/phpmd $(PHP_COMMA_SOURCE) text $$rule | wc -l); \ printf "$$warnings\t$$rule\n"; \ done; +## +# PHPUnit +# Runs unitary and functional tests +# Generates an HTML coverage report if Xdebug is enabled +# +# See phpunit.xml for configuration +# https://phpunit.de/manual/current/en/appendixes.configuration.html +## +test: clean + @echo "-------" + @echo "PHPUNIT" + @echo "-------" + @$(BIN)/phpunit tests + ## # Targets for repository and documentation maintenance ## @@ -107,4 +126,4 @@ doc: clean htmldoc: for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ pandoc -f markdown_github -t html5 -s -c "github-markdown.css" -o doc/`basename $$file .md`.html "$$file"; \ - done; \ No newline at end of file + done; diff --git a/application/.htaccess b/application/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/application/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/application/LinkDB.php b/application/LinkDB.php new file mode 100644 index 0000000..388002f --- /dev/null +++ b/application/LinkDB.php @@ -0,0 +1,412 @@ +linkdate) + private $urls; + + // List of linkdate keys (for the Iterator interface implementation) + private $keys; + + // Position in the $this->keys array (for the Iterator interface) + private $position; + + // Is the user logged in? (used to filter private links) + private $loggedIn; + + /** + * Creates a new LinkDB + * + * Checks if the datastore exists; else, attempts to create a dummy one. + * + * @param $isLoggedIn is the user logged in? + */ + function __construct($isLoggedIn) + { + // FIXME: do not access $GLOBALS, pass the datastore instead + $this->loggedIn = $isLoggedIn; + $this->checkDB(); + $this->readdb(); + } + + /** + * Countable - Counts elements of an object + */ + public function count() + { + return count($this->links); + } + + /** + * ArrayAccess - Assigns a value to the specified offset + */ + public function offsetSet($offset, $value) + { + // TODO: use exceptions instead of "die" + if (!$this->loggedIn) { + die('You are not authorized to add a link.'); + } + if (empty($value['linkdate']) || empty($value['url'])) { + die('Internal Error: A link should always have a linkdate and URL.'); + } + if (empty($offset)) { + die('You must specify a key.'); + } + $this->links[$offset] = $value; + $this->urls[$value['url']]=$offset; + } + + /** + * ArrayAccess - Whether or not an offset exists + */ + public function offsetExists($offset) + { + return array_key_exists($offset, $this->links); + } + + /** + * ArrayAccess - Unsets an offset + */ + public function offsetUnset($offset) + { + if (!$this->loggedIn) { + // TODO: raise an exception + die('You are not authorized to delete a link.'); + } + $url = $this->links[$offset]['url']; + unset($this->urls[$url]); + unset($this->links[$offset]); + } + + /** + * ArrayAccess - Returns the value at specified offset + */ + public function offsetGet($offset) + { + return isset($this->links[$offset]) ? $this->links[$offset] : null; + } + + /** + * Iterator - Returns the current element + */ + function current() + { + return $this->links[$this->keys[$this->position]]; + } + + /** + * Iterator - Returns the key of the current element + */ + function key() + { + return $this->keys[$this->position]; + } + + /** + * Iterator - Moves forward to next element + */ + function next() + { + ++$this->position; + } + + /** + * Iterator - Rewinds the Iterator to the first element + * + * Entries are sorted by date (latest first) + */ + function rewind() + { + $this->keys = array_keys($this->links); + rsort($this->keys); + $this->position = 0; + } + + /** + * Iterator - Checks if current position is valid + */ + function valid() + { + return isset($this->keys[$this->position]); + } + + /** + * Checks if the DB directory and file exist + * + * If no DB file is found, creates a dummy DB. + */ + private function checkDB() + { + if (file_exists($GLOBALS['config']['DATASTORE'])) { + return; + } + + // Create a dummy database for example + $this->links = array(); + $link = array( + 'title'=>'Shaarli - sebsauvage.net', + 'url'=>'http://sebsauvage.net/wiki/doku.php?id=php:shaarli', + 'description'=>'Welcome to Shaarli! This is a bookmark. To edit or delete me, you must first login.', + 'private'=>0, + 'linkdate'=>'20110914_190000', + 'tags'=>'opensource software' + ); + $this->links[$link['linkdate']] = $link; + + $link = array( + 'title'=>'My secret stuff... - Pastebin.com', + 'url'=>'http://sebsauvage.net/paste/?8434b27936c09649#bR7XsXhoTiLcqCpQbmOpBi3rq2zzQUC5hBI7ZT1O3x8=', + 'description'=>'SShhhh!! I\'m a private link only YOU can see. You can delete me too.', + 'private'=>1, + 'linkdate'=>'20110914_074522', + 'tags'=>'secretstuff' + ); + $this->links[$link['linkdate']] = $link; + + // Write database to disk + // TODO: raise an exception if the file is not write-able + file_put_contents( + // FIXME: do not use $GLOBALS + $GLOBALS['config']['DATASTORE'], + PHPPREFIX.base64_encode(gzdeflate(serialize($this->links))).PHPSUFFIX + ); + } + + /** + * Reads database from disk to memory + */ + private function readdb() + { + // Read data + // Note that gzinflate is faster than gzuncompress. + // See: http://www.php.net/manual/en/function.gzdeflate.php#96439 + // FIXME: do not use $GLOBALS + $this->links = array(); + + if (file_exists($GLOBALS['config']['DATASTORE'])) { + $this->links = unserialize(gzinflate(base64_decode( + substr(file_get_contents($GLOBALS['config']['DATASTORE']), + strlen(PHPPREFIX), -strlen(PHPSUFFIX))))); + } + + // If user is not logged in, filter private links. + if (!$this->loggedIn) { + $toremove = array(); + foreach ($this->links as $link) { + if ($link['private'] != 0) { + $toremove[] = $link['linkdate']; + } + } + foreach ($toremove as $linkdate) { + unset($this->links[$linkdate]); + } + } + + // Keep the list of the mapping URLs-->linkdate up-to-date. + $this->urls = array(); + foreach ($this->links as $link) { + $this->urls[$link['url']] = $link['linkdate']; + } + } + + /** + * Saves the database from memory to disk + */ + public function savedb() + { + if (!$this->loggedIn) { + // TODO: raise an Exception instead + die('You are not authorized to change the database.'); + } + file_put_contents( + $GLOBALS['config']['DATASTORE'], + PHPPREFIX.base64_encode(gzdeflate(serialize($this->links))).PHPSUFFIX + ); + invalidateCaches(); + } + + /** + * Returns the link for a given URL, or False if it does not exist. + */ + public function getLinkFromUrl($url) + { + if (isset($this->urls[$url])) { + return $this->links[$this->urls[$url]]; + } + return false; + } + + /** + * Returns the list of links corresponding to a full-text search + * + * Searches: + * - in the URLs, title and description; + * - are case-insensitive. + * + * Example: + * print_r($mydb->filterFulltext('hollandais')); + * + * mb_convert_case($val, MB_CASE_LOWER, 'UTF-8') + * - allows to perform searches on Unicode text + * - see https://github.com/shaarli/Shaarli/issues/75 for examples + */ + public function filterFulltext($searchterms) + { + // FIXME: explode(' ',$searchterms) and perform a AND search. + // FIXME: accept double-quotes to search for a string "as is"? + $filtered = array(); + $search = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8'); + $keys = ['title', 'description', 'url', 'tags']; + + foreach ($this->links as $link) { + $found = false; + + foreach ($keys as $key) { + if (strpos(mb_convert_case($link[$key], MB_CASE_LOWER, 'UTF-8'), + $search) !== false) { + $found = true; + } + } + + if ($found) { + $filtered[$link['linkdate']] = $link; + } + } + krsort($filtered); + return $filtered; + } + + /** + * Returns the list of links associated with a given list of tags + * + * You can specify one or more tags, separated by space or a comma, e.g. + * print_r($mydb->filterTags('linux programming')); + */ + public function filterTags($tags, $casesensitive=false) + { + // Same as above, we use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) + // FIXME: is $casesensitive ever true? + $t = str_replace( + ',', ' ', + ($casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8')) + ); + + $searchtags = explode(' ', $t); + $filtered = array(); + + foreach ($this->links as $l) { + $linktags = explode( + ' ', + ($casesensitive ? $l['tags']:mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8')) + ); + + if (count(array_intersect($linktags, $searchtags)) == count($searchtags)) { + $filtered[$l['linkdate']] = $l; + } + } + krsort($filtered); + return $filtered; + } + + + /** + * Returns the list of articles for a given day, chronologically sorted + * + * Day must be in the form 'YYYYMMDD' (e.g. '20120125'), e.g. + * print_r($mydb->filterDay('20120125')); + */ + public function filterDay($day) + { + // TODO: check input format + $filtered = array(); + foreach ($this->links as $l) { + if (startsWith($l['linkdate'], $day)) { + $filtered[$l['linkdate']] = $l; + } + } + ksort($filtered); + return $filtered; + } + + /** + * Returns the article corresponding to a smallHash + */ + public function filterSmallHash($smallHash) + { + $filtered = array(); + foreach ($this->links as $l) { + if ($smallHash == smallHash($l['linkdate'])) { + // Yes, this is ugly and slow + $filtered[$l['linkdate']] = $l; + return $filtered; + } + } + return $filtered; + } + + /** + * Returns the list of all tags + * Output: associative array key=tags, value=0 + */ + public function allTags() + { + $tags = array(); + foreach ($this->links as $link) { + foreach (explode(' ', $link['tags']) as $tag) { + if (!empty($tag)) { + $tags[$tag] = (empty($tags[$tag]) ? 1 : $tags[$tag] + 1); + } + } + } + // Sort tags by usage (most used tag first) + arsort($tags); + return $tags; + } + + /** + * Returns the list of days containing articles (oldest first) + * Output: An array containing days (in format YYYYMMDD). + */ + public function days() + { + $linkDays = array(); + foreach (array_keys($this->links) as $day) { + $linkDays[substr($day, 0, 8)] = 0; + } + $linkDays = array_keys($linkDays); + sort($linkDays); + return $linkDays; + } +} +?> diff --git a/application/Utils.php b/application/Utils.php new file mode 100644 index 0000000..737f150 --- /dev/null +++ b/application/Utils.php @@ -0,0 +1,45 @@ + yZH23w + */ +function smallHash($text) +{ + $t = rtrim(base64_encode(hash('crc32', $text, true)), '='); + return strtr($t, '+/', '-_'); +} + +/** + * Tells if a string start with a substring + */ +function startsWith($haystack, $needle, $case=true) +{ + if ($case) { + return (strcmp(substr($haystack, 0, strlen($needle)), $needle) === 0); + } + return (strcasecmp(substr($haystack, 0, strlen($needle)), $needle) === 0); +} + +/** + * Tells if a string ends with a substring + */ +function endsWith($haystack, $needle, $case=true) +{ + if ($case) { + return (strcmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0); + } + return (strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0); +} +?> diff --git a/composer.json b/composer.json index d1f613c..f6d92c9 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,7 @@ "require": {}, "require-dev": { "phpmd/phpmd" : "@stable", + "phpunit/phpunit": "4.6.*", "sebastian/phpcpd": "*", "squizlabs/php_codesniffer": "2.*" } diff --git a/index.php b/index.php index 9561f63..ed18c7f 100644 --- a/index.php +++ b/index.php @@ -68,6 +68,10 @@ checkphpversion(); error_reporting(E_ALL^E_WARNING); // See all error except warnings. //error_reporting(-1); // See all errors (for debugging only) +// Shaarli library +require_once 'application/LinkDB.php'; +require_once 'application/Utils.php'; + include "inc/rain.tpl.class.php"; //include Rain TPL raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory @@ -268,21 +272,6 @@ function nl2br_escaped($html) return str_replace('>','>',str_replace('<','<',nl2br($html))); } -/* Returns the small hash of a string, using RFC 4648 base64url format - e.g. smallHash('20111006_131924') --> yZH23w - Small hashes: - - are unique (well, as unique as crc32, at last) - - are always 6 characters long. - - only use the following characters: a-z A-Z 0-9 - _ @ - - are NOT cryptographically secure (they CAN be forged) - In Shaarli, they are used as a tinyurl-like link to individual entries. -*/ -function smallHash($text) -{ - $t = rtrim(base64_encode(hash('crc32',$text,true)),'='); - return strtr($t, '+/', '-_'); -} - // In a string, converts URLs to clickable links. // Function inspired from http://www.php.net/manual/en/function.preg-replace.php#85722 function text2clickable($url) @@ -536,20 +525,6 @@ function getMaxFileSize() return $maxsize; } -// Tells if a string start with a substring or not. -function startsWith($haystack,$needle,$case=true) -{ - if($case){return (strcmp(substr($haystack, 0, strlen($needle)),$needle)===0);} - return (strcasecmp(substr($haystack, 0, strlen($needle)),$needle)===0); -} - -// Tells if a string ends with a substring or not. -function endsWith($haystack,$needle,$case=true) -{ - if($case){return (strcmp(substr($haystack, strlen($haystack) - strlen($needle)),$needle)===0);} - return (strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)),$needle)===0); -} - /* Converts a linkdate time (YYYYMMDD_HHMMSS) of an article to a timestamp (Unix epoch) (used to build the ADD_DATE attribute in Netscape-bookmarks file) PS: I could have used strptime(), but it does not exist on Windows. I'm too kind. */ @@ -710,220 +685,6 @@ class pageBuilder } } -// ------------------------------------------------------------------------------------------ -/* Data storage for links. - This object behaves like an associative array. - Example: - $mylinks = new linkdb(); - echo $mylinks['20110826_161819']['title']; - foreach($mylinks as $link) - echo $link['title'].' at url '.$link['url'].' ; description:'.$link['description']; - - Available keys: - title : Title of the link - url : URL of the link. Can be absolute or relative. Relative URLs are permalinks (e.g.'?m-ukcw') - description : description of the entry - private : Is this link private? 0=no, other value=yes - linkdate : date of the creation of this entry, in the form YYYYMMDD_HHMMSS (e.g.'20110914_192317') - tags : tags attached to this entry (separated by spaces) - - We implement 3 interfaces: - - ArrayAccess so that this object behaves like an associative array. - - Iterator so that this object can be used in foreach() loops. - - Countable interface so that we can do a count() on this object. -*/ -class linkdb implements Iterator, Countable, ArrayAccess -{ - private $links; // List of links (associative array. Key=linkdate (e.g. "20110823_124546"), value= associative array (keys:title,description...) - private $urls; // List of all recorded URLs (key=url, value=linkdate) for fast reserve search (url-->linkdate) - private $keys; // List of linkdate keys (for the Iterator interface implementation) - private $position; // Position in the $this->keys array. (for the Iterator interface implementation.) - private $loggedin; // Is the user logged in? (used to filter private links) - - // Constructor: - function __construct($isLoggedIn) - // Input : $isLoggedIn : is the user logged in? - { - $this->loggedin = $isLoggedIn; - $this->checkdb(); // Make sure data file exists. - $this->readdb(); // Then read it. - } - - // ---- Countable interface implementation - public function count() { return count($this->links); } - - // ---- ArrayAccess interface implementation - public function offsetSet($offset, $value) - { - if (!$this->loggedin) die('You are not authorized to add a link.'); - if (empty($value['linkdate']) || empty($value['url'])) die('Internal Error: A link should always have a linkdate and URL.'); - if (empty($offset)) die('You must specify a key.'); - $this->links[$offset] = $value; - $this->urls[$value['url']]=$offset; - } - public function offsetExists($offset) { return array_key_exists($offset,$this->links); } - public function offsetUnset($offset) - { - if (!$this->loggedin) die('You are not authorized to delete a link.'); - $url = $this->links[$offset]['url']; unset($this->urls[$url]); - unset($this->links[$offset]); - } - public function offsetGet($offset) { return isset($this->links[$offset]) ? $this->links[$offset] : null; } - - // ---- Iterator interface implementation - function rewind() { $this->keys=array_keys($this->links); rsort($this->keys); $this->position=0; } // Start over for iteration, ordered by date (latest first). - function key() { return $this->keys[$this->position]; } // current key - function current() { return $this->links[$this->keys[$this->position]]; } // current value - function next() { ++$this->position; } // go to next item - function valid() { return isset($this->keys[$this->position]); } // Check if current position is valid. - - // ---- Misc methods - private function checkdb() // Check if db directory and file exists. - { - if (!file_exists($GLOBALS['config']['DATASTORE'])) // Create a dummy database for example. - { - $this->links = array(); - $link = array('title'=>'Shaarli - sebsauvage.net','url'=>'http://sebsauvage.net/wiki/doku.php?id=php:shaarli','description'=>'Welcome to Shaarli ! This is a bookmark. To edit or delete me, you must first login.','private'=>0,'linkdate'=>'20110914_190000','tags'=>'opensource software'); - $this->links[$link['linkdate']] = $link; - $link = array('title'=>'My secret stuff... - Pastebin.com','url'=>'http://sebsauvage.net/paste/?8434b27936c09649#bR7XsXhoTiLcqCpQbmOpBi3rq2zzQUC5hBI7ZT1O3x8=','description'=>'SShhhh!! I\'m a private link only YOU can see. You can delete me too.','private'=>1,'linkdate'=>'20110914_074522','tags'=>'secretstuff'); - $this->links[$link['linkdate']] = $link; - file_put_contents($GLOBALS['config']['DATASTORE'], PHPPREFIX.base64_encode(gzdeflate(serialize($this->links))).PHPSUFFIX); // Write database to disk - } - } - - // Read database from disk to memory - private function readdb() - { - // Read data - $this->links=(file_exists($GLOBALS['config']['DATASTORE']) ? unserialize(gzinflate(base64_decode(substr(file_get_contents($GLOBALS['config']['DATASTORE']),strlen(PHPPREFIX),-strlen(PHPSUFFIX))))) : array() ); - // Note that gzinflate is faster than gzuncompress. See: http://www.php.net/manual/en/function.gzdeflate.php#96439 - - // If user is not logged in, filter private links. - if (!$this->loggedin) - { - $toremove=array(); - foreach($this->links as $link) { if ($link['private']!=0) $toremove[]=$link['linkdate']; } - foreach($toremove as $linkdate) { unset($this->links[$linkdate]); } - } - - // Keep the list of the mapping URLs-->linkdate up-to-date. - $this->urls=array(); - foreach($this->links as $link) { $this->urls[$link['url']]=$link['linkdate']; } - } - - // Save database from memory to disk. - public function savedb() - { - if (!$this->loggedin) die('You are not authorized to change the database.'); - file_put_contents($GLOBALS['config']['DATASTORE'], PHPPREFIX.base64_encode(gzdeflate(serialize($this->links))).PHPSUFFIX); - invalidateCaches(); - } - - // Returns the link for a given URL (if it exists). False if it does not exist. - public function getLinkFromUrl($url) - { - if (isset($this->urls[$url])) return $this->links[$this->urls[$url]]; - return false; - } - - // Case insensitive search among links (in the URLs, title and description). Returns filtered list of links. - // e.g. print_r($mydb->filterFulltext('hollandais')); - public function filterFulltext($searchterms) - { - // FIXME: explode(' ',$searchterms) and perform a AND search. - // FIXME: accept double-quotes to search for a string "as is"? - // Using mb_convert_case($val, MB_CASE_LOWER, 'UTF-8') allows us to perform searches on - // Unicode text. See https://github.com/shaarli/Shaarli/issues/75 for examples. - $filtered=array(); - $s = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8'); - foreach($this->links as $l) - { - $found= (strpos(mb_convert_case($l['title'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) - || (strpos(mb_convert_case($l['description'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) - || (strpos(mb_convert_case($l['url'], MB_CASE_LOWER, 'UTF-8'),$s) !== false) - || (strpos(mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8'),$s) !== false); - if ($found) $filtered[$l['linkdate']] = $l; - } - krsort($filtered); - return $filtered; - } - - // Filter by tag. - // You can specify one or more tags (tags can be separated by space or comma). - // e.g. print_r($mydb->filterTags('linux programming')); - public function filterTags($tags,$casesensitive=false) - { - // Same as above, we use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) - // TODO: is $casesensitive ever true ? - $t = str_replace(',',' ',($casesensitive?$tags:mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8'))); - $searchtags=explode(' ',$t); - $filtered=array(); - foreach($this->links as $l) - { - $linktags = explode(' ',($casesensitive?$l['tags']:mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8'))); - if (count(array_intersect($linktags,$searchtags)) == count($searchtags)) - $filtered[$l['linkdate']] = $l; - } - krsort($filtered); - return $filtered; - } - - // Filter by day. Day must be in the form 'YYYYMMDD' (e.g. '20120125') - // Sort order is: older articles first. - // e.g. print_r($mydb->filterDay('20120125')); - public function filterDay($day) - { - $filtered=array(); - foreach($this->links as $l) - { - if (startsWith($l['linkdate'],$day)) $filtered[$l['linkdate']] = $l; - } - ksort($filtered); - return $filtered; - } - // Filter by smallHash. - // Only 1 article is returned. - public function filterSmallHash($smallHash) - { - $filtered=array(); - foreach($this->links as $l) - { - if ($smallHash==smallHash($l['linkdate'])) // Yes, this is ugly and slow - { - $filtered[$l['linkdate']] = $l; - return $filtered; - } - } - return $filtered; - } - - // Returns the list of all tags - // Output: associative array key=tags, value=0 - public function allTags() - { - $tags=array(); - foreach($this->links as $link) - foreach(explode(' ',$link['tags']) as $tag) - if (!empty($tag)) $tags[$tag]=(empty($tags[$tag]) ? 1 : $tags[$tag]+1); - arsort($tags); // Sort tags by usage (most used tag first) - return $tags; - } - - // Returns the list of days containing articles (oldest first) - // Output: An array containing days (in format YYYYMMDD). - public function days() - { - $linkdays=array(); - foreach(array_keys($this->links) as $day) - { - $linkdays[substr($day,0,8)]=0; - } - $linkdays=array_keys($linkdays); - sort($linkdays); - return $linkdays; - } -} - // ------------------------------------------------------------------------------------------ // Output the last N links in RSS 2.0 format. function showRSS() @@ -941,7 +702,7 @@ function showRSS() $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } // If cached was not found (or not usable), then read the database and build the response: - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if user it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Optionally filter the results: $linksToDisplay=array(); @@ -1019,7 +780,7 @@ function showATOM() $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } // If cached was not found (or not usable), then read the database and build the response: - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Optionally filter the results: @@ -1104,7 +865,7 @@ function showDailyRSS() $cache = new pageCache(pageUrl(),startsWith($query,'do=dailyrss') && !isLoggedIn()); $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } // If cached was not found (or not usable), then read the database and build the response: - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); /* Some Shaarlies may have very few links, so we need to look back in time (rsort()) until we have enough days ($nb_of_days). @@ -1172,7 +933,7 @@ function showDailyRSS() // "Daily" page. function showDaily() { - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); $day=Date('Ymd',strtotime('-1 day')); // Yesterday, in format YYYYMMDD. @@ -1240,7 +1001,7 @@ function showDaily() // Render HTML page (according to URL parameters and user rights) function renderPage() { - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // -------- Display login form. if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=login')) @@ -1822,7 +1583,7 @@ HTML; function importFile() { if (!(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI'])) { die('Not allowed.'); } - $LINKSDB=new linkdb(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); // Read links from database (and filter private links if used it not logged in). + $LINKSDB = new LinkDB(isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI']); $filename=$_FILES['filetoupload']['name']; $filesize=$_FILES['filetoupload']['size']; $data=file_get_contents($_FILES['filetoupload']['tmp_name']); diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..d6e01c3 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,15 @@ + + + + + application + + + + + + + diff --git a/tests/.htaccess b/tests/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/tests/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php new file mode 100644 index 0000000..bbe4e02 --- /dev/null +++ b/tests/LinkDBTest.php @@ -0,0 +1,509 @@ +'); + + +/** + * Unitary tests for LinkDB + */ +class LinkDBTest extends PHPUnit_Framework_TestCase +{ + // datastore to test write operations + protected static $testDatastore = 'tests/datastore.php'; + protected static $dummyDatastoreSHA1 = 'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'; + protected static $refDB = null; + protected static $publicLinkDB = null; + protected static $privateLinkDB = null; + + /** + * Instantiates public and private LinkDBs with test data + * + * The reference datastore contains public and private links that + * will be used to test LinkDB's methods: + * - access filtering (public/private), + * - link searches: + * - by day, + * - by tag, + * - by text, + * - etc. + */ + public static function setUpBeforeClass() + { + self::$refDB = new ReferenceLinkDB(); + self::$refDB->write(self::$testDatastore, PHPPREFIX, PHPSUFFIX); + + $GLOBALS['config']['DATASTORE'] = self::$testDatastore; + self::$publicLinkDB = new LinkDB(false); + self::$privateLinkDB = new LinkDB(true); + } + + /** + * Resets test data for each test + */ + protected function setUp() + { + $GLOBALS['config']['DATASTORE'] = self::$testDatastore; + if (file_exists(self::$testDatastore)) { + unlink(self::$testDatastore); + } + } + + /** + * Allows to test LinkDB's private methods + * + * @see + * https://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html + * http://stackoverflow.com/a/2798203 + */ + protected static function getMethod($name) + { + $class = new ReflectionClass('LinkDB'); + $method = $class->getMethod($name); + $method->setAccessible(true); + return $method; + } + + /** + * Instantiate LinkDB objects - logged in user + */ + public function testConstructLoggedIn() + { + new LinkDB(true); + $this->assertFileExists(self::$testDatastore); + } + + /** + * Instantiate LinkDB objects - logged out or public instance + */ + public function testConstructLoggedOut() + { + new LinkDB(false); + $this->assertFileExists(self::$testDatastore); + } + + /** + * Attempt to instantiate a LinkDB whereas the datastore is not writable + * + * @expectedException PHPUnit_Framework_Error_Warning + * @expectedExceptionMessageRegExp /failed to open stream: No such file or directory/ + */ + public function testConstructDatastoreNotWriteable() + { + $GLOBALS['config']['DATASTORE'] = 'null/store.db'; + new LinkDB(false); + } + + /** + * The DB doesn't exist, ensure it is created with dummy content + */ + public function testCheckDBNew() + { + $linkDB = new LinkDB(false); + unlink(self::$testDatastore); + $this->assertFileNotExists(self::$testDatastore); + + $checkDB = self::getMethod('checkDB'); + $checkDB->invokeArgs($linkDB, array()); + $this->assertFileExists(self::$testDatastore); + + // ensure the correct data has been written + $this->assertEquals( + self::$dummyDatastoreSHA1, + sha1_file(self::$testDatastore) + ); + } + + /** + * The DB exists, don't do anything + */ + public function testCheckDBLoad() + { + $linkDB = new LinkDB(false); + $this->assertEquals( + self::$dummyDatastoreSHA1, + sha1_file(self::$testDatastore) + ); + + $checkDB = self::getMethod('checkDB'); + $checkDB->invokeArgs($linkDB, array()); + + // ensure the datastore is left unmodified + $this->assertEquals( + self::$dummyDatastoreSHA1, + sha1_file(self::$testDatastore) + ); + } + + /** + * Load an empty DB + */ + public function testReadEmptyDB() + { + file_put_contents(self::$testDatastore, PHPPREFIX.'S7QysKquBQA='.PHPSUFFIX); + $emptyDB = new LinkDB(false); + $this->assertEquals(0, sizeof($emptyDB)); + $this->assertEquals(0, count($emptyDB)); + } + + /** + * Load public links from the DB + */ + public function testReadPublicDB() + { + $this->assertEquals( + self::$refDB->countPublicLinks(), + sizeof(self::$publicLinkDB) + ); + } + + /** + * Load public and private links from the DB + */ + public function testReadPrivateDB() + { + $this->assertEquals( + self::$refDB->countLinks(), + sizeof(self::$privateLinkDB) + ); + } + + /** + * Save the links to the DB + */ + public function testSaveDB() + { + $testDB = new LinkDB(true); + $dbSize = sizeof($testDB); + + $link = array( + 'title'=>'an additional link', + 'url'=>'http://dum.my', + 'description'=>'One more', + 'private'=>0, + 'linkdate'=>'20150518_190000', + 'tags'=>'unit test' + ); + $testDB[$link['linkdate']] = $link; + + // TODO: move PageCache to a proper class/file + function invalidateCaches() {} + + $testDB->savedb(); + + $testDB = new LinkDB(true); + $this->assertEquals($dbSize + 1, sizeof($testDB)); + } + + /** + * Count existing links + */ + public function testCount() + { + $this->assertEquals( + self::$refDB->countPublicLinks(), + self::$publicLinkDB->count() + ); + $this->assertEquals( + self::$refDB->countLinks(), + self::$privateLinkDB->count() + ); + } + + /** + * List the days for which links have been posted + */ + public function testDays() + { + $this->assertEquals( + ['20121206', '20130614', '20150310'], + self::$publicLinkDB->days() + ); + + $this->assertEquals( + ['20121206', '20130614', '20141125', '20150310'], + self::$privateLinkDB->days() + ); + } + + /** + * The URL corresponds to an existing entry in the DB + */ + public function testGetKnownLinkFromURL() + { + $link = self::$publicLinkDB->getLinkFromUrl('http://mediagoblin.org/'); + + $this->assertNotEquals(false, $link); + $this->assertEquals( + 'A free software media publishing platform', + $link['description'] + ); + } + + /** + * The URL is not in the DB + */ + public function testGetUnknownLinkFromURL() + { + $this->assertEquals( + false, + self::$publicLinkDB->getLinkFromUrl('http://dev.null') + ); + } + + /** + * Lists all tags + */ + public function testAllTags() + { + $this->assertEquals( + [ + 'web' => 3, + 'cartoon' => 2, + 'gnu' => 2, + 'dev' => 1, + 'samba' => 1, + 'media' => 1, + 'software' => 1, + 'stallman' => 1, + 'free' => 1 + ], + self::$publicLinkDB->allTags() + ); + + $this->assertEquals( + [ + 'web' => 4, + 'cartoon' => 3, + 'gnu' => 2, + 'dev' => 2, + 'samba' => 1, + 'media' => 1, + 'software' => 1, + 'stallman' => 1, + 'free' => 1, + 'html' => 1, + 'w3c' => 1, + 'css' => 1, + 'Mercurial' => 1 + ], + self::$privateLinkDB->allTags() + ); + } + + /** + * Filter links using a tag + */ + public function testFilterOneTag() + { + $this->assertEquals( + 3, + sizeof(self::$publicLinkDB->filterTags('web', false)) + ); + + $this->assertEquals( + 4, + sizeof(self::$privateLinkDB->filterTags('web', false)) + ); + } + + /** + * Filter links using a tag - case-sensitive + */ + public function testFilterCaseSensitiveTag() + { + $this->assertEquals( + 0, + sizeof(self::$privateLinkDB->filterTags('mercurial', true)) + ); + + $this->assertEquals( + 1, + sizeof(self::$privateLinkDB->filterTags('Mercurial', true)) + ); + } + + /** + * Filter links using a tag combination + */ + public function testFilterMultipleTags() + { + $this->assertEquals( + 1, + sizeof(self::$publicLinkDB->filterTags('dev cartoon', false)) + ); + + $this->assertEquals( + 2, + sizeof(self::$privateLinkDB->filterTags('dev cartoon', false)) + ); + } + + /** + * Filter links using a non-existent tag + */ + public function testFilterUnknownTag() + { + $this->assertEquals( + 0, + sizeof(self::$publicLinkDB->filterTags('null', false)) + ); + } + + /** + * Return links for a given day + */ + public function testFilterDay() + { + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterDay('20121206')) + ); + + $this->assertEquals( + 3, + sizeof(self::$privateLinkDB->filterDay('20121206')) + ); + } + + /** + * 404 - day not found + */ + public function testFilterUnknownDay() + { + $this->assertEquals( + 0, + sizeof(self::$publicLinkDB->filterDay('19700101')) + ); + + $this->assertEquals( + 0, + sizeof(self::$privateLinkDB->filterDay('19700101')) + ); + } + + /** + * Use an invalid date format + */ + public function testFilterInvalidDay() + { + $this->assertEquals( + 0, + sizeof(self::$privateLinkDB->filterDay('Rainy day, dream away')) + ); + + // TODO: check input format + $this->assertEquals( + 6, + sizeof(self::$privateLinkDB->filterDay('20')) + ); + } + + /** + * Retrieve a link entry with its hash + */ + public function testFilterSmallHash() + { + $links = self::$privateLinkDB->filterSmallHash('IuWvgA'); + + $this->assertEquals( + 1, + sizeof($links) + ); + + $this->assertEquals( + 'MediaGoblin', + $links['20130614_184135']['title'] + ); + + } + + /** + * No link for this hash + */ + public function testFilterUnknownSmallHash() + { + $this->assertEquals( + 0, + sizeof(self::$privateLinkDB->filterSmallHash('Iblaah')) + ); + } + + /** + * Full-text search - result from a link's URL + */ + public function testFilterFullTextURL() + { + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('ars.userfriendly.org')) + ); + } + + /** + * Full-text search - result from a link's title only + */ + public function testFilterFullTextTitle() + { + // use miscellaneous cases + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('userfriendly -')) + ); + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('UserFriendly -')) + ); + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('uSeRFrIendlY -')) + ); + + // use miscellaneous case and offset + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('RFrIendL')) + ); + } + + /** + * Full-text search - result from the link's description only + */ + public function testFilterFullTextDescription() + { + $this->assertEquals( + 1, + sizeof(self::$publicLinkDB->filterFullText('media publishing')) + ); + } + + /** + * Full-text search - result from the link's tags only + */ + public function testFilterFullTextTags() + { + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('gnu')) + ); + } + + /** + * Full-text search - result set from mixed sources + */ + public function testFilterFullTextMixed() + { + $this->assertEquals( + 2, + sizeof(self::$publicLinkDB->filterFullText('free software')) + ); + } +} +?> diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php new file mode 100644 index 0000000..bbba99f --- /dev/null +++ b/tests/UtilsTest.php @@ -0,0 +1,78 @@ +assertEquals('CyAAJw', smallHash('http://test.io')); + $this->assertEquals(6, strlen(smallHash('https://github.com'))); + } + + /** + * Look for a substring at the beginning of a string + */ + public function testStartsWithCaseInsensitive() + { + $this->assertTrue(startsWith('Lorem ipsum', 'lorem', false)); + $this->assertTrue(startsWith('Lorem ipsum', 'LoReM i', false)); + } + + /** + * Look for a substring at the beginning of a string (case-sensitive) + */ + public function testStartsWithCaseSensitive() + { + $this->assertTrue(startsWith('Lorem ipsum', 'Lorem', true)); + $this->assertFalse(startsWith('Lorem ipsum', 'lorem', true)); + $this->assertFalse(startsWith('Lorem ipsum', 'LoReM i', true)); + } + + /** + * Look for a substring at the beginning of a string (Unicode) + */ + public function testStartsWithSpecialChars() + { + $this->assertTrue(startsWith('å!ùµ', 'å!', false)); + $this->assertTrue(startsWith('µ$åù', 'µ$', true)); + } + + /** + * Look for a substring at the end of a string + */ + public function testEndsWithCaseInsensitive() + { + $this->assertTrue(endsWith('Lorem ipsum', 'ipsum', false)); + $this->assertTrue(endsWith('Lorem ipsum', 'm IpsUM', false)); + } + + /** + * Look for a substring at the end of a string (case-sensitive) + */ + public function testEndsWithCaseSensitive() + { + $this->assertTrue(endsWith('lorem Ipsum', 'Ipsum', true)); + $this->assertFalse(endsWith('lorem Ipsum', 'ipsum', true)); + $this->assertFalse(endsWith('lorem Ipsum', 'M IPsuM', true)); + } + + /** + * Look for a substring at the end of a string (Unicode) + */ + public function testEndsWithSpecialChars() + { + $this->assertTrue(endsWith('å!ùµ', 'ùµ', false)); + $this->assertTrue(endsWith('µ$åù', 'åù', true)); + } +} +?> diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php new file mode 100644 index 0000000..2cb05ba --- /dev/null +++ b/tests/utils/ReferenceLinkDB.php @@ -0,0 +1,128 @@ +addLink( + 'Free as in Freedom 2.0', + 'https://static.fsf.org/nosvn/faif-2.0.pdf', + 'Richard Stallman and the Free Software Revolution', + 0, + '20150310_114633', + 'free gnu software stallman' + ); + + $this->addLink( + 'MediaGoblin', + 'http://mediagoblin.org/', + 'A free software media publishing platform', + 0, + '20130614_184135', + 'gnu media web' + ); + + $this->addLink( + 'w3c-markup-validator', + 'https://dvcs.w3.org/hg/markup-validator/summary', + 'Mercurial repository for the W3C Validator', + 1, + '20141125_084734', + 'css html w3c web Mercurial' + ); + + $this->addLink( + 'UserFriendly - Web Designer', + 'http://ars.userfriendly.org/cartoons/?id=20121206', + 'Naming conventions...', + 0, + '20121206_142300', + 'dev cartoon web' + ); + + $this->addLink( + 'UserFriendly - Samba', + 'http://ars.userfriendly.org/cartoons/?id=20010306', + 'Tropical printing', + 0, + '20121206_172539', + 'samba cartoon web' + ); + + $this->addLink( + 'Geek and Poke', + 'http://geek-and-poke.com/', + '', + 1, + '20121206_182539', + 'dev cartoon' + ); + } + + /** + * Adds a new link + */ + protected function addLink($title, $url, $description, $private, $date, $tags) + { + $link = array( + 'title' => $title, + 'url' => $url, + 'description' => $description, + 'private' => $private, + 'linkdate' => $date, + 'tags' => $tags, + ); + $this->links[$date] = $link; + + if ($private) { + $this->privateCount++; + return; + } + $this->publicCount++; + } + + /** + * Writes data to the datastore + */ + public function write($filename, $prefix, $suffix) + { + file_put_contents( + $filename, + $prefix.base64_encode(gzdeflate(serialize($this->links))).$suffix + ); + } + + /** + * Returns the number of links in the reference data + */ + public function countLinks() + { + return $this->publicCount + $this->privateCount; + } + + /** + * Returns the number of public links in the reference data + */ + public function countPublicLinks() + { + return $this->publicCount; + } + + /** + * Returns the number of private links in the reference data + */ + public function countPrivateLinks() + { + return $this->privateCount; + } +} +?> From 4de71445d3d174b5ef3462a1c4470a95cc00017e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 19 Jun 2015 20:13:31 +0200 Subject: [PATCH 116/658] Daily page: date format in template It only concerns the date of the day in the main title. Fixes #182 Note that daily RSS feed is not generated through templates. Date are still hard formatted in that case. --- index.php | 2 +- tpl/daily.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9561f63..7e94fd2 100644 --- a/index.php +++ b/index.php @@ -1228,7 +1228,7 @@ function showDaily() $PAGE->assign('linksToDisplay',$linksToDisplay); $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('cols', $columns); - $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000')))); + $PAGE->assign('day',linkdate2timestamp($day.'_000000')); $PAGE->assign('previousday',$previousday); $PAGE->assign('nextday',$nextday); $PAGE->renderPage('daily'); diff --git a/tpl/daily.html b/tpl/daily.html index 919795b..0f76249 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -13,7 +13,7 @@ rss_feedDaily RSS Feed
    floral_left The Daily Shaarli floral_right
    -
    ——————————— {$day} ———————————
    +
    ——————————— {function="strftime('%A %d, %B %Y', $day)"} ———————————
    {if="$linksToDisplay"} From f30aa976e1c56b33687c59d3de8b3481f58a374d Mon Sep 17 00:00:00 2001 From: nda Date: Fri, 19 Jun 2015 17:37:38 -0300 Subject: [PATCH 117/658] login enhance for mobile --- inc/shaarli.css | 14 ++++++++++++++ tpl/loginform.html | 10 ++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index c4348c7..c979ff5 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -975,6 +975,20 @@ div.dailyNoEntry { margin: 3px; } + #headerform label { + width: 100%; + display: block; + height: auto; + line-height: 25px; + padding-bottom: 10px; + } + + #headerform label input[type=text], + #headerform label input[type=password]{ + float: right; + width: 70%; + } + .searchform, .tagfilter { display: block !important; margin: 0px 3px 7px 0px !important; diff --git a/tpl/loginform.html b/tpl/loginform.html index 954f6f1..91b948d 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -10,10 +10,12 @@ You have been banned from login after too many failed attempts. Try later. {else}
    - Login:     - Password : -
    - + + + + {if="$returnurl"}{/if} From 25c46408a3d5101801574703775cdfd2a0df8d4f Mon Sep 17 00:00:00 2001 From: nda Date: Fri, 19 Jun 2015 17:42:16 -0300 Subject: [PATCH 118/658] fix login desktop --- inc/shaarli.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/shaarli.css b/inc/shaarli.css index c979ff5..da0c359 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -339,6 +339,16 @@ h1 { font-size: inherit; } +#headerform label { + margin-right: 10px; +} + +#headerform label[for=longlastingsession] { + display: block; + width: 100%; + margin-top: 5px; +} + #toolsdiv { color: #ffffff; padding: 5px 5px 5px 5px; From 578a84bda0679720f21271ef34de58106c0646fe Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 23 Jun 2015 14:57:54 +0200 Subject: [PATCH 119/658] re-add readDb() missing from previous merge --- application/LinkDB.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/LinkDB.php b/application/LinkDB.php index 388002f..137f42e 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -208,6 +208,13 @@ class LinkDB implements Iterator, Countable, ArrayAccess */ private function readdb() { + + // Public links are hidden and user not logged in => nothing to show + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) { + $this->links = array(); + return; + } + // Read data // Note that gzinflate is faster than gzuncompress. // See: http://www.php.net/manual/en/function.gzdeflate.php#96439 From 0923a2bc1b097bf1def882722db489d83d95c423 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 23 Jun 2015 15:32:45 +0200 Subject: [PATCH 120/658] add tabindex 1/2 to search and tags fields --- tpl/linklist.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tpl/linklist.html b/tpl/linklist.html index 47e67e7..a59a9e5 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -8,9 +8,10 @@ diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 42c621b..8143669 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -2,7 +2,7 @@ Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation {if="$newversion"} -
    Shaarli {$newversion|htmlspecialchars} is available.
    +
    Shaarli {$newversion} is available.
    {/if} {if="isLoggedIn()"} diff --git a/tpl/page.header.html b/tpl/page.header.html index 0fd65e4..2d186aa 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -8,7 +8,7 @@
    '; + list($timezone_form, $timezone_js) = generateTimeZoneForm(); + $timezone_html = ''; + if ($timezone_form != '') { + $timezone_html = ''; + } $PAGE = new pageBuilder; $PAGE->assign('timezone_html',$timezone_html); @@ -2097,67 +2097,6 @@ function install() exit; } -// Generates the timezone selection form and JavaScript. -// Input: (optional) current timezone (can be 'UTC/UTC'). It will be pre-selected. -// Output: array(html,js) -// Example: list($htmlform,$js) = templateTZform('Europe/Paris'); // Europe/Paris pre-selected. -// Returns array('','') if server does not support timezones list. (e.g. PHP 5.1 on free.fr) -function templateTZform($ptz=false) -{ - if (function_exists('timezone_identifiers_list')) // because of old PHP version (5.1) which can be found on free.fr - { - // Try to split the provided timezone. - if ($ptz==false) { $l=timezone_identifiers_list(); $ptz=$l[0]; } - $spos=strpos($ptz,'/'); $pcontinent=substr($ptz,0,$spos); $pcity=substr($ptz,$spos+1); - - // Display config form: - $timezone_form = ''; - $timezone_js = ''; - // The list is in the form "Europe/Paris", "America/Argentina/Buenos_Aires"... - // We split the list in continents/cities. - $continents = array(); - $cities = array(); - foreach(timezone_identifiers_list() as $tz) - { - if ($tz=='UTC') $tz='UTC/UTC'; - $spos = strpos($tz,'/'); - if ($spos!==false) - { - $continent=substr($tz,0,$spos); $city=substr($tz,$spos+1); - $continents[$continent]=1; - if (!isset($cities[$continent])) $cities[$continent]=''; - $cities[$continent].=''; - } - } - $continents_html = ''; - $continents = array_keys($continents); - foreach($continents as $continent) - $continents_html.=''; - $cities_html = $cities[$pcontinent]; - $timezone_form = "Continent: "; - $timezone_form .= "    City:
    "; - $timezone_js = "" ; - return array($timezone_form,$timezone_js); - } - return array('',''); -} - -// Tells if a timezone is valid or not. -// If not valid, returns false. -// If system does not support timezone list, returns false. -function isTZvalid($continent,$city) -{ - $tz = $continent.'/'.$city; - if (function_exists('timezone_identifiers_list')) // because of old PHP version (5.1) which can be found on free.fr - { - if (in_array($tz, timezone_identifiers_list())) // it's a valid timezone? - return true; - } - return false; -} if (!function_exists('json_encode')) { function json_encode($data) { switch ($type = gettype($data)) { diff --git a/tests/ConfigTest.php b/tests/ConfigTest.php index 4279c57..a239d8b 100755 --- a/tests/ConfigTest.php +++ b/tests/ConfigTest.php @@ -18,7 +18,7 @@ class ConfigTest extends PHPUnit_Framework_TestCase */ public function setUp() { - self::$_configFields = [ + self::$_configFields = array( 'login' => 'login', 'hash' => 'hash', 'salt' => 'salt', @@ -28,13 +28,13 @@ class ConfigTest extends PHPUnit_Framework_TestCase 'redirector' => '', 'disablesessionprotection' => false, 'privateLinkByDefault' => false, - 'config' => [ + 'config' => array( 'CONFIG_FILE' => 'tests/config.php', 'DATADIR' => 'tests', 'config1' => 'config1data', 'config2' => 'config2data', - ] - ]; + ) + ); } /** @@ -174,4 +174,4 @@ class ConfigTest extends PHPUnit_Framework_TestCase include self::$_configFields['config']['CONFIG_FILE']; $this->assertEquals(self::$_configFields['login'], $GLOBALS['login']); } -} \ No newline at end of file +} diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index d34ea4f..504c819 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php @@ -228,12 +228,12 @@ class LinkDBTest extends PHPUnit_Framework_TestCase public function testDays() { $this->assertEquals( - ['20121206', '20130614', '20150310'], + array('20121206', '20130614', '20150310'), self::$publicLinkDB->days() ); $this->assertEquals( - ['20121206', '20130614', '20141125', '20150310'], + array('20121206', '20130614', '20141125', '20150310'), self::$privateLinkDB->days() ); } @@ -269,7 +269,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase public function testAllTags() { $this->assertEquals( - [ + array( 'web' => 3, 'cartoon' => 2, 'gnu' => 2, @@ -279,12 +279,12 @@ class LinkDBTest extends PHPUnit_Framework_TestCase 'software' => 1, 'stallman' => 1, 'free' => 1 - ], + ), self::$publicLinkDB->allTags() ); $this->assertEquals( - [ + array( 'web' => 4, 'cartoon' => 3, 'gnu' => 2, @@ -298,7 +298,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase 'w3c' => 1, 'css' => 1, 'Mercurial' => 1 - ], + ), self::$privateLinkDB->allTags() ); } diff --git a/tests/TimeZoneTest.php b/tests/TimeZoneTest.php new file mode 100644 index 0000000..f3de391 --- /dev/null +++ b/tests/TimeZoneTest.php @@ -0,0 +1,83 @@ +assertStringStartsWith('Continent:assertContains('selected="selected"', $generated[0]); + $this->assertStringEndsWith('
    ', $generated[0]); + + // Javascript handler + $this->assertStringStartsWith('', $generated[1]); + } + + /** + * Generate a timezone selection form, with a preselected timezone + */ + public function testGenerateTimeZoneFormPreselected() + { + $generated = generateTimeZoneForm('Antarctica/Syowa'); + + // HTML form + $this->assertStringStartsWith('Continent:assertContains( + 'value="Antarctica" selected="selected"', + $generated[0] + ); + $this->assertContains( + 'value="Syowa" selected="selected"', + $generated[0] + ); + $this->assertStringEndsWith('
    ', $generated[0]); + + + // Javascript handler + $this->assertStringStartsWith('', $generated[1]); + } + + /** + * Check valid timezones + */ + public function testValidTimeZone() + { + $this->assertTrue(isTimeZoneValid('America', 'Argentina/Ushuaia')); + $this->assertTrue(isTimeZoneValid('Europe', 'Oslo')); + $this->assertTrue(isTimeZoneValid('UTC', 'UTC')); + } + + /** + * Check invalid timezones + */ + public function testInvalidTimeZone() + { + $this->assertFalse(isTimeZoneValid('CEST', 'CEST')); + $this->assertFalse(isTimeZoneValid('Europe', 'Atlantis')); + $this->assertFalse(isTimeZoneValid('Middle_Earth', 'Moria')); + } +} +?> diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 8355c7f..28e15f5 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -109,7 +109,7 @@ class UtilsTest extends PHPUnit_Framework_TestCase */ public function testGenerateLocationLoop() { $ref = 'http://localhost/?test'; - $this->assertEquals('?', generateLocation($ref, 'localhost', ['test'])); + $this->assertEquals('?', generateLocation($ref, 'localhost', array('test'))); } /** @@ -119,4 +119,36 @@ class UtilsTest extends PHPUnit_Framework_TestCase $ref = 'http://somewebsite.com/?test'; $this->assertEquals('?', generateLocation($ref, 'localhost')); } + + /** + * Check supported PHP versions + */ + public function testCheckSupportedPHPVersion() + { + $minVersion = '5.3'; + checkPHPVersion($minVersion, '5.4.32'); + checkPHPVersion($minVersion, '5.5'); + checkPHPVersion($minVersion, '5.6.10'); + } + + /** + * Check a unsupported PHP version + * @expectedException Exception + * @expectedExceptionMessageRegExp /Your PHP version is obsolete/ + */ + public function testCheckSupportedPHPVersion51() + { + checkPHPVersion('5.3', '5.1.0'); + } + + /** + * Check another unsupported PHP version + * @expectedException Exception + * @expectedExceptionMessageRegExp /Your PHP version is obsolete/ + */ + public function testCheckSupportedPHPVersion52() + { + checkPHPVersion('5.3', '5.2'); + } } +?> From 39d06fa545d356aac8a3a8b47d8cddf5ebab617c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 18 Jul 2015 13:23:00 +0200 Subject: [PATCH 153/658] Travis: use the container-based infrastructure See http://docs.travis-ci.com/user/migrating-from-legacy/ Signed-off-by: VirtualTam --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d1c7017..d10311c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: false language: php php: - 5.6 From d0ce99e59ecc8d62eefbf1322736880159a7e9e7 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 18 Jul 2015 11:56:41 +0200 Subject: [PATCH 154/658] Makefile: do not call `clean` before `test` Fixes #288 Modifications: - call `make clean` explicitely to clean the workspace - add `make clean` to Travis instructions Signed-off-by: VirtualTam --- .travis.yml | 1 + Makefile | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d10311c..80db650 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,5 @@ install: - composer self-update - composer install script: + - make clean - make test diff --git a/Makefile b/Makefile index 80efcfa..2835358 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ mess_detector_summary: mess_title # See phpunit.xml for configuration # https://phpunit.de/manual/current/en/appendixes.configuration.html ## -test: clean +test: @echo "-------" @echo "PHPUNIT" @echo "-------" @@ -114,13 +114,13 @@ test: clean ### remove all unversioned files clean: - @git clean -df + @git clean -df ### update the local copy of the documentation doc: clean - @rm -rf doc - @git clone https://github.com/shaarli/Shaarli.wiki.git doc - @rm -rf doc/.git + @rm -rf doc + @git clone https://github.com/shaarli/Shaarli.wiki.git doc + @rm -rf doc/.git ### Convert local markdown documentation to HTML htmldoc: From bb2948c52a93129af7fd71fde87edb3c1191dbc4 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Wed, 22 Jul 2015 10:39:23 +0200 Subject: [PATCH 155/658] [fix] #293 Black thumbnails on picture wall after upgrade #293 --- tpl/picwall.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tpl/picwall.html b/tpl/picwall.html index 9a2a471..f59685c 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -17,7 +17,9 @@ {include="page.footer"} - \ No newline at end of file + From 462bfb13128becd16be8f10d86728528ad69dd62 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 24 Jul 2015 11:13:04 +0200 Subject: [PATCH 156/658] Add Requirements section in README (link to wiki). Fixes #297 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 README.md diff --git a/README.md b/README.md old mode 100644 new mode 100755 index b3dbaf5..5743ec4 --- a/README.md +++ b/README.md @@ -55,9 +55,11 @@ Password: `demo` * [Bugs/Feature requests/Discussion](https://github.com/shaarli/Shaarli/issues/) -## Installing +## Requirements -Shaarli requires PHP 5.3. `php-gd` is optional and provides thumbnail resizing. +Check the [Server requirements](https://github.com/shaarli/Shaarli/wiki/Server-requirements) wiki page. + +## Installing * Download the latest stable release from https://github.com/shaarli/Shaarli/releases * Unpack the archive in a directory on your web server From 7d4263e11aebb698fd9dcdf56eab0238d72801d5 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 30 Jul 2015 11:20:51 +0200 Subject: [PATCH 157/658] Bump version to 0.5.0 Major changes - fix locale handling - fix note URLs - fix page redirections - fix daily RSS browsing - fix title display - fix links not being hidden when `HIDE_PUBLIC_LINKS` is set - restore compatibility with PHP 5.3 - remove duplicate tags in links - remove annoying URL patterns - add Firefox Social API - Search/Filter by tag fieds can now be accessed quickly with the `Tab` key - update documentation - start code refactoring - move all settings to `data/config.php` - refactor Config, LinkDB, TimeZone, Utils - add unit test coverage - add Travis integration Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 6d3fbd3..1439ec2 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index d225487..a2045a7 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From 992af0b9d77cb4fbac2c37ef8d5896042d67a2a3 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 22 Jul 2015 05:02:10 +0200 Subject: [PATCH 158/658] Doc: sync from Wiki, generate HTML Closes #291 Fixes #227 Modifications - HTML content: match the new Wiki structure - Makefile - generate a custom HTML sidebar - include the sidebar on all pages - infer and prepend page titles - handle relative links - add title metadata, e.g. Shaarli - Signed-off-by: VirtualTam --- Makefile | 36 +- doc/3rd-party-libraries.html | 77 +++ doc/3rd-party-libraries.md | 13 + doc/Backup,-restore,-import-and-export.html | 102 +++ doc/Backup,-restore,-import-and-export.md | 35 ++ doc/Coding-guidelines.html | 65 ++ doc/Coding-guidelines.md | 5 + doc/Community-&-Related-software.html | 101 +++ doc/Community-&-Related-software.md | 40 ++ ...SH-SCP,-serve-it-locally-with-php-cli.html | 75 --- ...llation-over-SSH-and-serve-it-locally.html | 137 ++++ ...allation-over-SSH-and-serve-it-locally.md} | 13 +- doc/Datastore-hacks.html | 94 +++ doc/Datastore-hacks.md | 19 + doc/Development.html | 102 +++ doc/Development.md | 35 ++ doc/Directory-structure.html | 107 ++++ doc/Directory-structure.md | 33 + ...s-for-shaarlis-listed-in-an-opml-file.html | 167 ----- ...Download-CSS-styles-from-an-OPML-list.html | 229 +++++++ ... Download-CSS-styles-from-an-OPML-list.md} | 13 +- ...e-patch---add-new-via-field-for-links.html | 141 +++-- ...ple-patch---add-new-via-field-for-links.md | 97 +-- doc/FAQ.html | 97 +++ doc/FAQ.md | 44 ++ doc/Firefox-share.html | 72 +++ doc/Firefox-share.md | 16 + doc/GnuPG-signature.html | 199 ++++++ doc/GnuPG-signature.md | 141 +++++ doc/Home.html | 449 ++----------- doc/Home.md | 453 +------------- doc/Plugin-System.html | 499 +++++++++++++++ doc/Plugin-System.md | 590 ++++++++++++++++++ doc/RSS-feeds.html | 75 +++ doc/RSS-feeds.md | 15 + doc/Security.html | 107 ++++ doc/Security.md | 28 + doc/Server-configuration.html | 371 +++++++++++ doc/Server-configuration.md | 321 ++++++++++ doc/Server-requirements.html | 132 ++++ doc/Server-requirements.md | 30 + doc/Shaarli-configuration.html | 221 +++++++ doc/Shaarli-configuration.md | 137 ++++ doc/Sharing-button.html | 76 +++ doc/Sharing-button.md | 19 + doc/Static-analysis.html | 72 +++ doc/Static-analysis.md | 12 + doc/TODO.html | 64 ++ doc/TODO.md | 4 + doc/Theming.html | 138 ++++ doc/Theming.md | 63 ++ doc/Troubleshooting.html | 122 ++++ doc/Troubleshooting.md | 60 ++ ...unning-unit-tests.html => Unit-tests.html} | 69 +- doc/{Running-unit-tests.md => Unit-tests.md} | 7 +- doc/Usage.html | 85 +++ doc/Usage.md | 25 + doc/_Sidebar.html | 99 +++ doc/_Sidebar.md | 29 + doc/github-markdown.css | 10 + doc/sidebar.html | 42 ++ 61 files changed, 5516 insertions(+), 1213 deletions(-) create mode 100644 doc/3rd-party-libraries.html create mode 100644 doc/3rd-party-libraries.md create mode 100644 doc/Backup,-restore,-import-and-export.html create mode 100644 doc/Backup,-restore,-import-and-export.md create mode 100644 doc/Coding-guidelines.html create mode 100644 doc/Coding-guidelines.md create mode 100644 doc/Community-&-Related-software.html create mode 100644 doc/Community-&-Related-software.md delete mode 100644 doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html create mode 100644 doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html rename doc/{Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.md => Copy-an-existing-installation-over-SSH-and-serve-it-locally.md} (87%) create mode 100644 doc/Datastore-hacks.html create mode 100644 doc/Datastore-hacks.md create mode 100644 doc/Development.html create mode 100644 doc/Development.md create mode 100644 doc/Directory-structure.html create mode 100644 doc/Directory-structure.md delete mode 100644 doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html create mode 100644 doc/Download-CSS-styles-from-an-OPML-list.html rename doc/{Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.md => Download-CSS-styles-from-an-OPML-list.md} (92%) create mode 100644 doc/FAQ.html create mode 100644 doc/FAQ.md create mode 100644 doc/Firefox-share.html create mode 100644 doc/Firefox-share.md create mode 100644 doc/GnuPG-signature.html create mode 100644 doc/GnuPG-signature.md create mode 100644 doc/Plugin-System.html create mode 100644 doc/Plugin-System.md create mode 100644 doc/RSS-feeds.html create mode 100644 doc/RSS-feeds.md create mode 100644 doc/Security.html create mode 100644 doc/Security.md create mode 100644 doc/Server-configuration.html create mode 100644 doc/Server-configuration.md create mode 100644 doc/Server-requirements.html create mode 100644 doc/Server-requirements.md create mode 100644 doc/Shaarli-configuration.html create mode 100644 doc/Shaarli-configuration.md create mode 100644 doc/Sharing-button.html create mode 100644 doc/Sharing-button.md create mode 100644 doc/Static-analysis.html create mode 100644 doc/Static-analysis.md create mode 100644 doc/TODO.html create mode 100644 doc/TODO.md create mode 100644 doc/Theming.html create mode 100644 doc/Theming.md create mode 100644 doc/Troubleshooting.html create mode 100644 doc/Troubleshooting.md rename doc/{Running-unit-tests.html => Unit-tests.html} (74%) rename doc/{Running-unit-tests.md => Unit-tests.md} (95%) create mode 100644 doc/Usage.html create mode 100644 doc/Usage.md create mode 100644 doc/_Sidebar.html create mode 100644 doc/_Sidebar.md create mode 100644 doc/sidebar.html diff --git a/Makefile b/Makefile index d69fac4..0557852 100644 --- a/Makefile +++ b/Makefile @@ -126,8 +126,38 @@ doc: clean @git clone https://github.com/shaarli/Shaarli.wiki.git doc @rm -rf doc/.git +### Generate a custom sidebar +# +# Sidebar content: +# - convert GitHub-flavoured relative links to standard Markdown +# - trim HTML, only keep the list (
      [...]
    ) part +htmlsidebar: + @echo '
    ' > doc/sidebar.html + @awk 'BEGIN { FS = "[\\[\\]]{2}" }'\ + 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\ + '!m { print $$0 }' doc/_Sidebar.md > doc/tmp.md + @pandoc -f markdown -t html5 -s doc/tmp.md | awk '/(ul>|li>)/' >> doc/sidebar.html + @echo '
    ' >> doc/sidebar.html + @rm doc/tmp.md + ### Convert local markdown documentation to HTML -htmldoc: - for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ - pandoc -f markdown_github -t html5 -s -c "github-markdown.css" -o doc/`basename $$file .md`.html "$$file"; \ +# +# For all pages: +# - infer title from the file name +# - convert GitHub-flavoured relative links to standard Markdown +# - insert the sidebar menu +htmlpages: + @for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ + base=`basename $$file .md`; \ + sed -i "1i #$${base//-/ }" $$file; \ + awk 'BEGIN { FS = "[\\[\\]]{2}" }'\ + 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\ + '!m { print $$0 }' $$file > doc/tmp.md; \ + mv doc/tmp.md $$file; \ + pandoc -f markdown_github -t html5 -s \ + -c "github-markdown.css" \ + -T Shaarli -M pagetitle:"$${base//-/ }" -B doc/sidebar.html \ + -o doc/$$base.html $$file; \ done; + +htmldoc: doc htmlsidebar htmlpages diff --git a/doc/3rd-party-libraries.html b/doc/3rd-party-libraries.html new file mode 100644 index 0000000..a9c3a88 --- /dev/null +++ b/doc/3rd-party-libraries.html @@ -0,0 +1,77 @@ + + + + + + + Shaarli - 3rd party libraries + + + + + + +

    3rd party libraries

    +

    CSS

    +
      +
    • Yahoo UI CSS Reset +
        +
      • resets default CSS properties for all HTML elements (overriding browsers' default values)
      • +
      • ensures custom CSS stylessheets will provide the same results on all browsers
      • +
    • +
    +

    Javascript

    + +

    PHP

    +
      +
    • RainTPL - HTML templating for PHP
    • +
    + + diff --git a/doc/3rd-party-libraries.md b/doc/3rd-party-libraries.md new file mode 100644 index 0000000..3101c90 --- /dev/null +++ b/doc/3rd-party-libraries.md @@ -0,0 +1,13 @@ +#3rd party libraries +## CSS +- Yahoo UI [CSS Reset](http://yuilibrary.com/yui/docs/cssreset/)[](.html) + - resets default CSS properties for all HTML elements (overriding browsers' default values) + - ensures custom CSS stylessheets will provide the same results on all browsers + +## Javascript +- [Awesomeplete](https://leaverou.github.io/awesomplete/) ([GitHub](https://github.com/LeaVerou/awesomplete)) - autocompletion in input forms[](.html) +- [bLazy](http://dinbror.dk/blazy/) ([GitHub](https://github.com/dinbror/blazy)) - lazy loading for thumbnails[](.html) +- [qr.js](http://neocotic.com/qr.js/) ([GitHub](https://github.com/neocotic/qr.js)) - QR code generation[](.html) + +## PHP +- [RainTPL](https://github.com/rainphp/raintpl) - HTML templating for PHP[](.html) diff --git a/doc/Backup,-restore,-import-and-export.html b/doc/Backup,-restore,-import-and-export.html new file mode 100644 index 0000000..183a5ed --- /dev/null +++ b/doc/Backup,-restore,-import-and-export.html @@ -0,0 +1,102 @@ + + + + + + + Shaarli - Backup, restore, import and export + + + + + + + +

    Backup, restore, import and export

    +

    Backup and restore the datastore file

    +

    Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.

    +

    Example command:

    +
    rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    + +

    To export links as an HTML file, under Tools > Export, choose:

    +
      +
    • Export all to export both public and private links
    • +
    • Export public to export public links only
    • +
    • Export private to export private links only
    • +
    +

    Restore by using the Import feature.

    + +

    Example command:

    +
    ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    + +

    Diigo

    +

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

    +

    Mister Wong

    +

    See this issue for import tweaks.

    +

    SemanticScuttle

    +

    To correctly import the tags from a SemanticScuttle HTML export, edit the HTML file before importing and replace all occurences of tags= (lowercase) to TAGS= (uppercase).

    + + diff --git a/doc/Backup,-restore,-import-and-export.md b/doc/Backup,-restore,-import-and-export.md new file mode 100644 index 0000000..cf6b9f4 --- /dev/null +++ b/doc/Backup,-restore,-import-and-export.md @@ -0,0 +1,35 @@ +#Backup, restore, import and export +## Backup and restore the datastore file + +Backup the file `data/datastore.php` (by FTP or SSH). Restore by putting the file back in place. + +Example command: +```bash +rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php +``` + +## Export links as... +To export links as an HTML file, under _Tools > Export_, choose: +- _Export all_ to export both public and private links +- _Export public_ to export public links only +- _Export private_ to export private links only + +Restore by using the `Import` feature. +* This can be done using the [shaarchiver](https://github.com/nodiscc/shaarchiver) tool.[](.html) + +Example command: +```bash +./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all +``` + +## Import links from... +### Diigo + +If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.) + +### Mister Wong +See [this issue](https://github.com/sebsauvage/Shaarli/issues/146) for import tweaks.[](.html) + +### SemanticScuttle + +To correctly import the tags from a [SemanticScuttle](http://semanticscuttle.sourceforge.net/) HTML export, edit the HTML file before importing and replace all occurences of `tags=` (lowercase) to `TAGS=` (uppercase).[](.html) diff --git a/doc/Coding-guidelines.html b/doc/Coding-guidelines.html new file mode 100644 index 0000000..0f071a5 --- /dev/null +++ b/doc/Coding-guidelines.html @@ -0,0 +1,65 @@ + + + + + + + Shaarli - Coding guidelines + + + + + + +

    Coding guidelines

    +

    WIP

    +

    This topic is currently being discussed here:

    + + + diff --git a/doc/Coding-guidelines.md b/doc/Coding-guidelines.md new file mode 100644 index 0000000..1fb28a5 --- /dev/null +++ b/doc/Coding-guidelines.md @@ -0,0 +1,5 @@ +#Coding guidelines +## WIP +This topic is currently being discussed here: +- [Fix coding style (static analysis)](https://github.com/shaarli/Shaarli/issues/95) (#95)[](.html) +- [Continuous Integration tools & features](https://github.com/shaarli/Shaarli/issues/130) (#130)[](.html) diff --git a/doc/Community-&-Related-software.html b/doc/Community-&-Related-software.html new file mode 100644 index 0000000..5468379 --- /dev/null +++ b/doc/Community-&-Related-software.html @@ -0,0 +1,101 @@ + + + + + + + Shaarli - Community & Related software + + + + + + +

    Community & Related software

    +

    Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork.

    +

    TODO: contact repos owners to see if they'd like to standardize their work with the community fork.

    +

    Community

    + +

    Themes

    +

    See Theming for the list of community-contributed themes, and an installation guide.

    +

    Server apps

    +
      +
    • shaarchiver - Archive your Shaarli bookmarks and their content
    • +
    • shaarli-river - An aggregator for shaarlis with many features
    • +
    • Shaarlo - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: shaarli.fr)
    • +
    • Shaarlimages - An image-oriented aggregator for Shaarlis
    • +
    • mknexen/shaarli-api - A REST API for Shaarli
    • +
    • Self dead link - Detect dead links on shaarli. This version use the database of shaarli. An another version, can be used for others shaarli (but use most ressources).
    • +
    +

    Android apps

    + +

    Integration with other platforms

    + +

    Alternatives to Shaarli

    + + + diff --git a/doc/Community-&-Related-software.md b/doc/Community-&-Related-software.md new file mode 100644 index 0000000..9cf4793 --- /dev/null +++ b/doc/Community-&-Related-software.md @@ -0,0 +1,40 @@ +#Community & Related software +*Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork.* + +*TODO: contact repos owners to see if they'd like to standardize their work with the community fork.* + +## Community +* [Liens en vrac de sebsauvage](http://sebsauvage.net/links/) - the original Shaarli[](.html) +* [A large list of Shaarlis](http://porneia.free.fr/pub/links/ou-est-shaarli.html)[](.html) +* [A list of working Shaarli aggregators](https://raw.githubusercontent.com/Oros42/find_shaarlis/master/annuaires.json)[](.html) +* [A list of some known Shaarlis](https://github.com/Oros42/shaarlis_list)[](.html) +* [Adieu Delicious, Diigo et StumbleUpon. Salut Shaarli ! - sebsauvage.net](http://sebsauvage.net/rhaa/index.php?2011/09/16/09/29/58-adieu-delicious-diigo-et-stumbleupon-salut-shaarli-) (fr) _16/09/2011 - the original post about Shaarli_[](.html) +* [Original ideas/fixme/TODO page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:ideas)[](.html) +* [Original discussion page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion) (fr)[](.html) +* [Original revisions history](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:history)[](.html) +* [Shaarli.fr/my](https://www.shaarli.fr/my.php) - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of [DMeloni](https://github.com/DMeloni)[](.html) +* [Shaarli Community](http://shaarferme.etudiant-libre.fr.nf/index.php) - Unknown Shaarli hoster (unsupported, old fork)[](.html) + +### Themes +See [Theming](Theming.html) for the list of community-contributed themes, and an installation guide. + +### Server apps + * [shaarchiver](https://github.com/nodiscc/shaarchiver) - Archive your Shaarli bookmarks and their content[](.html) + * [shaarli-river](https://github.com/mknexen/shaarli-river) - An aggregator for shaarlis with many features [](.html) + * [Shaarlo](https://github.com/DMeloni/shaarlo) - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: [shaarli.fr](http://shaarli.fr/))[](.html) + * [Shaarlimages](https://github.com/BoboTiG/shaarlimages) - An image-oriented aggregator for Shaarlis[](.html) + * [mknexen/shaarli-api](https://github.com/mknexen/shaarli-api) - A REST API for Shaarli[](.html) + * [Self dead link](https://github.com/qwertygc/shaarli-dev-code/blob/master/self-dead-link.php) - Detect dead links on shaarli. This version use the database of shaarli. An [another version](https://github.com/qwertygc/shaarli-dev-code/blob/master/dead-link.php), can be used for others shaarli (but use most ressources).[](.html) + +### Android apps + * [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider[](.html) + * [Shaarlier for Android](https://github.com/dimtion/Shaarlier) - Android application to simply add links directly into your Shaarli[](.html) + +## Integration with other platforms + * [tt-rss-shaarli](https://github.com/jcsaaddupuy/tt-rss-shaarli) - [TinyTiny RSS](http://tt-rss.org/) plugin that adds support for sharing articles with Shaarli[](.html) + * [octopress-shaarli](https://github.com/ahmet2mir/octopress-shaarli) - Octopress plugin to retrieve Shaarli links on the sidebara[](.html) + +## Alternatives to Shaarli +* [Shaarli alternatives](http://alternativeto.net/software/shaarli/) (alternativeto.net)[](.html) +* [Bookie](https://github.com/bookieio/bookie) - Another self-hostable, free bookmark sharing software, written in Python[](.html) +* [Unmark](https://github.com/plainmade/unmark) - An open source todo app for bookmarks ([Homepage](https://unmark.it/))[](.html) diff --git a/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html b/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html deleted file mode 100644 index 25e4bc6..0000000 --- a/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - -

    Example bash script:

    -
    #!/bin/bash
    -#Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
    -#Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
    -#Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
    -#Requires: ssh, scp and a working SSH access to the server where your Shaarli is installed
    -#Usage: ./local-shaarli.sh
    -#Author: nodiscc (nodiscc@gmail.com)
    -#License: MIT (http://opensource.org/licenses/MIT)
    -set -o errexit
    -set -o nounset
    -
    -##### CONFIG #################
    -#The port used by php's local server
    -php_local_port=7431
    -
    -#Name of the SSH server and path where Shaarli is installed
    -#TODO: pass these as command-line arguments
    -remotehost="my.ssh.server"
    -remote_shaarli_dir="/var/www/shaarli"
    -
    -
    -###### FUNCTIONS #############
    -_main() {
    -    _CBSyncShaarli
    -    _CBServeShaarli
    -}
    -
    -_CBSyncShaarli() {
    -    remote_temp_dir=$(ssh $remotehost mktemp -d)
    -    remote_ssh_user=$(ssh $remotehost whoami)
    -    ssh -t "$remotehost" sudo cp -r "$remote_shaarli_dir" "$remote_temp_dir"
    -    ssh -t "$remotehost" sudo chown -R "$remote_ssh_user":"$remote_ssh_user" "$remote_temp_dir"
    -    scp -rq "$remotehost":"$remote_temp_dir" local-shaarli
    -    ssh "$remotehost" rm -r "$remote_temp_dir"
    -}
    -
    -_CBServeShaarli() {
    -    #TODO: allow serving a previously downloaded Shaarli
    -    #TODO: ask before overwriting local copy, if it exists
    -    cd local-shaarli/
    -    php -S localhost:${php_local_port}
    -    echo "Please go to http://localhost:${php_local_port}"
    -}
    -
    -
    -##### MAIN #################
    -
    -_main
    -

    This outputs:

    -
    $ ./local-shaarli.sh
    -PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
    -Listening on http://localhost:7431
    -Document root is /home/user/local-shaarli/shaarli
    -Press Ctrl-C to quit.
    -
    -[Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /
    -[Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html
    -[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...
    - - diff --git a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html new file mode 100644 index 0000000..9e930e5 --- /dev/null +++ b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html @@ -0,0 +1,137 @@ + + + + + + + Shaarli - Copy an existing installation over SSH and serve it locally + + + + + + + +

    Copy an existing installation over SSH and serve it locally

    +

    Example bash script:

    +
    #!/bin/bash
    +#Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
    +#Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
    +#Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
    +#Requires: ssh, scp and a working SSH access to the server where your Shaarli is installed
    +#Usage: ./local-shaarli.sh
    +#Author: nodiscc (nodiscc@gmail.com)
    +#License: MIT (http://opensource.org/licenses/MIT)
    +set -o errexit
    +set -o nounset
    +
    +##### CONFIG #################
    +#The port used by php's local server
    +php_local_port=7431
    +
    +#Name of the SSH server and path where Shaarli is installed
    +#TODO: pass these as command-line arguments
    +remotehost="my.ssh.server"
    +remote_shaarli_dir="/var/www/shaarli"
    +
    +
    +###### FUNCTIONS #############
    +_main() {
    +    _CBSyncShaarli
    +    _CBServeShaarli
    +}
    +
    +_CBSyncShaarli() {
    +    remote_temp_dir=$(ssh $remotehost mktemp -d)
    +    remote_ssh_user=$(ssh $remotehost whoami)
    +    ssh -t "$remotehost" sudo cp -r "$remote_shaarli_dir" "$remote_temp_dir"
    +    ssh -t "$remotehost" sudo chown -R "$remote_ssh_user":"$remote_ssh_user" "$remote_temp_dir"
    +    scp -rq "$remotehost":"$remote_temp_dir" local-shaarli
    +    ssh "$remotehost" rm -r "$remote_temp_dir"
    +}
    +
    +_CBServeShaarli() {
    +    #TODO: allow serving a previously downloaded Shaarli
    +    #TODO: ask before overwriting local copy, if it exists
    +    cd local-shaarli/
    +    php -S localhost:${php_local_port}
    +    echo "Please go to http://localhost:${php_local_port}"
    +}
    +
    +
    +##### MAIN #################
    +
    +_main
    +

    This outputs:

    +
    $ ./local-shaarli.sh
    +PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
    +Listening on http://localhost:7431
    +Document root is /home/user/local-shaarli/shaarli
    +Press Ctrl-C to quit.
    +
    +[Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /[](.html)
    +[Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html[](.html)
    +[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...[](.html)
    + + diff --git a/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.md b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.md similarity index 87% rename from doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.md rename to doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.md index 5b0aec6..88d191d 100644 --- a/doc/Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli.md +++ b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.md @@ -1,6 +1,7 @@ +#Copy an existing installation over SSH and serve it locally Example bash script: -``` +```bash #!/bin/bash #Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli #Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally. @@ -53,14 +54,14 @@ _main This outputs: -``` +```bash $ ./local-shaarli.sh PHP 5.6.0RC4 Development Server started at Mon Sep 1 21:56:19 2014 Listening on http://localhost:7431 Document root is /home/user/local-shaarli/shaarli Press Ctrl-C to quit. -[Mon Sep 1 21:56:27 2014] ::1:57868 [200]: / -[Mon Sep 1 21:56:27 2014] ::1:57869 [200]: /index.html -[Mon Sep 1 21:56:37 2014] ::1:57881 [200]: /... -``` \ No newline at end of file +[Mon Sep 1 21:56:27 2014] ::1:57868 [200]: /[](.html) +[Mon Sep 1 21:56:27 2014] ::1:57869 [200]: /index.html[](.html) +[Mon Sep 1 21:56:37 2014] ::1:57881 [200]: /...[](.html) +``` diff --git a/doc/Datastore-hacks.html b/doc/Datastore-hacks.html new file mode 100644 index 0000000..4677ae9 --- /dev/null +++ b/doc/Datastore-hacks.html @@ -0,0 +1,94 @@ + + + + + + + Shaarli - Datastore hacks + + + + + + + +

    Datastore hacks

    +

    Decode datastore content

    +

    To display the array representing the data saved in data/datastore.php, use the following snippet:

    +
    $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
    +$out = unserialize(gzinflate(base64_decode($data)));
    +echo "<pre>"; // Pretty printing is love, pretty printing is life
    +print_r($out);
    +echo "</pre>";
    +exit;
    +

    This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation).

    + +
      +
    • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
    • +
    • Remove type="hidden" from this line
    • +
    • A new date/time field becomes available in the edit/new link dialog.
    • +
    • You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
    • +
    + + diff --git a/doc/Datastore-hacks.md b/doc/Datastore-hacks.md new file mode 100644 index 0000000..33aa222 --- /dev/null +++ b/doc/Datastore-hacks.md @@ -0,0 +1,19 @@ +#Datastore hacks +### Decode datastore content +To display the array representing the data saved in `data/datastore.php`, use the following snippet: + +```php +$data = "tZNdb9MwFIb... "; +$out = unserialize(gzinflate(base64_decode($data))); +echo "
    "; // Pretty printing is love, pretty printing is life
    +print_r($out);
    +echo "
    "; +exit; +``` +This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation). + +### Changing the timestamp for a link +* Look for `` in `tpl/editlink.tpl` (line 14) +* Remove `type="hidden"` from this line +* A new date/time field becomes available in the edit/new link dialog. +* You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`. diff --git a/doc/Development.html b/doc/Development.html new file mode 100644 index 0000000..1e33eff --- /dev/null +++ b/doc/Development.html @@ -0,0 +1,102 @@ + + + + + + + Shaarli - Development + + + + + + +

    Development

    +

    Guidelines

    +

    Please have a look at the following pages:

    + +

    Continuous integration tools

    +

    Local development

    +

    A Makefile is available to perform project-related operations:

    +
      +
    • Documentation - generate a local HTML copy of the GitHub wiki
    • +
    • Static analysis - check that the code is compliant to PHP conventions
    • +
    • Unit tests - ensure there are no regressions introduced by new commits
    • +
    +

    Automatic builds

    +

    Travis CI is a Continuous Integration build server, that runs a build:

    +
      +
    • each time a commit is merged to the mainline (master branch)
    • +
    • each time a Pull Request is submitted or updated
    • +
    +

    A build is composed of several jobs: one for each supported PHP version (see Server requirements).

    +

    Each build job:

    +
      +
    • updates Composer
    • +
    • installs 3rd-party test dependencies with Composer
    • +
    • runs Unit tests
    • +
    +

    After all jobs have finished, Travis returns the results to GitHub:

    +
      +
    • a status icon represents the result for the master branch: (https://api.travis-ci.org/shaarli/Shaarli.svg)
    • +
    • Pull Requests are updated with the Travis result +
        +
      • Green: all tests have passed
      • +
      • Red: some tests failed
      • +
      • Orange: tests are pending
      • +
    • +
    + + diff --git a/doc/Development.md b/doc/Development.md new file mode 100644 index 0000000..6cfcb68 --- /dev/null +++ b/doc/Development.md @@ -0,0 +1,35 @@ +#Development +## Guidelines +Please have a look at the following pages: +- [Contributing to Shaarli](https://github.com/shaarli/Shaarli/tree/master/CONTRIBUTING.md)[](.html) +- [Static analysis](Static-analysis.html) - patches should try to stick to the [PHP Standard Recommendations](http://www.php-fig.org/psr/) (PSR), especially: + - [PSR-1](http://www.php-fig.org/psr/psr-1/) - Basic Coding Standard[](.html) + - [PSR-2](http://www.php-fig.org/psr/psr-2/) - Coding Style Guide[](.html) +- [Unit tests](Unit-tests.html) +- [GnuPG signature](GnuPG-signature.html) for tags/releases + +## Continuous integration tools +### Local development +A [`Makefile`](https://github.com/shaarli/Shaarli/blob/master/Makefile) is available to perform project-related operations:[](.html) +- Documentation - generate a local HTML copy of the GitHub wiki +- [Static analysis](Static-analysis.html) - check that the code is compliant to PHP conventions +- [Unit tests](Unit-tests.html) - ensure there are no regressions introduced by new commits + +### Automatic builds +[Travis CI](http://docs.travis-ci.com/) is a Continuous Integration build server, that runs a build:[](.html) +- each time a commit is merged to the mainline (`master` branch) +- each time a Pull Request is submitted or updated + +A build is composed of several jobs: one for each supported PHP version (see [Server requirements](Server-requirements.html)). + +Each build job: +- updates Composer +- installs 3rd-party test dependencies with Composer +- runs [Unit tests](Unit-tests.html) + +After all jobs have finished, Travis returns the results to GitHub: +- a status icon represents the result for the `master` branch: [![(https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli)]((https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli).html) +- Pull Requests are updated with the Travis result + - Green: all tests have passed + - Red: some tests failed + - Orange: tests are pending diff --git a/doc/Directory-structure.html b/doc/Directory-structure.html new file mode 100644 index 0000000..4ea5e24 --- /dev/null +++ b/doc/Directory-structure.html @@ -0,0 +1,107 @@ + + + + + + + Shaarli - Directory structure + + + + + + + +

    Directory structure

    +

    Here is the directory structure of Shaarli and the purpose of the different files:

    +
        index.php        # Main program
    +    application/     # Shaarli classes
    +        ├── LinkDB.php
    +        └── Utils.php
    +    tests/       # Shaarli unitary & functional tests
    +        ├── LinkDBTest.php
    +        ├── utils  # utilities to ease testing
    +        │   └── ReferenceLinkDB.php
    +        └── UtilsTest.php
    +    COPYING          # Shaarli license
    +    inc/             # static assets and 3rd party libraries
    +        ├── awesomplete.*          # tags autocompletion library
    +        ├── blazy.*                # picture wall lazy image loading library
    +        ├── shaarli.css, reset.css # Shaarli stylesheet.
    +        ├── qr.*                   # qr code generation library
    +        └──rain.tpl.class.php      # RainTPL templating library
    +    tpl/             # RainTPL templates for Shaarli. They are used to build the pages.
    +    images/          # Images and icons used in Shaarli
    +    data/            # data storage: bookmark database, configuration, logs, banlist…
    +        ├── config.php             # Shaarli configuration (login, password, timezone, title…)
    +        ├── datastore.php          # Your link database (compressed).
    +        ├── ipban.php              # IP address ban system data
    +        ├── lastupdatecheck.txt    # Update check timestamp file
    +        └──log.txt                 # login/IPban log.
    +    cache/           # thumbnails cache
    +                     # This directory is automatically created. You can erase it anytime you want.
    +    tmp/             # Temporary directory for compiled RainTPL templates.
    +                     # This directory is automatically created. You can erase it anytime you want.
    + + diff --git a/doc/Directory-structure.md b/doc/Directory-structure.md new file mode 100644 index 0000000..3a1c430 --- /dev/null +++ b/doc/Directory-structure.md @@ -0,0 +1,33 @@ +#Directory structure +Here is the directory structure of Shaarli and the purpose of the different files: + +```bash + index.php # Main program + application/ # Shaarli classes + ├── LinkDB.php + └── Utils.php + tests/ # Shaarli unitary & functional tests + ├── LinkDBTest.php + ├── utils # utilities to ease testing + │ └── ReferenceLinkDB.php + └── UtilsTest.php + COPYING # Shaarli license + inc/ # static assets and 3rd party libraries + ├── awesomplete.* # tags autocompletion library + ├── blazy.* # picture wall lazy image loading library + ├── shaarli.css, reset.css # Shaarli stylesheet. + ├── qr.* # qr code generation library + └──rain.tpl.class.php # RainTPL templating library + tpl/ # RainTPL templates for Shaarli. They are used to build the pages. + images/ # Images and icons used in Shaarli + data/ # data storage: bookmark database, configuration, logs, banlist… + ├── config.php # Shaarli configuration (login, password, timezone, title…) + ├── datastore.php # Your link database (compressed). + ├── ipban.php # IP address ban system data + ├── lastupdatecheck.txt # Update check timestamp file + └──log.txt # login/IPban log. + cache/ # thumbnails cache + # This directory is automatically created. You can erase it anytime you want. + tmp/ # Temporary directory for compiled RainTPL templates. + # This directory is automatically created. You can erase it anytime you want. +``` diff --git a/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html b/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html deleted file mode 100644 index 0f32fb8..0000000 --- a/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - -

    Download CSS styles for shaarlis listed in an opml file

    -

    Example php script:

    -
    <!---- ?php -->
    -<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
    -<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
    -
    -/**
    - * Source: https://github.com/Riduidel
    - * Download css styles for shaarlis listed in an opml file
    - */
    -define("SHAARLI_RSS_OPML", "https://www.ecirtam.net/shaarlirss/custom/people.opml");
    -
    -define("THEMES_TEMP_FOLDER", "new_themes");
    -
    -if(!file_exists(THEMES_TEMP_FOLDER)) {
    -    mkdir(THEMES_TEMP_FOLDER);
    -}
    -
    -function siteUrl($pathInSite) {
    -    $indexPos = strpos($pathInSite, "index.php");
    -    if(!$indexPos) {
    -        return $pathInSite;
    -    } else {
    -        return substr($pathInSite, 0, $indexPos);
    -    }
    -}
    -
    -function createShaarliHashFromOPMLL($opmlFile) {
    -    $result = array();
    -    $opml = file_get_contents($opmlFile);
    -    $opmlXml = simplexml_load_string($opml);
    -    $outlineElements = $opmlXml->xpath("body/outline");
    -    foreach($outlineElements as $site) {
    -        $siteUrl = siteUrl((string) $site['htmlUrl']);
    -        $result[$siteUrl]=((string) $site['text']);
    -    }
    -    return $result;
    -}
    -
    -function getSiteFolder($url) {
    -    $domain = parse_url($url,  PHP_URL_HOST);
    -    return THEMES_TEMP_FOLDER."/".str_replace(".", "_", $domain);
    -}
    -
    -function get_http_response_code($theURL) {
    -     $headers = get_headers($theURL);
    -     return substr($headers[0], 9, 3);
    -}
    -
    -/**
    - * This makes the code PHP-5 only (particularly the call to "get_headers")
    - */
    -function copyUserStyleFrom($url, $name, $knownStyles) {
    -    $userStyle = $url."inc/user.css";
    -    if(in_array($url, $knownStyles)) {
    -        // TODO add log message
    -    } else {
    -        $statusCode = get_http_response_code($userStyle);
    -        if(intval($statusCode)<300) {
    -            $styleSheet = file_get_contents($userStyle);
    -            $siteFolder = getSiteFolder($url);
    -            if(!file_exists($siteFolder)) {
    -                mkdir($siteFolder);
    -            }
    -            if(!file_exists($siteFolder.'/user.css')) {
    -                // Copy stylesheet
    -                file_put_contents($siteFolder.'/user.css', $styleSheet);
    -            }
    -            if(!file_exists($siteFolder.'/README.md')) {
    -                // Then write a readme.md file
    -                file_put_contents($siteFolder.'/README.md', 
    -                    "User style from ".$name."\n"
    -                    ."============================="
    -                    ."\n\n"
    -                    ."This stylesheet was downloaded from ".$userStyle." on ".date(DATE_RFC822)
    -                    );
    -            }
    -            if(!file_exists($siteFolder.'/config.ini')) {
    -                // Write a config file containing useful informations
    -                file_put_contents($siteFolder.'/config.ini', 
    -                    "site_url=".$url."\n"
    -                    ."site_name=".$name."\n"
    -                    );
    -            }
    -            if(!file_exists($siteFolder.'/home.png')) {
    -                // And finally copy generated thumbnail
    -                $homeThumb = $siteFolder.'/home.png';
    -                file_put_contents($siteFolder.'/home.png', file_get_contents(getThumbnailUrl($url)));
    -            }
    -            echo 'Theme have been downloaded from  <a href="'.$url.'">'.$url.'</a> into '.$siteFolder
    -                .'. It looks like <img src="'.$homeThumb.'"><br/>';
    -        }
    -    }
    -}
    -
    -function getThumbnailUrl($url) {
    -    return 'http://api.webthumbnail.org/?url='.$url;
    -}
    -
    -function copyUserStylesFrom($urlToNames, $knownStyles) {
    -    foreach($urlToNames as $url => $name) {
    -        copyUserStyleFrom($url, $name, $knownStyles);
    -    }
    -}
    -
    -/**
    - * Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
    - * @param directory the directory we want to list files of
    - * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
    - * are not listed here
    - */
    -function getDirectoryList ($directory)  {
    -    $realPath = realpath($directory);
    -    // create an array to hold directory list
    -    $results = array();
    -    // create a handler for the directory
    -    $handler = opendir($directory);
    -    // open directory and walk through the filenames
    -    while ($file = readdir($handler)) {
    -        // if file isn't this directory or its parent, add it to the results
    -        if ($file != "." && $file != "..") {
    -            $results[] = realpath($realPath . "/" . $file);
    -        }
    -    }
    -    // tidy up: close the handler
    -    closedir($handler);
    -    // done!
    -    return $results;
    -}
    -
    -/**
    - * Start in themes folder and look in all subfolders for config.ini files. 
    - * These config.ini files allow us not to download styles again and again
    - */
    -function findKnownStyles() {
    -    $result = array();
    -    $subFolders = getDirectoryList("themes");
    -    foreach($subFolders as $folder) {
    -        $configFile = $folder."/config.ini";
    -        if(file_exists($configFile)) {
    -            $iniParameters = parse_ini_file($configFile);
    -            array_push($result, $iniParameters['site_url']);
    -        }
    -    }
    -    return $result;
    -}
    -
    -$knownStyles = findKnownStyles();
    -copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
    -
    -<!--- ? ---->
    - - diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html new file mode 100644 index 0000000..b21a54b --- /dev/null +++ b/doc/Download-CSS-styles-from-an-OPML-list.html @@ -0,0 +1,229 @@ + + + + + + + Shaarli - Download CSS styles from an OPML list + + + + + + + +

    Download CSS styles from an OPML list

    +

    Download CSS styles for shaarlis listed in an opml file

    +

    Example php script:

    +
    <!---- ?php -->
    +<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
    +<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
    +
    +/**
    + * Source: https://github.com/Riduidel
    + * Download css styles for shaarlis listed in an opml file
    + */
    +define("SHAARLI_RSS_OPML", "https://www.ecirtam.net/shaarlirss/custom/people.opml");
    +
    +define("THEMES_TEMP_FOLDER", "new_themes");
    +
    +if(!file_exists(THEMES_TEMP_FOLDER)) {
    +    mkdir(THEMES_TEMP_FOLDER);
    +}
    +
    +function siteUrl($pathInSite) {
    +    $indexPos = strpos($pathInSite, "index.php");
    +    if(!$indexPos) {
    +        return $pathInSite;
    +    } else {
    +        return substr($pathInSite, 0, $indexPos);
    +    }
    +}
    +
    +function createShaarliHashFromOPMLL($opmlFile) {
    +    $result = array();
    +    $opml = file_get_contents($opmlFile);
    +    $opmlXml = simplexml_load_string($opml);
    +    $outlineElements = $opmlXml->xpath("body/outline");
    +    foreach($outlineElements as $site) {
    +        $siteUrl = siteUrl((string) $site['htmlUrl']);[](.html)
    +        $result[$siteUrl]=((string) $site['text']);[](.html)
    +    }
    +    return $result;
    +}
    +
    +function getSiteFolder($url) {
    +    $domain = parse_url($url,  PHP_URL_HOST);
    +    return THEMES_TEMP_FOLDER."/".str_replace(".", "_", $domain);
    +}
    +
    +function get_http_response_code($theURL) {
    +     $headers = get_headers($theURL);
    +     return substr($headers[0], 9, 3);[](.html)
    +}
    +
    +/**
    + * This makes the code PHP-5 only (particularly the call to "get_headers")
    + */
    +function copyUserStyleFrom($url, $name, $knownStyles) {
    +    $userStyle = $url."inc/user.css";
    +    if(in_array($url, $knownStyles)) {
    +        // TODO add log message
    +    } else {
    +        $statusCode = get_http_response_code($userStyle);
    +        if(intval($statusCode)<300) {
    +            $styleSheet = file_get_contents($userStyle);
    +            $siteFolder = getSiteFolder($url);
    +            if(!file_exists($siteFolder)) {
    +                mkdir($siteFolder);
    +            }
    +            if(!file_exists($siteFolder.'/user.css')) {
    +                // Copy stylesheet
    +                file_put_contents($siteFolder.'/user.css', $styleSheet);
    +            }
    +            if(!file_exists($siteFolder.'/README.md')) {
    +                // Then write a readme.md file
    +                file_put_contents($siteFolder.'/README.md', 
    +                    "User style from ".$name."\n"
    +                    ."============================="
    +                    ."\n\n"
    +                    ."This stylesheet was downloaded from ".$userStyle." on ".date(DATE_RFC822)
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/config.ini')) {
    +                // Write a config file containing useful informations
    +                file_put_contents($siteFolder.'/config.ini', 
    +                    "site_url=".$url."\n"
    +                    ."site_name=".$name."\n"
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/home.png')) {
    +                // And finally copy generated thumbnail
    +                $homeThumb = $siteFolder.'/home.png';
    +                file_put_contents($siteFolder.'/home.png', file_get_contents(getThumbnailUrl($url)));
    +            }
    +            echo 'Theme have been downloaded from  <a href="'.$url.'">'.$url.'</a> into '.$siteFolder
    +                .'. It looks like <img src="'.$homeThumb.'"><br/>';
    +        }
    +    }
    +}
    +
    +function getThumbnailUrl($url) {
    +    return 'http://api.webthumbnail.org/?url='.$url;
    +}
    +
    +function copyUserStylesFrom($urlToNames, $knownStyles) {
    +    foreach($urlToNames as $url => $name) {
    +        copyUserStyleFrom($url, $name, $knownStyles);
    +    }
    +}
    +
    +/**
    + * Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
    + * @param directory the directory we want to list files of
    + * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
    + * are not listed here
    + */
    +function getDirectoryList ($directory)  {
    +    $realPath = realpath($directory);
    +    // create an array to hold directory list
    +    $results = array();
    +    // create a handler for the directory
    +    $handler = opendir($directory);
    +    // open directory and walk through the filenames
    +    while ($file = readdir($handler)) {
    +        // if file isn't this directory or its parent, add it to the results
    +        if ($file != "." && $file != "..") {
    +            $results[ = realpath($realPath . "/" . $file);](-=-realpath($realPath-.-"/"-.-$file);.html)
    +        }
    +    }
    +    // tidy up: close the handler
    +    closedir($handler);
    +    // done!
    +    return $results;
    +}
    +
    +/**
    + * Start in themes folder and look in all subfolders for config.ini files. 
    + * These config.ini files allow us not to download styles again and again
    + */
    +function findKnownStyles() {
    +    $result = array();
    +    $subFolders = getDirectoryList("themes");
    +    foreach($subFolders as $folder) {
    +        $configFile = $folder."/config.ini";
    +        if(file_exists($configFile)) {
    +            $iniParameters = parse_ini_file($configFile);
    +            array_push($result, $iniParameters['site_url']);[](.html)
    +        }
    +    }
    +    return $result;
    +}
    +
    +$knownStyles = findKnownStyles();
    +copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
    +
    +<!--- ? ---->
    + + diff --git a/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.md b/doc/Download-CSS-styles-from-an-OPML-list.md similarity index 92% rename from doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.md rename to doc/Download-CSS-styles-from-an-OPML-list.md index 8645b10..eb66f95 100644 --- a/doc/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file.md +++ b/doc/Download-CSS-styles-from-an-OPML-list.md @@ -1,7 +1,8 @@ +#Download CSS styles from an OPML list ###Download CSS styles for shaarlis listed in an opml file Example php script: -``` +```php @@ -33,8 +34,8 @@ function createShaarliHashFromOPMLL($opmlFile) { $opmlXml = simplexml_load_string($opml); $outlineElements = $opmlXml->xpath("body/outline"); foreach($outlineElements as $site) { - $siteUrl = siteUrl((string) $site['htmlUrl']); - $result[$siteUrl]=((string) $site['text']); + $siteUrl = siteUrl((string) $site['htmlUrl']);[](.html) + $result[$siteUrl]=((string) $site['text']);[](.html) } return $result; } @@ -46,7 +47,7 @@ function getSiteFolder($url) { function get_http_response_code($theURL) { $headers = get_headers($theURL); - return substr($headers[0], 9, 3); + return substr($headers[0], 9, 3);[](.html) } /** @@ -121,7 +122,7 @@ function getDirectoryList ($directory) { while ($file = readdir($handler)) { // if file isn't this directory or its parent, add it to the results if ($file != "." && $file != "..") { - $results[] = realpath($realPath . "/" . $file); + $results[ = realpath($realPath . "/" . $file);](-=-realpath($realPath-.-"/"-.-$file);.html) } } // tidy up: close the handler @@ -141,7 +142,7 @@ function findKnownStyles() { $configFile = $folder."/config.ini"; if(file_exists($configFile)) { $iniParameters = parse_ini_file($configFile); - array_push($result, $iniParameters['site_url']); + array_push($result, $iniParameters['site_url']);[](.html) } } return $result; diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html index 7df9d25..44352d3 100644 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -4,7 +4,7 @@ - + Shaarli - Example patch add new via field for links '; @@ -980,7 +992,7 @@ function showATOM() else $linksToDisplay = $LINKSDB; $nblinksToDisplay = 50; // Number of links to display. - if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. + if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links.[](.html) - { + { - $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ; + $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ;[](.html) } @@ -1006,11 +1018,16 @@ function showATOM() // Add permalink in description $descriptionlink = htmlspecialchars('(Permalink)'); -+ if(isset($link['via']) && !empty($link['via'])){ -+ $via = htmlspecialchars('
    Origine => '.getJustDomain($link['via']).''); ++ if(isset($link['via']) && !empty($link['via'])){[](.html) ++ $via = htmlspecialchars('
    Origine => '.getJustDomain($link['via']).'');[](.html) + } else { + $via = ''; + } // If user wants permalinks first, put the final link in description if ($usepermalinks===true) $descriptionlink = htmlspecialchars('(Link)'); - if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink; + if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;[](.html) -- $entries.=''.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink."\n"; -+ $entries.=''.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink.$via."\n"; - if ($link['tags']!='') // Adding tags to each ATOM entry (as mentioned in ATOM specification) +- $entries.=''.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink."\n";[](.html) ++ $entries.=''.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink.$via."\n";[](.html) + if ($link['tags']!='') // Adding tags to each ATOM entry (as mentioned in ATOM specification)[](.html) { - foreach(explode(' ',$link['tags']) as $tag) + foreach(explode(' ',$link['tags']) as $tag)[](.html) @@ -1478,7 +1495,7 @@ function renderPage() if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?')) $url = 'http://'.$url; - $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), + $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),[](.html) - 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); -+ 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags), 'via'=>trim($_POST['lf_via'])); - if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. - $LINKSDB[$linkdate] = $link; ++ 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags), 'via'=>trim($_POST['lf_via']));[](.html) + if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title.[](.html) + $LINKSDB[$linkdate] = $link;[](.html) $LINKSDB->savedb(); // Save to disk. @@ -1556,7 +1573,8 @@ function renderPage() - $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet). - $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] - $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL -- $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL -+ $via = (empty($_GET['via']) ? '' : $_GET['via'] ); -+ $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL + $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet).[](.html) + $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that][](.html) + $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL[](.html) +- $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL [](.html) ++ $via = (empty($_GET['via']) ? '' : $_GET['via'] );[](.html) ++ $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL[](.html) if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http') @@ -130,10 +131,10 @@ index 6fae2f8..53f798e 100644 - + // If found, extract encoding. - if (!empty($meta[0])) + if (!empty($meta[0]))[](.html) { @@ -1577,7 +1595,7 @@ function renderPage() - $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8'; + $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8';[](.html) } else { $html_charset = 'utf-8'; } - @@ -151,13 +152,13 @@ index 6fae2f8..53f798e 100644 $PAGE = new pageBuilder; @@ -1842,6 +1860,9 @@ function buildLinkList($PAGE,$LINKSDB) - $taglist = explode(' ',$link['tags']); + $taglist = explode(' ',$link['tags']);[](.html) uasort($taglist, 'strcasecmp'); - $link['taglist']=$taglist; -+ if(!empty($link['via'])){ -+ $link['via']=htmlspecialchars($link['via']); + $link['taglist']=$taglist;[](.html) ++ if(!empty($link['via'])){[](.html) ++ $link['via']=htmlspecialchars($link['via']);[](.html) + } - $linkDisp[$keys[$i]] = $link; + $linkDisp[$keys[$i[ = $link;](-=-$link;.html) $i++; } diff --git a/tpl/editlink.html b/tpl/editlink.html @@ -169,7 +170,7 @@ index 4a2c30c..14d4f9c 100644 Description

    Tags

    + Origine

    - {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"} + {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}[](.html)  
    diff --git a/tpl/linklist.html b/tpl/linklist.html @@ -181,9 +182,9 @@ index ddc38cb..0a8475f 100644
    {if="$value.description"}
    {$value.description}
    {/if} + {if condition="isset($value.via) && !empty($value.via)"}{/if} - {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} + {if="!$GLOBALS['config'['HIDE_TIMESTAMPS'] || isLoggedIn()"}]('HIDE_TIMESTAMPS']-||-isLoggedIn()"}.html) {$value.localdate|htmlspecialchars} - permalink - {else} -- 2.1.1 -``` \ No newline at end of file +``` diff --git a/doc/FAQ.html b/doc/FAQ.html new file mode 100644 index 0000000..0ebd1bc --- /dev/null +++ b/doc/FAQ.html @@ -0,0 +1,97 @@ + + + + + + + Shaarli - FAQ + + + + + + +

    FAQ

    +

    Why did you create Shaarli ?

    +

    I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… their Firefox addon sends to Diigo every single URL you visit (Don't believe me ? Use Tamper Data and open any page).

    +

    Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server.

    +

    Why use Shaarli and not Delicious/Diigo ?

    +

    With Shaarli:

    +
      +
    • The data is yours: It's hosted on your server.
    • +
    • Never fear of having your data locked-in.
    • +
    • Never fear to have your data sold to third party.
    • +
    • Your private links are not hosted on a third party server.
    • +
    • You are not tracked by browser addons (like Diigo does)
    • +
    • You can change the look and feel of the pages if you want.
    • +
    • You can change the behaviour of the program.
    • +
    • It's magnitude faster than most bookmarking services.
    • +
    +

    What does Shaarli mean?

    +

    Shaarli is for shaaring your links.

    +

    My Shaarli is broken!

    +

    First of all, ensure that both the web server and Shaarli are correctly configured, and that your installation is supported.

    +

    If everything looks right but the issue(s) remain(s), please:

    +
      +
    • take a look at the troubleshooting section
    • +
    • come chat with us on Gitter, we'll be happy to help ;-)
    • +
    • browse active issues and Pull Requests +
        +
      • if you find one that is related to the issue, feel free to comment and provide additional details (host/Shaarli setup)
      • +
      • else, open a new issue, and provide information about the problem: +
          +
        • what happens? - display glitches, invalid data, security flaws...
        • +
        • what is your configuration? - OS, server version, activated extensions, web browser...
        • +
        • is it reproducible?
        • +
      • +
    • +
    +

    Why not use a real database? Files are slow!

    +

    Does browsing this page feel slow? Try browsing older pages, too.

    +

    It's not slow at all, is it? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why?

    +

    The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time.

    + + diff --git a/doc/FAQ.md b/doc/FAQ.md new file mode 100644 index 0000000..4c69763 --- /dev/null +++ b/doc/FAQ.md @@ -0,0 +1,44 @@ +#FAQ +### Why did you create Shaarli ? + +I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… **their Firefox addon sends to Diigo every single URL you visit** (Don't believe me ? Use [Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/tamper-data/) and open any page).[](.html) + +Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server. + +### Why use Shaarli and not Delicious/Diigo ? + +With Shaarli: + +* The data is yours: It's hosted on your server. +* Never fear of having your data locked-in. +* Never fear to have your data sold to third party. +* Your private links are not hosted on a third party server. +* You are not tracked by browser addons (like Diigo does) +* You can change the look and feel of the pages if you want. +* You can change the behaviour of the program. +* It's magnitude faster than most bookmarking services. + +### What does Shaarli mean? + +Shaarli is for shaaring your links. + +### My Shaarli is broken! +First of all, ensure that both the [web server](Server-configuration) and [Shaarli](Shaarli-configuration) are correctly configured, and that your installation is [supported](Server-requirements).[](.html) + +If everything looks right but the issue(s) remain(s), please: +- take a look at the [troubleshooting](Troubleshooting) section[](.html) +- come [chat with us](https://gitter.im/shaarli/Shaarli) on Gitter, we'll be happy to help ;-)[](.html) +- browse active [issues](https://github.com/shaarli/Shaarli/issues) and [Pull Requests](https://github.com/shaarli/Shaarli/pulls)[](.html) + - if you find one that is related to the issue, feel free to comment and provide additional details (host/Shaarli setup) + - else, [open a new issue](https://github.com/shaarli/Shaarli/issues/new), and provide information about the problem:[](.html) + - _what happens?_ - display glitches, invalid data, security flaws... + - _what is your configuration?_ - OS, server version, activated extensions, web browser... + - _is it reproducible?_ + +### Why not use a real database? Files are slow! + +Does browsing [this page](http://sebsauvage.net/links/) feel slow? Try browsing older pages, too.[](.html) + +It's not slow at all, is it? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why? + +The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time. diff --git a/doc/Firefox-share.html b/doc/Firefox-share.html new file mode 100644 index 0000000..198afe2 --- /dev/null +++ b/doc/Firefox-share.html @@ -0,0 +1,72 @@ + + + + + + + Shaarli - Firefox share + + + + + + +

    Firefox share

    +

    Add Shaarli as a sharing service to Firefox

    +
      +
    • Open your Shaarli and Login
    • +
    • Click the Tools button in the top bar
    • +
    • Click the ✚Add to Firefox social button and accept the activation.
    • +
    + +
      +
    • Add the sharing service as described above
    • +
    • When you are visiting a webpage you would like to share with Shaarli, click the Firefox Share button images/firefoxshare.png
    • +
    • You can edit your link before and after saving, just like the bookmarklet above.
    • +
    +

    |  | Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections. |
    |------|-------------------------------------------------------------------------------|

    + + diff --git a/doc/Firefox-share.md b/doc/Firefox-share.md new file mode 100644 index 0000000..58adc58 --- /dev/null +++ b/doc/Firefox-share.md @@ -0,0 +1,16 @@ +#Firefox share +### Add Shaarli as a sharing service to Firefox + + * Open your Shaarli and `Login` + * Click the `Tools` button in the top bar + * Click the `✚Add to Firefox social` button and accept the activation. + + +### Sharing links using Firefox share + + * Add the sharing service as described above + * When you are visiting a webpage you would like to share with Shaarli, click the Firefox _Share_ button [images/firefoxshare.png](images/firefoxshare.png.html) + * You can edit your link before and after saving, just like the bookmarklet above. + +|  | Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections. | +|------|-------------------------------------------------------------------------------| diff --git a/doc/GnuPG-signature.html b/doc/GnuPG-signature.html new file mode 100644 index 0000000..c9e0455 --- /dev/null +++ b/doc/GnuPG-signature.html @@ -0,0 +1,199 @@ + + + + + + + Shaarli - GnuPG signature + + + + + + + +

    GnuPG signature

    +

    Introduction

    +

    PGP and GPG

    +

    Gnu Privacy Guard (GnuPG) is an Open Source implementation of the Pretty Good [](.html)
    Privacy
    (OpenPGP) specification. Its main purposes are digital authentication,
    signature and encryption.

    +

    It is often used by the FLOSS community to verify:

    + +

    Trust

    +

    To quote Phil Pennock (the author of the SKS key server - http://sks.spodhuis.org/):

    +
    +

    You MUST understand that presence of data in the keyserver (pools) in no way connotes trust. Anyone can generate a key, with any name or email address, and upload it. All security and trust comes from evaluating security at the “object level”, via PGP Web-Of-Trust signatures. This keyserver makes it possible to retrieve keys, looking them up via various indices, but the collection of keys in this public pool is KNOWN to contain malicious and fraudulent keys. It is the common expectation of server operators that users understand this and use software which, like all known common OpenPGP implementations, evaluates trust accordingly. This expectation is so common that it is not normally explicitly stated.

    +
    +

    Trust can be gained by having your key signed by other people (and signing their key back, too :) ), for instance during key signing parties, see:

    + +

    Generate a GPG key

    +

    See Generating a GPG key for Git tagging.

    +

    gpg - provide identity information

    +
    $ gpg --gen-key
    +
    +gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.
    +This is free software: you are free to change and redistribute it.
    +There is NO WARRANTY, to the extent permitted by law.
    +
    +Note: Use "gpg2 --full-gen-key" for a full featured key generation dialog.
    +
    +GnuPG needs to construct a user ID to identify your key.
    +
    +Real name: Marvin the Paranoid Android
    +Email address: marvin@h2g2.net
    +You selected this USER-ID:
    +    "Marvin the Paranoid Android <marvin@h2g2.net>"
    +
    +Change (N)ame, (E)mail, or (O)kay/(Q)uit? o
    +We need to generate a lot of random bytes. It is a good idea to perform
    +some other action (type on the keyboard, move the mouse, utilize the
    +disks) during the prime generation; this gives the random number
    +generator a better chance to gain enough entropy.
    +

    gpg - entropy interlude

    +

    At this point, you will:

    +
      +
    • be prompted for a secure password to protect your key (the input method will depend on your Desktop Environment and configuration)
    • +
    • be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step may take some time
    • +
    +

    gpg - key creation confirmation

    +
    gpg: key A9D53A3E marked as ultimately trusted
    +public and secret key created and signed.
    +
    +gpg: checking the trustdb
    +gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
    +gpg: depth: 0  valid:   2  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 2u
    +pub   rsa2048/A9D53A3E 2015-07-31
    +      Key fingerprint = AF2A 5381 E54B 2FD2 14C4  A9A3 0E35 ACA4 A9D5 3A3E
    +uid       [ultimate] Marvin the Paranoid Android <marvin@h2g2.net>[](.html)
    +sub   rsa2048/8C0EACF1 2015-07-31
    +

    gpg - submit your public key to a PGP server (Optional)

    +
    $ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
    +gpg: sending key A9D53A3E to hkp server pgp.mit.edu
    +

    Create and push a GPG-signed tag

    +

    See Git - Maintaining a project - Tagging your [](.html)
    releases
    .

    +

    Prerequisites

    +

    This guide assumes that you have:

    +
      +
    • a GPG key matching your GitHub authentication credentials +
        +
      • i.e., the email address identified by the GPG key is the same as the one in your ~/.gitconfig
      • +
    • +
    • a GitHub fork of Shaarli
    • +
    • a local clone of your Shaarli fork, with the following remotes: +
        +
      • origin pointing to your GitHub fork
      • +
      • upstream pointing to the main Shaarli repository
      • +
    • +
    • maintainer permissions on the main Shaarli repository (to push the signed tag)
    • +
    +

    Bump Shaarli's version

    +
    $ cd /path/to/shaarli
    +
    +# create a new branch
    +$ git fetch upstream
    +$ git checkout upstream/master -b v0.5.0
    +
    +# bump the version number
    +$ vim index.php shaarli_version.php
    +
    +# commit the changes
    +$ git add index.php shaarli_version.php
    +$ git commit -s -m "Bump version to v0.5.0"
    +
    +# push the commit on your GitHub fork
    +$ git push origin v0.5.0
    +

    Create and merge a Pull Request

    +

    This one is pretty straightforward ;-)

    +

    Create and push a signed tag

    +
    # update your local copy
    +$ git checkout master
    +$ git fetch upstream
    +$ git pull upstream master
    +
    +# create a signed tag
    +$ git tag -s -m "Release v0.5.0" v0.5.0
    +
    +# push it to "upstream"
    +$ git push --tags upstream
    +

    Verify a signed tag

    +

    v0.5.0 is the first GPG-signed tag pushed on the Community Shaarli.

    +

    Let's have a look at its signature!

    +
    $ cd /path/to/shaarli
    +$ git fetch upstream
    +
    +# get the SHA1 reference of the tag
    +$ git show-ref tags/v0.5.0
    +f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
    +
    +# verify the tag signature information
    +$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
    +gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
    +gpg: Good signature from "VirtualTam <virtualtam@flibidi.net>" [ultimate][](.html)
    + + diff --git a/doc/GnuPG-signature.md b/doc/GnuPG-signature.md new file mode 100644 index 0000000..e8dbdb1 --- /dev/null +++ b/doc/GnuPG-signature.md @@ -0,0 +1,141 @@ +#GnuPG signature +## Introduction +### PGP and GPG +[Gnu Privacy Guard](https://gnupg.org/) (GnuPG) is an Open Source implementation of the [Pretty Good [](.html) +Privacy](https://en.wikipedia.org/wiki/Pretty_Good_Privacy#OpenPGP) (OpenPGP) specification. Its main purposes are digital authentication, +signature and encryption. + +It is often used by the [FLOSS](https://en.wikipedia.org/wiki/Free_and_open-source_software) community to verify:[](.html) +- Linux package signatures: Debian [SecureApt](https://wiki.debian.org/SecureApt), ArchLinux [Master [](.html) +Keys](https://www.archlinux.org/master-keys/) +- [SCM](https://en.wikipedia.org/wiki/Revision_control) releases & maintainer identity[](.html) + +### Trust +To quote Phil Pennock (the author of the [SKS](https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Home) key server - http://sks.spodhuis.org/):[](.html) + +> You MUST understand that presence of data in the keyserver (pools) in no way connotes trust. Anyone can generate a key, with any name or email address, and upload it. All security and trust comes from evaluating security at the “object level”, via PGP Web-Of-Trust signatures. This keyserver makes it possible to retrieve keys, looking them up via various indices, but the collection of keys in this public pool is KNOWN to contain malicious and fraudulent keys. It is the common expectation of server operators that users understand this and use software which, like all known common OpenPGP implementations, evaluates trust accordingly. This expectation is so common that it is not normally explicitly stated. + +Trust can be gained by having your key signed by other people (and signing their key back, too :) ), for instance during [key signing parties](https://en.wikipedia.org/wiki/Key_signing_party), see:[](.html) +- [The Keysigning party HOWTO](http://www.cryptnet.net/fdp/crypto/keysigning_party/en/keysigning_party.html)[](.html) +- [Web of trust](https://en.wikipedia.org/wiki/Web_of_trust)[](.html) + +## Generate a GPG key +See [Generating a GPG key for Git tagging](http://stackoverflow.com/a/16725717).[](.html) + +### gpg - provide identity information +```bash +$ gpg --gen-key + +gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc. +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +Note: Use "gpg2 --full-gen-key" for a full featured key generation dialog. + +GnuPG needs to construct a user ID to identify your key. + +Real name: Marvin the Paranoid Android +Email address: marvin@h2g2.net +You selected this USER-ID: + "Marvin the Paranoid Android " + +Change (N)ame, (E)mail, or (O)kay/(Q)uit? o +We need to generate a lot of random bytes. It is a good idea to perform +some other action (type on the keyboard, move the mouse, utilize the +disks) during the prime generation; this gives the random number +generator a better chance to gain enough entropy. +``` + +### gpg - entropy interlude +At this point, you will: +- be prompted for a secure password to protect your key (the input method will depend on your Desktop Environment and configuration) +- be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step _may take some time_ + +### gpg - key creation confirmation +```bash +gpg: key A9D53A3E marked as ultimately trusted +public and secret key created and signed. + +gpg: checking the trustdb +gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model +gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u +pub rsa2048/A9D53A3E 2015-07-31 + Key fingerprint = AF2A 5381 E54B 2FD2 14C4 A9A3 0E35 ACA4 A9D5 3A3E +uid [ultimate] Marvin the Paranoid Android [](.html) +sub rsa2048/8C0EACF1 2015-07-31 +``` + +### gpg - submit your public key to a PGP server (Optional) +``` bash +$ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E +gpg: sending key A9D53A3E to hkp server pgp.mit.edu +``` + +## Create and push a GPG-signed tag +See [Git - Maintaining a project - Tagging your [](.html) +releases](http://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#Tagging-Your-Releases). + +### Prerequisites +This guide assumes that you have: +- a GPG key matching your GitHub authentication credentials + - i.e., the email address identified by the GPG key is the same as the one in your `~/.gitconfig` +- a GitHub fork of Shaarli +- a local clone of your Shaarli fork, with the following remotes: + - `origin` pointing to your GitHub fork + - `upstream` pointing to the main Shaarli repository +- maintainer permissions on the main Shaarli repository (to push the signed tag) + +### Bump Shaarli's version +```bash +$ cd /path/to/shaarli + +# create a new branch +$ git fetch upstream +$ git checkout upstream/master -b v0.5.0 + +# bump the version number +$ vim index.php shaarli_version.php + +# commit the changes +$ git add index.php shaarli_version.php +$ git commit -s -m "Bump version to v0.5.0" + +# push the commit on your GitHub fork +$ git push origin v0.5.0 +``` + +### Create and merge a Pull Request +This one is pretty straightforward ;-) + +### Create and push a signed tag +```bash +# update your local copy +$ git checkout master +$ git fetch upstream +$ git pull upstream master + +# create a signed tag +$ git tag -s -m "Release v0.5.0" v0.5.0 + +# push it to "upstream" +$ git push --tags upstream +``` + +### Verify a signed tag +[`v0.5.0`](https://github.com/shaarli/Shaarli/releases/tag/v0.5.0) is the first GPG-signed tag pushed on the Community Shaarli.[](.html) + +Let's have a look at its signature! + +```bash +$ cd /path/to/shaarli +$ git fetch upstream + +# get the SHA1 reference of the tag +$ git show-ref tags/v0.5.0 +f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0 + +# verify the tag signature information +$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1 +gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F +gpg: Good signature from "VirtualTam " [ultimate][](.html) +``` diff --git a/doc/Home.html b/doc/Home.html index 2cb54c8..37d62e8 100644 --- a/doc/Home.html +++ b/doc/Home.html @@ -4,7 +4,7 @@ - + Shaarli - Home - - - - - - - - -
    -

    Basic Usage

    -

    Add the sharing button (bookmarklet) to your browser

    -
      -
    • Open your Shaarli and Login
    • -
    • Click the Tools button in the top bar
    • -
    • Drag the ✚Shaare link button, and drop it to your browser's bookmarks bar.
    • -
    -

    This bookmarklet button in compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar.

    -

    -

    Add Shaarli as a sharing service to Firefox

    -
      -
    • Open your Shaarli and Login
    • -
    • Click the Tools button in the top bar
    • -
    • Click the ✚Add to Firefox social button and accept the activation.
    • -
    - -
      -
    • When you are visiting a webpage you would like to share with Shaarli, click the bookmarklet you just added.
    • -
    • A window opens.
    • -
    • You can freely edit title, description, tags... to find it later using the text search or tag filtering.
    • -
    • You will be able to edit this link later using the edit button.
    • -
    • You can also check the “Private” box so that the link is saved but only visible to you.
    • -
    • Click Save.Voila! Your link is now shared.
    • -
    - -
      -
    • Add the sharing service as described above
    • -
    • When you are visiting a webpage you would like to share with Shaarli, click the Firefox Share button [[images/firefoxshare.png]]
    • -
    • You can edit your link before and after saving, just like the bookmarklet above.
    • -
    -

    Other usage examples

    -

    Shaarli can be used:

    -
      -
    • to share, comment and save interesting links and news
    • -
    • to bookmark useful/frequent personal links (as private links) and share them between computers
    • -
    • as a minimal blog/microblog/writing platform (no character limit)
    • -
    • as a read-it-later list (for example items tagged readlater)
    • -
    • to draft and save articles/ideas
    • -
    • to keep code snippets
    • -
    • to keep notes and documentation
    • -
    • as a shared clipboard between machines
    • -
    • as a todo list
    • -
    • to store playlists (e.g. with the music or video tags)
    • -
    • to keep extracts/comments from webpages that may disappear
    • -
    • to keep track of ongoing discussions (for example items tagged discussion)
    • -
    • to feed RSS aggregators (planets) with specific tags
    • -
    • to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...)
    • -
    -

    Using Shaarli as a blog, notepad, pastebin...

    -
      -
    • Go to your Shaarli setup and log in
    • -
    • Click the Add Link button
    • -
    • To share text only, do not enter any URL in the corresponding input field and click Add Link
    • -
    • Pick a title and enter your article, or note, in the description field; add a few tags; optionally check Private then click Save
    • -
    • Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink.
    • -
    -

    RSS Feeds or Picture Wall for a specific search/tag

    -

    It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag. For example, if you want to subscribe only to links tagged photography:

    -
      -
    • Go to the desired Shaarli instance.
    • -
    • Search for the photography tag in the Filter by tag box. Links tagged photography are displayed.
    • -
    • Click on the RSS Feed button.
    • -
    • You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag.
    • -
    • The same method also works for a full-text search (Search box) and for the Picture Wall (want to only see pictures about nature?)
    • -
    • You can also build the URL manually: https://my.shaarli.domain/?do=rss&searchtags=nature, https://my.shaarli.domain/links/?do=picwall&searchterm=poney
    • -
    -

    -

    Configuration

    -

    Main data/options.php file

    -

    To change the configuration, create the file data/options.php, example:

    -
        <?php
    -    $GLOBALS['config']['LINKS_PER_PAGE'] = 30;
    -    $GLOBALS['config']['HIDE_TIMESTAMPS'] = true;
    -    $GLOBALS['config']['ENABLE_THUMBNAILS'] = false;  
    -    ?>
    -

    Do not edit config options in index.php! Your changes would be lost when you upgrade. The following parameters are available (parameters (default value)):

    -
      -
    • DATADIR ('data') : This is the name of the subdirectory where Shaarli stores is data file. You can change it for better security.
    • -
    • CONFIG_FILE ($GLOBALS['config']['DATADIR'].'/config.php') : Name of file which is used to store login/password.
    • -
    • DATASTORE ($GLOBALS['config']['DATADIR'].'/datastore.php') : Name of file which contains the link database.
    • -
    • LINKS_PER_PAGE (20) : Default number of links per page displayed.
    • -
    • IPBANS_FILENAME ($GLOBALS['config']['DATADIR'].'/ipbans.php') : Name of file which records login attempts and IP bans.
    • -
    • BAN_AFTER (4) : An IP address will be banned after this many failed login attempts.
    • -
    • BAN_DURATION (1800) : Duration of ban (in seconds). (1800 seconds = 30 minutes)
    • -
    • OPEN_SHAARLI (false) : If you set this option to true, anyone will be able to add/modify/delete/import/exports links without having to login.
    • -
    • HIDE_TIMESTAMPS (false) : If you set this option to true, the date/time of each link will not be displayed (including in RSS Feed).#related-software
    • -
    • ENABLE_THUMBNAILS (true) : Enable/disable thumbnails.
    • -
    • RAINTPL_TMP (tmp/) : Raintpl cache directory (keep the trailing slash!)
    • -
    • RAINTPL_TPL (tpl/) : Raintpl template directory (keep the trailing slash!). Edit this option if you want to change the rendering template (page structure) used by Shaarli. See Changing template
    • -
    • CACHEDIR ('cache') : Directory where the thumbnails are stored.
    • -
    • ENABLE_LOCALCACHE (true) : If you have a limited quota on your webspace, you can set this option to false: Shaarli will not generate thumbnails which need to be cached locally (vimeo, flickr, etc.). Thumbnails will still be visible for the services which do not use the local cache (youtube.com, imgur.com, dailymotion.com, imageshack.us)
    • -
    • UPDATECHECK_FILENAME ($GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt') : name of the file used to store available shaarli version.
    • -
    • UPDATECHECK_INTERVAL (86400) : Delay between new Shaarli version check. 86400 seconds = 24 hours. Note that if you do not login for a week, Shaarli will not check for new version for a week.
    • -
    • ENABLE_UPDATECHECK: Determines whether Shaarli check for new releases at https://github.com/shaarli/Shaarli
    • -
    • SHOW_ATOM (false) : Show an ATOM Feed button next to the Subscribe (RSS) button. ATOM feeds are available at the address ?do=atom regardless of this option.
    • -
    • ARCHIVE_ORG (false) : For each link, display a link to an archived version on archive.org
    • -
    • ENABLE_RSS_PERMALINKS (true): choose whether the RSS item title link points directly to the link, or to the entry on Shaarli (permalink). true is the original Shaarli bahevior (point directly to the link)
    • -
    • HIDE_PUBLIC_LINKS (false): setting this to true hides all links, even public ones, for non-logged in users.
    • -
    -

    Changing theme

    -
      -
    • Shaarli's apparence can be modified by editing CSS rules in inc/user.css. This file allows to override rules defined in the main inc/shaarli.css (only add changed rules), or define a whole new theme.
    • -
    • Do not edit inc/shaarli.css! Your changes would be overriden when updating Shaarli.
    • -
    • Some themes are available at https://github.com/shaarli/shaarli-themes.
    • -
    -

    See also:

    - -

    Changing template

    -

    | WARNING | This feature is currently being worked on and will be improved in the next releases. Experimental. |
    |---------|---------|

    -
      -
    • Find the template you'd like to install. See the list of available templates (TODO). Find it's git clone URL or download the zip archive for the template.
    • -
    • In your Shaarli tpl/ directory, run git clone https://url/of/my-template/ or unpack the zip archive. There should now be a my-template/ directory under the tpl/ dir, containing directly all the template files.
    • -
    • Edit data/options.php to have Shaarli use this template. Eg.
    • -
    -

    $GLOBALS['config']['RAINTPL_TPL'] = 'tpl/my-template/' ;

    -

    You can find a list of compatible templates in Related Software

    -

    Backup

    -

    You have two ways of backing up your database:

    -
      -
    • Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.
    • -
    • Example command: rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    • -
    • Export your links as HTML (Menu Tools > Export). Restore by using the Import feature.
    • -
    • This can be done using the shaarchiver tool. Example command: ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    • -
    -

    Troubleshooting

    -

    I forgot my password !

    -

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    -

    I'm locked out - Login bruteforce protection

    -

    Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

    -

    To remove the current IP bans, delete the file data/ipbans.php

    -

    List of all login attempts

    -

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
    Search for failed in this file to look for unauthorized login attempts.

    -

    Exporting from Diigo

    -

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

    -

    Importing from SemanticScuttle

    -

    To correctly import the tags from a SemanticScuttle HTML export, edit the HTML file before importing and replace all occurences of tags= (lowercase) to TAGS= (uppercase).

    -

    Importing from Mister Wong

    -

    See this issue for import tweaks.

    -

    Hosting problems

    -
      -
    • On free.fr : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a sessions directory at the root of your webspace. Change the file extension to .php5 or create a .htaccess file in the directory where Shaarli is located containing:
    • -
    -
    php 1
    -SetEnv PHP_VER 5
    -
      -
    • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
    • -
    • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
    • -
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    • -
    -
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    -// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    -//if (strpos($status,'200 OK')) $title=html_extract_title($data);
    -
      -
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • -
    • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
    • -
    -

    Dates are not properly formatted

    -

    Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

    -

    Problems on CentOS servers

    -

    On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

    -

    My session expires ! I can't stay logged in

    -

    This can be caused by several things:

    -
      -
    • Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a session directory on the root of your website.) You may need to create the session directory of set it up.
    • -
    • Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the sessions subdirectory and add ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');. Make sure this directory is not browsable !)
    • -
    • If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses).
    • -
    • Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those.
    • -
    • You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time.
    • -
    • If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions.
    • -
    -

    Sessions do not seem to work correctly on your server

    -

    Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

    -

    pubsubhubbub support

    -

    Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config']['PUBSUBHUB_URL'] in your config.php

    -

    Notes

    -

    Various hacks

    - - -
      -
    • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
    • -
    • Remove type="hidden" from this line
    • -
    • A new date/time field becomes available in the edit/new link dialog. You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
    • -
    -

    Related software

    -

    Unofficial but relatedd work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork. TODO contact repos owners to see if they'd like to standardize their work for the community fork.

    -

    Server apps

    -
      -
    • shaarchiver - Archive your Shaarli bookmarks and their content
    • -
    • shaarli-river - An aggregator for shaarlis with many features
    • -
    • Shaarlo - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: shaarli.fr)
    • -
    • Shaarlimages - An image-oriented aggregator for Shaarlis
    • -
    • mknexen/shaarli-api - A REST API for Shaarli
    • -
    -

    Android apps

    - -

    Themes & templates

    - -

    Integrate Shaarli with other platforms

    - -

    Alternative to Shaarli

    -
      -
    • Bookie - Another self-hostable, Free bookmark sharing software, written in Python
    • -
    • Unmark - An open source to do app for bookmarks (Homepage)
    • -
    -

    Other links

    - -

    FAQ

    -

    Why did you create Shaarli ?

    -

    I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… their Firefox addon sends to Diigo every single URL you visit (Don't believe me ? Use Tamper Data and open any page).

    -

    Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server.

    -

    Why use Shaarli and not Delicious/Diigo ?

    -

    With Shaarli:

    -
      -
    • The data is yours: It's hosted on your server.
    • -
    • Never fear of having your data locked-in.
    • -
    • Never fear to have your data sold to third party.
    • -
    • Your private links are not hosted on a third party server.
    • -
    • You are not tracked by browser addons (like Diigo does)
    • -
    • You can change the look and feel of the pages if you want.
    • -
    • You can change the behaviour of the program.
    • -
    • It's magnitude faster than most bookmarking services.
    • -
    -

    What does Shaarli mean ?

    -

    Shaarli is for shaaring your links.

    -

    Technical details

    -
      -
    • Application is protected against XSRF (Cross-site requests forgery): Forms which act on data (save,delete…) contain a token generated by the server. Any posted form which does not contain a valid token is rejected. Any token can only be used once. Token are attached to the session and cannot be reused in another session.
    • -
    • Sessions automatically expires after 60 minutes. Sessions are protected against highjacking: The sessionID cannot be used from a different IP address.
    • -
    • An .htaccess file protects the data file.
    • -
    • Link database is an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file. Thus even if the server does not support htaccess files, the data file will still not be readable by URL. The database looks like this:

      -
      <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
      -...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
    • -
    • The password is salted, hashed and stored in the data subdirectory, in a php file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks.
    • -
    • Shaarli relies on HTTP_REFERER for some functions (like redirects and clicking on tags). If you have disabled or masqueraded HTTP_REFERER in your browser, some features of Shaarli may not work
    • -
    • magic_quotes is a horrible option of php which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts.
    • -
    • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg.20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.

    • -
    -

    Directory structure

    -

    Here is the directory structure of Shaarli and the purpose of the different files:

    -
        index.php : Main program.
    -    application/ : Shaarli classes
    -        ├── LinkDB.php
    -        └── Utils.php
    -    tests/ : Shaarli unitary & functional tests
    -        ├── LinkDBTest.php
    -        ├── utils  # utilities to ease testing
    -        │   └── ReferenceLinkDB.php
    -        └── UtilsTest.php
    -    COPYING : Shaarli license.
    -    inc/ : Includes (libraries, CSS…)
    -        ├── awesomplete.*: tags autocompletion library
    -        ├── blazy.*: picture wall lazy image loading library
    -        ├── shaarli.css, reset.css : Shaarli stylesheet.
    -        ├── qr.* : qr code generation library
    -        └──rain.tpl.class.php : RainTPL templating library.
    -    tpl/ : RainTPL templates for Shaarli. They are used to build the pages.
    -    images/ : Images and icons used in Shaarli.
    -    data/ : Directory where data is stored (bookmark database, configuration, logs, banlist…)
    -        ├── config.php : Shaarli configuration (login, password, timezone, title…)
    -        ├── datastore.php : Your link database (compressed).
    -        ├── ipban.php : IP address ban system data.
    -        ├── lastupdatecheck.txt : Update check timestamp file (used to check every 24 hours if a new version of Shaarli is available).
    -        └──log.txt : login/IPban log.
    -    cache/ : Directory containing the thumbnails cache. This directory is automatically created. You can erase it anytime you want.
    -    tmp/ : Temporary directory for compiled RainTPL templates. This directory is automatically created. You can erase it anytime you want.
    -

    Development

    - -

    Why not use a real database ? Files are slow !

    -

    Does browsing this page feel slow ? Try browsing older pages, too.

    -

    It's not slow at all, is it ? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why ?

    -

    The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time.

    -

    Wiki - TODO

    -
      -
    • translate (new page can be called Home.fr, Home.es ... and linked from Home)
    • -
    • add more screenshots
    • -
    • add developer documentation (storage architecture, classes and functions, security handling, ...)
    • -
    +

    Welcome to the Shaarli wiki

    +

    Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli.

    +

    For general info, read the README.

    +

    If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion or read the current issues. If you've found a bug, please create a new issue.

    +

    If you would like a feature added to Shaarli, check the issues labeled feature, enhancement, and plugin.

    +

    Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the doc/ directory of your Shaarli installation.

    diff --git a/doc/Home.md b/doc/Home.md index b5d9c39..a824d98 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -1,449 +1,14 @@ +#Home # Shaarli wiki -Welcome to the [Shaarli](https://github.com/shaarli/Shaarli/) wiki! Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli. For general info, read the [README](https://github.com/shaarli/Shaarli/blob/master/README.md). +Welcome to the [Shaarli](https://github.com/shaarli/Shaarli/) wiki![](.html) -If you have any questions or ideas, please join the [chat](https://gitter.im/shaarli/Shaarli) (also reachable via [IRC](https://irc.gitter.im/)), post them in our [general discussion](https://github.com/shaarli/Shaarli/issues/44) or read the current [issues](https://github.com/shaarli/Shaarli/issues). If you've found a bug, please create a [new issue](https://github.com/shaarli/Shaarli/issues/new). If you would like a feature added to Shaarli, check the issues labeled [`feature`](https://github.com/shaarli/Shaarli/labels/feature), [`enhancement`](https://github.com/shaarli/Shaarli/labels/enhancement), and [`plugin`](https://github.com/shaarli/Shaarli/labels/plugin). +Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli. + +For general info, read the [README](https://github.com/shaarli/Shaarli/blob/master/README.md).[](.html) + +If you have any questions or ideas, please join the [chat](https://gitter.im/shaarli/Shaarli) (also reachable via [IRC](https://irc.gitter.im/)), post them in our [general discussion](https://github.com/shaarli/Shaarli/issues/44) or read the current [issues](https://github.com/shaarli/Shaarli/issues). If you've found a bug, please create a [new issue](https://github.com/shaarli/Shaarli/issues/new).[](.html) + +If you would like a feature added to Shaarli, check the issues labeled [`feature`](https://github.com/shaarli/Shaarli/labels/feature), [`enhancement`](https://github.com/shaarli/Shaarli/labels/enhancement), and [`plugin`](https://github.com/shaarli/Shaarli/labels/plugin).[](.html) _Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the `doc/` directory of your Shaarli installation._ - ----------------------------------------------------------------------------------- - - - -- [Basic Usage](#basic-usage) - - [Add the sharing button (_bookmarklet_) to your browser](#add-the-sharing-button-_bookmarklet_-to-your-browser) - - [Add Shaarli as a sharing service to Firefox](#add-shaarli-as-a-sharing-service-to-firefox) - - [Share links using the _bookmarklet_](#share-links-using-the-_bookmarklet_) - - [Sharing links using Firefox share](#sharing-links-using-firefox-share) -- [Other usage examples](#other-usage-examples) - - [Using Shaarli as a blog, notepad, pastebin...](#using-shaarli-as-a-blog-notepad-pastebin) - - [RSS Feeds or Picture Wall for a specific search/tag](#rss-feeds-or-picture-wall-for-a-specific-searchtag) -- [Configuration](#configuration) - - [Main data/options.php file](#main-dataoptionsphp-file) - - [Changing theme](#changing-theme) - - [Changing template](#changing-template) -- [Backup](#backup) -- [Troubleshooting](#troubleshooting) - - [I forgot my password !](#i-forgot-my-password-) - - [I'm locked out - Login bruteforce protection](#im-locked-out---login-bruteforce-protection) - - [List of all login attempts](#list-of-all-login-attempts) - - [Exporting from Diigo](#exporting-from-diigo) - - [Importing from SemanticScuttle](#importing-from-semanticscuttle) - - [Importing from Mister Wong](#importing-from-mister-wong) - - [Hosting problems](#hosting-problems) - - [Dates are not properly formatted](#dates-are-not-properly-formatted) - - [Problems on CentOS servers](#problems-on-centos-servers) - - [My session expires ! I can't stay logged in](#my-session-expires--i-cant-stay-logged-in) - - [`Sessions do not seem to work correctly on your server`](#sessions-do-not-seem-to-work-correctly-on-your-server) - - [pubsubhubbub support](#pubsubhubbub-support) -- [Notes](#notes) - - [Various hacks](#various-hacks) - - [Changing timestamp for a link](#changing-timestamp-for-a-link) -- [Related software](#related-software) - - [Server apps](#server-apps) - - [Android apps](#android-apps) - - [Themes & templates](#themes--templates) - - [Integrate Shaarli with other platforms](#integrate-shaarli-with-other-platforms) - - [Alternative to Shaarli](#alternative-to-shaarli) -- [Other links](#other-links) -- [FAQ](#faq) - - [Why did you create Shaarli ?](#why-did-you-create-shaarli-) - - [Why use Shaarli and not Delicious/Diigo ?](#why-use-shaarli-and-not-deliciousdiigo-) - - [What does Shaarli mean ?](#what-does-shaarli-mean-) -- [Technical details](#technical-details) - - [Directory structure](#directory-structure) - - [Development](#development) - - [Why not use a real database ? Files are slow !](#why-not-use-a-real-database--files-are-slow-) -- [Wiki - TODO](#wiki---todo) - - - - - ------------------------------------------------------------------- - -# Basic Usage - -### Add the sharing button (_bookmarklet_) to your browser - - * Open your Shaarli and `Login` - * Click the `Tools` button in the top bar - * Drag the **`✚Shaare link` button**, and drop it to your browser's bookmarks bar. - -_This bookmarklet button in compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar._ - -![](images/bookmarklet.png) - - -### Add Shaarli as a sharing service to Firefox - - * Open your Shaarli and `Login` - * Click the `Tools` button in the top bar - * Click the `✚Add to Firefox social` button and accept the activation. - - -### Share links using the _bookmarklet_ - - * When you are visiting a webpage you would like to share with Shaarli, click the _bookmarklet_ you just added. - * A window opens. - * You can freely edit title, description, tags... to find it later using the text search or tag filtering. - * You will be able to edit this link later using the ![](https://raw.githubusercontent.com/shaarli/Shaarli/master/images/edit_icon.png) edit button. - * You can also check the “Private” box so that the link is saved but only visible to you. - * Click `Save`.**Voila! Your link is now shared.** - - -### Sharing links using Firefox share - - * Add the sharing service as described above - * When you are visiting a webpage you would like to share with Shaarli, click the Firefox _Share_ button [[images/firefoxshare.png]] - * You can edit your link before and after saving, just like the bookmarklet above. - - -# Other usage examples -Shaarli can be used: - - * to share, comment and save interesting links and news - * to bookmark useful/frequent personal links (as private links) and share them between computers - * as a minimal blog/microblog/writing platform (no character limit) - * as a read-it-later list (for example items tagged `readlater`) - * to draft and save articles/ideas - * to keep code snippets - * to keep notes and documentation - * as a shared clipboard between machines - * as a todo list - * to store playlists (e.g. with the `music` or `video` tags) - * to keep extracts/comments from webpages that may disappear - * to keep track of ongoing discussions (for example items tagged `discussion`) - * [to feed RSS aggregators](http://shaarli.chassegnouf.net/?9Efeiw) (planets) with specific tags - * to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...) - -### Using Shaarli as a blog, notepad, pastebin... - - * Go to your Shaarli setup and log in - * Click the `Add Link` button - * To share text only, do not enter any URL in the corresponding input field and click `Add Link` - * Pick a title and enter your article, or note, in the description field; add a few tags; optionally check `Private` then click `Save` - * Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink. - - -### RSS Feeds or Picture Wall for a specific search/tag -It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to **only display results of a specific search, or for a specific tag**. For example, if you want to subscribe only to links tagged `photography`: - * Go to the desired Shaarli instance. - * Search for the `photography` tag in the _Filter by tag_ box. Links tagged `photography` are displayed. - * Click on the `RSS Feed` button. - * You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag. - * The same method **also works for a full-text search** (_Search_ box) **and for the Picture Wall** (want to only see pictures about `nature`?) - * You can also build the URL manually: `https://my.shaarli.domain/?do=rss&searchtags=nature`, `https://my.shaarli.domain/links/?do=picwall&searchterm=poney` - -![](images/rss-filter-1.png) ![](images/rss-filter-2.png) - -# Configuration - -### Main data/options.php file - -To change the configuration, create the file `data/options.php`, example: -``` - -``` - -**Do not edit config options in index.php! Your changes would be lost when you upgrade.** The following parameters are available (parameters (default value)): - - * `DATADIR ('data')` : This is the name of the subdirectory where Shaarli stores is data file. You can change it for better security. - * `CONFIG_FILE ($GLOBALS['config']['DATADIR'].'/config.php')` : Name of file which is used to store login/password. - * `DATASTORE ($GLOBALS['config']['DATADIR'].'/datastore.php')` : Name of file which contains the link database. - * `LINKS_PER_PAGE (20)` : Default number of links per page displayed. - * `IPBANS_FILENAME ($GLOBALS['config']['DATADIR'].'/ipbans.php')` : Name of file which records login attempts and IP bans. - * `BAN_AFTER (4)` : An IP address will be banned after this many failed login attempts. - * `BAN_DURATION (1800)` : Duration of ban (in seconds). (1800 seconds = 30 minutes) - * `OPEN_SHAARLI (false)` : If you set this option to true, anyone will be able to add/modify/delete/import/exports links without having to login. - * `HIDE_TIMESTAMPS (false)` : If you set this option to true, the date/time of each link will not be displayed (including in RSS Feed).#related-software - * `ENABLE_THUMBNAILS (true)` : Enable/disable thumbnails. - * `RAINTPL_TMP (tmp/)` : Raintpl cache directory (keep the trailing slash!) - * `RAINTPL_TPL (tpl/)` : Raintpl template directory (keep the trailing slash!). Edit this option if you want to change the rendering template (page structure) used by Shaarli. See [Changing template](#changing-template) - * `CACHEDIR ('cache')` : Directory where the thumbnails are stored. - * `ENABLE_LOCALCACHE (true)` : If you have a limited quota on your webspace, you can set this option to false: Shaarli will not generate thumbnails which need to be cached locally (vimeo, flickr, etc.). Thumbnails will still be visible for the services which do not use the local cache (youtube.com, imgur.com, dailymotion.com, imageshack.us) - * `UPDATECHECK_FILENAME ($GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt')` : name of the file used to store available shaarli version. - * `UPDATECHECK_INTERVAL (86400)` : Delay between new Shaarli version check. 86400 seconds = 24 hours. Note that if you do not login for a week, Shaarli will not check for new version for a week. - * `ENABLE_UPDATECHECK`: Determines whether Shaarli check for new releases at https://github.com/shaarli/Shaarli - * `SHOW_ATOM (false)` : Show an `ATOM Feed` button next to the `Subscribe` (RSS) button. ATOM feeds are available at the address `?do=atom` regardless of this option. - * `ARCHIVE_ORG (false)` : For each link, display a link to an archived version on archive.org - * `ENABLE_RSS_PERMALINKS (true)`: choose whether the RSS item title link points directly to the link, or to the entry on Shaarli (permalink). `true` is the original Shaarli bahevior (point directly to the link) - * `HIDE_PUBLIC_LINKS (false)`: setting this to true hides all links, even public ones, for non-logged in users. - - -### Changing theme - * Shaarli's apparence can be modified by editing CSS rules in `inc/user.css`. This file allows to override rules defined in the main `inc/shaarli.css` (only add changed rules), or define a whole new theme. - * Do not edit `inc/shaarli.css`! Your changes would be overriden when updating Shaarli. - * Some themes are available at https://github.com/shaarli/shaarli-themes. - -See also: - * [Download CSS styles for shaarlis listed in an opml file](https://github.com/shaarli/Shaarli/wiki/Download-CSS-styles-for-shaarlis-listed-in-an-opml-file) - -### Changing template - -| WARNING | This feature is currently being worked on and will be improved in the next releases. Experimental. | -|---------|---------| - - * Find the template you'd like to install. See the list of available templates (TODO). Find it's git clone URL or download the zip archive for the template. - * In your Shaarli `tpl/` directory, run `git clone https://url/of/my-template/` or unpack the zip archive. There should now be a `my-template/` directory under the `tpl/` dir, containing directly all the template files. - * Edit `data/options.php` to have Shaarli use this template. Eg. - -`$GLOBALS['config']['RAINTPL_TPL'] = 'tpl/my-template/' ;` - -You can find a list of compatible templates in [Related Software](#related-software) - -# Backup - -You have two ways of backing up your database: -* **Backup the file `data/datastore.php`** (by FTP or SSH). Restore by putting the file back in place. - * Example command: `rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php` -* **Export your links as HTML** (Menu `Tools` > `Export`). Restore by using the `Import` feature. - * This can be done using the [shaarchiver](https://github.com/nodiscc/shaarchiver) tool. Example command: `./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all` - - -# Troubleshooting - -### I forgot my password ! - -Delete the file data/config.php and display the page again. You will be asked for a new login/password. - - - -### I'm locked out - Login bruteforce protection -Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links. - -To remove the current IP bans, delete the file `data/ipbans.php` - -### List of all login attempts - -The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. -Search for `failed` in this file to look for unauthorized login attempts. - - -### Exporting from Diigo - -If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.) - -### Importing from SemanticScuttle - -To correctly import the tags from a [SemanticScuttle](http://semanticscuttle.sourceforge.net/) HTML export, edit the HTML file before importing and replace all occurences of `tags=` (lowercase) to `TAGS=` (uppercase). - -### Importing from Mister Wong -See [this issue](https://github.com/sebsauvage/Shaarli/issues/146) for import tweaks. - - -### Hosting problems - * On **free.fr** : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a `sessions` directory at the root of your webspace. Change the file extension to `.php5` or create a `.htaccess` file in the directory where Shaarli is located containing: - -``` -php 1 -SetEnv PHP_VER 5 -``` - - * If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to `.php5` - * On **1and1** : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP). - * If you have the error `Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx`, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines: - -``` -//list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. -// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) in html -//if (strpos($status,'200 OK')) $title=html_extract_title($data); -``` - - * On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work. - * On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : ``. To fix this, remove this message from `php-include/prepend.php` - -### Dates are not properly formatted -Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( ) - -### Problems on CentOS servers -On **CentOS**/RedHat derivatives, you may need to install the `php-mbstring` package. - - -### My session expires ! I can't stay logged in -This can be caused by several things: - -* Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a `session` directory on the root of your website.) You may need to create the session directory of set it up. -* Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the `sessions` subdirectory and add `ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');`. Make sure this directory is not browsable !) -* If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses). -* Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those. -* You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time. -* If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions. - -### `Sessions do not seem to work correctly on your server` -Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have **no dots** in the hostname (e.g. `localhost` or `http://my-webserver/shaarli/`), some browsers will not store cookies at all (this respects the [HTTP cookie specification](http://curl.haxx.se/rfc/cookie_spec.html)). - - -### pubsubhubbub support - -Download [publisher.php](https://pubsubhubbub.googlecode.com/git/publisher_clients/php/library/publisher.php) at the root of your Shaarli installation and set `$GLOBALS['config']['PUBSUBHUB_URL']` in your `config.php` - -# Notes -### Various hacks - - * [Example patch: add a new "via" field for links](Example-patch---add-new-via-field-for-links) - * [Copy a Shaarli installation over SSH SCP, serve it locally with php cli](Copy-a-Shaarli-installation-over-SSH-SCP,-serve-it-locally-with-php-cli) - * To display the array representing the data saved in datastore.php, use the following snippet -``` -$data = "tZNdb9MwFIb... "; -$out = unserialize(gzinflate(base64_decode($data))); -echo "
    "; // Pretty printing is love, pretty printing is life
    -print_r($out);
    -echo "
    "; -exit; -``` -This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation) - -### Changing timestamp for a link - * Look for `` in `tpl/editlink.tpl` (line 14) - * Remove `type="hidden"` from this line - * A new date/time field becomes available in the edit/new link dialog. You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`. - - -# Related software -Unofficial but relatedd work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork. **TODO** contact repos owners to see if they'd like to standardize their work for the community fork. -### Server apps - * [shaarchiver](https://github.com/nodiscc/shaarchiver) - Archive your Shaarli bookmarks and their content - * [shaarli-river](https://github.com/mknexen/shaarli-river) - An aggregator for shaarlis with many features - * [Shaarlo](https://github.com/DMeloni/shaarlo) - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: [shaarli.fr](http://shaarli.fr/)) - * [Shaarlimages](https://github.com/BoboTiG/shaarlimages) - An image-oriented aggregator for Shaarlis - * [mknexen/shaarli-api](https://github.com/mknexen/shaarli-api) - A REST API for Shaarli - -### Android apps - * [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider - * [Shaarlier for Android](https://github.com/dimtion/Shaarlier) - Android application to simply add links directly into your Shaarli - -### Themes & templates - * [AkibaTech/Shaarli Superhero Theme](https://github.com/AkibaTech/Shaarli---SuperHero-Theme) - A template/theme for Shaarli - * [alexisju/albinomouse-template](https://github.com/alexisju/albinomouse-template) - A full template for Shaarli - * [dhoko/ShaarliTemplate](https://github.com/dhoko/ShaarliTemplate) - A template/theme for Shaarli - * [kalvn/shaarli-blocks](https://github.com/kalvn/shaarli-blocks) - A template/theme for Shaarli - * [kalvn/Shaarli-Material](https://github.com/kalvn/Shaarli-Material) - A theme (template) based on Google's Material Design for Shaarli, the superfast delicious clone. - * [misterair/Limonade](https://github.com/misterair/limonade) - A fork of (legacy) Shaarli with a new template - * [Vinm/Blue-theme-for Shaarli](https://github.com/Vinm/Blue-theme-for-Shaarli) - A template/theme for Shaarli ([unmaintained](https://github.com/Vinm/Blue-theme-for-Shaarli/issues/2), compatibility unknown) - * [vivienhaese/shaarlitheme](https://github.com/vivienhaese/shaarlitheme) - A Shaarli fork meant to be run in an openshift instance - -### Integrate Shaarli with other platforms - * [tt-rss-shaarli](https://github.com/jcsaaddupuy/tt-rss-shaarli) - [TinyTiny RSS](http://tt-rss.org/) plugin that adds support for sharing articles with Shaarli - * [octopress-shaarli](https://github.com/ahmet2mir/octopress-shaarli) - octoprress plugin to retrieve SHaarli links on the sidebara - -### Alternative to Shaarli - * [Bookie](https://github.com/bookieio/bookie) - Another self-hostable, Free bookmark sharing software, written in Python - * [Unmark](https://github.com/plainmade/unmark) - An open source to do app for bookmarks ([Homepage](https://unmark.it/)) - - - -# Other links - * [Liens en vrac de sebsauvage](http://sebsauvage.net/links/) - the original Shaarli - * [A large list of Shaarlis](http://porneia.free.fr/pub/links/ou-est-shaarli.html) - * [A list of working Shaarli aggregators](https://raw.githubusercontent.com/Oros42/find_shaarlis/master/annuaires.json) - * [A list of some known Shaarlis](https://github.com/Oros42/shaarlis_list) - * [Adieu Delicious, Diigo et StumbleUpon. Salut Shaarli ! - sebsauvage.net](http://sebsauvage.net/rhaa/index.php?2011/09/16/09/29/58-adieu-delicious-diigo-et-stumbleupon-salut-shaarli-) (fr) _16/09/2011 - the original post about Shaarli_ - * [Original ideas/fixme/TODO page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:ideas) - * [Original discussion page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion) (fr) - * [Original revisions history](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:history) - * [Shaarli.fr/my](https://www.shaarli.fr/my.php) - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of [DMeloni](https://github.com/DMeloni) - * [Shaarli Communauty](http://shaarferme.etudiant-libre.fr.nf/index.php) - Another unofficial Shaarli hoster (unsupported, old fork), hoster unknown - - - - -# FAQ - -### Why did you create Shaarli ? - -I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… **their Firefox addon sends to Diigo every single URL you visit** (Don't believe me ? Use [Tamper Data](https://addons.mozilla.org/en-US/firefox/addon/tamper-data/) and open any page). - -Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server. - -### Why use Shaarli and not Delicious/Diigo ? - -With Shaarli: - -* The data is yours: It's hosted on your server. -* Never fear of having your data locked-in. -* Never fear to have your data sold to third party. -* Your private links are not hosted on a third party server. -* You are not tracked by browser addons (like Diigo does) -* You can change the look and feel of the pages if you want. -* You can change the behaviour of the program. -* It's magnitude faster than most bookmarking services. - -### What does Shaarli mean ? - -Shaarli is for shaaring your links. - - - -# Technical details - * Application is protected against XSRF (Cross-site requests forgery): Forms which act on data (save,delete…) contain a token generated by the server. Any posted form which does not contain a valid token is rejected. Any token can only be used once. Token are attached to the session and cannot be reused in another session. - * Sessions automatically expires after 60 minutes. Sessions are protected against highjacking: The sessionID cannot be used from a different IP address. - * An .htaccess file protects the data file. - * Link database is an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file. Thus even if the server does not support htaccess files, the data file will still not be readable by URL. The database looks like this: -``` - -``` - -* The password is salted, hashed and stored in the data subdirectory, in a php file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks. -* Shaarli relies on `HTTP_REFERER` for some functions (like redirects and clicking on tags). If you have disabled or masqueraded `HTTP_REFERER` in your browser, some features of Shaarli may not work -* `magic_quotes` is a horrible option of php which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts. -* Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg.20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @. - -### Directory structure - -Here is the directory structure of Shaarli and the purpose of the different files: - -``` - index.php : Main program. - application/ : Shaarli classes - ├── LinkDB.php - └── Utils.php - tests/ : Shaarli unitary & functional tests - ├── LinkDBTest.php - ├── utils # utilities to ease testing - │ └── ReferenceLinkDB.php - └── UtilsTest.php - COPYING : Shaarli license. - inc/ : Includes (libraries, CSS…) - ├── awesomplete.*: tags autocompletion library - ├── blazy.*: picture wall lazy image loading library - ├── shaarli.css, reset.css : Shaarli stylesheet. - ├── qr.* : qr code generation library - └──rain.tpl.class.php : RainTPL templating library. - tpl/ : RainTPL templates for Shaarli. They are used to build the pages. - images/ : Images and icons used in Shaarli. - data/ : Directory where data is stored (bookmark database, configuration, logs, banlist…) - ├── config.php : Shaarli configuration (login, password, timezone, title…) - ├── datastore.php : Your link database (compressed). - ├── ipban.php : IP address ban system data. - ├── lastupdatecheck.txt : Update check timestamp file (used to check every 24 hours if a new version of Shaarli is available). - └──log.txt : login/IPban log. - cache/ : Directory containing the thumbnails cache. This directory is automatically created. You can erase it anytime you want. - tmp/ : Temporary directory for compiled RainTPL templates. This directory is automatically created. You can erase it anytime you want. -``` - -### Development - - * [Contributing to Shaarli](https://github.com/shaarli/Shaarli/tree/master/CONTRIBUTING.md) - * [Running unit tests](Running-unit-tests) - * Patches should try to stick to the [PHP Standard Recommendations](http://www.php-fig.org/psr/) (PSR), especially: - * [PSR-1](http://www.php-fig.org/psr/psr-1/) - Basic Coding Standard - * [PSR-2](http://www.php-fig.org/psr/psr-2/) - Coding Style Guide - -### Why not use a real database ? Files are slow ! - -Does browsing [this page](http://sebsauvage.net/links/) feel slow ? Try browsing older pages, too. - -It's not slow at all, is it ? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why ? - -The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time. - -# Wiki - TODO - * translate (new page can be called Home.fr, Home.es ... and linked from Home) - * add more screenshots - * add developer documentation (storage architecture, classes and functions, security handling, ...) \ No newline at end of file diff --git a/doc/Plugin-System.html b/doc/Plugin-System.html new file mode 100644 index 0000000..6d08d85 --- /dev/null +++ b/doc/Plugin-System.html @@ -0,0 +1,499 @@ + + + + + + + Shaarli - Plugin System + + + + + + + +

    Plugin System

    +
    +

    Note: Plugin current status - in developpement (not merged into master).

    +
    +

    I am a user. Plugin User Guide.

    +

    I am a developper. Developper API.

    +

    I am a template designer. Guide for template designer.

    +

    Plugin User Guide

    +

    Manage plugins

    +

    In config.php, change $GLOBALS'config'['ENABLED_PLUGINS'] array:

    +
    $GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html)
    +

    Full list:

    +
    $GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html)
    +    'qrcode', 'archiveorg', 'readityourself', 'playvideos',
    +    'wallabag', 'markdown', 'addlink_toolbar',
    +);
    +

    List of plugins

    +

    Plugin maintained by the community:

    +
      +
    • Archive.org - add a clickable icon to every link to archive.org.
    • +
    • Addlink in toolbar - add a field to paste new links URL in toolbar.
    • +
    • Markdown - write and display Shaare in Markdown.
    • +
    • Play videos - popup to play all videos displayed in linklist.
    • +
    • QRCode - add a clickable icon generating a QRCode for every link.
    • +
    • ReadItYourself - add a clickable icon for ReadItYourself.
    • +
    • Wallabag - add a clickable icon for Wallabag.
    • +
    +

    Developper API

    +

    What can I do with plugins?

    +

    The plugin system let you:

    +
      +
    • insert content into specific places across templates.
    • +
    • alter data before templates rendering.
    • +
    • alter data before saving new links.
    • +
    +

    How can I create a plugin for Shaarli?

    +

    First, chose a plugin name, such as demo_plugin.

    +

    Under plugin folder, create a folder named with your plugin name. Then create a .php file in that folder.

    +

    You should have the following tree view:

    +
    | index.php
    +| plugins/
    +|---| demo_plugin/
    +|   |---| demo_plugin.php
    +

    Understanding hooks

    +

    A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution.

    +

    These functions need to be named with this pattern:

    +
    hook_<plugin_name>_<hook_name>
    +

    For exemple, if my plugin want to add data to the header, this function is needed:

    +
    hook_demo_plugin_render_header()
    +

    If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header.

    +

    Plugin's data

    +

    Parameters

    +

    Every hook function has a $data parameter. Its content differs for each hooks.

    +

    This parameter needs to be returned every time, otherwise data is lost.

    +
    return $data;
    +

    Filling templates placeholder

    +

    Template placeholders are displayed in template in specific places.

    +

    RainTPL displays every element contained in the placeholder's array. These element can be added by plugins.

    +

    For example, let's add a value in the placeholder top_placeholder which is displayed at the top of my page:

    +
    $data['top_placeholder'[] = 'My content';](]-=-'My-content';.html)
    +# OR
    +array_push($data['top_placeholder'], 'My', 'content');[](.html)
    +
    +return $data;
    +

    Data manipulation

    +

    When a page is displayed, every variable send to the template engine is passed to plugins before that in $data.

    +

    The data contained by this array can be altered before template rendering.

    +

    For exemple, in linklist, it is possible to alter every title:

    +
    // mind the reference if you want $data to be altered
    +foreach ($data['links'] as &$value) {[](.html)
    +    // String reverse every title.
    +    $value['title'] = strrev($value['title']);[](.html)
    +}
    +
    +return $data;
    +

    It's not working!

    +

    Use demo_plugin as a functional example. It covers most of the plugin system features.

    +

    If it's still not working, please open an issue.

    +

    Hooks

    +
    Disable public links + +
    Update:
    Disable public linksHide public links -
    Timezone:'.$timezone_form.'
    Timezone:'.$timezone_form.'
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    HooksDescription
    render_headerAllow plugin to add content in page headers.
    render_includesAllow plugin to include their own CSS files.
    render_footerAllow plugin to add content in page footer and include their own JS files.
    render_linklistIt allows to add content at the begining and end of the page, after every link displayed and to alter link data.
    render_editlinkAllow to add fields in the form, or display elements.
    render_toolsAllow to add content at the end of the page.
    render_picwallAllow to add content at the top and bottom of the page.
    render_tagcloudAllow to add content at the top and bottom of the page.
    render_dailyAllow to add content at the top and bottom of the page, the bottom of each link and to alter data.
    savelinkAllow to alter the link being saved in the datastore.
    +

    render_header

    +

    Triggered on every page.

    +

    Allow plugin to add content in page headers.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • buttons_toolbar: after the list of buttons in the header.
    • +
    +

    buttons_toolbar_example

    +
      +
    • fields_toolbar: after search fields in the header.
    • +
    +
    +

    Note: This will only be called in linklist.

    +
    +

    fields_toolbar_example

    +

    render_includes

    +

    Triggered on every page.

    +

    Allow plugin to include their own CSS files.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • css_files: called after loading default CSS.
    • +
    +
    +

    Note: only add the path of the CSS file. E.g: plugins/demo_plugin/custom_demo.css.

    +
    + +

    Triggered on every page.

    +

    Allow plugin to add content in page footer and include their own JS files.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • text: called after the end of the footer text.
    • +
    +

    text_example

    +
      +
    • js_files: called at the end of the page, to include custom JS scripts.
    • +
    +
    +

    Note: only add the path of the JS file. E.g: plugins/demo_plugin/custom_demo.js.

    +
    + +

    Triggered when linklist is displayed (list of links, permalink, search, tag filtered, etc.).

    +

    It allows to add content at the begining and end of the page, after every link displayed and to alter link data.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • action_plugin: next to the button "private only" at the top and bottom of the page.
    • +
    +

    action_plugin_example

    +
      +
    • link_plugin: for every link, between permalink and link URL.
    • +
    +

    link_plugin_example

    +
      +
    • plugin_start_zone: before displaying the template content.
    • +
    +

    plugin_start_zone_example

    +
      +
    • plugin_end_zone: after displaying the template content.
    • +
    +

    plugin_end_zone_example

    + +

    Triggered when the link edition form is displayed.

    +

    Allow to add fields in the form, or display elements.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • edit_link_plugin: after tags field.
    • +
    +

    edit_link_plugin_example

    +

    render_tools

    +

    Triggered when the "tools" page is displayed.

    +

    Allow to add content at the end of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • tools_plugin: at the end of the page.
    • +
    +

    tools_plugin_example

    +

    render_picwall

    +

    Triggered when picwall is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • plugin_start_zone: before displaying the template content.

    • +
    • plugin_end_zone: after displaying the template content.

    • +
    +

    plugin_start_end_zone_example

    +

    render_tagcloud

    +

    Triggered when tagcloud is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • plugin_start_zone: before displaying the template content.

    • +
    • plugin_end_zone: after displaying the template content.

    • +
    +

    plugin_start_end_zone_example

    +

    render_daily

    +

    Triggered when tagcloud is displayed.

    +

    Allow to add content at the top and bottom of the page, the bottom of each link and to alter data.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • link_plugin: used at bottom of each link.
    • +
    +

    link_plugin_example

    +
      +
    • plugin_start_zone: before displaying the template content.

    • +
    • plugin_end_zone: after displaying the template content.

    • +
    + +

    Triggered when a link is save (new link or edit).

    +

    Allow to alter the link being saved in the datastore.

    +
    Data
    +

    $data is an array containing the link being saved:

    +
      +
    • title
    • +
    • url
    • +
    • description
    • +
    • linkdate
    • +
    • private
    • +
    • tags
    • +
    +

    Guide for template designer

    +

    Placeholder system

    +

    In order to make plugins work with every custom themes, you need to add variable placeholder in your templates.

    +

    It's a RainTPL loop like this:

    +
    {loop="$plugin_variable"}
    +    {$value}
    +{/loop}
    +

    You should enable demo_plugin for testing purpose, since it uses every placeholder available.

    +

    List of placeholders

    +

    page.header.html

    +

    At the end of the menu:

    +
    {loop="$plugins_header.buttons_toolbar"}
    +    {$value}
    +{/loop}
    +

    includes.html

    +

    At the end of the file:

    +
    {loop="$plugins_includes.css_files"}
    +<link type="text/css" rel="stylesheet" href="{$value}#"/>
    +{/loop}
    +

    page.footer.html

    +

    At the end of your footer notes:

    +
    {loop="$plugins_footer.text"}
    +     {$value}
    +{/loop}
    +

    At the end of file:

    +
    {loop="$plugins_footer.js_files"}
    +     <script src="{$value}#"></script>
    +{/loop}
    +

    linklist.html

    +

    After search fields:

    +
    {loop="$plugins_header.fields_toolbar"}
    +     {$value}
    +{/loop}
    +

    Before displaying the link list (after paging):

    +
    {loop="$plugin_start_zone"}
    +     {$value}
    +{/loop}
    +

    For every links (icons):

    +
    {loop="$value.link_plugin"}
    +    <span>{$value}</span>
    +{/loop}
    +

    Before end paging:

    +
    {loop="$plugin_end_zone"}
    +     {$value}
    +{/loop}
    +

    linklist.paging.html

    +

    After the "private only" icon:

    +
    {loop="$action_plugin"}
    +     {$value}
    +{/loop}
    +

    editlink.html

    +

    After tags field:

    +
    {loop="$edit_link_plugin"}
    +     {$value}
    +{/loop}
    +

    tools.html

    +

    After the last tool:

    +
    {loop="$tools_plugin"}
    +     {$value}
    +{/loop}
    +

    picwall.html

    +

    Top:

    +
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    +    {loop="$plugin_start_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    +

    Bottom:

    +
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    +    {loop="$plugin_end_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    +

    tagcloud.html

    +

    Top:

    +
       <div id="plugin_zone_start_tagcloud" class="plugin_zone">
    +        {loop="$plugin_start_zone"}
    +            {$value}
    +        {/loop}
    +    </div>
    +

    Bottom:

    +
        <div id="plugin_zone_end_tagcloud" class="plugin_zone">
    +        {loop="$plugin_end_zone"}
    +            {$value}
    +        {/loop}
    +    </div>
    +

    daily.html

    +

    Top:

    +
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    +     {loop="$plugin_start_zone"}
    +         {$value}
    +     {/loop}
    +</div>
    +

    After every link:

    +
    <div class="dailyEntryFooter">
    +     {loop="$link.link_plugin"}
    +          {$value}
    +     {/loop}
    +</div>
    +

    Bottom:

    +
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    +    {loop="$plugin_end_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    + + diff --git a/doc/Plugin-System.md b/doc/Plugin-System.md new file mode 100644 index 0000000..8cba666 --- /dev/null +++ b/doc/Plugin-System.md @@ -0,0 +1,590 @@ +#Plugin System +> Note: Plugin current status - in developpement (not merged into master). + +[**I am a user.** Plugin User Guide.](#plugin-user-guide)[](.html) + +[**I am a developper.** Developper API.](#developper-api)[](.html) + +[**I am a template designer.** Guide for template designer.](#guide-for-template-designer)[](.html) + +## Plugin User Guide + +### Manage plugins + +In `config.php`, change $GLOBALS['config'['ENABLED_PLUGINS'] array:]('ENABLED_PLUGINS']-array:.html) + +```php +$GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html) +``` + +Full list: + +```php +$GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html) + 'qrcode', 'archiveorg', 'readityourself', 'playvideos', + 'wallabag', 'markdown', 'addlink_toolbar', +); +``` + +### List of plugins + +Plugin maintained by the community: + + * Archive.org - add a clickable icon to every link to archive.org. + * Addlink in toolbar - add a field to paste new links URL in toolbar. + * Markdown - write and display Shaare in Markdown. + * Play videos - popup to play all videos displayed in linklist. + * QRCode - add a clickable icon generating a QRCode for every link. + * ReadItYourself - add a clickable icon for ReadItYourself. + * Wallabag - add a clickable icon for Wallabag. + +## Developper API + +### What can I do with plugins? + +The plugin system let you: + + * insert content into specific places across templates. + * alter data before templates rendering. + * alter data before saving new links. + +### How can I create a plugin for Shaarli? + +First, chose a plugin name, such as `demo_plugin`. + +Under `plugin` folder, create a folder named with your plugin name. Then create a .php file in that folder. + +You should have the following tree view: + +``` +| index.php +| plugins/ +|---| demo_plugin/ +| |---| demo_plugin.php +``` + +### Understanding hooks + +A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution. + +These functions need to be named with this pattern: + +``` +hook__ +``` + +For exemple, if my plugin want to add data to the header, this function is needed: + + hook_demo_plugin_render_header() + +If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header. + +### Plugin's data + +#### Parameters + +Every hook function has a `$data` parameter. Its content differs for each hooks. + +**This parameter needs to be returned every time**, otherwise data is lost. + + return $data; + +#### Filling templates placeholder + +Template placeholders are displayed in template in specific places. + +RainTPL displays every element contained in the placeholder's array. These element can be added by plugins. + +For example, let's add a value in the placeholder `top_placeholder` which is displayed at the top of my page: + +```php +$data['top_placeholder'[] = 'My content';](]-=-'My-content';.html) +# OR +array_push($data['top_placeholder'], 'My', 'content');[](.html) + +return $data; +``` + +#### Data manipulation + +When a page is displayed, every variable send to the template engine is passed to plugins before that in `$data`. + +The data contained by this array can be altered before template rendering. + +For exemple, in linklist, it is possible to alter every title: + +```php +// mind the reference if you want $data to be altered +foreach ($data['links'] as &$value) {[](.html) + // String reverse every title. + $value['title'] = strrev($value['title']);[](.html) +} + +return $data; +``` + +### It's not working! + +Use `demo_plugin` as a functional example. It covers most of the plugin system features. + +If it's still not working, please [open an issue](https://github.com/shaarli/Shaarli/issues/new).[](.html) + +### Hooks + +| Hooks | Description | +| ------------- |:-------------:| +| [render_header](#render_header) | Allow plugin to add content in page headers. |[](.html) +| [render_includes](#render_includes) | Allow plugin to include their own CSS files. |[](.html) +| [render_footer](#render_footer) | Allow plugin to add content in page footer and include their own JS files. | [](.html) +| [render_linklist](#render_linklist) | It allows to add content at the begining and end of the page, after every link displayed and to alter link data. |[](.html) +| [render_editlink](#render_editlink) | Allow to add fields in the form, or display elements. |[](.html) +| [render_tools](#render_tools) | Allow to add content at the end of the page. |[](.html) +| [render_picwall](#render_picwall) | Allow to add content at the top and bottom of the page. |[](.html) +| [render_tagcloud](#render_tagcloud) | Allow to add content at the top and bottom of the page. |[](.html) +| [render_daily](#render_daily) | Allow to add content at the top and bottom of the page, the bottom of each link and to alter data. |[](.html) +| [savelink](#savelink) | Allow to alter the link being saved in the datastore. |[](.html) + + +#### render_header + +Triggered on every page. + +Allow plugin to add content in page headers. + +##### Data + +`$data` is an array containing: + + * `_PAGE_`: current target page (eg: `linklist`, `picwall`, etc.). + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `buttons_toolbar`: after the list of buttons in the header. + +![buttons_toolbar_example](http://i.imgur.com/ssJUOrt.png)[](.html) + + * `fields_toolbar`: after search fields in the header. + +> Note: This will only be called in linklist. + +![fields_toolbar_example](http://i.imgur.com/3GMifI2.png)[](.html) + +#### render_includes + +Triggered on every page. + +Allow plugin to include their own CSS files. + +##### Data + +`$data` is an array containing: + + * `_PAGE_`: current target page (eg: `linklist`, `picwall`, etc.). + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `css_files`: called after loading default CSS. + +> Note: only add the path of the CSS file. E.g: `plugins/demo_plugin/custom_demo.css`. + +#### render_footer + +Triggered on every page. + +Allow plugin to add content in page footer and include their own JS files. + +##### Data + +`$data` is an array containing: + + * `_PAGE_`: current target page (eg: `linklist`, `picwall`, etc.). + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `text`: called after the end of the footer text. + +![text_example](http://i.imgur.com/L5S2YEH.png)[](.html) + + * `js_files`: called at the end of the page, to include custom JS scripts. + +> Note: only add the path of the JS file. E.g: `plugins/demo_plugin/custom_demo.js`. + +#### render_linklist + +Triggered when `linklist` is displayed (list of links, permalink, search, tag filtered, etc.). + +It allows to add content at the begining and end of the page, after every link displayed and to alter link data. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * All templates data, including links. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `action_plugin`: next to the button "private only" at the top and bottom of the page. + +![action_plugin_example](http://i.imgur.com/Q12PWg0.png)[](.html) + + * `link_plugin`: for every link, between permalink and link URL. + +![link_plugin_example](http://i.imgur.com/3oDPhWx.png)[](.html) + + * `plugin_start_zone`: before displaying the template content. + +![plugin_start_zone_example](http://i.imgur.com/OVBkGy3.png)[](.html) + + * `plugin_end_zone`: after displaying the template content. + +![plugin_end_zone_example](http://i.imgur.com/6IoRuop.png)[](.html) + +#### render_editlink + +Triggered when the link edition form is displayed. + +Allow to add fields in the form, or display elements. + +##### Data + +`$data` is an array containing: + + * All templates data. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `edit_link_plugin`: after tags field. + +![edit_link_plugin_example](http://i.imgur.com/5u17Ens.png)[](.html) + +#### render_tools + +Triggered when the "tools" page is displayed. + +Allow to add content at the end of the page. + +##### Data + +`$data` is an array containing: + + * All templates data. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `tools_plugin`: at the end of the page. + +![tools_plugin_example](http://i.imgur.com/Bqhu9oQ.png)[](.html) + +#### render_picwall + +Triggered when picwall is displayed. + +Allow to add content at the top and bottom of the page. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * All templates data. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `plugin_start_zone`: before displaying the template content. + + * `plugin_end_zone`: after displaying the template content. + +![plugin_start_end_zone_example](http://i.imgur.com/tVTQFER.png)[](.html) + +#### render_tagcloud + +Triggered when tagcloud is displayed. + +Allow to add content at the top and bottom of the page. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * All templates data. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `plugin_start_zone`: before displaying the template content. + + * `plugin_end_zone`: after displaying the template content. + +![plugin_start_end_zone_example](http://i.imgur.com/vHmyT3a.png)[](.html) + +#### render_daily + +Triggered when tagcloud is displayed. + +Allow to add content at the top and bottom of the page, the bottom of each link and to alter data. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * All templates data, including links. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `link_plugin`: used at bottom of each link. + +![link_plugin_example](http://i.imgur.com/hzhMfSZ.png)[](.html) + + * `plugin_start_zone`: before displaying the template content. + + * `plugin_end_zone`: after displaying the template content. + +#### savelink + +Triggered when a link is save (new link or edit). + +Allow to alter the link being saved in the datastore. + +##### Data + +`$data` is an array containing the link being saved: + + * title + * url + * description + * linkdate + * private + * tags + +## Guide for template designer + +### Placeholder system + +In order to make plugins work with every custom themes, you need to add variable placeholder in your templates. + +It's a RainTPL loop like this: + + {loop="$plugin_variable"} + {$value} + {/loop} + +You should enable `demo_plugin` for testing purpose, since it uses every placeholder available. + +### List of placeholders + +**page.header.html** + +At the end of the menu: + + {loop="$plugins_header.buttons_toolbar"} + {$value} + {/loop} + +**includes.html** + +At the end of the file: + +```html +{loop="$plugins_includes.css_files"} + +{/loop} +``` + +**page.footer.html** + +At the end of your footer notes: + +```html +{loop="$plugins_footer.text"} + {$value} +{/loop} +``` + +At the end of file: + +```html +{loop="$plugins_footer.js_files"} + +{/loop} +``` + +**linklist.html** + +After search fields: + +```html +{loop="$plugins_header.fields_toolbar"} + {$value} +{/loop} +``` + +Before displaying the link list (after paging): + +```html +{loop="$plugin_start_zone"} + {$value} +{/loop} +``` + +For every links (icons): + +```html +{loop="$value.link_plugin"} + {$value} +{/loop} +``` + +Before end paging: + +```html +{loop="$plugin_end_zone"} + {$value} +{/loop} +``` + +**linklist.paging.html** + +After the "private only" icon: + +```html +{loop="$action_plugin"} + {$value} +{/loop} +``` + +**editlink.html** + +After tags field: + +```html +{loop="$edit_link_plugin"} + {$value} +{/loop} +``` + +**tools.html** + +After the last tool: + +```html +{loop="$tools_plugin"} + {$value} +{/loop} +``` + +**picwall.html** + +Top: + +```html +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    +``` + +Bottom: + +```html +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +``` + +**tagcloud.html** + +Top: + +```html +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    +``` + +Bottom: + +```html +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +``` + +**daily.html** + +Top: + +```html +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    +``` + +After every link: + +```html +
    + {loop="$link.link_plugin"} + {$value} + {/loop} +
    +``` + +Bottom: + +```html +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +``` diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html new file mode 100644 index 0000000..4a9b7a0 --- /dev/null +++ b/doc/RSS-feeds.html @@ -0,0 +1,75 @@ + + + + + + + Shaarli - RSS feeds + + + + + + +

    RSS feeds

    +

    RSS Feeds or Picture Wall for a specific search/tag

    +

    It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag.

    +

    For example, if you want to subscribe only to links tagged photography:

    +
      +
    • Go to the desired Shaarli instance.
    • +
    • Search for the photography tag in the Filter by tag box. Links tagged photography are displayed.
    • +
    • Click on the RSS Feed button.
    • +
    • You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag.
    • +
    • The same method also works for a full-text search (Search box) and for the Picture Wall (want to only see pictures about nature?)
    • +
    • You can also build the URLs manually: +
        +
      • https://my.shaarli.domain/?do=rss&searchtags=nature
      • +
      • https://my.shaarli.domain/links/?do=picwall&searchterm=poney
      • +
    • +
    +

    (images/rss-filter-2.png)

    + + diff --git a/doc/RSS-feeds.md b/doc/RSS-feeds.md new file mode 100644 index 0000000..764b3a4 --- /dev/null +++ b/doc/RSS-feeds.md @@ -0,0 +1,15 @@ +#RSS feeds +### RSS Feeds or Picture Wall for a specific search/tag +It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to **only display results of a specific search, or for a specific tag**. + +For example, if you want to subscribe only to links tagged `photography`: +- Go to the desired Shaarli instance. +- Search for the `photography` tag in the _Filter by tag_ box. Links tagged `photography` are displayed. +- Click on the `RSS Feed` button. +- You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag. +- The same method **also works for a full-text search** (_Search_ box) **and for the Picture Wall** (want to only see pictures about `nature`?) +- You can also build the URLs manually: + - `https://my.shaarli.domain/?do=rss&searchtags=nature` + - `https://my.shaarli.domain/links/?do=picwall&searchterm=poney` + +![(images/rss-filter-1.png) !]((images/rss-filter-1.png)-!.html)(images/rss-filter-2.png) diff --git a/doc/Security.html b/doc/Security.html new file mode 100644 index 0000000..1fbbabd --- /dev/null +++ b/doc/Security.html @@ -0,0 +1,107 @@ + + + + + + + Shaarli - Security + + + + + + + +

    Security

    +

    Client browser

    +
      +
    • Shaarli relies on HTTP_REFERER for some functions (like redirects and clicking on tags). If you have disabled or masqueraded HTTP_REFERER in your browser, some features of Shaarli may not work
    • +
    +

    PHP

    +
      +
    • magic_quotes is an horrible option of PHP which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts.
    • +
    +

    Server and sessions

    +
      +
    • Directories are protected using .htaccess files
    • +
    • Forms are protected against XSRF (Cross-site requests forgery):
    • +
    • Forms which act on data (save,delete…) contain a token generated by the server.
    • +
    • Any posted form which does not contain a valid token is rejected.
    • +
    • Any token can only be used once.
    • +
    • Tokens are attached to the session and cannot be reused in another session.
    • +
    • Sessions automatically expire after 60 minutes.
    • +
    • Sessions are protected against hijacking: the session ID cannot be used from a different IP address.
    • +
    +

    Shaarli datastore and configuration

    +
      +
    • The password is salted, hashed and stored in the data subdirectory, in a PHP file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks.
    • +
    • Links are stored as an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file.
    • +
    • Even if the server does not support .htaccess files, the data file will still not be readable by URL.
    • +
    • The database looks like this:

      +
      <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
      +...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
    • +
    • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg. 20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.

    • +
    + + diff --git a/doc/Security.md b/doc/Security.md new file mode 100644 index 0000000..7947460 --- /dev/null +++ b/doc/Security.md @@ -0,0 +1,28 @@ +#Security +## Client browser +* Shaarli relies on `HTTP_REFERER` for some functions (like redirects and clicking on tags). If you have disabled or masqueraded `HTTP_REFERER` in your browser, some features of Shaarli may not work + +## PHP +* `magic_quotes` is an horrible option of PHP which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with `magic_quotes` on, so you should not be bothered even on crappy hosts. + +## Server and sessions +* Directories are protected using `.htaccess` files +* Forms are protected against XSRF (Cross-site requests forgery): + * Forms which act on data (save,delete…) contain a token generated by the server. + * Any posted form which does not contain a valid token is rejected. + * Any token can only be used once. + * Tokens are attached to the session and cannot be reused in another session. +* Sessions automatically expire after 60 minutes. +* Sessions are protected against hijacking: the session ID cannot be used from a different IP address. + +## Shaarli datastore and configuration +* The password is salted, hashed and stored in the data subdirectory, in a PHP file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks. +* Links are stored as an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a `.php` file. +* Even if the server does not support `.htaccess` files, the data file will still not be readable by URL. +* The database looks like this: +```php + +``` + +* Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg. `20110923_150523`) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only `A-Z a-z 0-9 - _` and `@`. diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html new file mode 100644 index 0000000..de6bf48 --- /dev/null +++ b/doc/Server-configuration.html @@ -0,0 +1,371 @@ + + + + + + + Shaarli - Server configuration + + + + + + + +

    Server configuration

    +

    Example virtual host configurations for popular web servers

    + +

    Prerequisites

    +
      +
    • Shaarli is installed in a directory readable/writeable by the user
    • +
    • the correct read/write permissions have been granted to the web server user and/or group
    • +
    • for HTTPS / SSL:
    • +
    • a key pair (public, private) and a certificate have been generated
    • +
    • the appropriate server SSL extension is installed and active
    • +
    +

    Related guides:

    + +

    Apache

    +

    Minimal

    +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +</VirtualHost>
    +

    Debug - Log all the things!

    +

    This configuration will log both Apache and PHP errors, which may prove useful to identify server configuration errors.

    +

    See:

    + +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +
    +    php_flag  log_errors on
    +    php_flag  display_errors on
    +    php_value error_reporting 2147483647
    +    php_value error_log /var/log/apache2/shaarli-php-error.log
    +</VirtualHost>
    +

    Standard - Keep access and error logs

    +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +

    Paranoid - Redirect HTTP (:80) to HTTPS (:443)

    +

    See Server-side TLS (Mozilla).

    +
    <VirtualHost *:443>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    SSLEngine             on
    +    SSLCertificateFile    /absolute/path/to/the/website/certificate.crt
    +    SSLCertificateKeyFile /absolute/path/to/the/website/key.key
    +
    +    <Directory /absolute/path/to/shaarli/>
    +        AllowOverride All
    +        Options Indexes FollowSymLinks MultiViews
    +        Order allow,deny
    +        allow from all
    +    </Directory>
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +<VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    Redirect 301 / https://shaarli.my-domain.org
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +

    LightHttpd

    +

    Nginx

    +

    Foreword

    +

    Nginx does not natively interpret PHP scripts; to this effect, we will run a FastCGI service, to which Nginx's FastCGI module will proxy all requests to PHP resources.

    +

    Required packages:

    + +

    Official documentation:

    + +

    Community resources:

    + +

    Common setup

    +

    Once Nginx and PHP-FPM are installed, we need to ensure:

    +
      +
    • Nginx and PHP-FPM are running using the same user and group
    • +
    • both these user and group have +
        +
      • read permissions for Shaarli resources
      • +
      • execute permissions for Shaarli directories AND their parent directories
      • +
    • +
    +

    On a production server:

    +
      +
    • user:group will likely be http:http, www:www or www-data:www-data
    • +
    • files will be located under /var/www, /var/http or /usr/share/nginx
    • +
    +

    On a development server:

    +
      +
    • files may be located in a user's home directory
    • +
    • in this case, make sure both Nginx and PHP-FPM are running as the local user/group!
    • +
    +

    For all following examples, a development configuration will be used:

    +
      +
    • user:group = john:users,
    • +
    +

    which corresponds to the following service configuration:

    +
    ; /etc/php/php-fpm.conf
    +user = john
    +group = users
    +
    +[...][](.html)
    +listen.owner = john
    +listen.group = users
    +
    # /etc/nginx/nginx.conf
    +user john users;
    +
    +http {
    +    [...][](.html)
    +}
    +

    Minimal

    +

    WARNING: Use for development only!

    +
    user john users;
    +worker_processes  1;
    +events {
    +    worker_connections  1024;
    +}
    +
    +http {
    +    include            mime.types;
    +    default_type       application/octet-stream;
    +    keepalive_timeout  20;
    +
    +    index index.html index.php;
    +
    +    server {
    +        listen       80;
    +        server_name  localhost;
    +        root         /home/john/web;
    +
    +        access_log  /var/log/nginx/access.log;
    +        error_log   /var/log/nginx/error.log;
    +
    +        location /shaarli/ {
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        location ~ (index)\.php$ {
    +            fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    +            fastcgi_index  index.php;
    +            include        fastcgi.conf;
    +        }
    +    }
    +}
    +

    Modular

    +

    The previous setup is sufficient for development purposes, but has several major caveats:

    +
      +
    • every content that does not match the PHP rule will be sent to client browsers: +
        +
      • dotfiles - in our case, .htaccess
      • +
      • temporary files, e.g. Vim or Emacs files: index.php~
      • +
    • +
    • asset / static resource caching is not optimized
    • +
    • if serving several PHP sites, there will be a lot of duplication: location /shaarli/, location /mysite/, etc.
    • +
    +

    To solve this, we will split Nginx configuration in several parts, that will be included when needed:

    +
    # /etc/nginx/deny.conf
    +location ~ /\. {
    +    # deny access to dotfiles
    +    access_log off;
    +    log_not_found off;
    +    deny all;
    +}
    +
    +location ~ ~$ {
    +    # deny access to temp editor files, e.g. "script.php~"
    +    access_log off;
    +    log_not_found off;
    +    deny all;
    +}
    +
    # /etc/nginx/php.conf
    +location ~ (index)\.php$ {
    +    # proxy PHP requests to PHP-FPM
    +    fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    +    fastcgi_index  index.php;
    +    include        fastcgi.conf;
    +}
    +
    # /etc/nginx/static_assets.conf
    +location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
    +    expires    max;
    +    add_header Pragma public;
    +    add_header Cache-Control "public, must-revalidate, proxy-revalidate";
    +}
    +
    # /etc/nginx/nginx.conf
    +[...][](.html)
    +
    +http {
    +    [...][](.html)
    +
    +    root        /home/john/web;
    +    access_log  /var/log/nginx/access.log;
    +    error_log   /var/log/nginx/error.log;
    +
    +    server {
    +        # virtual host for a first domain
    +        listen       80;
    +        server_name  my.first.domain.org;
    +
    +        location /shaarli/ {
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +
    +    server {
    +        # virtual host for a second domain
    +        listen       80;
    +        server_name  second.domain.com;
    +
    +        location /minigal/ {
    +            access_log  /var/log/nginx/minigal.access.log;
    +            error_log   /var/log/nginx/minigal.error.log;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +}
    +

    Redirect HTTP to HTTPS

    +

    Assuming you have generated a (self-signed) key and certificate, and they are located under /home/john/ssl/localhost.{key,crt}, it is pretty straightforward to set an HTTP (:80) to HTTPS (:443) redirection to force SSL/TLS usage.

    +
    # /etc/nginx/nginx.conf
    +[...][](.html)
    +
    +http {
    +    [...][](.html)
    +
    +    index index.html index.php;
    +
    +    root        /home/john/web;
    +    access_log  /var/log/nginx/access.log;
    +    error_log   /var/log/nginx/error.log;
    +
    +    server {
    +        listen       80;
    +        server_name  localhost;
    +
    +        return 301 https://localhost$request_uri;
    +    }
    +
    +    server {
    +        listen       443 ssl;
    +        server_name  localhost;
    +
    +        ssl_certificate      /home/john/ssl/localhost.crt;
    +        ssl_certificate_key  /home/john/ssl/localhost.key;
    +
    +        location /shaarli/ {
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +}
    + + diff --git a/doc/Server-configuration.md b/doc/Server-configuration.md new file mode 100644 index 0000000..c9ec4e1 --- /dev/null +++ b/doc/Server-configuration.md @@ -0,0 +1,321 @@ +#Server configuration +*Example virtual host configurations for popular web servers* + +- [Apache](#apache)[](.html) +- [LightHttpd](#lighthttpd) (empty)[](.html) +- [Nginx](#nginx)[](.html) + +## Prerequisites +* Shaarli is installed in a directory readable/writeable by the user +* the correct read/write permissions have been granted to the web server _user and/or group_ +* for HTTPS / SSL: + * a key pair (public, private) and a certificate have been generated + * the appropriate server SSL extension is installed and active + +Related guides: +* [How to Create Self-Signed SSL Certificates with OpenSSL](http://www.xenocafe.com/tutorials/linux/centos/openssl/self_signed_certificates/index.php)[](.html) +* [How do I create my own Certificate Authority?](https://workaround.org/certificate-authority)[](.html) + +## Apache +### Minimal +```apache + + ServerName shaarli.my-domain.org + DocumentRoot /absolute/path/to/shaarli/ + +``` +### Debug - Log all the things! +This configuration will log both Apache and PHP errors, which may prove useful to identify server configuration errors. + +See: +* [Apache/PHP - error log per VirtualHost](http://stackoverflow.com/q/176) (StackOverflow)[](.html) +* [PHP: php_value vs php_admin_value and the use of php_flag explained](PHP: php_value vs php_admin_value and the use of php_flag explained)[](.html) + +```apache + + ServerName shaarli.my-domain.org + DocumentRoot /absolute/path/to/shaarli/ + + LogLevel warn + ErrorLog /var/log/apache2/shaarli-error.log + CustomLog /var/log/apache2/shaarli-access.log combined + + php_flag log_errors on + php_flag display_errors on + php_value error_reporting 2147483647 + php_value error_log /var/log/apache2/shaarli-php-error.log + +``` + +### Standard - Keep access and error logs +```apache + + ServerName shaarli.my-domain.org + DocumentRoot /absolute/path/to/shaarli/ + + LogLevel warn + ErrorLog /var/log/apache2/shaarli-error.log + CustomLog /var/log/apache2/shaarli-access.log combined + +``` + +### Paranoid - Redirect HTTP (:80) to HTTPS (:443) +See [Server-side TLS](https://wiki.mozilla.org/Security/Server_Side_TLS#Apache) (Mozilla).[](.html) + +```apache + + ServerName shaarli.my-domain.org + DocumentRoot /absolute/path/to/shaarli/ + + SSLEngine on + SSLCertificateFile /absolute/path/to/the/website/certificate.crt + SSLCertificateKeyFile /absolute/path/to/the/website/key.key + + + AllowOverride All + Options Indexes FollowSymLinks MultiViews + Order allow,deny + allow from all + + + LogLevel warn + ErrorLog /var/log/apache2/shaarli-error.log + CustomLog /var/log/apache2/shaarli-access.log combined + + + ServerName shaarli.my-domain.org + Redirect 301 / https://shaarli.my-domain.org + + LogLevel warn + ErrorLog /var/log/apache2/shaarli-error.log + CustomLog /var/log/apache2/shaarli-access.log combined + +``` + +## LightHttpd + +## Nginx +### Foreword +Nginx does not natively interpret PHP scripts; to this effect, we will run a [FastCGI](https://en.wikipedia.org/wiki/FastCGI) service, to which Nginx's FastCGI module will proxy all requests to PHP resources.[](.html) + +Required packages: +- [nginx](http://nginx.org)[](.html) +- [php-fpm](http://php-fpm.org) - PHP FastCGI Process Manager[](.html) + +Official documentation: +- [Beginner's guide](http://nginx.org/en/docs/beginners_guide.html)[](.html) +- [ngx_http_fastcgi_module](http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html)[](.html) +- [Pitfalls](http://wiki.nginx.org/Pitfalls)[](.html) + +Community resources: +- [Server-side TLS (Nginx)](https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx) (Mozilla)[](.html) +- [PHP configuration examples](http://kbeezie.com/nginx-configuration-examples/) (Karl Blessing)[](.html) + +### Common setup +Once Nginx and PHP-FPM are installed, we need to ensure: +- Nginx and PHP-FPM are running using the _same user and group_ +- both these user and group have + - `read` permissions for Shaarli resources + - `execute` permissions for Shaarli directories _AND_ their parent directories + +On a production server: +- `user:group` will likely be `http:http`, `www:www` or `www-data:www-data` +- files will be located under `/var/www`, `/var/http` or `/usr/share/nginx` + +On a development server: +- files may be located in a user's home directory +- in this case, make sure both Nginx and PHP-FPM are running as the local user/group! + +For all following examples, a development configuration will be used: +- `user:group = john:users`, + +which corresponds to the following service configuration: + +```ini +; /etc/php/php-fpm.conf +user = john +group = users + +[...][](.html) +listen.owner = john +listen.group = users +``` + +```nginx +# /etc/nginx/nginx.conf +user john users; + +http { + [...][](.html) +} +``` + +### Minimal +_WARNING: Use for development only!_ + +```nginx +user john users; +worker_processes 1; +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + keepalive_timeout 20; + + index index.html index.php; + + server { + listen 80; + server_name localhost; + root /home/john/web; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + location /shaarli/ { + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + } + + location ~ (index)\.php$ { + fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_index index.php; + include fastcgi.conf; + } + } +} +``` + +### Modular +The previous setup is sufficient for development purposes, but has several major caveats: +- every content that does not match the PHP rule will be sent to client browsers: + - dotfiles - in our case, `.htaccess` + - temporary files, e.g. Vim or Emacs files: `index.php~` +- asset / static resource caching is not optimized +- if serving several PHP sites, there will be a lot of duplication: `location /shaarli/`, `location /mysite/`, etc. + +To solve this, we will split Nginx configuration in several parts, that will be included when needed: + +```nginx +# /etc/nginx/deny.conf +location ~ /\. { + # deny access to dotfiles + access_log off; + log_not_found off; + deny all; +} + +location ~ ~$ { + # deny access to temp editor files, e.g. "script.php~" + access_log off; + log_not_found off; + deny all; +} +``` + +```nginx +# /etc/nginx/php.conf +location ~ (index)\.php$ { + # proxy PHP requests to PHP-FPM + fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_index index.php; + include fastcgi.conf; +} +``` + +```nginx +# /etc/nginx/static_assets.conf +location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { + expires max; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; +} +``` + +```nginx +# /etc/nginx/nginx.conf +[...][](.html) + +http { + [...][](.html) + + root /home/john/web; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + server { + # virtual host for a first domain + listen 80; + server_name my.first.domain.org; + + location /shaarli/ { + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + } + + include deny.conf; + include static_assets.conf; + include php.conf; + } + + server { + # virtual host for a second domain + listen 80; + server_name second.domain.com; + + location /minigal/ { + access_log /var/log/nginx/minigal.access.log; + error_log /var/log/nginx/minigal.error.log; + } + + include deny.conf; + include static_assets.conf; + include php.conf; + } +} +``` + +### Redirect HTTP to HTTPS +Assuming you have generated a (self-signed) key and certificate, and they are located under `/home/john/ssl/localhost.{key,crt}`, it is pretty straightforward to set an HTTP (:80) to HTTPS (:443) redirection to force SSL/TLS usage. + +```nginx +# /etc/nginx/nginx.conf +[...][](.html) + +http { + [...][](.html) + + index index.html index.php; + + root /home/john/web; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + + server { + listen 80; + server_name localhost; + + return 301 https://localhost$request_uri; + } + + server { + listen 443 ssl; + server_name localhost; + + ssl_certificate /home/john/ssl/localhost.crt; + ssl_certificate_key /home/john/ssl/localhost.key; + + location /shaarli/ { + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + } + + include deny.conf; + include static_assets.conf; + include php.conf; + } +} +``` diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html new file mode 100644 index 0000000..bf5a2e8 --- /dev/null +++ b/doc/Server-requirements.html @@ -0,0 +1,132 @@ + + + + + + + Shaarli - Server requirements + + + + + + +

    Server requirements

    +

    PHP

    +

    Release information

    + +

    Supported versions

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    VersionStatusShaarli compatibility
    5.6Supported:white_check_mark:
    5.5Supported:white_check_mark:
    5.4Supported:white_check_mark:
    5.3EOL: 2014-08-14:white_check_mark:
    +

    See also:

    + +

    PHP 7.0 information:

    + +

    Extensions

    + + + + + + + + + + + + + + + + + + + + +
    ExtensionRequired?Usage
    php-mbstringCentOS, Fedora, RHEL, Windowsmultibyte (Unicode) string support
    php-gd-thumbnail resizing
    + + diff --git a/doc/Server-requirements.md b/doc/Server-requirements.md new file mode 100644 index 0000000..6ccccac --- /dev/null +++ b/doc/Server-requirements.md @@ -0,0 +1,30 @@ +#Server requirements +## PHP +### Release information +- [PHP: Supported versions](http://php.net/supported-versions.php)[](.html) +- [PHP: Unsupported versions](http://php.net/eol.php) _(EOL - End Of Life)_[](.html) +- [PHP 5 Changelog](http://php.net/ChangeLog-5.php)[](.html) +- [PHP: Bugs](https://bugs.php.net/)[](.html) + +### Supported versions +Version | Status | Shaarli compatibility +:---:|:---:|:---: +5.6 | Supported | :white_check_mark: +5.5 | Supported | :white_check_mark: +5.4 | Supported | :white_check_mark: +5.3 | EOL: 2014-08-14 | :white_check_mark: + +See also: +- [Travis configuration](https://github.com/shaarli/Shaarli/blob/master/.travis.yml)[](.html) + +PHP 7.0 information: +- [Beta1 announcement](http://php.net/archive/2015.php#id2015-07-10-4)[](.html) +- [TODOLIST](https://wiki.php.net/todo/php70)[](.html) +- [Recent bugs](https://bugs.php.net/search.php?limit=30&order_by=id&direction=DESC&cmd=display&status=Open&bug_type=All&phpver=7.0)[](.html) +- [Git repository](http://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.0.0)[](.html) + +### Extensions +Extension | Required? | Usage +---|:---:|--- +[`php-mbstring`](http://php.net/manual/en/book.mbstring.php) | CentOS, Fedora, RHEL, Windows | multibyte (Unicode) string support[](.html) +[`php-gd`](http://php.net/manual/en/book.image.php) | - | thumbnail resizing[](.html) diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html new file mode 100644 index 0000000..90c0954 --- /dev/null +++ b/doc/Shaarli-configuration.html @@ -0,0 +1,221 @@ + + + + + + + Shaarli - Shaarli configuration + + + + + + + +

    Shaarli configuration

    +

    Foreword

    +

    Do not edit configuration options in index.php! Your changes would be lost.

    +

    Once your Shaarli instance is installed, the file data/config.php is generated:

    +
      +
    • it contains all settings, and can be edited to customize values
    • +
    • its values override those defined in index.php
    • +
    +

    File and directory permissions

    +

    The server process running Shaarli must have:

    +
      +
    • read access to the following resources: +
        +
      • PHP scripts: index.php, application/*.php
      • +
      • 3rd party PHP and Javascript libraries: inc/*.php, inc\*.js
      • +
      • static assets: +
          +
        • CSS stylesheets: inc\*.css
        • +
        • images\*
        • +
      • +
      • RainTPL templates: tpl\*.html
      • +
    • +
    • read, write and execution access to the following directories: +
        +
      • cache - thumbnail cache
      • +
      • data - link data store, configuration options
      • +
      • pagecache - Atom/RSS feed cache
      • +
      • tmp - RainTPL page cache
      • +
    • +
    +

    On a Linux distribution:

    +
      +
    • the web server user will likely be www or http (for Apache2)
    • +
    • it will be a member of a group of the same name: www:www, http:http
    • +
    • to give it access to Shaarli, either: +
        +
      • unzip Shaarli in the default web server location (usually /var/www/) and set the web server user as the owner
      • +
      • put users in the same group as the web server, and set the appropriate access rights
      • +
    • +
    • if you have a domain / subdomain to serve Shaarli, configure the server accordingly
    • +
    +

    Example data/config.php

    +
    <?php 
    +// User login
    +$GLOBALS['login'] = '<login>';[](.html)
    +
    +// User password hash
    +$GLOBALS['hash'] = '200c452da46c2f889e5e48c49ef044bcacdcb095';[](.html)
    +
    +// Password salt
    +$GLOBALS['salt'] = '13b654102321576033d8473b63a275a1bf94c0f0'; [](.html)
    +
    +// Local timezone
    +$GLOBALS['timezone'] = 'Africa/Abidjan';[](.html)
    +date_default_timezone_set('Africa/Abidjan');
    +
    +// Shaarli title
    +$GLOBALS['title'] = 'My Little Shaarly';[](.html)
    +
    +// Link the Shaarli title points to
    +$GLOBALS['titleLink'] = '?';[](.html)
    +
    +// HTTP referer redirector
    +$GLOBALS['redirector'] = '';[](.html)
    +
    +// Disable session hijacking
    +$GLOBALS['disablesessionprotection'] = false; [](.html)
    +
    +// Whether new links are private by default
    +$GLOBALS['privateLinkByDefault'] = false;[](.html)
    +
    +// Subdirectory where Shaarli stores its data files.
    +// You can change it for better security.
    +$GLOBALS['config'['DATADIR'] = 'data';]('DATADIR']-=-'data';.html)
    +
    +// File used to store settings
    +$GLOBALS['config'['CONFIG_FILE'] = 'data/config.php';]('CONFIG_FILE']-=-'data/config.php';.html)
    +
    +// File containing the link database
    +$GLOBALS['config'['DATASTORE'] = 'data/datastore.php';]('DATASTORE']-=-'data/datastore.php';.html)
    +
    +// Number of links displayed per page
    +$GLOBALS['config'['LINKS_PER_PAGE'] = 20;]('LINKS_PER_PAGE']-=-20;.html)
    +
    +// File recording failed login attempts and IP bans
    +$GLOBALS['config'['IPBANS_FILENAME'] = 'data/ipbans.php';]('IPBANS_FILENAME']-=-'data/ipbans.php';.html)
    +
    +// Failed login attempts before being banned
    +$GLOBALS['config'['BAN_AFTER'] = 4;]('BAN_AFTER']-=-4;.html)
    +
    +// Duration of an IP ban, in seconds (30 minutes)
    +$GLOBALS['config'['BAN_DURATION'] = 1800;]('BAN_DURATION']-=-1800;.html)
    +
    +// If set to true, everyone will be able to add, edit and remove links,
    +// as well as change configuration
    +$GLOBALS['config'['OPEN_SHAARLI'] = false;]('OPEN_SHAARLI']-=-false;.html)
    +
    +// Do not show link timestamps
    +$GLOBALS['config'['HIDE_TIMESTAMPS'] = false;]('HIDE_TIMESTAMPS']-=-false;.html)
    +
    +// Set to false to disable local thumbnail cache, e.g. due to limited disk quotas
    +$GLOBALS['config'['ENABLE_THUMBNAILS'] = true;]('ENABLE_THUMBNAILS']-=-true;.html)
    +
    +// Thumbnail cache directory
    +$GLOBALS['config'['CACHEDIR'] = 'cache';]('CACHEDIR']-=-'cache';.html)
    +
    +// Enable feed (rss, atom, dailyrss) cache
    +$GLOBALS['config'['ENABLE_LOCALCACHE'] = true;]('ENABLE_LOCALCACHE']-=-true;.html)
    +
    +// Feed cache directory
    +$GLOBALS['config'['PAGECACHE'] = 'pagecache';]('PAGECACHE']-=-'pagecache';.html)
    +
    +// RainTPL cache directory (keep the trailing slash!)
    +$GLOBALS['config'['RAINTPL_TMP'] = 'tmp/';]('RAINTPL_TMP']-=-'tmp/';.html)
    +
    +// RainTPL template directory (keep the trailing slash!)
    +$GLOBALS['config'['RAINTPL_TPL'] = 'tpl/';]('RAINTPL_TPL']-=-'tpl/';.html)
    +
    +// Whether Shaarli checks for new releases at https://github.com/shaarli/Shaarli
    +$GLOBALS['config'['ENABLE_UPDATECHECK'] = true;]('ENABLE_UPDATECHECK']-=-true;.html)
    +
    +// File to store the latest Shaarli version
    +$GLOBALS['config'['UPDATECHECK_FILENAME'] = 'data/lastupdatecheck.txt';]('UPDATECHECK_FILENAME']-=-'data/lastupdatecheck.txt';.html)
    +
    +// Delay between version checks (requires to be logged in) (24 hours)
    +$GLOBALS['config'['UPDATECHECK_INTERVAL'] = 86400;]('UPDATECHECK_INTERVAL']-=-86400;.html)
    +
    +// For each link, display a link to an archived version on archive.org
    +$GLOBALS['config'['ARCHIVE_ORG'] = false;]('ARCHIVE_ORG']-=-false;.html)
    +
    +// The RSS item links point:
    +// true   =>  directly to the link
    +// false  =>  to the entry on Shaarli (permalink)
    +$GLOBALS['config'['ENABLE_RSS_PERMALINKS'] = true;]('ENABLE_RSS_PERMALINKS']-=-true;.html)
    +
    +// Hide all links to non-logged users
    +$GLOBALS['config'['HIDE_PUBLIC_LINKS'] = false;]('HIDE_PUBLIC_LINKS']-=-false;.html)
    +
    +$GLOBALS['config'['PUBSUBHUB_URL'] = '';]('PUBSUBHUB_URL']-=-'';.html)
    +
    +// Show an ATOM Feed button next to the Subscribe (RSS) button.
    +// ATOM feeds are available at the address ?do=atom regardless of this option.
    +$GLOBALS['config'['SHOW_ATOM'] = false;]('SHOW_ATOM']-=-false;.html)
    +?>
    + + diff --git a/doc/Shaarli-configuration.md b/doc/Shaarli-configuration.md new file mode 100644 index 0000000..5bf70a6 --- /dev/null +++ b/doc/Shaarli-configuration.md @@ -0,0 +1,137 @@ +#Shaarli configuration +## Foreword + +**Do not edit configuration options in index.php! Your changes would be lost.** + +Once your Shaarli instance is installed, the file `data/config.php` is generated: +* it contains all settings, and can be edited to customize values +* its values override those defined in `index.php` + +## File and directory permissions +The server process running Shaarli must have: +- `read` access to the following resources: + - PHP scripts: `index.php`, `application/*.php` + - 3rd party PHP and Javascript libraries: `inc/*.php`, `inc\*.js` + - static assets: + - CSS stylesheets: `inc\*.css` + - `images\*` + - RainTPL templates: `tpl\*.html` +- `read`, `write` and `execution` access to the following directories: + - `cache` - thumbnail cache + - `data` - link data store, configuration options + - `pagecache` - Atom/RSS feed cache + - `tmp` - RainTPL page cache + +On a Linux distribution: +- the web server user will likely be `www` or `http` (for Apache2) +- it will be a member of a group of the same name: `www:www`, `http:http` +- to give it access to Shaarli, either: + - unzip Shaarli in the default web server location (usually `/var/www/`) and set the web server user as the owner + - put users in the same group as the web server, and set the appropriate access rights +- if you have a domain / subdomain to serve Shaarli, [configure the server](Server-configuration) accordingly[](.html) + +## Example `data/config.php` +```php +';[](.html) + +// User password hash +$GLOBALS['hash'] = '200c452da46c2f889e5e48c49ef044bcacdcb095';[](.html) + +// Password salt +$GLOBALS['salt'] = '13b654102321576033d8473b63a275a1bf94c0f0'; [](.html) + +// Local timezone +$GLOBALS['timezone'] = 'Africa/Abidjan';[](.html) +date_default_timezone_set('Africa/Abidjan'); + +// Shaarli title +$GLOBALS['title'] = 'My Little Shaarly';[](.html) + +// Link the Shaarli title points to +$GLOBALS['titleLink'] = '?';[](.html) + +// HTTP referer redirector +$GLOBALS['redirector'] = '';[](.html) + +// Disable session hijacking +$GLOBALS['disablesessionprotection'] = false; [](.html) + +// Whether new links are private by default +$GLOBALS['privateLinkByDefault'] = false;[](.html) + +// Subdirectory where Shaarli stores its data files. +// You can change it for better security. +$GLOBALS['config'['DATADIR'] = 'data';]('DATADIR']-=-'data';.html) + +// File used to store settings +$GLOBALS['config'['CONFIG_FILE'] = 'data/config.php';]('CONFIG_FILE']-=-'data/config.php';.html) + +// File containing the link database +$GLOBALS['config'['DATASTORE'] = 'data/datastore.php';]('DATASTORE']-=-'data/datastore.php';.html) + +// Number of links displayed per page +$GLOBALS['config'['LINKS_PER_PAGE'] = 20;]('LINKS_PER_PAGE']-=-20;.html) + +// File recording failed login attempts and IP bans +$GLOBALS['config'['IPBANS_FILENAME'] = 'data/ipbans.php';]('IPBANS_FILENAME']-=-'data/ipbans.php';.html) + +// Failed login attempts before being banned +$GLOBALS['config'['BAN_AFTER'] = 4;]('BAN_AFTER']-=-4;.html) + +// Duration of an IP ban, in seconds (30 minutes) +$GLOBALS['config'['BAN_DURATION'] = 1800;]('BAN_DURATION']-=-1800;.html) + +// If set to true, everyone will be able to add, edit and remove links, +// as well as change configuration +$GLOBALS['config'['OPEN_SHAARLI'] = false;]('OPEN_SHAARLI']-=-false;.html) + +// Do not show link timestamps +$GLOBALS['config'['HIDE_TIMESTAMPS'] = false;]('HIDE_TIMESTAMPS']-=-false;.html) + +// Set to false to disable local thumbnail cache, e.g. due to limited disk quotas +$GLOBALS['config'['ENABLE_THUMBNAILS'] = true;]('ENABLE_THUMBNAILS']-=-true;.html) + +// Thumbnail cache directory +$GLOBALS['config'['CACHEDIR'] = 'cache';]('CACHEDIR']-=-'cache';.html) + +// Enable feed (rss, atom, dailyrss) cache +$GLOBALS['config'['ENABLE_LOCALCACHE'] = true;]('ENABLE_LOCALCACHE']-=-true;.html) + +// Feed cache directory +$GLOBALS['config'['PAGECACHE'] = 'pagecache';]('PAGECACHE']-=-'pagecache';.html) + +// RainTPL cache directory (keep the trailing slash!) +$GLOBALS['config'['RAINTPL_TMP'] = 'tmp/';]('RAINTPL_TMP']-=-'tmp/';.html) + +// RainTPL template directory (keep the trailing slash!) +$GLOBALS['config'['RAINTPL_TPL'] = 'tpl/';]('RAINTPL_TPL']-=-'tpl/';.html) + +// Whether Shaarli checks for new releases at https://github.com/shaarli/Shaarli +$GLOBALS['config'['ENABLE_UPDATECHECK'] = true;]('ENABLE_UPDATECHECK']-=-true;.html) + +// File to store the latest Shaarli version +$GLOBALS['config'['UPDATECHECK_FILENAME'] = 'data/lastupdatecheck.txt';]('UPDATECHECK_FILENAME']-=-'data/lastupdatecheck.txt';.html) + +// Delay between version checks (requires to be logged in) (24 hours) +$GLOBALS['config'['UPDATECHECK_INTERVAL'] = 86400;]('UPDATECHECK_INTERVAL']-=-86400;.html) + +// For each link, display a link to an archived version on archive.org +$GLOBALS['config'['ARCHIVE_ORG'] = false;]('ARCHIVE_ORG']-=-false;.html) + +// The RSS item links point: +// true => directly to the link +// false => to the entry on Shaarli (permalink) +$GLOBALS['config'['ENABLE_RSS_PERMALINKS'] = true;]('ENABLE_RSS_PERMALINKS']-=-true;.html) + +// Hide all links to non-logged users +$GLOBALS['config'['HIDE_PUBLIC_LINKS'] = false;]('HIDE_PUBLIC_LINKS']-=-false;.html) + +$GLOBALS['config'['PUBSUBHUB_URL'] = '';]('PUBSUBHUB_URL']-=-'';.html) + +// Show an ATOM Feed button next to the Subscribe (RSS) button. +// ATOM feeds are available at the address ?do=atom regardless of this option. +$GLOBALS['config'['SHOW_ATOM'] = false;]('SHOW_ATOM']-=-false;.html) +?> +``` diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html new file mode 100644 index 0000000..034f2f9 --- /dev/null +++ b/doc/Sharing-button.html @@ -0,0 +1,76 @@ + + + + + + + Shaarli - Sharing button + + + + + + +

    Sharing button

    +

    Add the sharing button (bookmarklet) to your browser

    +
      +
    • Open your Shaarli and Login
    • +
    • Click the Tools button in the top bar
    • +
    • Drag the ✚Shaare link button, and drop it to your browser's bookmarks bar.
    • +
    +

    This bookmarklet button is compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar.

    +

    + +
      +
    • When you are visiting a webpage you would like to share with Shaarli, click the bookmarklet you just added.
    • +
    • A window opens.
    • +
    • You can freely edit title, description, tags... to find it later using the text search or tag filtering.
    • +
    • You will be able to edit this link later using the
    • +
    • You can also check the “Private” box so that the link is saved but only visible to you.
    • +
    • Click Save.Voilà! Your link is now shared.
    • +
    + + diff --git a/doc/Sharing-button.md b/doc/Sharing-button.md new file mode 100644 index 0000000..fe576a7 --- /dev/null +++ b/doc/Sharing-button.md @@ -0,0 +1,19 @@ +#Sharing button +### Add the sharing button (_bookmarklet_) to your browser + + * Open your Shaarli and `Login` + * Click the `Tools` button in the top bar + * Drag the **`✚Shaare link` button**, and drop it to your browser's bookmarks bar. + +_This bookmarklet button is compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar._ + +![(images/bookmarklet.png)]((images/bookmarklet.png).html) + +### Share links using the _bookmarklet_ + + * When you are visiting a webpage you would like to share with Shaarli, click the _bookmarklet_ you just added. + * A window opens. + * You can freely edit title, description, tags... to find it later using the text search or tag filtering. + * You will be able to edit this link later using the ![(https://raw.githubusercontent.com/shaarli/Shaarli/master/images/edit_icon.png) edit button.]((https://raw.githubusercontent.com/shaarli/Shaarli/master/images/edit_icon.png)-edit-button..html) + * You can also check the “Private” box so that the link is saved but only visible to you. + * Click `Save`.**Voilà! Your link is now shared.** diff --git a/doc/Static-analysis.html b/doc/Static-analysis.html new file mode 100644 index 0000000..d4588e4 --- /dev/null +++ b/doc/Static-analysis.html @@ -0,0 +1,72 @@ + + + + + + + Shaarli - Static analysis + + + + + + +

    Static analysis

    +

    WIP

    +

    This topic is currently being discussed here:

    + +

    Usage

    +

    Static analysis tools can be installed with Composer, and used through Shaarli's Makefile.

    +

    For an overview of the available features, see:

    + + + diff --git a/doc/Static-analysis.md b/doc/Static-analysis.md new file mode 100644 index 0000000..5781e05 --- /dev/null +++ b/doc/Static-analysis.md @@ -0,0 +1,12 @@ +#Static analysis +## WIP +This topic is currently being discussed here: +- [Fix coding style (static analysis)](https://github.com/shaarli/Shaarli/issues/95) (#95)[](.html) +- [Continuous Integration tools & features](https://github.com/shaarli/Shaarli/issues/130) (#130)[](.html) + +### Usage +Static analysis tools can be installed with Composer, and used through Shaarli's [Makefile](https://github.com/shaarli/Shaarli/blob/master/Makefile).[](.html) + +For an overview of the available features, see: +- [Code quality: Makefile to run static code checkers](https://github.com/shaarli/Shaarli/pull/124) (#124)[](.html) +- [Run PHPCS against different coding standards](https://github.com/shaarli/Shaarli/pull/276) (#276)[](.html) diff --git a/doc/TODO.html b/doc/TODO.html new file mode 100644 index 0000000..f66d64f --- /dev/null +++ b/doc/TODO.html @@ -0,0 +1,64 @@ + + + + + + + Shaarli - TODO + + + + + + +

    TODO

    +
      +
    • add more screenshots
    • +
    • improve developer documentation: storage architecture, classes and functions, security handling...
    • +
    • add server configuration examples: lighthttpd
    • +
    + + diff --git a/doc/TODO.md b/doc/TODO.md new file mode 100644 index 0000000..fb72fd5 --- /dev/null +++ b/doc/TODO.md @@ -0,0 +1,4 @@ +#TODO +* add more screenshots +* improve developer documentation: storage architecture, classes and functions, security handling... +* add server configuration examples: lighthttpd diff --git a/doc/Theming.html b/doc/Theming.html new file mode 100644 index 0000000..e814dad --- /dev/null +++ b/doc/Theming.html @@ -0,0 +1,138 @@ + + + + + + + Shaarli - Theming + + + + + + + +

    Theming

    +

    User CSS

    +
      +
    • Shaarli's apparence can be modified by editing CSS rules in inc/user.css. This file allows to override rules defined in the main inc/shaarli.css (only add changed rules), or define a whole new theme.
    • +
    • Do not edit inc/shaarli.css! Your changes would be overriden when updating Shaarli.
    • +
    • Some themes are available at https://github.com/shaarli/shaarli-themes.
    • +
    +

    See also:

    + +

    RainTPL template

    +

    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

    +
      +
    • Find the template you'd like to install (see the list of available templates|Theming#community-themes--templates)
    • +
    • Find it's git clone URL or download the zip archive for the template.
    • +
    • In your Shaarli tpl/ directory, run git clone https://url/of/my-template/ or unpack the zip archive. +
        +
      • There should now be a my-template/ directory under the tpl/ dir, containing directly all the template files.
      • +
    • +
    • Edit data/config.php to have Shaarli use this template, e.g.

      +
      $GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html)
    • +
    +

    Community themes & templates

    + +

    Example installation: AlbinoMouse template

    +

    With the following configuration:

    +
      +
    • Apache 2 / PHP 5.6
    • +
    • user sites are enabled, e.g. /home/user/public_html/somedir is served as http://localhost/~user/somedir
    • +
    • http is the name of the Apache user
    • +
    +
    $ cd ~/public_html
    +
    +# clone repositories
    +$ git clone https://github.com/shaarli/Shaarli.git shaarli
    +$ pushd shaarli/tpl
    +$ git clone https://github.com/alexisju/albinomouse-template.git
    +$ popd
    +
    +# set access rights for Apache
    +$ chgrp -R http shaarli
    +$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
    +

    Get config written:

    +
      +
    • go to the freshly installed site
    • +
    • fill the install form
    • +
    • log in to Shaarli
    • +
    +

    Edit Shaarli's configuration|Shaarli configuration:

    +
    # the file should be owned by Apache, thus not writeable => sudo
    +$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
    + + diff --git a/doc/Theming.md b/doc/Theming.md new file mode 100644 index 0000000..9dfdcf9 --- /dev/null +++ b/doc/Theming.md @@ -0,0 +1,63 @@ +#Theming +## User CSS + +- Shaarli's apparence can be modified by editing CSS rules in `inc/user.css`. This file allows to override rules defined in the main `inc/shaarli.css` (only add changed rules), or define a whole new theme. +- Do not edit `inc/shaarli.css`! Your changes would be overriden when updating Shaarli. +- Some themes are available at https://github.com/shaarli/shaarli-themes. + +See also: +- [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) + +## RainTPL template + +_WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental._ + +- Find the template you'd like to install (see the list of [available templates|Theming#community-themes--templates](available-templates|Theming#community-themes--templates.html)) +- Find it's git clone URL or download the zip archive for the template. +- In your Shaarli `tpl/` directory, run `git clone https://url/of/my-template/` or unpack the zip archive. + - There should now be a `my-template/` directory under the `tpl/` dir, containing directly all the template files. +- Edit `data/config.php` to have Shaarli use this template, e.g. +```php +$GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html) +``` + +## Community themes & templates +- [AkibaTech/Shaarli Superhero Theme](https://github.com/AkibaTech/Shaarli---SuperHero-Theme) - A template/theme for Shaarli[](.html) +- [alexisju/albinomouse-template](https://github.com/alexisju/albinomouse-template) - A full template for Shaarli[](.html) +- [dhoko/ShaarliTemplate](https://github.com/dhoko/ShaarliTemplate) - A template/theme for Shaarli[](.html) +- [kalvn/shaarli-blocks](https://github.com/kalvn/shaarli-blocks) - A template/theme for Shaarli[](.html) +- [kalvn/Shaarli-Material](https://github.com/kalvn/Shaarli-Material) - A theme (template) based on Google's Material Design for Shaarli, the superfast delicious clone.[](.html) +- [misterair/Limonade](https://github.com/misterair/limonade) - A fork of (legacy) Shaarli with a new template[](.html) +- [Vinm/Blue-theme-for Shaarli](https://github.com/Vinm/Blue-theme-for-Shaarli) - A template/theme for Shaarli ([unmaintained](https://github.com/Vinm/Blue-theme-for-Shaarli/issues/2), compatibility unknown)[](.html) +- [vivienhaese/shaarlitheme](https://github.com/vivienhaese/shaarlitheme) - A Shaarli fork meant to be run in an openshift instance[](.html) + +### Example installation: AlbinoMouse template +With the following configuration: +- Apache 2 / PHP 5.6 +- user sites are enabled, e.g. `/home/user/public_html/somedir` is served as `http://localhost/~user/somedir` +- `http` is the name of the Apache user + +```bash +$ cd ~/public_html + +# clone repositories +$ git clone https://github.com/shaarli/Shaarli.git shaarli +$ pushd shaarli/tpl +$ git clone https://github.com/alexisju/albinomouse-template.git +$ popd + +# set access rights for Apache +$ chgrp -R http shaarli +$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp +``` + +Get config written: +- go to the freshly installed site +- fill the install form +- log in to Shaarli + +Edit Shaarli's [configuration|Shaarli configuration](configuration|Shaarli-configuration.html): +```bash +# the file should be owned by Apache, thus not writeable => sudo +$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php +``` diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html new file mode 100644 index 0000000..6965a57 --- /dev/null +++ b/doc/Troubleshooting.html @@ -0,0 +1,122 @@ + + + + + + + Shaarli - Troubleshooting + + + + + + + +

    Troubleshooting

    +

    Login

    +

    I forgot my password!

    +

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    +

    I'm locked out - Login bruteforce protection

    +

    Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

    +

    To remove the current IP bans, delete the file data/ipbans.php

    +

    List of all login attempts

    +

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
    Search for failed in this file to look for unauthorized login attempts.

    +

    Hosting problems

    +
      +
    • On free.fr : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a sessions directory at the root of your webspace. Change the file extension to .php5 or create a .htaccess file in the directory where Shaarli is located containing:
    • +
    +
    php 1
    +SetEnv PHP_VER 5
    +
      +
    • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
    • +
    • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
    • +
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    • +
    +
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    +// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    +//if (strpos($status,'200 OK')) $title=html_extract_title($data);
    +
      +
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • +
    • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
    • +
    +

    Dates are not properly formatted

    +

    Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

    +

    Problems on CentOS servers

    +

    On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

    +

    My session expires! I can't stay logged in

    +

    This can be caused by several things:

    +
      +
    • Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a session directory on the root of your website.) You may need to create the session directory of set it up.
    • +
    • Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the sessions subdirectory and add ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');. Make sure this directory is not browsable !)
    • +
    • If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses).
    • +
    • Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those.
    • +
    • You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time.
    • +
    • If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions.
    • +
    +

    Sessions do not seem to work correctly on your server

    +

    Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

    +

    pubsubhubbub support

    +

    Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config'['PUBSUBHUB_URL'] in your config.php]('PUBSUBHUB_URL']-in-your-config.php`.html)

    + + diff --git a/doc/Troubleshooting.md b/doc/Troubleshooting.md new file mode 100644 index 0000000..4adf7c9 --- /dev/null +++ b/doc/Troubleshooting.md @@ -0,0 +1,60 @@ +#Troubleshooting +## Login +### I forgot my password! + +Delete the file `data/config.php` and display the page again. You will be asked for a new login/password. + +### I'm locked out - Login bruteforce protection +Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links. + +To remove the current IP bans, delete the file `data/ipbans.php` + +### List of all login attempts + +The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. +Search for `failed` in this file to look for unauthorized login attempts. + +## Hosting problems + * On **free.fr** : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a `sessions` directory at the root of your webspace. Change the file extension to `.php5` or create a `.htaccess` file in the directory where Shaarli is located containing: + +```ini +php 1 +SetEnv PHP_VER 5 +``` + + * If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to `.php5` + * On **1and1** : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP). + * If you have the error `Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx`, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:[](.html) + +```php +//list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. +// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) in html +//if (strpos($status,'200 OK')) $title=html_extract_title($data); +``` + + * On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work. + * On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : ``. To fix this, remove this message from `php-include/prepend.php` + +### Dates are not properly formatted +Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( ) + +### Problems on CentOS servers +On **CentOS**/RedHat derivatives, you may need to install the `php-mbstring` package. + + +### My session expires! I can't stay logged in +This can be caused by several things: + +* Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a `session` directory on the root of your website.) You may need to create the session directory of set it up. +* Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the `sessions` subdirectory and add `ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');`. Make sure this directory is not browsable !)[](.html) +* If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses). +* Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those. +* You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time. +* If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions. + +## Sessions do not seem to work correctly on your server +Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have **no dots** in the hostname (e.g. `localhost` or `http://my-webserver/shaarli/`), some browsers will not store cookies at all (this respects the [HTTP cookie specification](http://curl.haxx.se/rfc/cookie_spec.html)).[](.html) + +### pubsubhubbub support + +Download [publisher.php](https://pubsubhubbub.googlecode.com/git/publisher_clients/php/library/publisher.php) at the root of your Shaarli installation and set `$GLOBALS['config'['PUBSUBHUB_URL']` in your `config.php`]('PUBSUBHUB_URL']`-in-your-`config.php`.html) diff --git a/doc/Running-unit-tests.html b/doc/Unit-tests.html similarity index 74% rename from doc/Running-unit-tests.html rename to doc/Unit-tests.html index 43423bc..25873cb 100644 --- a/doc/Running-unit-tests.html +++ b/doc/Unit-tests.html @@ -4,7 +4,7 @@ - + Shaarli - Unit tests + + + + +

    Usage

    +

    Main features

    +

    Shaarli is intended:

    +
      +
    • to share, comment and save interesting links and news
    • +
    • to bookmark useful/frequent personal links (as private links) and share them between computers
    • +
    • as a minimal blog/microblog/writing platform (no character limit)
    • +
    • as a read-it-later list (for example items tagged readlater)
    • +
    • to draft and save articles/ideas
    • +
    • to keep code snippets
    • +
    • to keep notes and documentation
    • +
    • as a shared clipboard between machines
    • +
    • as a todo list
    • +
    • to store playlists (e.g. with the music or video tags)
    • +
    • to keep extracts/comments from webpages that may disappear
    • +
    • to keep track of ongoing discussions (for example items tagged discussion)
    • +
    • to feed RSS aggregators (planets) with specific tags
    • +
    • to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...)
    • +
    +

    Using Shaarli as a blog, notepad, pastebin...

    +
      +
    • Go to your Shaarli setup and log in
    • +
    • Click the Add Link button
    • +
    • To share text only, do not enter any URL in the corresponding input field and click Add Link
    • +
    • Pick a title and enter your article, or note, in the description field; add a few tags; optionally check Private then click Save
    • +
    • Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink.
    • +
    + + diff --git a/doc/Usage.md b/doc/Usage.md new file mode 100644 index 0000000..30ad146 --- /dev/null +++ b/doc/Usage.md @@ -0,0 +1,25 @@ +#Usage +### Main features +Shaarli is intended: + * to share, comment and save interesting links and news + * to bookmark useful/frequent personal links (as private links) and share them between computers + * as a minimal blog/microblog/writing platform (no character limit) + * as a read-it-later list (for example items tagged `readlater`) + * to draft and save articles/ideas + * to keep code snippets + * to keep notes and documentation + * as a shared clipboard between machines + * as a todo list + * to store playlists (e.g. with the `music` or `video` tags) + * to keep extracts/comments from webpages that may disappear + * to keep track of ongoing discussions (for example items tagged `discussion`) + * [to feed RSS aggregators](http://shaarli.chassegnouf.net/?9Efeiw) (planets) with specific tags[](.html) + * to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...) + +### Using Shaarli as a blog, notepad, pastebin... + + * Go to your Shaarli setup and log in + * Click the `Add Link` button + * To share text only, do not enter any URL in the corresponding input field and click `Add Link` + * Pick a title and enter your article, or note, in the description field; add a few tags; optionally check `Private` then click `Save` + * Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink. diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html new file mode 100644 index 0000000..c272519 --- /dev/null +++ b/doc/_Sidebar.html @@ -0,0 +1,99 @@ + + + + + + + Shaarli - _Sidebar + + + + + + +

    _Sidebar

    + + + diff --git a/doc/_Sidebar.md b/doc/_Sidebar.md new file mode 100644 index 0000000..64b1649 --- /dev/null +++ b/doc/_Sidebar.md @@ -0,0 +1,29 @@ +#_Sidebar +- [Home](Home.html) +- Installation + - [Server requirements](Server-requirements.html) + - [Server configuration](Server-configuration.html) + - [Shaarli configuration](Shaarli-configuration.html) +- [Usage](Usage.html) + - [Sharing button](Sharing-button.html) (bookmarklet) + - [Firefox share](Firefox-share.html) + - [RSS feeds](RSS-feeds.html) +- How To + - [Backup, restore, import and export](Backup,-restore,-import-and-export.html) + - [Copy an existing installation over SSH and serve it locally](Copy-an-existing-installation-over-SSH-and-serve-it-locally.html) + - [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) +- [Troubleshooting](Troubleshooting.html) +- [Development](Development.html) + - [GnuPG signature](GnuPG-signature.html) + - [Coding guidelines](Coding-guidelines.html) + - [Directory structure](Directory-structure.html) + - [3rd party libraries](3rd-party-libraries.html) + - [Plugin System](Plugin-System.html) + - [Security](Security.html) + - [Static analysis](Static-analysis.html) + - [Theming](Theming.html) + - [Unit tests](Unit-tests.html) +- About + - [FAQ](FAQ.html) + - [Community & Related software](Community-&-Related-software.html) + - [TODO](TODO.html) diff --git a/doc/github-markdown.css b/doc/github-markdown.css index 2b853b3..581350a 100644 --- a/doc/github-markdown.css +++ b/doc/github-markdown.css @@ -1,3 +1,13 @@ +#local-sidebar { + width: 230px; + float: right; + position: relative; + z-index: 4; + background-color: #fff; + border: 1px solid #e2e2e2; + border-radius: 3px; +} + body { font-family: Helvetica, arial, sans-serif; font-size: 14px; diff --git a/doc/sidebar.html b/doc/sidebar.html new file mode 100644 index 0000000..1b58540 --- /dev/null +++ b/doc/sidebar.html @@ -0,0 +1,42 @@ + From afd7b77b4c79a0450a6ef0489ca383c156111173 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 4 Aug 2015 18:31:16 +0200 Subject: [PATCH 159/658] Installation: default to the server's timezone Modifications - attempt to use the server's timezone - if none is set, use UTC - TimeZone: apply coding conventions - variable naming - no closing PHP tag Relates to #274 Signed-off-by: VirtualTam --- application/TimeZone.php | 62 +++++++++++++++++++++------------------- index.php | 10 ++++--- tests/TimeZoneTest.php | 1 - 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/application/TimeZone.php b/application/TimeZone.php index ccbef91..e363d90 100644 --- a/application/TimeZone.php +++ b/application/TimeZone.php @@ -5,30 +5,33 @@ * Note: 'UTC/UTC' is mapped to 'UTC' to form a valid option * * Example: preselect Europe/Paris - * list($htmlform, $js) = templateTZform('Europe/Paris'); + * list($htmlform, $js) = generateTimeZoneForm('Europe/Paris'); * * @param string $preselected_timezone preselected timezone (optional) * * @return an array containing the generated HTML form and Javascript code **/ -function generateTimeZoneForm($preselected_timezone='') +function generateTimeZoneForm($preselectedTimezone='') { - // Select the first available timezone if no preselected value is passed - if ($preselected_timezone == '') { - $l = timezone_identifiers_list(); - $preselected_timezone = $l[0]; + // Select the server timezone + if ($preselectedTimezone == '') { + $preselectedTimezone = date_default_timezone_get(); } - // Try to split the provided timezone - $spos = strpos($preselected_timezone, '/'); - $pcontinent = substr($preselected_timezone, 0, $spos); - $pcity = substr($preselected_timezone, $spos+1); + if ($preselectedTimezone == 'UTC') { + $pcity = $pcontinent = 'UTC'; + } else { + // Try to split the provided timezone + $spos = strpos($preselectedTimezone, '/'); + $pcontinent = substr($preselectedTimezone, 0, $spos); + $pcity = substr($preselectedTimezone, $spos+1); + } // Display config form: - $timezone_form = ''; - $timezone_js = ''; + $timezoneForm = ''; + $timezoneJs = ''; - // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires'... + // The list is in the form 'Europe/Paris', 'America/Argentina/Buenos_Aires' // We split the list in continents/cities. $continents = array(); $cities = array(); @@ -57,33 +60,33 @@ function generateTimeZoneForm($preselected_timezone='') } } - $continents_html = ''; + $continentsHtml = ''; $continents = array_keys($continents); foreach ($continents as $continent) { - $continents_html .= ''; } // Timezone selection form - $timezone_form = 'Continent:'; - $timezone_form .= ''; - $timezone_form .= '    City:'; - $timezone_form .= '
    '; + $timezoneForm = 'Continent:'; + $timezoneForm .= ''; + $timezoneForm .= '    City:'; + $timezoneForm .= '
    '; // Javascript handler - updates the city list when the user selects a continent - $timezone_js = ''; + $timezoneJs = ''; - return array($timezone_form, $timezone_js); + return array($timezoneForm, $timezoneJs); } /** @@ -107,4 +110,3 @@ function isTimeZoneValid($continent, $city) timezone_identifiers_list() ); } -?> diff --git a/index.php b/index.php index 1439ec2..e3b612c 100644 --- a/index.php +++ b/index.php @@ -5,10 +5,12 @@ // Licence: http://www.opensource.org/licenses/zlib-license.php // Requires: PHP 5.3.x // ----------------------------------------------------------------------------------------------- -// NEVER TRUST IN PHP.INI -// Some hosts do not define a default timezone in php.ini, -// so we have to do this for avoid the strict standard error. -date_default_timezone_set('UTC'); + +// Set 'UTC' as the default timezone if it is not defined in php.ini +// See http://php.net/manual/en/datetime.configuration.php#ini.date.timezone +if (date_default_timezone_get() == '') { + date_default_timezone_set('UTC'); +} // ----------------------------------------------------------------------------------------------- // Hardcoded parameter (These parameters can be overwritten by editing the file /data/config.php) diff --git a/tests/TimeZoneTest.php b/tests/TimeZoneTest.php index f3de391..b219030 100644 --- a/tests/TimeZoneTest.php +++ b/tests/TimeZoneTest.php @@ -80,4 +80,3 @@ class TimeZoneTest extends PHPUnit_Framework_TestCase $this->assertFalse(isTimeZoneValid('Middle_Earth', 'Moria')); } } -?> From 5fbabbb9be44711837a1be595c069381574aa84b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 29 Jul 2015 15:32:41 +0200 Subject: [PATCH 160/658] Fixes #299: prevent 404 on '?edit_link' while logged out - add a use case for edit_link in logged out part. - *really* prevent loops on login screen. --- index.php | 43 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) mode change 100644 => 100755 index.php diff --git a/index.php b/index.php old mode 100644 new mode 100755 index e3b612c..2c731e9 --- a/index.php +++ b/index.php @@ -445,12 +445,30 @@ if (isset($_POST['login'])) session_set_cookie_params(0,$cookiedir,$_SERVER['SERVER_NAME']); // 0 means "When browser closes" session_regenerate_id(true); } + // Optional redirect after login: - if (isset($_GET['post'])) { header('Location: ?post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):'')); exit; } - if (isset($_POST['returnurl'])) - { - if (endsWith($_POST['returnurl'],'?do=login')) { header('Location: ?'); exit; } // Prevent loops over login screen. - header('Location: '.$_POST['returnurl']); exit; + if (isset($_GET['post'])) { + $uri = '?post='. urlencode($_GET['post']); + foreach (array('description', 'source', 'title') as $param) { + if (!empty($_GET[$param])) { + $uri .= '&'.$param.'='.urlencode($_GET[$param]); + } + } + header('Location: '. $uri); + exit; + } + + if (isset($_GET['edit_link'])) { + header('Location: ?edit_link='. escape($_GET['edit_link'])); + exit; + } + + if (isset($_POST['returnurl'])) { + // Prevent loops over login screen. + if (strpos($_POST['returnurl'], 'do=login') === false) { + header('Location: '. escape($_POST['returnurl'])); + exit; + } } header('Location: ?'); exit; } @@ -458,7 +476,14 @@ if (isset($_POST['login'])) { ban_loginFailed(); $redir = ''; - if (isset($_GET['post'])) { $redir = '&post='.urlencode($_GET['post']).(!empty($_GET['title'])?'&title='.urlencode($_GET['title']):'').(!empty($_GET['description'])?'&description='.urlencode($_GET['description']):'').(!empty($_GET['source'])?'&source='.urlencode($_GET['source']):''); } + if (isset($_GET['post'])) { + $redir = '?post=' . urlencode($_GET['post']); + foreach (array('description', 'source', 'title') as $param) { + if (!empty($_GET[$param])) { + $redir .= '&' . $param . '=' . urlencode($_GET[$param]); + } + } + } echo ''; // Redirect to login screen. exit; } @@ -1219,6 +1244,11 @@ function renderPage() exit; } + if (isset($_GET['edit_link'])) { + header('Location: ?do=login&edit_link='. escape($_GET['edit_link'])); + exit; + } + $PAGE = new pageBuilder; buildLinkList($PAGE,$LINKSDB); // Compute list of links to display $PAGE->renderPage('linklist'); @@ -1488,7 +1518,6 @@ function renderPage() { $url=$_GET['post']; - // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', From 01e48f269df59e02798dad4a698c125d76b0ed70 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 9 Jul 2015 22:14:39 +0200 Subject: [PATCH 161/658] CachedPage: move to a proper file, add tests Modifications - rename `pageCache` to `CachedPage` - move utilities to `Cache` - do not access globals - apply coding rules - update LinkDB and test code - add test coverage Signed-off-by: VirtualTam --- application/Cache.php | 46 ++++++++++++ application/CachedPage.php | 63 +++++++++++++++++ application/LinkDB.php | 7 +- index.php | 113 +++++++++-------------------- tests/CacheTest.php | 63 +++++++++++++++++ tests/CachedPageTest.php | 121 ++++++++++++++++++++++++++++++++ tests/LinkDBTest.php | 8 +-- tests/utils/ReferenceLinkDB.php | 1 - 8 files changed, 334 insertions(+), 88 deletions(-) create mode 100644 application/Cache.php create mode 100644 application/CachedPage.php create mode 100644 tests/CacheTest.php create mode 100644 tests/CachedPageTest.php diff --git a/application/Cache.php b/application/Cache.php new file mode 100644 index 0000000..9c7e818 --- /dev/null +++ b/application/Cache.php @@ -0,0 +1,46 @@ +cacheDir = $cacheDir; + $this->url = $url; + $this->filename = $this->cacheDir.'/'.sha1($url).'.cache'; + $this->shouldBeCached = $shouldBeCached; + } + + /** + * Returns the cached version of a page, if it exists and should be cached + * + * @return a cached version of the page if it exists, null otherwise + */ + public function cachedVersion() + { + if (!$this->shouldBeCached) { + return null; + } + if (is_file($this->filename)) { + return file_get_contents($this->filename); + } + return null; + } + + /** + * Puts a page in the cache + * + * @param string $pageContent XML content to cache + */ + public function cache($pageContent) + { + if (!$this->shouldBeCached) { + return; + } + file_put_contents($this->filename, $pageContent); + } +} diff --git a/application/LinkDB.php b/application/LinkDB.php index 1e16fef..463aa47 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -269,8 +269,10 @@ You use the community supported version of the original Shaarli project, by Seba /** * Saves the database from memory to disk + * + * @param string $pageCacheDir page cache directory */ - public function savedb() + public function savedb($pageCacheDir) { if (!$this->_loggedIn) { // TODO: raise an Exception instead @@ -280,7 +282,7 @@ You use the community supported version of the original Shaarli project, by Seba $this->_datastore, self::$phpPrefix.base64_encode(gzdeflate(serialize($this->_links))).self::$phpSuffix ); - invalidateCaches(); + invalidateCaches($pageCacheDir); } /** @@ -439,4 +441,3 @@ You use the community supported version of the original Shaarli project, by Seba return $linkDays; } } -?> diff --git a/index.php b/index.php index 2c731e9..84b8f01 100755 --- a/index.php +++ b/index.php @@ -70,6 +70,8 @@ if (is_file($GLOBALS['config']['CONFIG_FILE'])) { } // Shaarli library +require_once 'application/Cache.php'; +require_once 'application/CachedPage.php'; require_once 'application/LinkDB.php'; require_once 'application/TimeZone.php'; require_once 'application/Utils.php'; @@ -202,63 +204,6 @@ function checkUpdate() } -// ----------------------------------------------------------------------------------------------- -// Simple cache system (mainly for the RSS/ATOM feeds). - -class pageCache -{ - private $url; // Full URL of the page to cache (typically the value returned by pageUrl()) - private $shouldBeCached; // boolean: Should this url be cached? - private $filename; // Name of the cache file for this url. - - /* - $url = URL (typically the value returned by pageUrl()) - $shouldBeCached = boolean. If false, the cache will be disabled. - */ - public function __construct($url,$shouldBeCached) - { - $this->url = $url; - $this->filename = $GLOBALS['config']['PAGECACHE'].'/'.sha1($url).'.cache'; - $this->shouldBeCached = $shouldBeCached; - } - - // If the page should be cached and a cached version exists, - // returns the cached version (otherwise, return null). - public function cachedVersion() - { - if (!$this->shouldBeCached) return null; - if (is_file($this->filename)) { return file_get_contents($this->filename); exit; } - return null; - } - - // Put a page in the cache. - public function cache($page) - { - if (!$this->shouldBeCached) return; - file_put_contents($this->filename,$page); - } - - // Purge the whole cache. - // (call with pageCache::purgeCache()) - public static function purgeCache() - { - if (is_dir($GLOBALS['config']['PAGECACHE'])) - { - $handler = opendir($GLOBALS['config']['PAGECACHE']); - if ($handler!==false) - { - while (($filename = readdir($handler))!==false) - { - if (endsWith($filename,'.cache')) { unlink($GLOBALS['config']['PAGECACHE'].'/'.$filename); } - } - closedir($handler); - } - } - } - -} - - // ----------------------------------------------------------------------------------------------- // Log to text file function logm($message) @@ -718,8 +663,16 @@ function showRSS() // Cache system $query = $_SERVER["QUERY_STRING"]; - $cache = new pageCache(pageUrl(),startsWith($query,'do=rss') && !isLoggedIn()); - $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } + $cache = new CachedPage( + $GLOBALS['config']['PAGECACHE'], + pageUrl(), + startsWith($query,'do=rss') && !isLoggedIn() + ); + $cached = $cache->cachedVersion(); + if (! empty($cached)) { + echo $cached; + exit; + } // If cached was not found (or not usable), then read the database and build the response: $LINKSDB = new LinkDB( @@ -798,11 +751,19 @@ function showATOM() // Cache system $query = $_SERVER["QUERY_STRING"]; - $cache = new pageCache(pageUrl(),startsWith($query,'do=atom') && !isLoggedIn()); - $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; exit; } - // If cached was not found (or not usable), then read the database and build the response: + $cache = new CachedPage( + $GLOBALS['config']['PAGECACHE'], + pageUrl(), + startsWith($query,'do=atom') && !isLoggedIn() + ); + $cached = $cache->cachedVersion(); + if (!empty($cached)) { + echo $cached; + exit; + } -// Read links from database (and filter private links if used it not logged in). + // If cached was not found (or not usable), then read the database and build the response: + // Read links from database (and filter private links if used it not logged in). $LINKSDB = new LinkDB( $GLOBALS['config']['DATASTORE'], isLoggedIn() || $GLOBALS['config']['OPEN_SHAARLI'], @@ -884,7 +845,11 @@ function showATOM() function showDailyRSS() { // Cache system $query = $_SERVER["QUERY_STRING"]; - $cache = new pageCache(pageUrl(), startsWith($query, 'do=dailyrss') && !isLoggedIn()); + $cache = new CachedPage( + $GLOBALS['config']['PAGECACHE'], + pageUrl(), + startsWith($query,'do=dailyrss') && !isLoggedIn() + ); $cached = $cache->cachedVersion(); if (!empty($cached)) { echo $cached; @@ -1076,7 +1041,7 @@ function renderPage() // -------- User wants to logout. if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=logout')) { - invalidateCaches(); + invalidateCaches($GLOBALS['config']['PAGECACHE']); logout(); header('Location: ?'); exit; @@ -1383,7 +1348,7 @@ function renderPage() $value['tags']=trim(implode(' ',$tags)); $LINKSDB[$key]=$value; } - $LINKSDB->savedb(); // Save to disk. + $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // Save to disk. echo ''; exit; } @@ -1400,7 +1365,7 @@ function renderPage() $value['tags']=trim(implode(' ',$tags)); $LINKSDB[$key]=$value; } - $LINKSDB->savedb(); // Save to disk. + $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // Save to disk. echo ''; exit; } @@ -1429,7 +1394,7 @@ function renderPage() 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. $LINKSDB[$linkdate] = $link; - $LINKSDB->savedb(); // Save to disk. + $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // Save to disk. pubsubhub(); // If we are called from the bookmarklet, we must close the popup: @@ -1462,7 +1427,7 @@ function renderPage() // - we are protected from XSRF by the token. $linkdate=$_POST['lf_linkdate']; unset($LINKSDB[$linkdate]); - $LINKSDB->savedb(); // save to disk + $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // save to disk // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } @@ -1751,7 +1716,7 @@ function importFile() } } } - $LINKSDB->savedb(); + $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); echo ''; } @@ -2386,14 +2351,6 @@ function resizeImage($filepath) return true; } -// Invalidate caches when the database is changed or the user logs out. -// (e.g. tags cache). -function invalidateCaches() -{ - unset($_SESSION['tags']); // Purge cache attached to session. - pageCache::purgeCache(); // Purge page cache shared by sessions. -} - try { mergeDeprecatedConfig($GLOBALS, isLoggedIn()); } catch(Exception $e) { diff --git a/tests/CacheTest.php b/tests/CacheTest.php new file mode 100644 index 0000000..4caf655 --- /dev/null +++ b/tests/CacheTest.php @@ -0,0 +1,63 @@ +assertFileNotExists(self::$testCacheDir.'/'.$page.'.cache'); + } + } + + /** + * Purge cached pages and session cache + */ + public function testInvalidateCaches() + { + $this->assertArrayNotHasKey('tags', $_SESSION); + $_SESSION['tags'] = array('goodbye', 'cruel', 'world'); + + invalidateCaches(self::$testCacheDir); + foreach (self::$pages as $page) { + $this->assertFileNotExists(self::$testCacheDir.'/'.$page.'.cache'); + } + + $this->assertArrayNotHasKey('tags', $_SESSION); + } +} diff --git a/tests/CachedPageTest.php b/tests/CachedPageTest.php new file mode 100644 index 0000000..e97af03 --- /dev/null +++ b/tests/CachedPageTest.php @@ -0,0 +1,121 @@ +assertFileNotExists(self::$filename); + $page->cache('

    Some content

    '); + $this->assertFileExists(self::$filename); + $this->assertEquals( + '

    Some content

    ', + file_get_contents(self::$filename) + ); + } + + /** + * "Cache" a page's content - the page is not to be cached + */ + public function testShouldNotCache() + { + $page = new CachedPage(self::$testCacheDir, self::$url, false); + + $this->assertFileNotExists(self::$filename); + $page->cache('

    Some content

    '); + $this->assertFileNotExists(self::$filename); + } + + /** + * Return a page's cached content + */ + public function testCachedVersion() + { + $page = new CachedPage(self::$testCacheDir, self::$url, true); + + $this->assertFileNotExists(self::$filename); + $page->cache('

    Some content

    '); + $this->assertFileExists(self::$filename); + $this->assertEquals( + '

    Some content

    ', + $page->cachedVersion() + ); + } + + /** + * Return a page's cached content - the file does not exist + */ + public function testCachedVersionNoFile() + { + $page = new CachedPage(self::$testCacheDir, self::$url, true); + + $this->assertFileNotExists(self::$filename); + $this->assertEquals( + null, + $page->cachedVersion() + ); + } + + /** + * Return a page's cached content - the page is not to be cached + */ + public function testNoCachedVersion() + { + $page = new CachedPage(self::$testCacheDir, self::$url, false); + + $this->assertFileNotExists(self::$filename); + $this->assertEquals( + null, + $page->cachedVersion() + ); + } +} diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 504c819..451f1d6 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php @@ -3,6 +3,7 @@ * Link datastore tests */ +require_once 'application/Cache.php'; require_once 'application/LinkDB.php'; require_once 'application/Utils.php'; require_once 'tests/utils/ReferenceLinkDB.php'; @@ -180,11 +181,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase 'tags'=>'unit test' ); $testDB[$link['linkdate']] = $link; - - // TODO: move PageCache to a proper class/file - function invalidateCaches() {} - - $testDB->savedb(); + $testDB->savedb('tests'); $testDB = new LinkDB(self::$testDatastore, true, false); $this->assertEquals($dbSize + 1, sizeof($testDB)); @@ -514,4 +511,3 @@ class LinkDBTest extends PHPUnit_Framework_TestCase ); } } -?> diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index 0b22572..47b5182 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -125,4 +125,3 @@ class ReferenceLinkDB return $this->_privateCount; } } -?> From aedd62e2b84b4ea0d3c03f5c23ec594f4ebb1c17 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 13 Aug 2015 21:39:51 +0200 Subject: [PATCH 162/658] Cache: simplify cached content cleanup, improve tests Signed-off-by: VirtualTam --- application/Cache.php | 20 ++++++-------------- tests/CacheTest.php | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/application/Cache.php b/application/Cache.php index 9c7e818..5d05016 100644 --- a/application/Cache.php +++ b/application/Cache.php @@ -7,26 +7,18 @@ * Purges all cached pages * * @param string $pageCacheDir page cache directory + * + * @return mixed an error string if the directory is missing */ function purgeCachedPages($pageCacheDir) { if (! is_dir($pageCacheDir)) { - return; + $error = 'Cannot purge '.$pageCacheDir.': no directory'; + error_log($error); + return $error; } - // TODO: check write access to the cache directory - - $handler = opendir($pageCacheDir); - if ($handler == false) { - return; - } - - while (($filename = readdir($handler)) !== false) { - if (endsWith($filename, '.cache')) { - unlink($pageCacheDir.'/'.$filename); - } - } - closedir($handler); + array_map('unlink', glob($pageCacheDir.'/*.cache')); } /** diff --git a/tests/CacheTest.php b/tests/CacheTest.php index 4caf655..aa5395b 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -27,11 +27,14 @@ class CachedTest extends PHPUnit_Framework_TestCase { if (! is_dir(self::$testCacheDir)) { mkdir(self::$testCacheDir); + } else { + array_map('unlink', glob(self::$testCacheDir.'/*')); } foreach (self::$pages as $page) { file_put_contents(self::$testCacheDir.'/'.$page.'.cache', $page); } + file_put_contents(self::$testCacheDir.'/intru.der', 'ShouldNotBeThere'); } /** @@ -42,7 +45,20 @@ class CachedTest extends PHPUnit_Framework_TestCase purgeCachedPages(self::$testCacheDir); foreach (self::$pages as $page) { $this->assertFileNotExists(self::$testCacheDir.'/'.$page.'.cache'); - } + } + + $this->assertFileExists(self::$testCacheDir.'/intru.der'); + } + + /** + * Purge cached pages - missing directory + */ + public function testPurgeCachedPagesMissingDir() + { + $this->assertEquals( + 'Cannot purge tests/dummycache_missing: no directory', + purgeCachedPages(self::$testCacheDir.'_missing') + ); } /** From d9d776af19fd0a191f82525991dafbb56e1bcfcb Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 14 Aug 2015 01:14:07 +0200 Subject: [PATCH 163/658] Links: refactor & improve URL cleanup Relates to #141 Relates to #133 Modifications - move URL cleanup to `application/Url.php` - rework the cleanup function - fragments: `#stuff` - GET parameters: `?var1=val1&var2=val2` - add documentation (APIs the params belong to) - add test coverage Reference - http://php.net/parse_url - http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring Signed-off-by: VirtualTam --- .gitignore | 1 + application/Url.php | 150 ++++++++++++++++++++++++++++++++++++++++++ index.php | 27 ++------ tests/UrlTest.php | 154 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 309 insertions(+), 23 deletions(-) create mode 100644 application/Url.php create mode 100644 tests/UrlTest.php diff --git a/.gitignore b/.gitignore index 6fd0ccd..3ffedb3 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ composer.lock # Ignore test data & output coverage tests/datastore.php +tests/dummycache/ phpmd.html diff --git a/application/Url.php b/application/Url.php new file mode 100644 index 0000000..23356f3 --- /dev/null +++ b/application/Url.php @@ -0,0 +1,150 @@ +parts = parse_url($url); + } + + /** + * Returns a string representation of this URL + */ + public function __toString() + { + return unparse_url($this->parts); + } + + /** + * Removes undesired query parameters + */ + protected function cleanupQuery() + { + if (! isset($this->parts['query'])) { + return; + } + + $queryParams = explode('&', $this->parts['query']); + + foreach (self::$annoyingQueryParams as $annoying) { + foreach ($queryParams as $param) { + if (startsWith($param, $annoying)) { + $queryParams = array_diff($queryParams, array($param)); + continue; + } + } + } + + if (count($queryParams) == 0) { + unset($this->parts['query']); + return; + } + + $this->parts['query'] = implode('&', $queryParams); + } + + /** + * Removes undesired fragments + */ + protected function cleanupFragment() + { + if (! isset($this->parts['fragment'])) { + return; + } + + foreach (self::$annoyingFragments as $annoying) { + if (startsWith($this->parts['fragment'], $annoying)) { + unset($this->parts['fragment']); + break; + } + } + } + + /** + * Removes undesired query parameters and fragments + * + * @return string the string representation of this URL after cleanup + */ + public function cleanup() + { + $this->cleanupQuery(); + $this->cleanupFragment(); + return $this->__toString(); + } +} diff --git a/index.php b/index.php index 84b8f01..74f9549 100755 --- a/index.php +++ b/index.php @@ -74,6 +74,7 @@ require_once 'application/Cache.php'; require_once 'application/CachedPage.php'; require_once 'application/LinkDB.php'; require_once 'application/TimeZone.php'; +require_once 'application/Url.php'; require_once 'application/Utils.php'; require_once 'application/Config.php'; @@ -1479,29 +1480,9 @@ function renderPage() } // -------- User want to post a new link: Display link edit form. - if (isset($_GET['post'])) - { - $url=$_GET['post']; - - // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook... - $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', - '/[\?&]utm_campaign=[^&]*/', - '/[\?&]utm_medium=[^&]*/', - '/#xtor=RSS-[^&]*/', - '/[\?&]fb_[^&]*/', - '/[\?&]__scoop[^&]*/', - '/#tk\.rss_all\?/', - '/[\?&]action_ref_map=[^&]*/', - '/[\?&]action_type_map=[^&]*/', - '/[\?&]action_object_map=[^&]*/', - '/[\?&]utm_content=[^&]*/', - '/[\?&]fb=[^&]*/', - '/[\?&]xtor=[^&]*/' - ); - foreach($annoyingpatterns as $pattern) - { - $url = preg_replace($pattern, "", $url); - } + if (isset($_GET['post'])) { + $url = new Url($_GET['post']); + $url->cleanup(); $link_is_new = false; $link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link) diff --git a/tests/UrlTest.php b/tests/UrlTest.php new file mode 100644 index 0000000..a39630f --- /dev/null +++ b/tests/UrlTest.php @@ -0,0 +1,154 @@ +assertEquals('', unparse_url(array())); + } + + /** + * Rebuild a full-featured URL + */ + public function testUnparseFull() + { + $ref = 'http://username:password@hostname:9090/path' + .'?arg1=value1&arg2=value2#anchor'; + $this->assertEquals($ref, unparse_url(parse_url($ref))); + } +} + +/** + * Unitary tests for URL utilities + */ +class UrlTest extends PHPUnit_Framework_TestCase +{ + // base URL for tests + protected static $baseUrl = 'http://domain.tld:3000'; + + /** + * Helper method + */ + private function assertUrlIsCleaned($query='', $fragment='') + { + $url = new Url(self::$baseUrl.$query.$fragment); + $url->cleanup(); + $this->assertEquals(self::$baseUrl, $url->__toString()); + } + + /** + * Instantiate an empty URL + */ + public function testEmptyConstruct() + { + $this->assertEquals('', new Url('')); + } + + /** + * Instantiate a URL + */ + public function testConstruct() + { + $ref = 'http://username:password@hostname:9090/path' + .'?arg1=value1&arg2=value2#anchor'; + $this->assertEquals($ref, new Url($ref)); + } + + /** + * URL cleanup - nothing to do + */ + public function testNoCleanup() + { + // URL with no query nor fragment + $this->assertUrlIsCleaned(); + + // URL with no annoying elements + $ref = self::$baseUrl.'?p1=val1&p2=1234#edit'; + $url = new Url($ref); + $this->assertEquals($ref, $url->cleanup()); + } + + /** + * URL cleanup - annoying fragment + */ + public function testCleanupFragment() + { + $this->assertUrlIsCleaned('', '#tk.rss_all'); + $this->assertUrlIsCleaned('', '#xtor=RSS-'); + $this->assertUrlIsCleaned('', '#xtor=RSS-U3ht0tkc4b'); + } + + /** + * URL cleanup - single annoying query parameter + */ + public function testCleanupSingleQueryParam() + { + $this->assertUrlIsCleaned('?action_object_map=junk'); + $this->assertUrlIsCleaned('?action_ref_map=Cr4p!'); + $this->assertUrlIsCleaned('?action_type_map=g4R84g3'); + + $this->assertUrlIsCleaned('?fb_stuff=v41u3'); + $this->assertUrlIsCleaned('?fb=71m3w4573'); + + $this->assertUrlIsCleaned('?utm_campaign=zomg'); + $this->assertUrlIsCleaned('?utm_medium=numnum'); + $this->assertUrlIsCleaned('?utm_source=c0d3'); + $this->assertUrlIsCleaned('?utm_term=1n4l'); + + $this->assertUrlIsCleaned('?xtor=some-url'); + } + + /** + * URL cleanup - multiple annoying query parameters + */ + public function testCleanupMultipleQueryParams() + { + $this->assertUrlIsCleaned('?xtor=some-url&fb=som3th1ng'); + $this->assertUrlIsCleaned( + '?fb=stuff&utm_campaign=zomg&utm_medium=numnum&utm_source=c0d3' + ); + } + + /** + * URL cleanup - multiple annoying query parameters, annoying fragment + */ + public function testCleanupMultipleQueryParamsAndFragment() + { + $this->assertUrlIsCleaned('?xtor=some-url&fb=som3th1ng', '#tk.rss_all'); + } + + /** + * Nominal case - the URL contains both useful and annoying parameters + */ + public function testCleanupMixedContent() + { + // ditch annoying query params and fragment, keep useful params + $url = new Url( + self::$baseUrl + .'?fb=zomg&my=stuff&utm_medium=numnum&is=kept#tk.rss_all' + ); + $this->assertEquals(self::$baseUrl.'?my=stuff&is=kept', $url->cleanup()); + + + // ditch annoying query params, keep useful params and fragment + $url = new Url( + self::$baseUrl + .'?fb=zomg&my=stuff&utm_medium=numnum&is=kept#again' + ); + $this->assertEquals( + self::$baseUrl.'?my=stuff&is=kept#again', + $url->cleanup() + ); + } +} From c622d32820685566c7c0228ae9cdc6c26f10fa29 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Aug 2015 14:50:16 +0200 Subject: [PATCH 164/658] README: add DockerHub badge See [docker-shaarli](https://github.com/shaarli/docker-shaarli) for Dockerfiles and documentation --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5743ec4..a5a3bba 100755 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ Shaarli, the personal, minimalist, super-fast, no-database delicious clone. -You want to share the links you discover ? Shaarli is a minimalist delicious clone you can install on your own website. +Do you want to share the links you discover? Shaarli is a minimalist delicious clone you can install on your own website. It is designed to be personal (single-user), fast and handy. -[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli) [![Bountysource](https://www.bountysource.com/badge/team?team_id=19583&style=bounties_received)](https://www.bountysource.com/teams/shaarli/issues) [![](https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli) +[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli) +[![Bountysource](https://www.bountysource.com/badge/team?team_id=19583&style=bounties_received)](https://www.bountysource.com/teams/shaarli/issues) [![](https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli) +[![Docker repository](https://img.shields.io/docker/pulls/shaarli/shaarli.svg)](https://hub.docker.com/r/shaarli/shaarli/) -## Features: +## Features * Minimalist design (simple is beautiful) * **FAST** @@ -85,4 +87,3 @@ This is a community fork of the original [Shaarli](https://github.com/sebsauvage ## License Shaarli is [Free Software](http://en.wikipedia.org/wiki/Free_software). See [COPYING](COPYING) for a detail of the contributors and licenses for each individual component. - From 6335a0fc0ce0c2f962333f0b4d6baac1671df901 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 18 Aug 2015 00:33:25 +0200 Subject: [PATCH 165/658] Doc: sync from Wiki, generate HTML Signed-off-by: VirtualTam --- doc/3rd-party-libraries.html | 1 + doc/Backup,-restore,-import-and-export.html | 1 + doc/Coding-guidelines.html | 1 + doc/Community-&-Related-software.html | 1 + ...llation-over-SSH-and-serve-it-locally.html | 1 + doc/Datastore-hacks.html | 1 + doc/Development.html | 1 + doc/Directory-structure.html | 1 + ...Download-CSS-styles-from-an-OPML-list.html | 1 + ...e-patch---add-new-via-field-for-links.html | 1 + doc/FAQ.html | 1 + doc/Firefox-share.html | 1 + doc/GnuPG-signature.html | 1 + doc/Home.html | 1 + doc/Plugin-System.html | 1 + doc/RSS-feeds.html | 1 + doc/Security.html | 1 + doc/Server-configuration.html | 1 + doc/Server-requirements.html | 1 + doc/Shaarli-configuration.html | 1 + doc/Sharing-button.html | 1 + doc/Static-analysis.html | 1 + doc/TODO.html | 1 + doc/Theming.html | 1 + doc/Troubleshooting.html | 50 ++++++++++++++++++ doc/Troubleshooting.md | 51 +++++++++++++++++-- doc/Unit-tests.html | 1 + doc/Usage.html | 1 + doc/_Sidebar.html | 2 + doc/_Sidebar.md | 1 + doc/sidebar.html | 1 + 31 files changed, 128 insertions(+), 3 deletions(-) diff --git a/doc/3rd-party-libraries.html b/doc/3rd-party-libraries.html index a9c3a88..86f670a 100644 --- a/doc/3rd-party-libraries.html +++ b/doc/3rd-party-libraries.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Backup,-restore,-import-and-export.html b/doc/Backup,-restore,-import-and-export.html index 183a5ed..40c7a85 100644 --- a/doc/Backup,-restore,-import-and-export.html +++ b/doc/Backup,-restore,-import-and-export.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Coding-guidelines.html b/doc/Coding-guidelines.html index 0f071a5..fd6fa57 100644 --- a/doc/Coding-guidelines.html +++ b/doc/Coding-guidelines.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Community-&-Related-software.html b/doc/Community-&-Related-software.html index 5468379..25ef0f8 100644 --- a/doc/Community-&-Related-software.html +++ b/doc/Community-&-Related-software.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html index 9e930e5..1e81b73 100644 --- a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html +++ b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Datastore-hacks.html b/doc/Datastore-hacks.html index 4677ae9..e3adee1 100644 --- a/doc/Datastore-hacks.html +++ b/doc/Datastore-hacks.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Development.html b/doc/Development.html index 1e33eff..6e22257 100644 --- a/doc/Development.html +++ b/doc/Development.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Directory-structure.html b/doc/Directory-structure.html index 4ea5e24..ae0458f 100644 --- a/doc/Directory-structure.html +++ b/doc/Directory-structure.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html index b21a54b..033dd18 100644 --- a/doc/Download-CSS-styles-from-an-OPML-list.html +++ b/doc/Download-CSS-styles-from-an-OPML-list.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html index 44352d3..ff73ec0 100644 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/FAQ.html b/doc/FAQ.html index 0ebd1bc..b26b635 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Firefox-share.html b/doc/Firefox-share.html index 198afe2..d666ac7 100644 --- a/doc/Firefox-share.html +++ b/doc/Firefox-share.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/GnuPG-signature.html b/doc/GnuPG-signature.html index c9e0455..b7dc108 100644 --- a/doc/GnuPG-signature.html +++ b/doc/GnuPG-signature.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Home.html b/doc/Home.html index 37d62e8..90372a4 100644 --- a/doc/Home.html +++ b/doc/Home.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Plugin-System.html b/doc/Plugin-System.html index 6d08d85..719b76f 100644 --- a/doc/Plugin-System.html +++ b/doc/Plugin-System.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html index 4a9b7a0..7d1de07 100644 --- a/doc/RSS-feeds.html +++ b/doc/RSS-feeds.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Security.html b/doc/Security.html index 1fbbabd..db44da2 100644 --- a/doc/Security.html +++ b/doc/Security.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index de6bf48..e4e383a 100644 --- a/doc/Server-configuration.html +++ b/doc/Server-configuration.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html index bf5a2e8..b0426ee 100644 --- a/doc/Server-requirements.html +++ b/doc/Server-requirements.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html index 90c0954..663b43e 100644 --- a/doc/Shaarli-configuration.html +++ b/doc/Shaarli-configuration.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html index 034f2f9..d3f3625 100644 --- a/doc/Sharing-button.html +++ b/doc/Sharing-button.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Static-analysis.html b/doc/Static-analysis.html index d4588e4..dd1dd22 100644 --- a/doc/Static-analysis.html +++ b/doc/Static-analysis.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/TODO.html b/doc/TODO.html index f66d64f..c25775c 100644 --- a/doc/TODO.html +++ b/doc/TODO.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Theming.html b/doc/Theming.html index e814dad..b5d214e 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html index 6965a57..00cfdff 100644 --- a/doc/Troubleshooting.html +++ b/doc/Troubleshooting.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development @@ -74,6 +75,54 @@ code > span.er { color: #ff0000; font-weight: bold; }

    Troubleshooting

    +

    Browser

    +

    Redirection issues (HTTP Referer)

    +

    Depending on its configuration and installed plugins, the browser may remove or alter (spoof) HTTP referers, thus preventing Shaarli from properly redirecting between pages.

    +

    See:

    + +

    Firefox HTTP Referer options

    +

    HTTP settings are available by browsing about:config, here are the available settings and their values.

    +

    network.http.sendRefererHeader - determines when to send the Referer HTTP header

    +
      +
    • 0: Never send the referring URL +
        +
      • not recommended, may break some sites
      • +
    • +
    • 1: Send only on clicked links
    • +
    • 2 (default): Send for links and images
    • +
    +

    network.http.referer.XOriginPolicy - Cross-domain origin policy

    +
      +
    • 0 (default): Always send
    • +
    • 1: Send if base domains match
    • +
    • 2: Send if hosts match
    • +
    +

    network.http.referer.spoofSource - Referer spoofing (~faking)

    +
      +
    • false (default): real referer
    • +
    • true: spoof referer (use target URI as referer)
    • +
    +

    network.http.referer.trimmingPolicy - trim the URI not to send a full Referer

    +
      +
    • 0 (default): send full URI
    • +
    • 1: scheme+host+port+path
    • +
    • 2: scheme+host+port
    • +
    +

    Firefox, localhost and redirections

    +

    localhost is not a proper Fully Qualified Domain Name (FQDN); if Firefox has been set up to spoof referers, or anly accept requests from the same base domain/host, Shaarli redirections will not work properly.

    +

    To solve this, assign a local domain to your host, e.g.

    +
    127.0.0.1 localhost desktop localhost.lan
    +::1       localhost desktop localhost.lan
    +

    and browse Shaarli at http://localhost.lan/.

    +

    Related threads:

    +

    Login

    I forgot my password!

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    @@ -83,6 +132,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

    List of all login attempts

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
    Search for failed in this file to look for unauthorized login attempts.

    Hosting problems

    +

    Old PHP versions

    • On free.fr : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a sessions directory at the root of your webspace. Change the file extension to .php5 or create a .htaccess file in the directory where Shaarli is located containing:
    diff --git a/doc/Troubleshooting.md b/doc/Troubleshooting.md index 4adf7c9..4e6cdb0 100644 --- a/doc/Troubleshooting.md +++ b/doc/Troubleshooting.md @@ -1,7 +1,53 @@ #Troubleshooting +## Browser +### Redirection issues (HTTP Referer) +Depending on its configuration and installed plugins, the browser may remove or alter (spoof) HTTP referers, thus preventing Shaarli from properly redirecting between pages. + +See: +- [HTTP referer](https://en.wikipedia.org/wiki/HTTP_referer) (Wikipedia)[](.html) +- [Improve online privacy by controlling referrer information](http://www.ghacks.net/2015/01/22/improve-online-privacy-by-controlling-referrer-information/)[](.html) +- [Better security, privacy and anonymity in Firefox](http://b.agilob.net/better-security-privacy-and-anonymity-in-firefox/)[](.html) + +### Firefox HTTP Referer options +HTTP settings are available by browsing `about:config`, here are the available settings and their values. + +`network.http.sendRefererHeader` - determines when to send the Referer HTTP header +- 0: Never send the referring URL + - not recommended, may break some sites +- 1: Send only on clicked links +- 2 (default): Send for links and images + +`network.http.referer.XOriginPolicy` - Cross-domain origin policy +- 0 (default): Always send +- 1: Send if base domains match +- 2: Send if hosts match + +`network.http.referer.spoofSource` - Referer spoofing (~faking) +- false (default): real referer +- true: spoof referer (use target URI as referer) + +`network.http.referer.trimmingPolicy` - trim the URI not to send a full Referer +- 0 (default): send full URI +- 1: scheme+host+port+path +- 2: scheme+host+port + +### Firefox, localhost and redirections +`localhost` is not a proper Fully Qualified Domain Name (FQDN); if Firefox has been set up to spoof referers, or anly accept requests from the same base domain/host, Shaarli redirections will not work properly. + +To solve this, assign a local domain to your host, e.g. +``` +127.0.0.1 localhost desktop localhost.lan +::1 localhost desktop localhost.lan +``` + +and browse Shaarli at http://localhost.lan/. + +Related threads: +- [What is localhost.localdomain for?](https://bbs.archlinux.org/viewtopic.php?id=156064)[](.html) +- [Stop returning to the first page after editing a bookmark from another page](https://github.com/shaarli/Shaarli/issues/311)[](.html) + ## Login ### I forgot my password! - Delete the file `data/config.php` and display the page again. You will be asked for a new login/password. ### I'm locked out - Login bruteforce protection @@ -10,11 +56,11 @@ Login form is protected against brute force attacks: 4 failed logins will ban th To remove the current IP bans, delete the file `data/ipbans.php` ### List of all login attempts - The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. Search for `failed` in this file to look for unauthorized login attempts. ## Hosting problems +### Old PHP versions * On **free.fr** : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a `sessions` directory at the root of your webspace. Change the file extension to `.php5` or create a `.htaccess` file in the directory where Shaarli is located containing: ```ini @@ -56,5 +102,4 @@ This can be caused by several things: Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have **no dots** in the hostname (e.g. `localhost` or `http://my-webserver/shaarli/`), some browsers will not store cookies at all (this respects the [HTTP cookie specification](http://curl.haxx.se/rfc/cookie_spec.html)).[](.html) ### pubsubhubbub support - Download [publisher.php](https://pubsubhubbub.googlecode.com/git/publisher_clients/php/library/publisher.php) at the root of your Shaarli installation and set `$GLOBALS['config'['PUBSUBHUB_URL']` in your `config.php`]('PUBSUBHUB_URL']`-in-your-`config.php`.html) diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html index 25873cb..f4b42bd 100644 --- a/doc/Unit-tests.html +++ b/doc/Unit-tests.html @@ -51,6 +51,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/Usage.html b/doc/Usage.html index cffdc4d..ad5b796 100644 --- a/doc/Usage.html +++ b/doc/Usage.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html index c272519..0f9d546 100644 --- a/doc/_Sidebar.html +++ b/doc/_Sidebar.html @@ -32,6 +32,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development @@ -74,6 +75,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development diff --git a/doc/_Sidebar.md b/doc/_Sidebar.md index 64b1649..db75943 100644 --- a/doc/_Sidebar.md +++ b/doc/_Sidebar.md @@ -12,6 +12,7 @@ - [Backup, restore, import and export](Backup,-restore,-import-and-export.html) - [Copy an existing installation over SSH and serve it locally](Copy-an-existing-installation-over-SSH-and-serve-it-locally.html) - [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) + - [Datastore hacks](Datastore-hacks.html) - [Troubleshooting](Troubleshooting.html) - [Development](Development.html) - [GnuPG signature](GnuPG-signature.html) diff --git a/doc/sidebar.html b/doc/sidebar.html index 1b58540..e8bc593 100644 --- a/doc/sidebar.html +++ b/doc/sidebar.html @@ -18,6 +18,7 @@
  • Backup, restore, import and export
  • Copy an existing installation over SSH and serve it locally
  • Download CSS styles from an OPML list
  • +
  • Datastore hacks
  • Troubleshooting
  • Development From d7efade5d651ec60a05a86baa53f99188ad5d72c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 18 Aug 2015 00:35:42 +0200 Subject: [PATCH 166/658] Bump version to 0.5.1 Minor changes - fix 404 after editing a link while being logged out - update local documentation - improve timezone detection at installation - improve feed cache handling - improve URL cleanup for new links - add a link to the shaarli/shaarli DockerHub repository Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 74f9549..8e04fa3 100755 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index a2045a7..294292a 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From bdf4f785193d8a282f874eb1903a05da72270d35 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 22 Aug 2015 00:06:42 +0200 Subject: [PATCH 167/658] travis: add PHP 7 to the tested environments Signed-off-by: VirtualTam --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 80db650..a3038c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ sudo: false language: php php: + - 7.0 - 5.6 - 5.5 - 5.4 From 06b6660a7e8891c6e1c47815cf50ee5b2ef5f270 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Jul 2015 13:15:47 +0200 Subject: [PATCH 168/658] Avoid Full Path Disclosure error on session error. * Add a function to validate session ID. * Generate a new session ID if an invalid token is passed. --- application/Utils.php | 26 +++++++++++++++++++++++++- index.php | 41 ++++++++++++++++++++++++++++------------- tests/UtilsTest.php | 19 ++++++++++++++++++- 3 files changed, 71 insertions(+), 15 deletions(-) diff --git a/application/Utils.php b/application/Utils.php index cd4724f..fa18f15 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -137,4 +137,28 @@ function checkPHPVersion($minVersion, $curVersion) ); } } -?> + +/** + * Validate session ID to prevent Full Path Disclosure. + * See #298. + * + * @param string $sessionId Session ID + * + * @return true if valid, false otherwise. + */ +function is_session_id_valid($sessionId) +{ + if (empty($sessionId)) { + return false; + } + + if (!$sessionId) { + return false; + } + + if (!preg_match('/^[a-z0-9]{2,32}$/', $sessionId)) { + return false; + } + + return true; +} diff --git a/index.php b/index.php index 8e04fa3..a093a28 100755 --- a/index.php +++ b/index.php @@ -43,19 +43,6 @@ define('shaarli_version','0.5.1'); // http://server.com/x/shaarli --> /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); -// Force cookie path (but do not change lifetime) -$cookie=session_get_cookie_params(); -$cookiedir = ''; if(dirname($_SERVER['SCRIPT_NAME'])!='/') $cookiedir=dirname($_SERVER["SCRIPT_NAME"]).'/'; -session_set_cookie_params($cookie['lifetime'],$cookiedir,$_SERVER['SERVER_NAME']); // Set default cookie expiration and path. - -// Set session parameters on server side. -define('INACTIVITY_TIMEOUT',3600); // (in seconds). If the user does not access any page within this time, his/her session is considered expired. -ini_set('session.use_cookies', 1); // Use cookies to store session. -ini_set('session.use_only_cookies', 1); // Force cookies for session (phpsessionID forbidden in URL). -ini_set('session.use_trans_sid', false); // Prevent PHP form using sessionID in URL if cookies are disabled. -session_name('shaarli'); -if (session_id() == '') session_start(); // Start session if needed (Some server auto-start sessions). - // PHP Settings ini_set('max_input_time','60'); // High execution time in case of problematic imports/exports. ini_set('memory_limit', '128M'); // Try to set max upload file size and read (May not work on some hosts). @@ -87,6 +74,34 @@ try { exit; } +// Force cookie path (but do not change lifetime) +$cookie = session_get_cookie_params(); +$cookiedir = ''; +if (dirname($_SERVER['SCRIPT_NAME']) != '/') { + $cookiedir = dirname($_SERVER["SCRIPT_NAME"]).'/'; +} +// Set default cookie expiration and path. +session_set_cookie_params($cookie['lifetime'], $cookiedir, $_SERVER['SERVER_NAME']); +// Set session parameters on server side. +// If the user does not access any page within this time, his/her session is considered expired. +define('INACTIVITY_TIMEOUT', 3600); // in seconds. +// Use cookies to store session. +ini_set('session.use_cookies', 1); +// Force cookies for session (phpsessionID forbidden in URL). +ini_set('session.use_only_cookies', 1); +// Prevent PHP form using sessionID in URL if cookies are disabled. +ini_set('session.use_trans_sid', false); + +// Regenerate session id if invalid or not defined in cookie. +if (isset($_COOKIE['shaarli']) && !is_session_id_valid($_COOKIE['shaarli'])) { + $_COOKIE['shaarli'] = uniqid(); +} +session_name('shaarli'); +// Start session if needed (Some server auto-start sessions). +if (session_id() == '') { + session_start(); +} + include "inc/rain.tpl.class.php"; //include Rain TPL raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 28e15f5..e39ce6b 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -150,5 +150,22 @@ class UtilsTest extends PHPUnit_Framework_TestCase { checkPHPVersion('5.3', '5.2'); } + + /** + * Test is_session_id_valid with a valid ID. + */ + public function testIsSessionIdValid() + { + $this->assertTrue(is_session_id_valid('123456789012345678901234567890az')); + } + + /** + * Test is_session_id_valid with invalid IDs. + */ + public function testIsSessionIdInvalid() + { + $this->assertFalse(is_session_id_valid('')); + $this->assertFalse(is_session_id_valid(array())); + $this->assertFalse(is_session_id_valid('c0ZqcWF3VFE2NmJBdm1HMVQ0ZHJ3UmZPbTFsNGhkNHI=')); + } } -?> From 9e1724f1922bf9e38299eecedfce2dcdbd416749 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 20 Aug 2015 19:47:01 +0200 Subject: [PATCH 169/658] Fixes #325 - Shaarli does not recognize saved links PHP doesn't seem to autoconvert objects to strings when they're use as array indexes. Fixes regression introduced in d9d776af19fd0a191f82525991dafbb56e1bcfcb --- application/Url.php | 16 ++++++++++ index.php | 76 ++++++++++++++++++++++++--------------------- tests/UrlTest.php | 16 ++++++++++ 3 files changed, 73 insertions(+), 35 deletions(-) mode change 100644 => 100755 application/Url.php mode change 100644 => 100755 tests/UrlTest.php diff --git a/application/Url.php b/application/Url.php old mode 100644 new mode 100755 index 23356f3..02a4395 --- a/application/Url.php +++ b/application/Url.php @@ -81,6 +81,10 @@ class Url public function __construct($url) { $this->parts = parse_url($url); + + if (!empty($url) && empty($this->parts['scheme'])) { + $this->parts['scheme'] = 'http'; + } } /** @@ -147,4 +151,16 @@ class Url $this->cleanupFragment(); return $this->__toString(); } + + /** + * Get URL scheme. + * + * @return string the URL scheme or false if none is provided. + */ + public function getScheme() { + if (!isset($this->parts['scheme'])) { + return false; + } + return $this->parts['scheme']; + } } diff --git a/index.php b/index.php index 8e04fa3..ba70b29 100755 --- a/index.php +++ b/index.php @@ -1485,51 +1485,57 @@ function renderPage() $url->cleanup(); $link_is_new = false; - $link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link) + // Check if URL is not already in database (in this case, we will edit the existing link) + $link = $LINKSDB->getLinkFromUrl((string)$url); if (!$link) { - $link_is_new = true; // This is a new link + $link_is_new = true; $linkdate = strval(date('Ymd_His')); - $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet). - $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] - $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL - $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL - if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url; + // Get title if it was provided in URL (by the bookmarklet). + $title = (empty($_GET['title']) ? '' : $_GET['title'] ); + // Get description if it was provided in URL (by the bookmarklet). [Bronco added that] + $description = (empty($_GET['description']) ? '' : $_GET['description']); + $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); + $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) - if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http') - { + if (empty($title) && $url->getScheme() == 'http') { list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. // FIXME: Decode charset according to specified in either 1) HTTP response headers or 2) in html - if (strpos($status,'200 OK')!==false) - { - // Look for charset in html header. - preg_match('##Usi', $data, $meta); + if (strpos($status,'200 OK')!==false) { + // Look for charset in html header. + preg_match('##Usi', $data, $meta); - // If found, extract encoding. - if (!empty($meta[0])) - { - // Get encoding specified in header. - preg_match('#charset="?(.*)"#si', $meta[0], $enc); - // If charset not found, use utf-8. - $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8'; - } - else { $html_charset = 'utf-8'; } + // If found, extract encoding. + if (!empty($meta[0])) { + // Get encoding specified in header. + preg_match('#charset="?(.*)"#si', $meta[0], $enc); + // If charset not found, use utf-8. + $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8'; + } + else { + $html_charset = 'utf-8'; + } - // Extract title - $title = html_extract_title($data); - if (!empty($title)) - { - // Re-encode title in utf-8 if necessary. - $title = ($html_charset == 'iso-8859-1') ? utf8_encode($title) : $title; - } - } + // Extract title + $title = html_extract_title($data); + if (!empty($title)) { + // Re-encode title in utf-8 if necessary. + $title = ($html_charset == 'iso-8859-1') ? utf8_encode($title) : $title; + } + } } - if ($url=='') // In case of empty URL, this is just a text (with a link that points to itself) - { - $url='?'.smallHash($linkdate); - $title='Note: '; + if ($url == '') { + $url = '?' . smallHash($linkdate); + $title = 'Note: '; } - $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'private'=>$private); + $link = array( + 'linkdate' => $linkdate, + 'title' => $title, + 'url' => (string)$url, + 'description' => $description, + 'tags' => $tags, + 'private' => $private + ); } $PAGE = new pageBuilder; diff --git a/tests/UrlTest.php b/tests/UrlTest.php old mode 100644 new mode 100755 index a39630f..c848e88 --- a/tests/UrlTest.php +++ b/tests/UrlTest.php @@ -151,4 +151,20 @@ class UrlTest extends PHPUnit_Framework_TestCase $url->cleanup() ); } + + /** + * Test default http scheme. + */ + public function testDefaultScheme() { + $url = new Url(self::$baseUrl); + $this->assertEquals('http', $url->getScheme()); + $url = new Url('domain.tld'); + $this->assertEquals('http', $url->getScheme()); + $url = new Url('ssh://domain.tld'); + $this->assertEquals('ssh', $url->getScheme()); + $url = new Url('ftp://domain.tld'); + $this->assertEquals('ftp', $url->getScheme()); + $url = new Url('git://domain.tld/push?pull=clone#checkout'); + $this->assertEquals('git', $url->getScheme()); + } } From 26c503460cd2b50c2c122dba73d62e09ee04b9c8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 31 Aug 2015 12:27:56 +0200 Subject: [PATCH 170/658] Add HTTPS support for title extracting feature --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ba70b29..9c3f7c1 100755 --- a/index.php +++ b/index.php @@ -1497,8 +1497,8 @@ function renderPage() $description = (empty($_GET['description']) ? '' : $_GET['description']); $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); - // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) - if (empty($title) && $url->getScheme() == 'http') { + // If this is an HTTP(S) link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) + if (empty($title) && strpos($url->getScheme(), 'http') !== false) { list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. // FIXME: Decode charset according to specified in either 1) HTTP response headers or 2) in html if (strpos($status,'200 OK')!==false) { From 53cc2b93b85a080c6c06bc3633fb454241fc5699 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Mon, 31 Aug 2015 20:36:13 +0200 Subject: [PATCH 171/658] Bump version to 0.5.2 Minor changes - fix Full Path Disclosure upon cookie forgery - fix regression preventing to load LinkDB info when adding an existing link - also extract HTTPS page metadata (title) - add PHP 7 to Travis platforms Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index f4c7e78..b8ca734 100755 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index 294292a..6b72466 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From 4d30975a06354c5a01d2dfdfc5441e160ef4073e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 2 Sep 2015 17:00:38 +0200 Subject: [PATCH 172/658] Allow uppercase letters in PHP sessionid format Fixes shaarli/Shaarli#335 - Wrong login/password since v0.5.2 Regression introduced in 06b6660a7e8891c6e1c47815cf50ee5b2ef5f270 --- application/Utils.php | 2 +- tests/UtilsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 application/Utils.php mode change 100644 => 100755 tests/UtilsTest.php diff --git a/application/Utils.php b/application/Utils.php old mode 100644 new mode 100755 index fa18f15..cb03f11 --- a/application/Utils.php +++ b/application/Utils.php @@ -156,7 +156,7 @@ function is_session_id_valid($sessionId) return false; } - if (!preg_match('/^[a-z0-9]{2,32}$/', $sessionId)) { + if (!preg_match('/^[a-z0-9]{2,32}$/i', $sessionId)) { return false; } diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php old mode 100644 new mode 100755 index e39ce6b..5175dde --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -156,7 +156,7 @@ class UtilsTest extends PHPUnit_Framework_TestCase */ public function testIsSessionIdValid() { - $this->assertTrue(is_session_id_valid('123456789012345678901234567890az')); + $this->assertTrue(is_session_id_valid('azertyuiop123456789AZERTYUIOP1aA')); } /** From ce8c4a84ba180802ca6e5f00f60353ad71d3fcc8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 2 Sep 2015 18:06:21 +0200 Subject: [PATCH 173/658] Bump version to v0.5.3 Fixes a bug that could prevent user to login. --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 shaarli_version.php diff --git a/index.php b/index.php index b8ca734..d615da1 100755 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php old mode 100644 new mode 100755 index 6b72466..b843a5b --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From f8b936e7e75601b5d96525f25d5b52dbabd909b4 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 4 Sep 2015 21:25:47 +0200 Subject: [PATCH 174/658] Doc: sync from Wiki, generate HTML Additions: - Installation/Download: how to get Shaarli - Community software: ShaarliOS app Modifications: - Installation/Server requirements: PHP 5.4 EOL, PHP 7 announcements - Installation/Server configuration: improve Nginx security - Troubleshooting: PHP sessions on `free.fr` Signed-off-by: VirtualTam --- doc/3rd-party-libraries.html | 1 + doc/Backup,-restore,-import-and-export.html | 1 + doc/Coding-guidelines.html | 1 + doc/Community-&-Related-software.html | 7 +- doc/Community-&-Related-software.md | 54 ++++++----- ...llation-over-SSH-and-serve-it-locally.html | 1 + doc/Datastore-hacks.html | 1 + doc/Development.html | 1 + doc/Directory-structure.html | 1 + ...Download-CSS-styles-from-an-OPML-list.html | 1 + doc/Download.html | 97 +++++++++++++++++++ doc/Download.md | 31 ++++++ ...e-patch---add-new-via-field-for-links.html | 1 + doc/FAQ.html | 1 + doc/Firefox-share.html | 1 + doc/GnuPG-signature.html | 1 + doc/Home.html | 1 + doc/Plugin-System.html | 1 + doc/RSS-feeds.html | 1 + doc/Security.html | 1 + doc/Server-configuration.html | 8 +- doc/Server-configuration.md | 7 +- doc/Server-requirements.html | 18 ++-- doc/Server-requirements.md | 7 +- doc/Shaarli-configuration.html | 1 + doc/Sharing-button.html | 1 + doc/Static-analysis.html | 1 + doc/TODO.html | 1 + doc/Theming.html | 1 + doc/Troubleshooting.html | 8 +- doc/Troubleshooting.md | 7 +- doc/Unit-tests.html | 1 + doc/Usage.html | 1 + doc/_Footer.html | 61 ++++++++++++ doc/_Footer.md | 2 + doc/_Sidebar.html | 2 + doc/_Sidebar.md | 1 + doc/sidebar.html | 1 + 38 files changed, 289 insertions(+), 45 deletions(-) create mode 100644 doc/Download.html create mode 100644 doc/Download.md create mode 100644 doc/_Footer.html create mode 100644 doc/_Footer.md diff --git a/doc/3rd-party-libraries.html b/doc/3rd-party-libraries.html index 86f670a..21fa20a 100644 --- a/doc/3rd-party-libraries.html +++ b/doc/3rd-party-libraries.html @@ -17,6 +17,7 @@
  • Home
  • Installation
      +
    • Download
    • Server requirements
    • Server configuration
    • Shaarli configuration
    • diff --git a/doc/Backup,-restore,-import-and-export.html b/doc/Backup,-restore,-import-and-export.html index 40c7a85..5724b68 100644 --- a/doc/Backup,-restore,-import-and-export.html +++ b/doc/Backup,-restore,-import-and-export.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
    • Home
    • Installation
        +
      • Download
      • Server requirements
      • Server configuration
      • Shaarli configuration
      • diff --git a/doc/Coding-guidelines.html b/doc/Coding-guidelines.html index fd6fa57..40d1791 100644 --- a/doc/Coding-guidelines.html +++ b/doc/Coding-guidelines.html @@ -17,6 +17,7 @@
      • Home
      • Installation
          +
        • Download
        • Server requirements
        • Server configuration
        • Shaarli configuration
        • diff --git a/doc/Community-&-Related-software.html b/doc/Community-&-Related-software.html index 25ef0f8..34bc615 100644 --- a/doc/Community-&-Related-software.html +++ b/doc/Community-&-Related-software.html @@ -17,6 +17,7 @@
        • Home
        • Installation -

          Android apps

          +

          Mobile Apps

          Integration with other platforms

          Alternatives to Shaarli

          diff --git a/doc/Community-&-Related-software.md b/doc/Community-&-Related-software.md index 9cf4793..77ea242 100644 --- a/doc/Community-&-Related-software.md +++ b/doc/Community-&-Related-software.md @@ -1,40 +1,42 @@ #Community & Related software -*Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork.* +_Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork._ -*TODO: contact repos owners to see if they'd like to standardize their work with the community fork.* +_TODO: contact repos owners to see if they'd like to standardize their work with the community fork._ ## Community -* [Liens en vrac de sebsauvage](http://sebsauvage.net/links/) - the original Shaarli[](.html) -* [A large list of Shaarlis](http://porneia.free.fr/pub/links/ou-est-shaarli.html)[](.html) -* [A list of working Shaarli aggregators](https://raw.githubusercontent.com/Oros42/find_shaarlis/master/annuaires.json)[](.html) -* [A list of some known Shaarlis](https://github.com/Oros42/shaarlis_list)[](.html) -* [Adieu Delicious, Diigo et StumbleUpon. Salut Shaarli ! - sebsauvage.net](http://sebsauvage.net/rhaa/index.php?2011/09/16/09/29/58-adieu-delicious-diigo-et-stumbleupon-salut-shaarli-) (fr) _16/09/2011 - the original post about Shaarli_[](.html) -* [Original ideas/fixme/TODO page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:ideas)[](.html) -* [Original discussion page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion) (fr)[](.html) -* [Original revisions history](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:history)[](.html) -* [Shaarli.fr/my](https://www.shaarli.fr/my.php) - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of [DMeloni](https://github.com/DMeloni)[](.html) -* [Shaarli Community](http://shaarferme.etudiant-libre.fr.nf/index.php) - Unknown Shaarli hoster (unsupported, old fork)[](.html) +- [Liens en vrac de sebsauvage](http://sebsauvage.net/links/) - the original Shaarli[](.html) +- [A large list of Shaarlis](http://porneia.free.fr/pub/links/ou-est-shaarli.html)[](.html) +- [A list of working Shaarli aggregators](https://raw.githubusercontent.com/Oros42/find_shaarlis/master/annuaires.json)[](.html) +- [A list of some known Shaarlis](https://github.com/Oros42/shaarlis_list)[](.html) +- [Adieu Delicious, Diigo et StumbleUpon. Salut Shaarli ! - sebsauvage.net](http://sebsauvage.net/rhaa/index.php?2011/09/16/09/29/58-adieu-delicious-diigo-et-stumbleupon-salut-shaarli-) (fr) _16/09/2011 - the original post about Shaarli_[](.html) +- [Original ideas/fixme/TODO page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:ideas)[](.html) +- [Original discussion page](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion) (fr)[](.html) +- [Original revisions history](http://sebsauvage.net/wiki/doku.php?id=php:shaarli:history)[](.html) +- [Shaarli.fr/my](https://www.shaarli.fr/my.php) - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of [DMeloni](https://github.com/DMeloni)[](.html) +- [Shaarli Community](http://shaarferme.etudiant-libre.fr.nf/index.php) - Unknown Shaarli hoster (unsupported, old fork)[](.html) ### Themes See [Theming](Theming.html) for the list of community-contributed themes, and an installation guide. ### Server apps - * [shaarchiver](https://github.com/nodiscc/shaarchiver) - Archive your Shaarli bookmarks and their content[](.html) - * [shaarli-river](https://github.com/mknexen/shaarli-river) - An aggregator for shaarlis with many features [](.html) - * [Shaarlo](https://github.com/DMeloni/shaarlo) - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: [shaarli.fr](http://shaarli.fr/))[](.html) - * [Shaarlimages](https://github.com/BoboTiG/shaarlimages) - An image-oriented aggregator for Shaarlis[](.html) - * [mknexen/shaarli-api](https://github.com/mknexen/shaarli-api) - A REST API for Shaarli[](.html) - * [Self dead link](https://github.com/qwertygc/shaarli-dev-code/blob/master/self-dead-link.php) - Detect dead links on shaarli. This version use the database of shaarli. An [another version](https://github.com/qwertygc/shaarli-dev-code/blob/master/dead-link.php), can be used for others shaarli (but use most ressources).[](.html) +- [shaarchiver](https://github.com/nodiscc/shaarchiver) - Archive your Shaarli bookmarks and their content[](.html) +- [shaarli-river](https://github.com/mknexen/shaarli-river) - An aggregator for shaarlis with many features [](.html) +- [Shaarlo](https://github.com/DMeloni/shaarlo) - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: [shaarli.fr](http://shaarli.fr/))[](.html) +- [Shaarlimages](https://github.com/BoboTiG/shaarlimages) - An image-oriented aggregator for Shaarlis[](.html) +- [mknexen/shaarli-api](https://github.com/mknexen/shaarli-api) - A REST API for Shaarli[](.html) +- [Self dead link](https://github.com/qwertygc/shaarli-dev-code/blob/master/self-dead-link.php) - Detect dead links on shaarli. This version use the database of shaarli. An [another version](https://github.com/qwertygc/shaarli-dev-code/blob/master/dead-link.php), can be used for others shaarli (but use most ressources).[](.html) -### Android apps - * [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider[](.html) - * [Shaarlier for Android](https://github.com/dimtion/Shaarlier) - Android application to simply add links directly into your Shaarli[](.html) +### Mobile Apps +- [github.com/mro/ShaarliOS](https://github.com/mro/ShaarliOS#the-missing-ios-8-share-extension-to-shaarli) iOS share extension - see [#308](https://github.com/shaarli/Shaarli/issues/308#issuecomment-132303709) for some promo codes,[](.html) +- [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider[](.html) +- [Shaarlier for Android](https://github.com/dimtion/Shaarlier) - Android application to simply add links directly into your Shaarli[](.html) ## Integration with other platforms - * [tt-rss-shaarli](https://github.com/jcsaaddupuy/tt-rss-shaarli) - [TinyTiny RSS](http://tt-rss.org/) plugin that adds support for sharing articles with Shaarli[](.html) - * [octopress-shaarli](https://github.com/ahmet2mir/octopress-shaarli) - Octopress plugin to retrieve Shaarli links on the sidebara[](.html) +- [tt-rss-shaarli](https://github.com/jcsaaddupuy/tt-rss-shaarli) - [TinyTiny RSS](http://tt-rss.org/) plugin that adds support for sharing articles with Shaarli[](.html) +- [octopress-shaarli](https://github.com/ahmet2mir/octopress-shaarli) - Octopress plugin to retrieve Shaarli links on the sidebar[](.html) ## Alternatives to Shaarli -* [Shaarli alternatives](http://alternativeto.net/software/shaarli/) (alternativeto.net)[](.html) -* [Bookie](https://github.com/bookieio/bookie) - Another self-hostable, free bookmark sharing software, written in Python[](.html) -* [Unmark](https://github.com/plainmade/unmark) - An open source todo app for bookmarks ([Homepage](https://unmark.it/))[](.html) +- [Shaarli alternatives](http://alternativeto.net/software/shaarli/) (alternativeto.net)[](.html) +- [Bookie](https://github.com/bookieio/bookie) - Another self-hostable, free bookmark sharing software, written in Python[](.html) +- [Unmark](https://github.com/plainmade/unmark) - An open source todo app for bookmarks ([Homepage](https://unmark.it/))[](.html) +- [Wordpress bookmarks](https://wordpress.org/plugins/wp-bookmarks/)[](.html) diff --git a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html index 1e81b73..e27b113 100644 --- a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html +++ b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
        • Home
        • Installation
            +
          • Download
          • Server requirements
          • Server configuration
          • Shaarli configuration
          • diff --git a/doc/Datastore-hacks.html b/doc/Datastore-hacks.html index e3adee1..0bf2a49 100644 --- a/doc/Datastore-hacks.html +++ b/doc/Datastore-hacks.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
          • Home
          • Installation
              +
            • Download
            • Server requirements
            • Server configuration
            • Shaarli configuration
            • diff --git a/doc/Development.html b/doc/Development.html index 6e22257..88cf585 100644 --- a/doc/Development.html +++ b/doc/Development.html @@ -17,6 +17,7 @@
            • Home
            • Installation
                +
              • Download
              • Server requirements
              • Server configuration
              • Shaarli configuration
              • diff --git a/doc/Directory-structure.html b/doc/Directory-structure.html index ae0458f..7015923 100644 --- a/doc/Directory-structure.html +++ b/doc/Directory-structure.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
              • Home
              • Installation
                  +
                • Download
                • Server requirements
                • Server configuration
                • Shaarli configuration
                • diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html index 033dd18..7d7fe96 100644 --- a/doc/Download-CSS-styles-from-an-OPML-list.html +++ b/doc/Download-CSS-styles-from-an-OPML-list.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                • Home
                • Installation
                    +
                  • Download
                  • Server requirements
                  • Server configuration
                  • Shaarli configuration
                  • diff --git a/doc/Download.html b/doc/Download.html new file mode 100644 index 0000000..5f39c70 --- /dev/null +++ b/doc/Download.html @@ -0,0 +1,97 @@ + + + + + + + Shaarli - Download + + + + + + + +

                    Download

                    +

                    Get Shaarli!

                    +

                    Latest stable revision

                    +

                    This revision has been released and tested.

                    + +
                    $ git clone https://github.com/shaarli/Shaarli.git -b stable shaarli
                    +

                    Download as an archive

                    +
                    $ wget https://github.com/shaarli/Shaarli/archive/stable.zip
                    +$ unzip stable.zip
                    +$ mv Shaarli-stable shaarli
                    +

                    Tarballs are also available:

                    +
                    $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
                    +$ tar xvf stable.tar.gz
                    +$ mv Shaarli-stable shaarli
                    +

                    Development (mainline)

                    +

                    Use at your own risk!

                    +

                    To get the latest changes:

                    +
                    $ git clone https://github.com/shaarli/Shaarli.git shaarli
                    + + diff --git a/doc/Download.md b/doc/Download.md new file mode 100644 index 0000000..7930f54 --- /dev/null +++ b/doc/Download.md @@ -0,0 +1,31 @@ +#Download +## Get Shaarli! +### Latest stable revision +This revision has been [released](https://github.com/shaarli/Shaarli/releases) and tested.[](.html) + +#### Clone with Git (recommended) +```bash +$ git clone https://github.com/shaarli/Shaarli.git -b stable shaarli +``` + +#### Download as an archive +```bash +$ wget https://github.com/shaarli/Shaarli/archive/stable.zip +$ unzip stable.zip +$ mv Shaarli-stable shaarli +``` + +Tarballs are also available: +```bash +$ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz +$ tar xvf stable.tar.gz +$ mv Shaarli-stable shaarli +``` + +### Development (mainline) +_Use at your own risk!_ + +To get the latest changes: +```bash +$ git clone https://github.com/shaarli/Shaarli.git shaarli +``` diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html index ff73ec0..388ff96 100644 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -17,6 +17,7 @@
                  • Home
                  • Installation
                      +
                    • Download
                    • Server requirements
                    • Server configuration
                    • Shaarli configuration
                    • diff --git a/doc/FAQ.html b/doc/FAQ.html index b26b635..33eb7c6 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -17,6 +17,7 @@
                    • Home
                    • Installation
                        +
                      • Download
                      • Server requirements
                      • Server configuration
                      • Shaarli configuration
                      • diff --git a/doc/Firefox-share.html b/doc/Firefox-share.html index d666ac7..2943a86 100644 --- a/doc/Firefox-share.html +++ b/doc/Firefox-share.html @@ -17,6 +17,7 @@
                      • Home
                      • Installation
                          +
                        • Download
                        • Server requirements
                        • Server configuration
                        • Shaarli configuration
                        • diff --git a/doc/GnuPG-signature.html b/doc/GnuPG-signature.html index b7dc108..a1210b7 100644 --- a/doc/GnuPG-signature.html +++ b/doc/GnuPG-signature.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                        • Home
                        • Installation
                            +
                          • Download
                          • Server requirements
                          • Server configuration
                          • Shaarli configuration
                          • diff --git a/doc/Home.html b/doc/Home.html index 90372a4..39d951c 100644 --- a/doc/Home.html +++ b/doc/Home.html @@ -17,6 +17,7 @@
                          • Home
                          • Installation
                              +
                            • Download
                            • Server requirements
                            • Server configuration
                            • Shaarli configuration
                            • diff --git a/doc/Plugin-System.html b/doc/Plugin-System.html index 719b76f..cb1cb74 100644 --- a/doc/Plugin-System.html +++ b/doc/Plugin-System.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Home
                            • Installation
                                +
                              • Download
                              • Server requirements
                              • Server configuration
                              • Shaarli configuration
                              • diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html index 7d1de07..859869b 100644 --- a/doc/RSS-feeds.html +++ b/doc/RSS-feeds.html @@ -17,6 +17,7 @@
                              • Home
                              • Installation
                                  +
                                • Download
                                • Server requirements
                                • Server configuration
                                • Shaarli configuration
                                • diff --git a/doc/Security.html b/doc/Security.html index db44da2..914fa50 100644 --- a/doc/Security.html +++ b/doc/Security.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                • Home
                                • Installation
                                    +
                                  • Download
                                  • Server requirements
                                  • Server configuration
                                  • Shaarli configuration
                                  • diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index e4e383a..3aa8972 100644 --- a/doc/Server-configuration.html +++ b/doc/Server-configuration.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                  • Home
                                  • Installation
                                      +
                                    • Download
                                    • Server requirements
                                    • Server configuration
                                    • Shaarli configuration
                                    • @@ -279,10 +280,15 @@ location ~ ~$ { }
                                      # /etc/nginx/php.conf
                                       location ~ (index)\.php$ {
                                      -    # proxy PHP requests to PHP-FPM
                                      +    # filter and proxy PHP requests to PHP-FPM
                                           fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
                                           fastcgi_index  index.php;
                                           include        fastcgi.conf;
                                      +}
                                      +
                                      +location ~ \.php$ {
                                      +    # deny access to all other PHP scripts
                                      +    deny all;
                                       }
                                      # /etc/nginx/static_assets.conf
                                       location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
                                      diff --git a/doc/Server-configuration.md b/doc/Server-configuration.md
                                      index c9ec4e1..c7b17c5 100644
                                      --- a/doc/Server-configuration.md
                                      +++ b/doc/Server-configuration.md
                                      @@ -219,11 +219,16 @@ location ~ ~$ {
                                       ```nginx
                                       # /etc/nginx/php.conf
                                       location ~ (index)\.php$ {
                                      -    # proxy PHP requests to PHP-FPM
                                      +    # filter and proxy PHP requests to PHP-FPM
                                           fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
                                           fastcgi_index  index.php;
                                           include        fastcgi.conf;
                                       }
                                      +
                                      +location ~ \.php$ {
                                      +    # deny access to all other PHP scripts
                                      +    deny all;
                                      +}
                                       ```
                                       
                                       ```nginx
                                      diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html
                                      index b0426ee..f34f589 100644
                                      --- a/doc/Server-requirements.html
                                      +++ b/doc/Server-requirements.html
                                      @@ -17,6 +17,7 @@
                                       
                                    • Home
                                    • Installation
                                        +
                                      • Download
                                      • Server requirements
                                      • Server configuration
                                      • Shaarli configuration
                                      • @@ -75,21 +76,26 @@ +7 +RC2 +planned + + 5.6 Supported :white_check_mark: - + 5.5 Supported :white_check_mark: - + 5.4 -Supported +EOL: 2015-09-14 :white_check_mark: - + 5.3 EOL: 2014-08-14 :white_check_mark: @@ -100,9 +106,9 @@ -

                                        PHP 7.0 information:

                                        +

                                        PHP 7 information:

                                          -
                                        • Beta1 announcement
                                        • +
                                        • Announcements: Beta1, RC1, RC2
                                        • TODOLIST
                                        • Recent bugs
                                        • Git repository
                                        • diff --git a/doc/Server-requirements.md b/doc/Server-requirements.md index 6ccccac..8f44d60 100644 --- a/doc/Server-requirements.md +++ b/doc/Server-requirements.md @@ -9,16 +9,17 @@ ### Supported versions Version | Status | Shaarli compatibility :---:|:---:|:---: +7 | RC2 | planned 5.6 | Supported | :white_check_mark: 5.5 | Supported | :white_check_mark: -5.4 | Supported | :white_check_mark: +5.4 | EOL: 2015-09-14 | :white_check_mark: 5.3 | EOL: 2014-08-14 | :white_check_mark: See also: - [Travis configuration](https://github.com/shaarli/Shaarli/blob/master/.travis.yml)[](.html) -PHP 7.0 information: -- [Beta1 announcement](http://php.net/archive/2015.php#id2015-07-10-4)[](.html) +PHP 7 information: +- Announcements: [Beta1](http://php.net/archive/2015.php#id2015-07-10-4), [RC1](http://php.net/archive/2015.php#id2015-08-21-1), [RC2](http://php.net/archive/2015.php#id2015-09-04-1)[](.html) - [TODOLIST](https://wiki.php.net/todo/php70)[](.html) - [Recent bugs](https://bugs.php.net/search.php?limit=30&order_by=id&direction=DESC&cmd=display&status=Open&bug_type=All&phpver=7.0)[](.html) - [Git repository](http://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.0.0)[](.html) diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html index 663b43e..b7e29cb 100644 --- a/doc/Shaarli-configuration.html +++ b/doc/Shaarli-configuration.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                        • Home
                                        • Installation
                                            +
                                          • Download
                                          • Server requirements
                                          • Server configuration
                                          • Shaarli configuration
                                          • diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html index d3f3625..6fa5e77 100644 --- a/doc/Sharing-button.html +++ b/doc/Sharing-button.html @@ -17,6 +17,7 @@
                                          • Home
                                          • Installation
                                              +
                                            • Download
                                            • Server requirements
                                            • Server configuration
                                            • Shaarli configuration
                                            • diff --git a/doc/Static-analysis.html b/doc/Static-analysis.html index dd1dd22..e95893a 100644 --- a/doc/Static-analysis.html +++ b/doc/Static-analysis.html @@ -17,6 +17,7 @@
                                            • Home
                                            • Installation
                                                +
                                              • Download
                                              • Server requirements
                                              • Server configuration
                                              • Shaarli configuration
                                              • diff --git a/doc/TODO.html b/doc/TODO.html index c25775c..7a6a4bf 100644 --- a/doc/TODO.html +++ b/doc/TODO.html @@ -17,6 +17,7 @@
                                              • Home
                                              • Installation
                                                  +
                                                • Download
                                                • Server requirements
                                                • Server configuration
                                                • Shaarli configuration
                                                • diff --git a/doc/Theming.html b/doc/Theming.html index b5d214e..a751eb9 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                • Home
                                                • Installation
                                                    +
                                                  • Download
                                                  • Server requirements
                                                  • Server configuration
                                                  • Shaarli configuration
                                                  • diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html index 00cfdff..98fd535 100644 --- a/doc/Troubleshooting.html +++ b/doc/Troubleshooting.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                  • Home
                                                  • Installation
                                                      +
                                                    • Download
                                                    • Server requirements
                                                    • Server configuration
                                                    • Shaarli configuration
                                                    • @@ -134,10 +135,11 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                                      Hosting problems

                                                      Old PHP versions

                                                        -
                                                      • On free.fr : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a sessions directory at the root of your webspace. Change the file extension to .php5 or create a .htaccess file in the directory where Shaarli is located containing:
                                                      • +
                                                      • On free.fr : free.fr now support php 5.6.x(link)and so support now the tag autocompletion but you have to do the following : At the root of your webspace create a sessions directory and a .htaccess file containing:
                                                      -
                                                      php 1
                                                      -SetEnv PHP_VER 5
                                                      +
                                                      <IfDefine Free>
                                                      +php56 1
                                                      +</IfDefine>
                                                      • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
                                                      • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
                                                      • diff --git a/doc/Troubleshooting.md b/doc/Troubleshooting.md index 4e6cdb0..e91fe84 100644 --- a/doc/Troubleshooting.md +++ b/doc/Troubleshooting.md @@ -61,11 +61,12 @@ Search for `failed` in this file to look for unauthorized login attempts. ## Hosting problems ### Old PHP versions - * On **free.fr** : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a `sessions` directory at the root of your webspace. Change the file extension to `.php5` or create a `.htaccess` file in the directory where Shaarli is located containing: + * On **free.fr** : free.fr now support php 5.6.x([link](http://les.pages.perso.chez.free.fr/migrations/php5v6.io))and so support now the tag autocompletion but you have to do the following : At the root of your webspace create a `sessions` directory and a `.htaccess` file containing:[](.html) ```ini -php 1 -SetEnv PHP_VER 5 + +php56 1 + ``` * If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to `.php5` diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html index f4b42bd..6d76077 100644 --- a/doc/Unit-tests.html +++ b/doc/Unit-tests.html @@ -36,6 +36,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                      • Home
                                                      • Installation
                                                          +
                                                        • Download
                                                        • Server requirements
                                                        • Server configuration
                                                        • Shaarli configuration
                                                        • diff --git a/doc/Usage.html b/doc/Usage.html index ad5b796..0ba457f 100644 --- a/doc/Usage.html +++ b/doc/Usage.html @@ -17,6 +17,7 @@
                                                        • Home
                                                        • Installation
                                                            +
                                                          • Download
                                                          • Server requirements
                                                          • Server configuration
                                                          • Shaarli configuration
                                                          • diff --git a/doc/_Footer.html b/doc/_Footer.html new file mode 100644 index 0000000..9803238 --- /dev/null +++ b/doc/_Footer.html @@ -0,0 +1,61 @@ + + + + + + + Shaarli - _Footer + + + + + + +

                                                            _Footer
                                                            Shaarli, the personal, minimalist, super-fast, no-database delicious clone

                                                            + + diff --git a/doc/_Footer.md b/doc/_Footer.md new file mode 100644 index 0000000..29c39bb --- /dev/null +++ b/doc/_Footer.md @@ -0,0 +1,2 @@ +#_Footer +_Shaarli, the personal, minimalist, super-fast, no-database delicious clone_ diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html index 0f9d546..fbf6dff 100644 --- a/doc/_Sidebar.html +++ b/doc/_Sidebar.html @@ -17,6 +17,7 @@
                                                          • Home
                                                          • Installation
                                                              +
                                                            • Download
                                                            • Server requirements
                                                            • Server configuration
                                                            • Shaarli configuration
                                                            • @@ -60,6 +61,7 @@
                                                            • Home
                                                            • Installation
                                                                +
                                                              • Download
                                                              • Server requirements
                                                              • Server configuration
                                                              • Shaarli configuration
                                                              • diff --git a/doc/_Sidebar.md b/doc/_Sidebar.md index db75943..68e3b9f 100644 --- a/doc/_Sidebar.md +++ b/doc/_Sidebar.md @@ -1,6 +1,7 @@ #_Sidebar - [Home](Home.html) - Installation + - [Download](Download.html) - [Server requirements](Server-requirements.html) - [Server configuration](Server-configuration.html) - [Shaarli configuration](Shaarli-configuration.html) diff --git a/doc/sidebar.html b/doc/sidebar.html index e8bc593..826e4cb 100644 --- a/doc/sidebar.html +++ b/doc/sidebar.html @@ -3,6 +3,7 @@
                                                              • Home
                                                              • Installation
                                                                  +
                                                                • Download
                                                                • Server requirements
                                                                • Server configuration
                                                                • Shaarli configuration
                                                                • From e9b80e72729c3fb984f7b2f3d9603c3b3fcd1849 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 6 Sep 2015 01:56:37 +0200 Subject: [PATCH 175/658] Rewrite README.md Modifications: - group content in sections - homogenize formatting - replace installation instructions by links to the corresponding wiki pages - update badges - use http://shields.io/ to generate SVGs with custom labels - master branch: update Travis label - stable branch: add Travis status - GitHub release: display the latest released version Signed-off-by: VirtualTam --- README.md | 163 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 94 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index a5a3bba..9cc4773 100755 --- a/README.md +++ b/README.md @@ -1,89 +1,114 @@ ![Shaarli logo](doc/images/doc-logo.png) -Shaarli, the personal, minimalist, super-fast, no-database delicious clone. +The personal, minimalist, super-fast, no-database delicious clone. -Do you want to share the links you discover? Shaarli is a minimalist delicious clone you can install on your own website. -It is designed to be personal (single-user), fast and handy. +_Do you want to share the links you discover?_ +_Shaarli is a minimalist delicious clone that you can install on your own server._ +_It is designed to be personal (single-user), fast and handy._ -[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli) -[![Bountysource](https://www.bountysource.com/badge/team?team_id=19583&style=bounties_received)](https://www.bountysource.com/teams/shaarli/issues) [![](https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli) +[![](https://img.shields.io/travis/shaarli/Shaarli.svg?label=master)](https://travis-ci.org/shaarli/Shaarli) +[![](https://img.shields.io/travis/shaarli/Shaarli/stable.svg?label=stable)](https://travis-ci.org/shaarli/Shaarli) +[![](https://img.shields.io/github/release/shaarli/shaarli.svg)](https://github.com/shaarli/Shaarli/releases/latest/) [![Docker repository](https://img.shields.io/docker/pulls/shaarli/shaarli.svg)](https://hub.docker.com/r/shaarli/shaarli/) +[![Join the chat at https://gitter.im/shaarli/Shaarli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shaarli/Shaarli) +[![Bountysource](https://www.bountysource.com/badge/team?team_id=19583&style=bounties_received)](https://www.bountysource.com/teams/shaarli/issues) + +## Quickstart +- [Wiki/documentation](https://github.com/shaarli/Shaarli/wiki) +- [Bugs/Feature requests/Discussion](https://github.com/shaarli/Shaarli/issues/) + +### Demo +You can use this [public demo instance of Shaarli](http://shaarlidemo.tuxfamily.org/Shaarli). +It runs the latest development version of Shaarli and is updated/reset daily. + +Login: `demo`; Password: `demo` + +### Installation & upgrade +- [Download](https://github.com/shaarli/Shaarli/wiki/Download) +- [Server requirements](https://github.com/shaarli/Shaarli/wiki/Server-requirements) +- [Server configuration](https://github.com/shaarli/Shaarli/wiki/Server-configuration) +- [Shaarli configuration](https://github.com/shaarli/Shaarli/wiki/Shaarli-configuration) + ## Features +### Interface +- minimalist design (simple is beautiful) +- FAST +- ATOM and RSS feeds +- views: + - paginated link list + - tag cloud + - picture wall: image and video thumbails + - daily: newspaper-like daily digest + - daily RSS feed +- permalinks for easy reference +- links can be public or private - * Minimalist design (simple is beautiful) - * **FAST** - * Dead-simple installation: Drop the files, open the page. No database required. - * Easy to use: Single button in your browser to bookmark a page (**bookmarklet**) - * Save **URL, title, description** (unlimited size). - * Classify, search and filter links with **tags**. - * Tag autocompletion, renaming, merging and deletion. - * Save links as **public or private** - * Browse links by page, filter by tag or use the **full text search engine** - * **Tag cloud** - * **Picture wall** (which can be filtered by tag or text search) - * **“Daily”** Newspaper-like digest, browsable by day. - * **Permalinks** (with QR-Code) for easy reference - * **RSS** and ATOM feeds - * Can be filtered by tag or text search! - * “Daily” RSS feed: Get each day a digest of all new links. - * Can **import/export** Netscape bookmarks (for import/export from/to Firefox, Opera, Chrome, Delicious…) - * Automatic **image/video thumbnails** for various services (imgur, imageshack.us, flickr, youtube, vimeo, dailymotion…) - * Support for http/ftp/file/apt/magnet protocol links - * URLs in descriptions are automatically converted to clickable links in descriptions - * Easy backup (Data stored in a single file) - * 1-click access to your private links/notes - * Compact storage (1315 links stored in 150 kb) - * Mobile browsers support - * Also works with javascript disabled - * Brute force protected login form - * [PubSubHubbub](https://code.google.com/p/pubsubhubbub/) protocol support - * Automatic removal of annoying FeedBurner/Google FeedProxy parameters in URL (?utm_source…) - * Pages are easy to customize (using CSS and simple RainTPL templates) - * Protected against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery), session cookie hijacking. - * You will be automatically notified by a discreet popup if a new version is available - * **Shaarli is a bookmarking application, but you can use it for micro-blogging (like Twitter), a pastebin, an online notepad, a snippet repository, etc. See [Usage examples](https://github.com/shaarli/Shaarli/wiki#usage-examples)** +### Tag, view and search your links! +- add a custom title and description to archived links +- add tags to classify and search links + - features tag autocompletion, renaming, merging and deletion +- full-text and tag search -## Demo -You can use this [public demo instance of Shaarli](http://shaarlidemo.tuxfamily.org/Shaarli). This demo runs the latest _development version_ of Shaarli and is updated/reset every day. +### Easy setup +- dead-simple installation: drop the files, open the page +- links are stored in a file + - compact storage + - no database required + - easy backup: simply copy the datastore file +- import and export links as Netscape bookmarks -Login: `demo` -Password: `demo` +### Accessibility +- Firefox bookmarlet to share links in one click +- support for mobile browsers +- works with Javascript disabled +- easy page customization through HTML/CSS/RainTPL +### Security +- bruteforce-proof login form +- protected against [XSRF](http://en.wikipedia.org/wiki/Cross-site_request_forgery) +and session cookie hijacking -## Links - - * **[Wiki/documentation](https://github.com/shaarli/Shaarli/wiki)** - * [Bugs/Feature requests/Discussion](https://github.com/shaarli/Shaarli/issues/) - - -## Requirements - -Check the [Server requirements](https://github.com/shaarli/Shaarli/wiki/Server-requirements) wiki page. - -## Installing - - * Download the latest stable release from https://github.com/shaarli/Shaarli/releases - * Unpack the archive in a directory on your web server - * Visit this directory from a web browser. - * Choose login, password, timezone and page title. Save. - -_To get the development version, download https://github.com/shaarli/Shaarli/archive/master.zip or `git clone https://github.com/shaarli/Shaarli`_ - - -## Upgrading - - * **If you installed from the zip:** Delete all files and directories except the `data` directory, then unzip the new version of Shaarli. You will not lose your links and you will not have to reconfigure it. - * **If you installed using `git clone`**: run `git pull` in your Shaarli directory. +### Goodies +- thumbnail generation for images and video services: +dailymotion, flickr, imageshack, imgur, vimeo, xkcd, youtube... + - lazy-loading with [bLazy](http://dinbror.dk/blazy/) +- [PubSubHubbub](https://code.google.com/p/pubsubhubbub/) protocol support +- URL cleanup: automatic removal of `?utm_source=...`, `fb=...` +- discreet pop-up notification when a new release is available +### Other usages +Though Shaarli is primarily a bookmarking application, it can serve other purposes +(see [usage examples](https://github.com/shaarli/Shaarli/wiki#usage-examples)): +- micro-blogging +- pastebin +- online notepad +- snippet archive ## About +### Shaarli community fork +This friendly fork is maintained by the Shaarli community at https://github.com/shaarli/Shaarli -This friendly fork is maintained by the community at https://github.com/shaarli/Shaarli +This is a community fork of the original [Shaarli](https://github.com/sebsauvage/Shaarli/) project by [Sébastien Sauvage](http://sebsauvage.net/). -This is a community fork of the original [Shaarli](https://github.com/sebsauvage/Shaarli/) project by [sebsauvage](http://sebsauvage.net/). The original project is currently unmaintained, and the developer [has informed us](https://github.com/sebsauvage/Shaarli/issues/191) that he would have no time to work on Shaarli in the near future. The Shaarli community has carried on the work to provide [many patches](https://github.com/shaarli/Shaarli/compare/sebsauvage:master...master) for [bug fixes and enhancements](https://github.com/shaarli/Shaarli/issues?q=is%3Aclosed+) in this repository, and will keep maintaining the project for the foreseeable future, while keeping Shaarli simple and efficient. If you'd like to help, have a look at the current [issues](https://github.com/shaarli/Shaarli/issues) and [pull requests](https://github.com/shaarli/Shaarli/pulls) and feel free to report bugs and feature requests, propose solutions to existing problems and send us pull requests. +The original project is currently unmaintained, and the developer +[has informed us](https://github.com/sebsauvage/Shaarli/issues/191) that he would +have no time to work on Shaarli in the near future. +The Shaarli community has carried on the work to provide +[many patches](https://github.com/shaarli/Shaarli/compare/sebsauvage:master...master) +for [bug fixes and enhancements](https://github.com/shaarli/Shaarli/issues?q=is%3Aclosed+) +in this repository, and will keep maintaining the project for the foreseeable future, +while keeping Shaarli simple and efficient. + +### Contributing +If you'd like to help, please: +- have a look at the open [issues](https://github.com/shaarli/Shaarli/issues) +and [pull requests](https://github.com/shaarli/Shaarli/pulls) +- feel free to report bugs (feedback is much appreciated) +- suggest new features and improvements to both code and [documentation](https://github.com/shaarli/Shaarli/wiki) +- propose solutions to existing problems +- submit pull requests :-) -## License - +### License Shaarli is [Free Software](http://en.wikipedia.org/wiki/Free_software). See [COPYING](COPYING) for a detail of the contributors and licenses for each individual component. From cd5c1028920a096cefc4b2dc3c15bb18c07d9101 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 6 Sep 2015 02:22:52 +0200 Subject: [PATCH 176/658] Update README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9cc4773..a693e47 100755 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Login: `demo`; Password: `demo` - views: - paginated link list - tag cloud - - picture wall: image and video thumbails + - picture wall: image and video thumbnails - daily: newspaper-like daily digest - daily RSS feed - permalinks for easy reference @@ -91,14 +91,12 @@ This friendly fork is maintained by the Shaarli community at https://github.com/ This is a community fork of the original [Shaarli](https://github.com/sebsauvage/Shaarli/) project by [Sébastien Sauvage](http://sebsauvage.net/). -The original project is currently unmaintained, and the developer -[has informed us](https://github.com/sebsauvage/Shaarli/issues/191) that he would -have no time to work on Shaarli in the near future. +The original project is currently unmaintained, and the developer [has informed us](https://github.com/sebsauvage/Shaarli/issues/191) +that he would have no time to work on Shaarli in the near future. The Shaarli community has carried on the work to provide [many patches](https://github.com/shaarli/Shaarli/compare/sebsauvage:master...master) for [bug fixes and enhancements](https://github.com/shaarli/Shaarli/issues?q=is%3Aclosed+) -in this repository, and will keep maintaining the project for the foreseeable future, -while keeping Shaarli simple and efficient. +in this repository, and will keep maintaining the project for the foreseeable future, while keeping Shaarli simple and efficient. ### Contributing If you'd like to help, please: From db5453e4b6861ff8bad96ca09e55db6f75dd30a0 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 6 Sep 2015 03:07:25 +0200 Subject: [PATCH 177/658] COPYING: update contributor list Signed-off-by: VirtualTam --- COPYING | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/COPYING b/COPYING index 7e222aa..adc856e 100644 --- a/COPYING +++ b/COPYING @@ -15,10 +15,16 @@ Copyright: (c) 2011-2015 Sébastien SAUVAGE (c) 2011-2015 nodiscc (c) 2011-2015 Florian Eula (c) 2011-2015 Arthur Hoaro - (c) 2011-2015 virtualtam + (c) 2011-2015 Aurélien "VirtualTam" Tamisier (c) 2011-2015 qwertygc (c) 2011-2015 idleman + (c) 2015 Alexis Ju + (c) 2015 dimtion + (c) 2015 Felix Bartels + (c) 2015 Marsup (c) 2015 Miloš Jovanović + (c) 2015 Nicolás Danelón + (c) 2015 TsT Files: inc/reset.css From 68bc21353a6138a898724c8bb87684bb2b6b2c1c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 3 Sep 2015 23:12:58 +0200 Subject: [PATCH 178/658] Session ID: extend the regex to match possible hash representations Improves #306 Relates to #335 & #336 Duplicated by #339 Issues: - PHP regenerates the session ID if it is not compliant - the regex checking the session ID does not cover all cases - different algorithms: md5, sha1, sha256, etc. - bit representations: 4, 5, 6 Fix: - `index.php`: - remove `uniqid()` usage - call `session_regenerate_id()` if an invalid cookie is detected - regex: support all possible characters - '[a-zA-Z,-]{2,128}' - tests: add coverage for all algorithms & bit representations See: - http://php.net/manual/en/session.configuration.php#ini.session.hash-function - https://secure.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character - http://php.net/manual/en/function.session-id.php - http://php.net/manual/en/function.session-regenerate-id.php - http://php.net/manual/en/function.hash-algos.php Signed-off-by: VirtualTam --- application/Utils.php | 7 ++- index.php | 10 +++-- tests/UtilsTest.php | 56 ++++++++++++++++++++++-- tests/utils/ReferenceSessionIdHashes.php | 55 +++++++++++++++++++++++ 4 files changed, 119 insertions(+), 9 deletions(-) create mode 100644 tests/utils/ReferenceSessionIdHashes.php diff --git a/application/Utils.php b/application/Utils.php index cb03f11..1422961 100755 --- a/application/Utils.php +++ b/application/Utils.php @@ -140,11 +140,16 @@ function checkPHPVersion($minVersion, $curVersion) /** * Validate session ID to prevent Full Path Disclosure. + * * See #298. + * The session ID's format depends on the hash algorithm set in PHP settings * * @param string $sessionId Session ID * * @return true if valid, false otherwise. + * + * @see http://php.net/manual/en/function.hash-algos.php + * @see http://php.net/manual/en/session.configuration.php */ function is_session_id_valid($sessionId) { @@ -156,7 +161,7 @@ function is_session_id_valid($sessionId) return false; } - if (!preg_match('/^[a-z0-9]{2,32}$/i', $sessionId)) { + if (!preg_match('/^[a-zA-Z0-9,-]{2,128}$/', $sessionId)) { return false; } diff --git a/index.php b/index.php index d615da1..8863cc2 100755 --- a/index.php +++ b/index.php @@ -92,16 +92,18 @@ ini_set('session.use_only_cookies', 1); // Prevent PHP form using sessionID in URL if cookies are disabled. ini_set('session.use_trans_sid', false); -// Regenerate session id if invalid or not defined in cookie. -if (isset($_COOKIE['shaarli']) && !is_session_id_valid($_COOKIE['shaarli'])) { - $_COOKIE['shaarli'] = uniqid(); -} session_name('shaarli'); // Start session if needed (Some server auto-start sessions). if (session_id() == '') { session_start(); } +// Regenerate session ID if invalid or not defined in cookie. +if (isset($_COOKIE['shaarli']) && !is_session_id_valid($_COOKIE['shaarli'])) { + session_regenerate_id(true); + $_COOKIE['shaarli'] = session_id(); +} + include "inc/rain.tpl.class.php"; //include Rain TPL raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 5175dde..7f218ad 100755 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -4,12 +4,28 @@ */ require_once 'application/Utils.php'; +require_once 'tests/utils/ReferenceSessionIdHashes.php'; + +// Initialize reference data before PHPUnit starts a session +ReferenceSessionIdHashes::genAllHashes(); + /** * Unitary tests for Shaarli utilities */ class UtilsTest extends PHPUnit_Framework_TestCase { + // Session ID hashes + protected static $sidHashes = null; + + /** + * Assign reference data + */ + public static function setUpBeforeClass() + { + self::$sidHashes = ReferenceSessionIdHashes::getHashes(); + } + /** * Represent a link by its hash */ @@ -152,11 +168,41 @@ class UtilsTest extends PHPUnit_Framework_TestCase } /** - * Test is_session_id_valid with a valid ID. + * Test is_session_id_valid with a valid ID - TEST ALL THE HASHES! + * + * This tests extensively covers all hash algorithms / bit representations */ - public function testIsSessionIdValid() + public function testIsAnyHashSessionIdValid() { - $this->assertTrue(is_session_id_valid('azertyuiop123456789AZERTYUIOP1aA')); + foreach (self::$sidHashes as $algo => $bpcs) { + foreach ($bpcs as $bpc => $hash) { + $this->assertTrue(is_session_id_valid($hash)); + } + } + } + + /** + * Test is_session_id_valid with a valid ID - SHA-1 hashes + */ + public function testIsSha1SessionIdValid() + { + $this->assertTrue(is_session_id_valid(sha1('shaarli'))); + } + + /** + * Test is_session_id_valid with a valid ID - SHA-256 hashes + */ + public function testIsSha256SessionIdValid() + { + $this->assertTrue(is_session_id_valid(hash('sha256', 'shaarli'))); + } + + /** + * Test is_session_id_valid with a valid ID - SHA-512 hashes + */ + public function testIsSha512SessionIdValid() + { + $this->assertTrue(is_session_id_valid(hash('sha512', 'shaarli'))); } /** @@ -166,6 +212,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase { $this->assertFalse(is_session_id_valid('')); $this->assertFalse(is_session_id_valid(array())); - $this->assertFalse(is_session_id_valid('c0ZqcWF3VFE2NmJBdm1HMVQ0ZHJ3UmZPbTFsNGhkNHI=')); + $this->assertFalse( + is_session_id_valid('c0ZqcWF3VFE2NmJBdm1HMVQ0ZHJ3UmZPbTFsNGhkNHI=') + ); } } diff --git a/tests/utils/ReferenceSessionIdHashes.php b/tests/utils/ReferenceSessionIdHashes.php new file mode 100644 index 0000000..60b1c00 --- /dev/null +++ b/tests/utils/ReferenceSessionIdHashes.php @@ -0,0 +1,55 @@ + Date: Tue, 1 Sep 2015 21:45:06 +0200 Subject: [PATCH 179/658] HTTP: move utils to a proper file, add tests Relates to #333 Modifications: - move HTTP utils to 'application/HttpUtils.php' - simplify logic - replace 'http_parse_headers_shaarli' by built-in 'get_headers()' - remove superfluous '$status' parameter (provided by the HTTP headers) - apply coding conventions - add test coverage (unitary only) Signed-off-by: VirtualTam --- application/HttpUtils.php | 52 ++++++++++++++++++ index.php | 110 +++++++++++--------------------------- tests/HttpUtilsTest.php | 38 +++++++++++++ 3 files changed, 122 insertions(+), 78 deletions(-) create mode 100644 application/HttpUtils.php create mode 100644 tests/HttpUtilsTest.php diff --git a/application/HttpUtils.php b/application/HttpUtils.php new file mode 100644 index 0000000..175333a --- /dev/null +++ b/application/HttpUtils.php @@ -0,0 +1,52 @@ + array( + 'method' => 'GET', + 'timeout' => $timeout, + 'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0)' + .' Gecko/20100101 Firefox/23.0' + ) + ); + + $context = stream_context_create($options); + + try { + // TODO: catch Exception in calling code (thumbnailer) + $content = file_get_contents($url, false, $context, -1, $maxBytes); + } catch (Exception $exc) { + return array(array(0 => 'HTTP Error'), $exc->getMessage()); + } + + if (!$content) { + return array(array(0 => 'HTTP Error'), ''); + } + + return array(get_headers($url, 1), $content); +} diff --git a/index.php b/index.php index 8863cc2..e39cff3 100755 --- a/index.php +++ b/index.php @@ -59,6 +59,7 @@ if (is_file($GLOBALS['config']['CONFIG_FILE'])) { // Shaarli library require_once 'application/Cache.php'; require_once 'application/CachedPage.php'; +require_once 'application/HttpUtils.php'; require_once 'application/LinkDB.php'; require_once 'application/TimeZone.php'; require_once 'application/Url.php'; @@ -209,9 +210,11 @@ function checkUpdate() // Get latest version number at most once a day. if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])','',str_replace('', '', str_replace('array('method'=>'GET','timeout' => $timeout, 'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0')); // Force network timeout - $context = stream_context_create($options); - $data=file_get_contents($url,false,$context,-1, 4000000); // We download at most 4 Mb from source. - if (!$data) { return array('HTTP Error',array(),''); } - $httpStatus=$http_response_header[0]; // e.g. "HTTP/1.1 200 OK" - $responseHeaders=http_parse_headers_shaarli($http_response_header); - return array($httpStatus,$responseHeaders,$data); - } - catch (Exception $e) // getHTTP *can* fail silently (we don't care if the title cannot be fetched) - { - return array($e->getMessage(),'',''); - } -} - // Extract title from an HTML document. // (Returns an empty string if not found.) function html_extract_title($html) @@ -1516,9 +1472,10 @@ function renderPage() $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // If this is an HTTP(S) link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) if (empty($title) && strpos($url->getScheme(), 'http') !== false) { - list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. + // Short timeout to keep the application responsive + list($headers, $data) = get_http_url($url, 4); // FIXME: Decode charset according to specified in either 1) HTTP response headers or 2) in html - if (strpos($status,'200 OK')!==false) { + if (strpos($headers[0], '200 OK') !== false) { // Look for charset in html header. preg_match('##Usi', $data, $meta); @@ -2186,8 +2143,9 @@ function genThumbnail() } else // This is a flickr page (html) { - list($httpstatus,$headers,$data) = getHTTP($url,20); // Get the flickr html page. - if (strpos($httpstatus,'200 OK')!==false) + // Get the flickr html page. + list($headers, $data) = get_http_url($url, 20); + if (strpos($headers[0], '200 OK') !== false) { // flickr now nicely provides the URL of the thumbnail in each flickr page. preg_match('! tag on that page // http://www.ted.com/talks/mikko_hypponen_fighting_viruses_defending_the_net.html // - list($httpstatus,$headers,$data) = getHTTP($url,5); - if (strpos($httpstatus,'200 OK')!==false) - { + list($headers, $data) = get_http_url($url, 5); + if (strpos($headers[0], '200 OK') !== false) { // Extract the link to the thumbnail preg_match('!link rel="image_src" href="(http://images.ted.com/images/ted/.+_\d+x\d+\.jpg)"!',$data,$matches); if (!empty($matches[1])) { // Let's download the image. $imageurl=$matches[1]; - list($httpstatus,$headers,$data) = getHTTP($imageurl,20); // No control on image size, so wait long enough. - if (strpos($httpstatus,'200 OK')!==false) - { + // No control on image size, so wait long enough + list($headers, $data) = get_http_url($imageurl, 20); + if (strpos($headers[0], '200 OK') !== false) { $filepath=$GLOBALS['config']['CACHEDIR'].'/'.$thumbname; file_put_contents($filepath,$data); // Save image to cache. if (resizeImage($filepath)) @@ -2273,17 +2228,16 @@ function genThumbnail() // There is no thumbnail available for xkcd comics, so download the whole image and resize it. // http://xkcd.com/327/ // <BLABLA> - list($httpstatus,$headers,$data) = getHTTP($url,5); - if (strpos($httpstatus,'200 OK')!==false) - { + list($headers, $data) = get_http_url($url, 5); + if (strpos($headers[0], '200 OK') !== false) { // Extract the link to the thumbnail preg_match('!cleanup(); +} + +/** + * Get URL scheme. + * + * @param string url Url for which the scheme is requested + * + * @return mixed the URL scheme or false if none is provided. + */ +function get_url_scheme($url) +{ + $obj_url = new Url($url); + return $obj_url->getScheme(); +} + /** * URL representation and cleanup utilities * @@ -90,7 +116,7 @@ class Url /** * Returns a string representation of this URL */ - public function __toString() + public function toString() { return unparse_url($this->parts); } @@ -149,7 +175,7 @@ class Url { $this->cleanupQuery(); $this->cleanupFragment(); - return $this->__toString(); + return $this->toString(); } /** diff --git a/index.php b/index.php index e39cff3..61d92f0 100755 --- a/index.php +++ b/index.php @@ -1454,12 +1454,11 @@ function renderPage() // -------- User want to post a new link: Display link edit form. if (isset($_GET['post'])) { - $url = new Url($_GET['post']); - $url->cleanup(); + $url = cleanup_url($_GET['post']); $link_is_new = false; // Check if URL is not already in database (in this case, we will edit the existing link) - $link = $LINKSDB->getLinkFromUrl((string)$url); + $link = $LINKSDB->getLinkFromUrl($url); if (!$link) { $link_is_new = true; @@ -1471,7 +1470,7 @@ function renderPage() $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // If this is an HTTP(S) link, we try go get the page to extract the title (otherwise we will to straight to the edit form.) - if (empty($title) && strpos($url->getScheme(), 'http') !== false) { + if (empty($title) && strpos(get_url_scheme($url), 'http') !== false) { // Short timeout to keep the application responsive list($headers, $data) = get_http_url($url, 4); // FIXME: Decode charset according to specified in either 1) HTTP response headers or 2) in html @@ -1505,7 +1504,7 @@ function renderPage() $link = array( 'linkdate' => $linkdate, 'title' => $title, - 'url' => (string)$url, + 'url' => $url, 'description' => $description, 'tags' => $tags, 'private' => $private diff --git a/tests/Url/CleanupUrlTest.php b/tests/Url/CleanupUrlTest.php new file mode 100644 index 0000000..ba9a043 --- /dev/null +++ b/tests/Url/CleanupUrlTest.php @@ -0,0 +1,76 @@ +assertEquals('', cleanup_url('')); + } + + /** + * Clean an already cleaned Url + */ + public function testCleanupUrlAlreadyClean() + { + $ref = 'http://domain.tld:3000'; + $this->assertEquals($ref, cleanup_url($ref)); + $ref = $ref.'/path/to/dir/'; + $this->assertEquals($ref, cleanup_url($ref)); + } + + /** + * Clean Url needing cleaning + */ + public function testCleanupUrlNeedClean() + { + $ref = 'http://domain.tld:3000'; + $this->assertEquals($ref, cleanup_url($ref.'#tk.rss_all')); + $this->assertEquals($ref, cleanup_url($ref.'#xtor=RSS-')); + $this->assertEquals($ref, cleanup_url($ref.'#xtor=RSS-U3ht0tkc4b')); + $this->assertEquals($ref, cleanup_url($ref.'?action_object_map=junk')); + $this->assertEquals($ref, cleanup_url($ref.'?action_ref_map=Cr4p!')); + $this->assertEquals($ref, cleanup_url($ref.'?action_type_map=g4R84g3')); + + $this->assertEquals($ref, cleanup_url($ref.'?fb_stuff=v41u3')); + $this->assertEquals($ref, cleanup_url($ref.'?fb=71m3w4573')); + + $this->assertEquals($ref, cleanup_url($ref.'?utm_campaign=zomg')); + $this->assertEquals($ref, cleanup_url($ref.'?utm_medium=numnum')); + $this->assertEquals($ref, cleanup_url($ref.'?utm_source=c0d3')); + $this->assertEquals($ref, cleanup_url($ref.'?utm_term=1n4l')); + + $this->assertEquals($ref, cleanup_url($ref.'?xtor=some-url')); + $this->assertEquals($ref, cleanup_url($ref.'?xtor=some-url&fb=som3th1ng')); + $this->assertEquals($ref, cleanup_url( + $ref.'?fb=stuff&utm_campaign=zomg&utm_medium=numnum&utm_source=c0d3' + )); + $this->assertEquals($ref, cleanup_url( + $ref.'?xtor=some-url&fb=som3th1ng#tk.rss_all' + )); + + // ditch annoying query params and fragment, keep useful params + $this->assertEquals( + $ref.'?my=stuff&is=kept', + cleanup_url( + $ref.'?fb=zomg&my=stuff&utm_medium=numnum&is=kept#tk.rss_all' + ) + ); + + // ditch annoying query params, keep useful params and fragment + $this->assertEquals( + $ref.'?my=stuff&is=kept#again', + cleanup_url( + $ref.'?fb=zomg&my=stuff&utm_medium=numnum&is=kept#again' + ) + ); + } +} + diff --git a/tests/Url/GetUrlSchemeTest.php b/tests/Url/GetUrlSchemeTest.php new file mode 100644 index 0000000..72d80b3 --- /dev/null +++ b/tests/Url/GetUrlSchemeTest.php @@ -0,0 +1,31 @@ +assertEquals('', get_url_scheme('')); + } + + /** + * Get normal scheme of Url + */ + public function testGetUrlScheme() + { + $this->assertEquals('http', get_url_scheme('http://domain.tld:3000')); + $this->assertEquals('https', get_url_scheme('https://domain.tld:3000')); + $this->assertEquals('http', get_url_scheme('domain.tld')); + $this->assertEquals('ssh', get_url_scheme('ssh://domain.tld')); + $this->assertEquals('ftp', get_url_scheme('ftp://domain.tld')); + $this->assertEquals('git', get_url_scheme('git://domain.tld/push?pull=clone#checkout')); + } +} + diff --git a/tests/Url/UnparseUrlTest.php b/tests/Url/UnparseUrlTest.php new file mode 100644 index 0000000..edde73e --- /dev/null +++ b/tests/Url/UnparseUrlTest.php @@ -0,0 +1,31 @@ +assertEquals('', unparse_url(array())); + } + + /** + * Rebuild a full-featured URL + */ + public function testUnparseFull() + { + $ref = 'http://username:password@hostname:9090/path' + .'?arg1=value1&arg2=value2#anchor'; + $this->assertEquals($ref, unparse_url(parse_url($ref))); + } +} + diff --git a/tests/UrlTest.php b/tests/Url/UrlTest.php similarity index 85% rename from tests/UrlTest.php rename to tests/Url/UrlTest.php index c848e88..e498d79 100755 --- a/tests/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -5,30 +5,6 @@ require_once 'application/Url.php'; -/** - * Unitary tests for unparse_url() - */ -class UnparseUrlTest extends PHPUnit_Framework_TestCase -{ - /** - * Thanks for building nothing - */ - public function testUnparseEmptyArray() - { - $this->assertEquals('', unparse_url(array())); - } - - /** - * Rebuild a full-featured URL - */ - public function testUnparseFull() - { - $ref = 'http://username:password@hostname:9090/path' - .'?arg1=value1&arg2=value2#anchor'; - $this->assertEquals($ref, unparse_url(parse_url($ref))); - } -} - /** * Unitary tests for URL utilities */ @@ -44,7 +20,7 @@ class UrlTest extends PHPUnit_Framework_TestCase { $url = new Url(self::$baseUrl.$query.$fragment); $url->cleanup(); - $this->assertEquals(self::$baseUrl, $url->__toString()); + $this->assertEquals(self::$baseUrl, $url->toString()); } /** @@ -52,7 +28,8 @@ class UrlTest extends PHPUnit_Framework_TestCase */ public function testEmptyConstruct() { - $this->assertEquals('', new Url('')); + $url = new Url(''); + $this->assertEquals('', $url->toString()); } /** @@ -62,7 +39,8 @@ class UrlTest extends PHPUnit_Framework_TestCase { $ref = 'http://username:password@hostname:9090/path' .'?arg1=value1&arg2=value2#anchor'; - $this->assertEquals($ref, new Url($ref)); + $url = new Url($ref); + $this->assertEquals($ref, $url->toString()); } /** From 7b114771d337af3bfd51d8fda1e8f2fd5b39535d Mon Sep 17 00:00:00 2001 From: Fanch Date: Tue, 1 Sep 2015 13:37:04 +0200 Subject: [PATCH 181/658] SSL detection: add support for `X-Forwarded-Proto` Duplicates #332 See: - RFC 7239 - Forwarded HTTP Extension http://www.ietf.org/rfc/rfc7239.txt - RFC 6238 - Deprecating the "X-" Prefix and Similar Constructs in Application Protocols http://www.ietf.org/rfc/rfc6648.txt - StackOverflow - Custom HTTP headers: naming conventions http://stackoverflow.com/a/3561399 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 61d92f0..7818ee8 100755 --- a/index.php +++ b/index.php @@ -463,7 +463,7 @@ if (isset($_POST['login'])) // You can append $_SERVER['SCRIPT_NAME'] to get the current script URL. function serverUrl() { - $https = (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS'])=='on')) || $_SERVER["SERVER_PORT"]=='443'; // HTTPS detection. + $https = (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS'])=='on')) || $_SERVER["SERVER_PORT"]=='443' || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); // HTTPS detection. $serverport = ($_SERVER["SERVER_PORT"]=='80' || ($https && $_SERVER["SERVER_PORT"]=='443') ? '' : ':'.$_SERVER["SERVER_PORT"]); return 'http'.($https?'s':'').'://'.$_SERVER['SERVER_NAME'].$serverport; } From 482d67bd523bf12f36508a0131d09fe299ee02f4 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 6 Sep 2015 21:31:37 +0200 Subject: [PATCH 182/658] HTTP: move server URL functions to `HttpUtils.php` Relates to #333 Modifications: - refactor server URL utility functions - do not access global `$_SERVER` variables - add test coverage - improve readability - apply coding conventions Signed-off-by: VirtualTam --- application/HttpUtils.php | 80 +++++++++++ index.php | 78 ++++------ .../GetHttpUrlTest.php} | 0 tests/HttpUtils/IndexUrlTest.php | 72 ++++++++++ tests/HttpUtils/PageUrlTest.php | 76 ++++++++++ tests/HttpUtils/ServerUrlTest.php | 135 ++++++++++++++++++ 6 files changed, 388 insertions(+), 53 deletions(-) rename tests/{HttpUtilsTest.php => HttpUtils/GetHttpUrlTest.php} (100%) create mode 100644 tests/HttpUtils/IndexUrlTest.php create mode 100644 tests/HttpUtils/PageUrlTest.php create mode 100644 tests/HttpUtils/ServerUrlTest.php diff --git a/application/HttpUtils.php b/application/HttpUtils.php index 175333a..499220c 100644 --- a/application/HttpUtils.php +++ b/application/HttpUtils.php @@ -50,3 +50,83 @@ function get_http_url($url, $timeout = 30, $maxBytes = 4194304) return array(get_headers($url, 1), $content); } + +/** + * Returns the server's base URL: scheme://domain.tld[:port] + * + * @param array $server the $_SERVER array + * + * @return string the server's base URL + * + * @see http://www.ietf.org/rfc/rfc7239.txt + * @see http://www.ietf.org/rfc/rfc6648.txt + * @see http://stackoverflow.com/a/3561399 + * @see http://stackoverflow.com/q/452375 + */ +function server_url($server) +{ + $scheme = 'http'; + $port = ''; + + // Shaarli is served behind a proxy + if (isset($server['HTTP_X_FORWARDED_PROTO'])) { + // Keep forwarded scheme + $scheme = $server['HTTP_X_FORWARDED_PROTO']; + + if (isset($server['HTTP_X_FORWARDED_PORT'])) { + // Keep forwarded port + $port = ':'.$server['HTTP_X_FORWARDED_PORT']; + } + + return $scheme.'://'.$server['SERVER_NAME'].$port; + } + + // SSL detection + if ((! empty($server['HTTPS']) && strtolower($server['HTTPS']) == 'on') + || (isset($server['SERVER_PORT']) && $server['SERVER_PORT'] == '443')) { + $scheme = 'https'; + } + + // Do not append standard port values + if (($scheme == 'http' && $server['SERVER_PORT'] != '80') + || ($scheme == 'https' && $server['SERVER_PORT'] != '443')) { + $port = ':'.$server['SERVER_PORT']; + } + + return $scheme.'://'.$server['SERVER_NAME'].$port; +} + +/** + * Returns the absolute URL of the current script, without the query + * + * If the resource is "index.php", then it is removed (for better-looking URLs) + * + * @param array $server the $_SERVER array + * + * @return string the absolute URL of the current script, without the query + */ +function index_url($server) +{ + $scriptname = $server['SCRIPT_NAME']; + if (endswith($scriptname, 'index.php')) { + $scriptname = substr($scriptname, 0, -9); + } + return server_url($server) . $scriptname; +} + +/** + * Returns the absolute URL of the current script, with the query + * + * If the resource is "index.php", then it is removed (for better-looking URLs) + * + * @param array $server the $_SERVER array + * + * @return string the absolute URL of the current script, with the query + */ +function page_url($server) +{ + if (! empty($server['QUERY_STRING'])) { + return index_url($server).'?'.$server['QUERY_STRING']; + } + return index_url($server); +} diff --git a/index.php b/index.php index 7818ee8..c1ddf4b 100755 --- a/index.php +++ b/index.php @@ -131,7 +131,7 @@ header("Pragma: no-cache"); if (!is_writable(realpath(dirname(__FILE__)))) die('
                                                                  ERROR: Shaarli does not have the right to write in its own directory.
                                                                  '); // Handling of old config file which do not have the new parameters. -if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.escape(indexUrl()); +if (empty($GLOBALS['title'])) $GLOBALS['title']='Shared links on '.escape(index_url($_SERVER)); if (empty($GLOBALS['timezone'])) $GLOBALS['timezone']=date_default_timezone_get(); if (empty($GLOBALS['redirector'])) $GLOBALS['redirector']=''; if (empty($GLOBALS['disablesessionprotection'])) $GLOBALS['disablesessionprotection']=false; @@ -277,8 +277,8 @@ function pubsubhub() { $p = new Publisher($GLOBALS['config']['PUBSUBHUB_URL']); $topic_url = array ( - indexUrl().'?do=atom', - indexUrl().'?do=rss' + index_url($_SERVER).'?do=atom', + index_url($_SERVER).'?do=rss' ); $p->publish_update($topic_url); } @@ -458,34 +458,6 @@ if (isset($_POST['login'])) // ------------------------------------------------------------------------------------------ // Misc utility functions: -// Returns the server URL (including port and http/https), without path. -// e.g. "http://myserver.com:8080" -// You can append $_SERVER['SCRIPT_NAME'] to get the current script URL. -function serverUrl() -{ - $https = (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS'])=='on')) || $_SERVER["SERVER_PORT"]=='443' || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); // HTTPS detection. - $serverport = ($_SERVER["SERVER_PORT"]=='80' || ($https && $_SERVER["SERVER_PORT"]=='443') ? '' : ':'.$_SERVER["SERVER_PORT"]); - return 'http'.($https?'s':'').'://'.$_SERVER['SERVER_NAME'].$serverport; -} - -// Returns the absolute URL of current script, without the query. -// (e.g. http://sebsauvage.net/links/) -function indexUrl() -{ - $scriptname = $_SERVER["SCRIPT_NAME"]; - // If the script is named 'index.php', we remove it (for better looking URLs, - // e.g. http://mysite.com/shaarli/?abcde instead of http://mysite.com/shaarli/index.php?abcde) - if (endswith($scriptname,'index.php')) $scriptname = substr($scriptname,0,strlen($scriptname)-9); - return serverUrl() . $scriptname; -} - -// Returns the absolute URL of current script, WITH the query. -// (e.g. http://sebsauvage.net/links/?toto=titi&spamspamspam=humbug) -function pageUrl() -{ - return indexUrl().(!empty($_SERVER["QUERY_STRING"]) ? '?'.$_SERVER["QUERY_STRING"] : ''); -} - // Convert post_max_size/upload_max_filesize (e.g. '16M') parameters to bytes. function return_bytes($val) { @@ -591,14 +563,14 @@ class pageBuilder { $this->tpl = new RainTPL; $this->tpl->assign('newversion',escape(checkUpdate())); - $this->tpl->assign('feedurl',escape(indexUrl())); + $this->tpl->assign('feedurl',escape(index_url($_SERVER))); $searchcrits=''; // Search criteria if (!empty($_GET['searchtags'])) $searchcrits.='&searchtags='.urlencode($_GET['searchtags']); elseif (!empty($_GET['searchterm'])) $searchcrits.='&searchterm='.urlencode($_GET['searchterm']); $this->tpl->assign('searchcrits',$searchcrits); - $this->tpl->assign('source',indexUrl()); + $this->tpl->assign('source',index_url($_SERVER)); $this->tpl->assign('version',shaarli_version); - $this->tpl->assign('scripturl',indexUrl()); + $this->tpl->assign('scripturl',index_url($_SERVER)); $this->tpl->assign('pagetitle','Shaarli'); $this->tpl->assign('privateonly',!empty($_SESSION['privateonly'])); // Show only private links? if (!empty($GLOBALS['title'])) $this->tpl->assign('pagetitle',$GLOBALS['title']); @@ -639,7 +611,7 @@ function showRSS() $query = $_SERVER["QUERY_STRING"]; $cache = new CachedPage( $GLOBALS['config']['PAGECACHE'], - pageUrl(), + page_url($_SERVER), startsWith($query,'do=rss') && !isLoggedIn() ); $cached = $cache->cachedVersion(); @@ -668,7 +640,7 @@ function showRSS() $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ; } - $pageaddr=escape(indexUrl()); + $pageaddr=escape(index_url($_SERVER)); echo ''; echo ''.$GLOBALS['title'].''.$pageaddr.''; echo 'Shared linksen-en'.$pageaddr.''."\n\n"; @@ -706,7 +678,7 @@ function showRSS() echo ''."\n\n"; $i++; } - echo ''; + echo ''; $cache->cache(ob_get_contents()); ob_end_flush(); @@ -727,7 +699,7 @@ function showATOM() $query = $_SERVER["QUERY_STRING"]; $cache = new CachedPage( $GLOBALS['config']['PAGECACHE'], - pageUrl(), + page_url($_SERVER), startsWith($query,'do=atom') && !isLoggedIn() ); $cached = $cache->cachedVersion(); @@ -756,7 +728,7 @@ function showATOM() $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ; } - $pageaddr=escape(indexUrl()); + $pageaddr=escape(index_url($_SERVER)); $latestDate = ''; $entries=''; $i=0; @@ -794,7 +766,7 @@ function showATOM() $feed=''; $feed.=''.$GLOBALS['title'].''; if (!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()) $feed.=''.escape($latestDate).''; - $feed.=''; + $feed.=''; if (!empty($GLOBALS['config']['PUBSUBHUB_URL'])) { $feed.=''; @@ -804,7 +776,7 @@ function showATOM() $feed.=''.$pageaddr.''.$pageaddr.''; $feed.=''.$pageaddr.''."\n\n"; // Yes, I know I should use a real IRI (RFC3987), but the site URL will do. $feed.=$entries; - $feed.=''; + $feed.=''; echo $feed; $cache->cache(ob_get_contents()); @@ -821,7 +793,7 @@ function showDailyRSS() { $query = $_SERVER["QUERY_STRING"]; $cache = new CachedPage( $GLOBALS['config']['PAGECACHE'], - pageUrl(), + page_url($_SERVER), startsWith($query,'do=dailyrss') && !isLoggedIn() ); $cached = $cache->cachedVersion(); @@ -866,7 +838,7 @@ function showDailyRSS() { // Build the RSS feed. header('Content-Type: application/rss+xml; charset=utf-8'); - $pageaddr = escape(indexUrl()); + $pageaddr = escape(index_url($_SERVER)); echo ''; echo ''; echo 'Daily - '. $GLOBALS['title'] . ''; @@ -879,7 +851,7 @@ function showDailyRSS() { foreach ($days as $day => $linkdates) { $daydate = linkdate2timestamp($day.'_000000'); // Full text date $rfc822date = linkdate2rfc822($day.'_000000'); - $absurl = escape(indexUrl().'?do=daily&day='.$day); // Absolute URL of the corresponding "Daily" page. + $absurl = escape(index_url($_SERVER).'?do=daily&day='.$day); // Absolute URL of the corresponding "Daily" page. // Build the HTML body of this RSS entry. $html = ''; @@ -893,7 +865,7 @@ function showDailyRSS() { $l['thumbnail'] = thumbnail($l['url']); $l['timestamp'] = linkdate2timestamp($l['linkdate']); if (startsWith($l['url'], '?')) { - $l['url'] = indexUrl() . $l['url']; // make permalink URL absolute + $l['url'] = index_url($_SERVER) . $l['url']; // make permalink URL absolute } $links[$linkdate] = $l; } @@ -909,7 +881,7 @@ function showDailyRSS() { echo $html . PHP_EOL; } - echo ''; + echo ''; $cache->cache(ob_get_contents()); ob_end_flush(); @@ -1201,7 +1173,7 @@ function renderPage() { $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('pageabsaddr',indexUrl()); + $PAGE->assign('pageabsaddr',index_url($_SERVER)); $PAGE->renderPage('tools'); exit; } @@ -1767,7 +1739,7 @@ function buildLinkList($PAGE,$LINKSDB) if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. strlen($link["url"]) === 7) { - $link["url"] = indexUrl() . $link["url"]; + $link["url"] = index_url($_SERVER) . $link["url"]; } $linkDisp[$keys[$i]] = $link; @@ -1902,7 +1874,7 @@ function computeThumbnail($url,$href=false) if ("/talks/" !== substr($path,0,7)) return array(); // This is not a single video URL. } $sign = hash_hmac('sha256', $url, $GLOBALS['salt']); // We use the salt to sign data (it's random, secret, and specific to each installation) - return array('src'=>indexUrl().'?do=genthumbnail&hmac='.$sign.'&url='.urlencode($url), + return array('src'=>index_url($_SERVER).'?do=genthumbnail&hmac='.$sign.'&url='.urlencode($url), 'href'=>$href,'width'=>'120','style'=>'height:auto;','alt'=>'thumbnail'); } @@ -1913,7 +1885,7 @@ function computeThumbnail($url,$href=false) if ($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='gif') { $sign = hash_hmac('sha256', $url, $GLOBALS['salt']); // We use the salt to sign data (it's random, secret, and specific to each installation) - return array('src'=>indexUrl().'?do=genthumbnail&hmac='.$sign.'&url='.urlencode($url), + return array('src'=>index_url($_SERVER).'?do=genthumbnail&hmac='.$sign.'&url='.urlencode($url), 'href'=>$href,'width'=>'120','style'=>'height:auto;','alt'=>'thumbnail'); } return array(); // No thumbnail. @@ -1999,11 +1971,11 @@ function install() if (!isset($_SESSION['session_tested'])) { // Step 1 : Try to store data in session and reload page. $_SESSION['session_tested'] = 'Working'; // Try to set a variable in session. - header('Location: '.indexUrl().'?test_session'); // Redirect to check stored data. + header('Location: '.index_url($_SERVER).'?test_session'); // Redirect to check stored data. } if (isset($_GET['test_session'])) { // Step 3: Sessions are OK. Remove test parameter from URL. - header('Location: '.indexUrl()); + header('Location: '.index_url($_SERVER)); } @@ -2020,7 +1992,7 @@ function install() $GLOBALS['login'] = $_POST['setlogin']; $GLOBALS['salt'] = sha1(uniqid('',true).'_'.mt_rand()); // Salt renders rainbow-tables attacks useless. $GLOBALS['hash'] = sha1($_POST['setpassword'].$GLOBALS['login'].$GLOBALS['salt']); - $GLOBALS['title'] = (empty($_POST['title']) ? 'Shared links on '.escape(indexUrl()) : $_POST['title'] ); + $GLOBALS['title'] = (empty($_POST['title']) ? 'Shared links on '.escape(index_url($_SERVER)) : $_POST['title'] ); $GLOBALS['config']['ENABLE_UPDATECHECK'] = !empty($_POST['updateCheck']); try { writeConfig($GLOBALS, isLoggedIn()); diff --git a/tests/HttpUtilsTest.php b/tests/HttpUtils/GetHttpUrlTest.php similarity index 100% rename from tests/HttpUtilsTest.php rename to tests/HttpUtils/GetHttpUrlTest.php diff --git a/tests/HttpUtils/IndexUrlTest.php b/tests/HttpUtils/IndexUrlTest.php new file mode 100644 index 0000000..337dcab --- /dev/null +++ b/tests/HttpUtils/IndexUrlTest.php @@ -0,0 +1,72 @@ +assertEquals( + 'http://host.tld/', + index_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/index.php' + ) + ) + ); + + $this->assertEquals( + 'http://host.tld/admin/', + index_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/admin/index.php' + ) + ) + ); + } + + /** + * The resource is != "index.php" + */ + public function testOtherResource() + { + $this->assertEquals( + 'http://host.tld/page.php', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/page.php' + ) + ) + ); + + $this->assertEquals( + 'http://host.tld/admin/page.php', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/admin/page.php' + ) + ) + ); + } +} diff --git a/tests/HttpUtils/PageUrlTest.php b/tests/HttpUtils/PageUrlTest.php new file mode 100644 index 0000000..4dbbe9c --- /dev/null +++ b/tests/HttpUtils/PageUrlTest.php @@ -0,0 +1,76 @@ +assertEquals( + 'http://host.tld/?p1=v1&p2=v2', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/index.php', + 'QUERY_STRING' => 'p1=v1&p2=v2' + ) + ) + ); + + $this->assertEquals( + 'http://host.tld/admin/?action=edit_tag', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/admin/index.php', + 'QUERY_STRING' => 'action=edit_tag' + ) + ) + ); + } + + /** + * The resource is != "index.php" + */ + public function testOtherResource() + { + $this->assertEquals( + 'http://host.tld/page.php?p1=v1&p2=v2', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/page.php', + 'QUERY_STRING' => 'p1=v1&p2=v2' + ) + ) + ); + + $this->assertEquals( + 'http://host.tld/admin/page.php?action=edit_tag', + page_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'SCRIPT_NAME' => '/admin/page.php', + 'QUERY_STRING' => 'action=edit_tag' + ) + ) + ); + } +} diff --git a/tests/HttpUtils/ServerUrlTest.php b/tests/HttpUtils/ServerUrlTest.php new file mode 100644 index 0000000..5096db6 --- /dev/null +++ b/tests/HttpUtils/ServerUrlTest.php @@ -0,0 +1,135 @@ +assertEquals( + 'https://host.tld', + server_url( + array( + 'HTTPS' => 'ON', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '443' + ) + ) + ); + + $this->assertEquals( + 'https://host.tld:8080', + server_url( + array( + 'HTTPS' => 'ON', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '8080' + ) + ) + ); + } + + /** + * Detect a Proxy with SSL enabled + */ + public function testHttpsProxyForward() + { + $this->assertEquals( + 'https://host.tld:8080', + server_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'HTTP_X_FORWARDED_PROTO' => 'https', + 'HTTP_X_FORWARDED_PORT' => '8080' + ) + ) + ); + + $this->assertEquals( + 'https://host.tld', + server_url( + array( + 'HTTPS' => 'Off', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80', + 'HTTP_X_FORWARDED_PROTO' => 'https' + ) + ) + ); + } + + /** + * Detect if the server uses a specific port (!= 80) + */ + public function testPort() + { + // HTTP + $this->assertEquals( + 'http://host.tld:8080', + server_url( + array( + 'HTTPS' => 'OFF', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '8080' + ) + ) + ); + + // HTTPS + $this->assertEquals( + 'https://host.tld:8080', + server_url( + array( + 'HTTPS' => 'ON', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '8080' + ) + ) + ); + } + + /** + * HTTP server on port 80 + */ + public function testStandardHttpPort() + { + $this->assertEquals( + 'http://host.tld', + server_url( + array( + 'HTTPS' => 'OFF', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '80' + ) + ) + ); + } + + /** + * HTTPS server on port 443 + */ + public function testStandardHttpsPort() + { + $this->assertEquals( + 'https://host.tld', + server_url( + array( + 'HTTPS' => 'ON', + 'SERVER_NAME' => 'host.tld', + 'SERVER_PORT' => '443' + ) + ) + ); + } +} From 49e2b35b4a2401d2213a0d3b473713c36ed18fb2 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Mon, 14 Sep 2015 20:54:13 +0200 Subject: [PATCH 183/658] Update project information: contributors, `index.php` header Signed-off-by: VirtualTam --- COPYING | 2 ++ index.php | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/COPYING b/COPYING index adc856e..24b97e9 100644 --- a/COPYING +++ b/COPYING @@ -20,6 +20,8 @@ Copyright: (c) 2011-2015 Sébastien SAUVAGE (c) 2011-2015 idleman (c) 2015 Alexis Ju (c) 2015 dimtion + (c) 2015 Fanch + (c) 2015 Guillaume Virlet (c) 2015 Felix Bartels (c) 2015 Marsup (c) 2015 Miloš Jovanović diff --git a/index.php b/index.php index c1ddf4b..10d767d 100755 --- a/index.php +++ b/index.php @@ -1,10 +1,20 @@ Date: Mon, 14 Sep 2015 21:02:52 +0200 Subject: [PATCH 184/658] Bump version to 0.5.4 Fixes: - PHP session IDs: handle hash algorithms and bits per char representations Minor changes: - HTTPS: support being served behing an SSL-enabled proxy - HTTP/Server utilities: refactor & add test coverage Project & documentation: - improve/rewrite `README.md` - update contributor list - update `index.php` header Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 10d767d..c430a20 100755 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index b843a5b..17f5ffa 100755 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From d01c234235411bafb97661d335fcb6ea1e67ffbc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 4 Nov 2015 19:53:59 +0100 Subject: [PATCH 185/658] Fixes #356 * adding a link should return added link's hash * allow redirection relative urls in generateLocation --- application/Utils.php | 11 ++++++----- index.php | 10 +++++++--- tests/UtilsTest.php | 2 ++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/application/Utils.php b/application/Utils.php index 1422961..120333c 100755 --- a/application/Utils.php +++ b/application/Utils.php @@ -97,12 +97,12 @@ function checkDateFormat($format, $string) */ function generateLocation($referer, $host, $loopTerms = array()) { - $final_referer = '?'; + $finalReferer = '?'; // No referer if it contains any value in $loopCriteria. foreach ($loopTerms as $value) { if (strpos($referer, $value) !== false) { - return $final_referer; + return $finalReferer; } } @@ -111,11 +111,12 @@ function generateLocation($referer, $host, $loopTerms = array()) $host = substr($host, 0, $pos); } - if (!empty($referer) && strpos(parse_url($referer, PHP_URL_HOST), $host) !== false) { - $final_referer = $referer; + $refererHost = parse_url($referer, PHP_URL_HOST); + if (!empty($referer) && (strpos($refererHost, $host) !== false || startsWith('?', $refererHost))) { + $finalReferer = $referer; } - return $final_referer; + return $finalReferer; } /** diff --git a/index.php b/index.php index c430a20..3be6be9 100755 --- a/index.php +++ b/index.php @@ -1354,10 +1354,14 @@ function renderPage() pubsubhub(); // If we are called from the bookmarklet, we must close the popup: - if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } - $returnurl = ( !empty($_POST['returnurl']) ? escape($_POST['returnurl']) : '?' ); - $returnurl .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. + if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { + echo ''; + exit; + } + + $returnurl = !empty($_POST['returnurl']) ? escape($_POST['returnurl']): '?'; $location = generateLocation($returnurl, $_SERVER['HTTP_HOST'], array('addlink', 'post', 'edit_link')); + $location .= '#'.smallHash($_POST['lf_linkdate']); // Scroll to the link which has been edited. header('Location: '. $location); // After saving the link, redirect to the page the user was on. exit; } diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 7f218ad..311d4bf 100755 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -118,6 +118,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase $this->assertEquals($ref, generateLocation($ref, 'localhost')); $ref = 'http://localhost:8080/?test'; $this->assertEquals($ref, generateLocation($ref, 'localhost:8080')); + $ref = '?localreferer#hash'; + $this->assertEquals($ref, generateLocation($ref, 'localhost:8080')); } /** From 6fc14d530369740d27d6bd641369d4f5f5f04080 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 15 Jul 2015 11:42:15 +0200 Subject: [PATCH 186/658] Plugin system - CORE see shaarli/Shaarli#275 --- .gitignore | 3 + application/Config.php | 263 ++++++++--------- application/PluginManager.php | 184 ++++++++++++ application/Router.php | 105 +++++++ index.php | 230 ++++++++++----- tests/PluginManagerTest.php | 66 +++++ tests/RouterTest.php | 515 ++++++++++++++++++++++++++++++++++ tests/plugins/test/test.php | 21 ++ 8 files changed, 1190 insertions(+), 197 deletions(-) mode change 100755 => 100644 application/Config.php create mode 100644 application/PluginManager.php create mode 100644 application/Router.php create mode 100755 tests/PluginManagerTest.php create mode 100755 tests/RouterTest.php create mode 100755 tests/plugins/test/test.php diff --git a/.gitignore b/.gitignore index 3ffedb3..5a6b924 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ coverage tests/datastore.php tests/dummycache/ phpmd.html + +# Ignore user plugin configuration +plugins/*/config.php \ No newline at end of file diff --git a/application/Config.php b/application/Config.php old mode 100755 new mode 100644 index ec799d7..c71ef68 --- a/application/Config.php +++ b/application/Config.php @@ -1,129 +1,134 @@ - $value) { - $configStr .= '$GLOBALS[\'config\'][\''. $key .'\'] = '.var_export($config['config'][$key], true).';'. PHP_EOL; - } - $configStr .= '?>'; - - if (!file_put_contents($config['config']['CONFIG_FILE'], $configStr) - || strcmp(file_get_contents($config['config']['CONFIG_FILE']), $configStr) != 0 - ) { - throw new Exception( - 'Shaarli could not create the config file. - Please make sure Shaarli has the right to write in the folder is it installed in.' - ); - } -} - -/** - * Milestone 0.9 - shaarli/Shaarli#41: options.php is not supported anymore. - * ==> if user is loggedIn, merge its content with config.php, then delete options.php. - * - * @param array $config contains all configuration fields. - * @param bool $isLoggedIn true if user is logged in. - * - * @return void - */ -function mergeDeprecatedConfig($config, $isLoggedIn) -{ - $config_file = $config['config']['CONFIG_FILE']; - - if (is_file($config['config']['DATADIR'].'/options.php') && $isLoggedIn) { - include $config['config']['DATADIR'].'/options.php'; - - // Load GLOBALS into config - foreach ($GLOBALS as $key => $value) { - $config[$key] = $value; - } - $config['config']['CONFIG_FILE'] = $config_file; - writeConfig($config, $isLoggedIn); - - unlink($config['config']['DATADIR'].'/options.php'); - } -} - -/** - * Exception used if a mandatory field is missing in given configuration. - */ -class MissingFieldConfigException extends Exception -{ - public $field; - - /** - * Construct exception. - * - * @param string $field field name missing. - */ - public function __construct($field) - { - $this->field = $field; - $this->message = 'Configuration value is required for '. $this->field; - } -} - -/** - * Exception used if an unauthorized attempt to edit configuration has been made. - */ -class UnauthorizedConfigException extends Exception -{ - /** - * Construct exception. - */ - public function __construct() - { - $this->message = 'You are not authorized to alter config.'; - } -} + $value) { + $configStr .= '$GLOBALS[\'config\'][\''. $key .'\'] = '.var_export($config['config'][$key], true).';'. PHP_EOL; + } + + if (isset($config['plugins'])) { + foreach ($config['plugins'] as $key => $value) { + $configStr .= '$GLOBALS[\'plugins\'][\''. $key .'\'] = '.var_export($config['plugins'][$key], true).';'. PHP_EOL; + } + } + + if (!file_put_contents($config['config']['CONFIG_FILE'], $configStr) + || strcmp(file_get_contents($config['config']['CONFIG_FILE']), $configStr) != 0 + ) { + throw new Exception( + 'Shaarli could not create the config file. + Please make sure Shaarli has the right to write in the folder is it installed in.' + ); + } +} + +/** + * Milestone 0.9 - shaarli/Shaarli#41: options.php is not supported anymore. + * ==> if user is loggedIn, merge its content with config.php, then delete options.php. + * + * @param array $config contains all configuration fields. + * @param bool $isLoggedIn true if user is logged in. + * + * @return void + */ +function mergeDeprecatedConfig($config, $isLoggedIn) +{ + $config_file = $config['config']['CONFIG_FILE']; + + if (is_file($config['config']['DATADIR'].'/options.php') && $isLoggedIn) { + include $config['config']['DATADIR'].'/options.php'; + + // Load GLOBALS into config + foreach ($GLOBALS as $key => $value) { + $config[$key] = $value; + } + $config['config']['CONFIG_FILE'] = $config_file; + writeConfig($config, $isLoggedIn); + + unlink($config['config']['DATADIR'].'/options.php'); + } +} + +/** + * Exception used if a mandatory field is missing in given configuration. + */ +class MissingFieldConfigException extends Exception +{ + public $field; + + /** + * Construct exception. + * + * @param string $field field name missing. + */ + public function __construct($field) + { + $this->field = $field; + $this->message = 'Configuration value is required for '. $this->field; + } +} + +/** + * Exception used if an unauthorized attempt to edit configuration has been made. + */ +class UnauthorizedConfigException extends Exception +{ + /** + * Construct exception. + */ + public function __construct() + { + $this->message = 'You are not authorized to alter config.'; + } +} diff --git a/application/PluginManager.php b/application/PluginManager.php new file mode 100644 index 0000000..e572ff7 --- /dev/null +++ b/application/PluginManager.php @@ -0,0 +1,184 @@ +authorizedPlugins = $authorizedPlugins; + + $dirs = glob(self::$PLUGINS_PATH . '/*', GLOB_ONLYDIR); + $dirnames = array_map('basename', $dirs); + foreach ($this->authorizedPlugins as $plugin) { + $index = array_search($plugin, $dirnames); + + // plugin authorized, but its folder isn't listed + if ($index === false) { + continue; + } + + try { + $this->loadPlugin($dirs[$index], $plugin); + } + catch (PluginFileNotFoundException $e) { + error_log($e->getMessage()); + } + } + } + + /** + * Execute all plugins registered hook. + * + * @param string $hook name of the hook to trigger. + * @param array $data list of data to manipulate passed by reference. + * @param array $params additional parameters such as page target. + * + * @return void + */ + public function executeHooks($hook, &$data, $params = array()) + { + if (!empty($params['target'])) { + $data['_PAGE_'] = $params['target']; + } + + if (isset($params['loggedin'])) { + $data['_LOGGEDIN_'] = $params['loggedin']; + } + + foreach ($this->loadedPlugins as $plugin) { + $hookFunction = $this->buildHookName($hook, $plugin); + + if (function_exists($hookFunction)) { + $data = call_user_func($hookFunction, $data); + } + } + } + + /** + * Load a single plugin from its files. + * Add them in $loadedPlugins if successful. + * + * @param string $dir plugin's directory. + * @param string $pluginName plugin's name. + * + * @return void + * @throws PluginFileNotFoundException - plugin files not found. + */ + private function loadPlugin($dir, $pluginName) + { + if (!is_dir($dir)) { + throw new PluginFileNotFoundException($pluginName); + } + + $pluginFilePath = $dir . '/' . $pluginName . '.php'; + if (!is_file($pluginFilePath)) { + throw new PluginFileNotFoundException($pluginName); + } + + include_once $pluginFilePath; + + $this->loadedPlugins[] = $pluginName; + } + + /** + * Construct normalize hook name for a specific plugin. + * + * Format: + * hook__ + * + * @param string $hook hook name. + * @param string $pluginName plugin name. + * + * @return string - plugin's hook name. + */ + public function buildHookName($hook, $pluginName) + { + return 'hook_' . $pluginName . '_' . $hook; + } +} + +/** + * Class PluginFileNotFoundException + * + * Raise when plugin files can't be found. + */ +class PluginFileNotFoundException extends Exception +{ + /** + * Construct exception with plugin name. + * Generate message. + * + * @param string $pluginName name of the plugin not found + */ + public function __construct($pluginName) + { + $this->message = 'Plugin "'. $pluginName .'" files not found.'; + } +} \ No newline at end of file diff --git a/application/Router.php b/application/Router.php new file mode 100644 index 0000000..82b2b85 --- /dev/null +++ b/application/Router.php @@ -0,0 +1,105 @@ + /shaarli/ @@ -75,6 +84,8 @@ require_once 'application/TimeZone.php'; require_once 'application/Url.php'; require_once 'application/Utils.php'; require_once 'application/Config.php'; +require_once 'application/PluginManager.php'; +require_once 'application/Router.php'; // Ensure the PHP version is supported try { @@ -119,6 +130,9 @@ include "inc/rain.tpl.class.php"; //include Rain TPL raintpl::$tpl_dir = $GLOBALS['config']['RAINTPL_TPL']; // template directory raintpl::$cache_dir = $GLOBALS['config']['RAINTPL_TMP']; // cache directory +$pluginManager = PluginManager::getInstance(); +$pluginManager->load($GLOBALS['config']['ENABLED_PLUGINS']); + ob_start(); // Output buffering for the page cache. @@ -962,16 +976,31 @@ function showDaily() $fill[$index]+=$length; } $PAGE = new pageBuilder; - $PAGE->assign('linksToDisplay',$linksToDisplay); - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('cols', $columns); - $PAGE->assign('day',linkdate2timestamp($day.'_000000')); - $PAGE->assign('previousday',$previousday); - $PAGE->assign('nextday',$nextday); + $data = array( + 'linksToDisplay' => $linksToDisplay, + 'linkcount' => count($LINKSDB), + 'cols' => $columns, + 'day' => linkdate2timestamp($day.'_000000'), + 'previousday' => $previousday, + 'nextday' => $nextday, + ); + $pluginManager = PluginManager::getInstance(); + $pluginManager->executeHooks('render_daily', $data, array('loggedin' => isLoggedIn())); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('daily'); exit; } +// Renders the linklist +function showLinkList($PAGE, $LINKSDB) { + buildLinkList($PAGE,$LINKSDB); // Compute list of links to display + $PAGE->renderPage('linklist'); +} + // ------------------------------------------------------------------------------------------ // Render HTML page (according to URL parameters and user rights) @@ -983,12 +1012,36 @@ function renderPage() $GLOBALS['config']['HIDE_PUBLIC_LINKS'] ); + $PAGE = new pageBuilder; + + // Determine which page will be rendered. + $query = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : ''; + $targetPage = Router::findPage($query, $_GET, isLoggedIn()); + + // Call plugin hooks for header, footer and includes, specifying which page will be rendered. + // Then assign generated data to RainTPL. + $common_hooks = array( + 'header', + 'footer', + 'includes', + ); + $pluginManager = PluginManager::getInstance(); + foreach($common_hooks as $name) { + $plugin_data = array(); + $pluginManager->executeHooks('render_' . $name, $plugin_data, + array( + 'target' => $targetPage, + 'loggedin' => isLoggedIn() + ) + ); + $PAGE->assign('plugins_' . $name, $plugin_data); + } + // -------- Display login form. - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=login')) + if ($targetPage == Router::$PAGE_LOGIN) { if ($GLOBALS['config']['OPEN_SHAARLI']) { header('Location: ?'); exit; } // No need to login for open Shaarli $token=''; if (ban_canLogin()) $token=getToken(); // Do not waste token generation if not useful. - $PAGE = new pageBuilder; $PAGE->assign('token',$token); $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); $PAGE->renderPage('loginform'); @@ -1004,7 +1057,7 @@ function renderPage() } // -------- Picture wall - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=picwall')) + if ($targetPage == Router::$PAGE_PICWALL) { // Optionally filter the results: $links=array(); @@ -1027,15 +1080,22 @@ function renderPage() } } - $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('linksToDisplay',$linksToDisplay); + $data = array( + 'linkcount' => count($LINKSDB), + 'linksToDisplay' => $linksToDisplay, + ); + $pluginManager->executeHooks('render_picwall', $data, array('loggedin' => isLoggedIn())); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('picwall'); exit; } // -------- Tag cloud - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=tagcloud')) + if ($targetPage == Router::$PAGE_TAGCLOUD) { $tags= $LINKSDB->allTags(); @@ -1049,9 +1109,17 @@ function renderPage() { $tagList[$key] = array('count'=>$value,'size'=>log($value, 15) / log($maxcount, 30) * (22-6) + 6); } - $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('tags',$tagList); + + $data = array( + 'linkcount' => count($LINKSDB), + 'tags' => $tagList, + ); + $pluginManager->executeHooks('render_tagcloud', $data, array('loggedin' => isLoggedIn())); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('tagcloud'); exit; } @@ -1164,32 +1232,36 @@ function renderPage() header('Location: ?do=login&post='); exit; } - + showLinkList($PAGE, $LINKSDB); if (isset($_GET['edit_link'])) { header('Location: ?do=login&edit_link='. escape($_GET['edit_link'])); exit; } - $PAGE = new pageBuilder; - buildLinkList($PAGE,$LINKSDB); // Compute list of links to display - $PAGE->renderPage('linklist'); exit; // Never remove this one! All operations below are reserved for logged in user. } // -------- All other functions are reserved for the registered user: // -------- Display the Tools menu if requested (import/export/bookmarklet...) - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=tools')) + if ($targetPage == Router::$PAGE_TOOLS) { - $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('pageabsaddr',index_url($_SERVER)); + $data = array( + 'linkcount' => count($LINKSDB), + 'pageabsaddr' => index_url($_SERVER), + ); + $pluginManager->executeHooks('render_tools', $data); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('tools'); exit; } // -------- User wants to change his/her password. - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=changepasswd')) + if ($targetPage == Router::$PAGE_CHANGEPASSWORD) { if ($GLOBALS['config']['OPEN_SHAARLI']) die('You are not supposed to change a password on an Open Shaarli.'); if (!empty($_POST['setpassword']) && !empty($_POST['oldpassword'])) @@ -1220,7 +1292,6 @@ function renderPage() } else // show the change password form. { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('token',getToken()); $PAGE->renderPage('changepassword'); @@ -1229,7 +1300,7 @@ function renderPage() } // -------- User wants to change configuration - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=configure')) + if ($targetPage == Router::$PAGE_CONFIGURE) { if (!empty($_POST['title']) ) { @@ -1265,7 +1336,6 @@ function renderPage() } else // Show the configuration form. { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('token',getToken()); $PAGE->assign('title', empty($GLOBALS['title']) ? '' : $GLOBALS['title'] ); @@ -1279,11 +1349,10 @@ function renderPage() } // -------- User wants to rename a tag or delete it - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=changetag')) + if ($targetPage == Router::$PAGE_CHANGETAG) { if (empty($_POST['fromtag'])) { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('token',getToken()); $PAGE->assign('tags', $LINKSDB->allTags()); @@ -1328,9 +1397,8 @@ function renderPage() } // -------- User wants to add a link without using the bookmarklet: Show form. - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=addlink')) + if ($targetPage == Router::$PAGE_ADDLINK) { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->renderPage('addlink'); exit; @@ -1349,6 +1417,9 @@ function renderPage() $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0), 'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags)); if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title. + + $pluginManager->executeHooks('save_link', $link); + $LINKSDB[$linkdate] = $link; $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // Save to disk. pubsubhub(); @@ -1382,6 +1453,9 @@ function renderPage() // - confirmation is handled by JavaScript // - we are protected from XSRF by the token. $linkdate=$_POST['lf_linkdate']; + + $pluginManager->executeHooks('delete_link', $LINKSDB[$linkdate]); + unset($LINKSDB[$linkdate]); $LINKSDB->savedb($GLOBALS['config']['PAGECACHE']); // save to disk @@ -1423,13 +1497,20 @@ function renderPage() { $link = $LINKSDB[$_GET['edit_link']]; // Read database if (!$link) { header('Location: ?'); exit; } // Link not found in database. - $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('link',$link); - $PAGE->assign('link_is_new',false); - $PAGE->assign('token',getToken()); // XSRF protection. - $PAGE->assign('http_referer',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']) : '')); - $PAGE->assign('tags', $LINKSDB->allTags()); + $data = array( + 'linkcount' => count($LINKSDB), + 'link' => $link, + 'link_is_new' => false, + 'token' => getToken(), + 'http_referer' => (isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']) : ''), + 'tags' => $LINKSDB->allTags(), + ); + $pluginManager->executeHooks('render_editlink', $data); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('editlink'); exit; } @@ -1493,24 +1574,30 @@ function renderPage() ); } - $PAGE = new pageBuilder; - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('link',$link); - $PAGE->assign('link_is_new',$link_is_new); - $PAGE->assign('token',getToken()); // XSRF protection. - $PAGE->assign('http_referer',(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '')); - $PAGE->assign('source',(isset($_GET['source']) ? $_GET['source'] : '')); - $PAGE->assign('tags', $LINKSDB->allTags()); + $data = array( + 'linkcount' => count($LINKSDB), + 'link' => $link, + 'link_is_new' => $link_is_new, + 'token' => getToken(), // XSRF protection. + 'http_referer' => (isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']) : ''), + 'source' => (isset($_GET['source']) ? $_GET['source'] : ''), + 'tags' => $LINKSDB->allTags(), + ); + $pluginManager->executeHooks('render_editlink', $data); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + $PAGE->renderPage('editlink'); exit; } // -------- Export as Netscape Bookmarks HTML file. - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=export')) + if ($targetPage == Router::$PAGE_EXPORT) { if (empty($_GET['what'])) { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->renderPage('export'); exit; @@ -1562,9 +1649,8 @@ HTML; } // -------- Show upload/import dialog: - if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=import')) + if ($targetPage == Router::$PAGE_IMPORT) { - $PAGE = new pageBuilder; $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('token',getToken()); $PAGE->assign('maxfilesize',getMaxFileSize()); @@ -1573,9 +1659,7 @@ HTML; } // -------- Otherwise, simply display search form and links: - $PAGE = new pageBuilder; - buildLinkList($PAGE,$LINKSDB); // Compute list of links to display - $PAGE->renderPage('linklist'); + showLinkList($PAGE, $LINKSDB); exit; } @@ -1746,7 +1830,7 @@ function buildLinkList($PAGE,$LINKSDB) $taglist = explode(' ',$link['tags']); uasort($taglist, 'strcasecmp'); $link['taglist']=$taglist; - + $link['shorturl'] = smallHash($link['linkdate']); if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. strlen($link["url"]) === 7) { $link["url"] = index_url($_SERVER) . $link["url"]; @@ -1766,18 +1850,28 @@ function buildLinkList($PAGE,$LINKSDB) $token = ''; if (isLoggedIn()) $token=getToken(); // Fill all template fields. - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('previous_page_url',$previous_page_url); - $PAGE->assign('next_page_url',$next_page_url); - $PAGE->assign('page_current',$page); - $PAGE->assign('page_max',$pagecount); - $PAGE->assign('result_count',count($linksToDisplay)); - $PAGE->assign('search_type',$search_type); - $PAGE->assign('search_crits',$search_crits); - $PAGE->assign('redirector',empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']); // Optional redirector URL. - $PAGE->assign('token',$token); - $PAGE->assign('links',$linkDisp); - $PAGE->assign('tags', $LINKSDB->allTags()); + $data = array( + 'linkcount' => count($LINKSDB), + 'previous_page_url' => $previous_page_url, + 'next_page_url' => $next_page_url, + 'page_current' => $page, + 'page_max' => $pagecount, + 'result_count' => count($linksToDisplay), + 'search_type' => $search_type, + 'search_crits' => $search_crits, + 'redirector' => empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector'], // Optional redirector URL. + 'token' => $token, + 'links' => $linkDisp, + 'tags' => $LINKSDB->allTags(), + ); + + $pluginManager = PluginManager::getInstance(); + $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + return; } diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php new file mode 100755 index 0000000..749ce2b --- /dev/null +++ b/tests/PluginManagerTest.php @@ -0,0 +1,66 @@ +load(array(self::$_PLUGIN_NAME)); + + $this->assertTrue(function_exists('hook_test_random')); + + $data = array(0 => 'woot'); + $pluginManager->executeHooks('random', $data); + $this->assertEquals('woot', $data[1]); + + $data = array(0 => 'woot'); + $pluginManager->executeHooks('random', $data, array('target' => 'test')); + $this->assertEquals('page test', $data[1]); + + $data = array(0 => 'woot'); + $pluginManager->executeHooks('random', $data, array('loggedin' => true)); + $this->assertEquals('loggedin', $data[1]); + } + + /** + * Test missing plugin loading. + * + * @return void + */ + public function testPluginNotFound() + { + $pluginManager = PluginManager::getInstance(); + + $pluginManager->load(array()); + + $pluginManager->load(array('nope', 'renope')); + } +} \ No newline at end of file diff --git a/tests/RouterTest.php b/tests/RouterTest.php new file mode 100755 index 0000000..8838bc8 --- /dev/null +++ b/tests/RouterTest.php @@ -0,0 +1,515 @@ +assertEquals( + Router::$PAGE_LOGIN, + Router::findPage('do=login', array(), false) + ); + + $this->assertEquals( + Router::$PAGE_LOGIN, + Router::findPage('do=login', array(), 1) + ); + + $this->assertEquals( + Router::$PAGE_LOGIN, + Router::findPage('do=login&stuff', array(), false) + ); + } + + /** + * Test findPage: login page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageLoginInvalid() + { + $this->assertNotEquals( + Router::$PAGE_LOGIN, + Router::findPage('do=login', array(), true) + ); + + $this->assertNotEquals( + Router::$PAGE_LOGIN, + Router::findPage('do=other', array(), false) + ); + } + + /** + * Test findPage: picwall page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPagePicwallValid() + { + $this->assertEquals( + Router::$PAGE_PICWALL, + Router::findPage('do=picwall', array(), false) + ); + + $this->assertEquals( + Router::$PAGE_PICWALL, + Router::findPage('do=picwall', array(), true) + ); + } + + /** + * Test findPage: picwall page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPagePicwallInvalid() + { + $this->assertEquals( + Router::$PAGE_PICWALL, + Router::findPage('do=picwall&stuff', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_PICWALL, + Router::findPage('do=other', array(), false) + ); + } + + /** + * Test findPage: tagcloud page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageTagcloudValid() + { + $this->assertEquals( + Router::$PAGE_TAGCLOUD, + Router::findPage('do=tagcloud', array(), false) + ); + + $this->assertEquals( + Router::$PAGE_TAGCLOUD, + Router::findPage('do=tagcloud', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_TAGCLOUD, + Router::findPage('do=tagcloud&stuff', array(), false) + ); + } + + /** + * Test findPage: tagcloud page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageTagcloudInvalid() + { + $this->assertNotEquals( + Router::$PAGE_TAGCLOUD, + Router::findPage('do=other', array(), false) + ); + } + + /** + * Test findPage: linklist page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageLinklistValid() + { + $this->assertEquals( + Router::$PAGE_LINKLIST, + Router::findPage('', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_LINKLIST, + Router::findPage('whatever', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_LINKLIST, + Router::findPage('whatever', array(), false) + ); + + $this->assertEquals( + Router::$PAGE_LINKLIST, + Router::findPage('do=tools', array(), false) + ); + } + + /** + * Test findPage: tools page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageToolsValid() + { + $this->assertEquals( + Router::$PAGE_TOOLS, + Router::findPage('do=tools', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_TOOLS, + Router::findPage('do=tools&stuff', array(), true) + ); + } + + /** + * Test findPage: tools page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageToolsInvalid() + { + $this->assertNotEquals( + Router::$PAGE_TOOLS, + Router::findPage('do=tools', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_TOOLS, + Router::findPage('do=tools', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_TOOLS, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: changepasswd page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageChangepasswdValid() + { + $this->assertEquals( + Router::$PAGE_CHANGEPASSWORD, + Router::findPage('do=changepasswd', array(), true) + ); + $this->assertEquals( + Router::$PAGE_CHANGEPASSWORD, + Router::findPage('do=changepasswd&stuff', array(), true) + ); + + } + + /** + * Test findPage: changepasswd page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageChangepasswdInvalid() + { + $this->assertNotEquals( + Router::$PAGE_CHANGEPASSWORD, + Router::findPage('do=changepasswd', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_CHANGEPASSWORD, + Router::findPage('do=changepasswd', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_CHANGEPASSWORD, + Router::findPage('do=other', array(), true) + ); + } + /** + * Test findPage: configure page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageConfigureValid() + { + $this->assertEquals( + Router::$PAGE_CONFIGURE, + Router::findPage('do=configure', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_CONFIGURE, + Router::findPage('do=configure&stuff', array(), true) + ); + } + + /** + * Test findPage: configure page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageConfigureInvalid() + { + $this->assertNotEquals( + Router::$PAGE_CONFIGURE, + Router::findPage('do=configure', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_CONFIGURE, + Router::findPage('do=configure', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_CONFIGURE, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: changetag page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageChangetagValid() + { + $this->assertEquals( + Router::$PAGE_CHANGETAG, + Router::findPage('do=changetag', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_CHANGETAG, + Router::findPage('do=changetag&stuff', array(), true) + ); + } + + /** + * Test findPage: changetag page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageChangetagInvalid() + { + $this->assertNotEquals( + Router::$PAGE_CHANGETAG, + Router::findPage('do=changetag', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_CHANGETAG, + Router::findPage('do=changetag', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_CHANGETAG, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: addlink page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageAddlinkValid() + { + $this->assertEquals( + Router::$PAGE_ADDLINK, + Router::findPage('do=addlink', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_ADDLINK, + Router::findPage('do=addlink&stuff', array(), true) + ); + } + + /** + * Test findPage: addlink page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageAddlinkInvalid() + { + $this->assertNotEquals( + Router::$PAGE_ADDLINK, + Router::findPage('do=addlink', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_ADDLINK, + Router::findPage('do=addlink', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_ADDLINK, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: export page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageExportValid() + { + $this->assertEquals( + Router::$PAGE_EXPORT, + Router::findPage('do=export', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_EXPORT, + Router::findPage('do=export&stuff', array(), true) + ); + } + + /** + * Test findPage: export page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageExportInvalid() + { + $this->assertNotEquals( + Router::$PAGE_EXPORT, + Router::findPage('do=export', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_EXPORT, + Router::findPage('do=export', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_EXPORT, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: import page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageImportValid() + { + $this->assertEquals( + Router::$PAGE_IMPORT, + Router::findPage('do=import', array(), true) + ); + + $this->assertEquals( + Router::$PAGE_IMPORT, + Router::findPage('do=import&stuff', array(), true) + ); + } + + /** + * Test findPage: import page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageImportInvalid() + { + $this->assertNotEquals( + Router::$PAGE_IMPORT, + Router::findPage('do=import', array(), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_IMPORT, + Router::findPage('do=import', array(), false) + ); + + $this->assertNotEquals( + Router::$PAGE_IMPORT, + Router::findPage('do=other', array(), true) + ); + } + + /** + * Test findPage: editlink page output. + * Valid: page should be return. + * + * @return void + */ + public function testFindPageEditlinkValid() + { + $this->assertEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array('edit_link' => 1), true) + ); + + $this->assertEquals( + Router::$PAGE_EDITLINK, + Router::findPage('', array('edit_link' => 1), true) + ); + + + $this->assertEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array('post' => 1), true) + ); + + $this->assertEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array('post' => 1, 'edit_link' => 1), true) + ); + } + + /** + * Test findPage: editlink page output. + * Invalid: page shouldn't be return. + * + * @return void + */ + public function testFindPageEditlinkInvalid() + { + $this->assertNotEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array('edit_link' => 1), false) + ); + + $this->assertNotEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array('edit_link' => 1), 1) + ); + + $this->assertNotEquals( + Router::$PAGE_EDITLINK, + Router::findPage('whatever', array(), true) + ); + } +} \ No newline at end of file diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php new file mode 100755 index 0000000..3d750c9 --- /dev/null +++ b/tests/plugins/test/test.php @@ -0,0 +1,21 @@ + Date: Wed, 15 Jul 2015 12:08:52 +0200 Subject: [PATCH 187/658] Plugins TODO.md --- plugins/TODO.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 plugins/TODO.md diff --git a/plugins/TODO.md b/plugins/TODO.md new file mode 100644 index 0000000..e3313d6 --- /dev/null +++ b/plugins/TODO.md @@ -0,0 +1,28 @@ +https://github.com/shaarli/Shaarli/issues/181 - Add Disqus or Isso comments box on a permalink page + + * http://posativ.org/isso/ + * install debian package https://packages.debian.org/sid/isso + * configure server http://posativ.org/isso/docs/configuration/server/ + * configure client http://posativ.org/isso/docs/configuration/client/ + * http://posativ.org/isso/docs/quickstart/ and add `` to includes.html template; then add `
                                                                  ` in the linklist template where you want the comments (in the linklist_plugins loop for example) + + +Problem: by default, Isso thread ID is guessed from the current url (only one thread per page). +if we want multiple threads on a single page (shaarli linklist), we must use : the `data-isso-id` client config, +with data-isso-id being the permalink of an item. + +`
                                                                  ` +`data-isso-id: Set a custom thread id, defaults to current URI.` + +Problem: feature is currently broken https://github.com/posativ/isso/issues/27 + +Another option, only display isso threads when current URL is a permalink (`\?(A-Z|a-z|0-9|-){7}`) (only show thread +when displaying only this link), and just display a "comments" button on each linklist item. Optionally show the comment +count on each item using the API (http://posativ.org/isso/docs/extras/api/#get-comment-count). API requests can be done +by raintpl `{function` or client-side with js. The former should be faster if isso and shaarli are on ther same server. + +Showing all full isso threads in the linklist would destroy layout + +----------------------------------------------------------- + +http://www.git-attitude.fr/2014/11/04/git-rerere/ for the merge From 567967fdf94b2b8ba2b2fc9c8836e89ac23c8c71 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 15 Jul 2015 11:47:12 +0200 Subject: [PATCH 188/658] Template upgrade to handle plugin zones Add a bunch of plugin placeholders in templates --- COPYING | 14 +- application/PluginManager.php | 2 +- images/qrcode.png | Bin 321 -> 0 bytes inc/qr-1.1.3.js | 1215 --------------------------------- inc/qr-1.1.3.min.js | 5 - inc/shaarli.css | 8 +- tpl/configure.html | 1 + tpl/daily.html | 59 +- tpl/editlink.html | 5 + tpl/includes.html | 3 + tpl/linklist.html | 90 +-- tpl/linklist.paging.html | 5 + tpl/page.footer.html | 7 + tpl/page.header.html | 5 +- tpl/picwall.html | 19 + tpl/tagcloud.html | 18 +- tpl/tools.html | 3 + 17 files changed, 147 insertions(+), 1312 deletions(-) delete mode 100644 images/qrcode.png delete mode 100644 inc/qr-1.1.3.js delete mode 100644 inc/qr-1.1.3.min.js diff --git a/COPYING b/COPYING index 24b97e9..1044a3b 100644 --- a/COPYING +++ b/COPYING @@ -1,4 +1,4 @@ -Files: * +Files: * License: zlib/libpng Copyright: (c) 2011-2015 Sébastien SAUVAGE (c) 2011-2015 Alexandre Alapetite @@ -31,9 +31,9 @@ Copyright: (c) 2011-2015 Sébastien SAUVAGE Files: inc/reset.css License: BSD (http://opensource.org/licenses/BSD-3-Clause) -Copyright: (c) 2010, Yahoo! Inc. +Copyright: (c) 2010, Yahoo! Inc. -Files: images/calendar.png, images/edit_icon.png, images/feed-icon-14x14.png, images/private.png, images/private_16x16.png, images/private_16x16_active.png, images/qrcode.png, images/tag_blue.png +Files: images/calendar.png, images/edit_icon.png, images/feed-icon-14x14.png, images/private.png, images/private_16x16.png, images/private_16x16_active.png, images/tag_blue.png License: CC-BY (http://creativecommons.org/licenses/by/3.0/) Copyright: (c) 2014 Yusuke Kamiyamane Source: http://p.yusukekamiyamane.com/ @@ -59,10 +59,6 @@ Files: inc/blazy*.js License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) Bjoern Klinggaard - @bklinggaard - http://dinbror.dk/blazy -Files: inc/qr.js -License: GPLv3 License (http://opensource.org/licenses/gpl-3.0) -Copyright: (C) 2014 Alasdair Mercer, http://neocotic.com, https://github.com/neocotic/qr.js - Files: inc/rain.tpl.class.php Copyright: 2011-2012, Federico Ulfo 2011-2012, The Rain Team @@ -80,10 +76,10 @@ In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it +including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: - 1. The origin of this software must not be misrepresented; you must not + 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. diff --git a/application/PluginManager.php b/application/PluginManager.php index e572ff7..803f11b 100644 --- a/application/PluginManager.php +++ b/application/PluginManager.php @@ -99,7 +99,7 @@ class PluginManager * @param string $hook name of the hook to trigger. * @param array $data list of data to manipulate passed by reference. * @param array $params additional parameters such as page target. - * + * * @return void */ public function executeHooks($hook, &$data, $params = array()) diff --git a/images/qrcode.png b/images/qrcode.png deleted file mode 100644 index c2cfa4765abf4f837d36536299b9b0715acfea4d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5X9(%ethE&{2`t$$4J+o>9tBZl5p(&GQuE|aTg}CNcUgq%s ze}9LcXDDJ+R(@=ykmhjc^@WTzSq@b*7c4vYf;Xc^O(#jCri7Vk!-tQn5*v$VG*)O& zGhphhd>nk3;~TrM@H&Tkj7x1dcrq~yzFTuQpy$jz-m52iRQf!flN04lQoai&D1Sa! zmB{ws5c@(2>Hi8I`Z@yrNgo%P3fxvcDcjm5>+08HAU?-s^G_8+lOm_2)=SSX{8$rU zD3ROe<{ZPovi;(mdTD;?bMAc2-VT3cye%4zs7!n^;bwND#f*uU-tY({F#J|Y=2x5Q RJs;>@22WQ%mvv4FO#u0=d4&J~ diff --git a/inc/qr-1.1.3.js b/inc/qr-1.1.3.js deleted file mode 100644 index 4f127e6..0000000 --- a/inc/qr-1.1.3.js +++ /dev/null @@ -1,1215 +0,0 @@ -// [qr.js](http://neocotic.com/qr.js) -// (c) 2014 Alasdair Mercer -// Licensed under the GPL Version 3 license. -// Based on [jsqrencode](http://code.google.com/p/jsqrencode/) -// (c) 2010 tz@execpc.com -// Licensed under the GPL Version 3 license. -// For all details and documentation: -// - -(function (root) { - - 'use strict'; - - // Private constants - // ----------------- - - // Alignment pattern. - var ALIGNMENT_DELTA = [ - 0, 11, 15, 19, 23, 27, 31, - 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, 26, 28, 28, 22, 24, 24, - 26, 26, 28, 28, 24, 24, 26, 26, 26, 28, 28, 24, 26, 26, 26, 28, 28 - ]; - // Default MIME type. - var DEFAULT_MIME = 'image/png'; - // MIME used to initiate a browser download prompt when `qr.save` is called. - var DOWNLOAD_MIME = 'image/octet-stream'; - // There are four elements per version. The first two indicate the number of blocks, then the - // data width, and finally the ECC width. - var ECC_BLOCKS = [ - 1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, - 1, 0, 34, 10, 1, 0, 28, 16, 1, 0, 22, 22, 1, 0, 16, 28, - 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, 17, 18, 2, 0, 13, 22, - 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24, 26, 4, 0, 9, 16, - 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, - 2, 0, 68, 18, 4, 0, 27, 16, 4, 0, 19, 24, 4, 0, 15, 28, - 2, 0, 78, 20, 4, 0, 31, 18, 2, 4, 14, 18, 4, 1, 13, 26, - 2, 0, 97, 24, 2, 2, 38, 22, 4, 2, 18, 22, 4, 2, 14, 26, - 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, 24, - 2, 2, 68, 18, 4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, - 4, 0, 81, 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, - 2, 2, 92, 24, 6, 2, 36, 22, 4, 6, 20, 26, 7, 4, 14, 28, - 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, 24, 12, 4, 11, 22, - 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, 12, 24, - 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30, 11, 7, 12, 24, - 5, 1, 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, - 1, 5, 107, 28, 10, 1, 46, 28, 1, 15, 22, 28, 2, 17, 14, 28, - 5, 1, 120, 30, 9, 4, 43, 26, 17, 1, 22, 28, 2, 19, 14, 28, - 3, 4, 113, 28, 3, 11, 44, 26, 17, 4, 21, 26, 9, 16, 13, 26, - 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, 15, 28, - 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, - 2, 7, 111, 28, 17, 0, 46, 28, 7, 16, 24, 30, 34, 0, 13, 24, - 4, 5, 121, 30, 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, - 6, 4, 117, 30, 6, 14, 45, 28, 11, 16, 24, 30, 30, 2, 16, 30, - 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, 24, 30, 22, 13, 15, 30, - 10, 2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, 33, 4, 16, 30, - 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30, 12, 28, 15, 30, - 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, - 7, 7, 116, 30, 21, 7, 45, 28, 1, 37, 23, 30, 19, 26, 15, 30, - 5, 10, 115, 30, 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, - 13, 3, 115, 30, 2, 29, 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, - 17, 0, 115, 30, 10, 23, 46, 28, 10, 35, 24, 30, 19, 35, 15, 30, - 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, 24, 30, 11, 46, 15, 30, - 13, 6, 115, 30, 14, 23, 46, 28, 44, 7, 24, 30, 59, 1, 16, 30, - 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, 15, 30, - 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, - 17, 4, 122, 30, 29, 14, 46, 28, 49, 10, 24, 30, 24, 46, 15, 30, - 4, 18, 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, - 20, 4, 117, 30, 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, - 19, 6, 118, 30, 18, 31, 47, 28, 34, 34, 24, 30, 20, 61, 15, 30 - ]; - // Map of human-readable ECC levels. - var ECC_LEVELS = { - L: 1, - M: 2, - Q: 3, - H: 4 - }; - // Final format bits with mask (level << 3 | mask). - var FINAL_FORMAT = [ - 0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976, /* L */ - 0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0, /* M */ - 0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed, /* Q */ - 0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b /* H */ - ]; - // Galois field exponent table. - var GALOIS_EXPONENT = [ - 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1d, 0x3a, 0x74, 0xe8, 0xcd, 0x87, 0x13, 0x26, - 0x4c, 0x98, 0x2d, 0x5a, 0xb4, 0x75, 0xea, 0xc9, 0x8f, 0x03, 0x06, 0x0c, 0x18, 0x30, 0x60, 0xc0, - 0x9d, 0x27, 0x4e, 0x9c, 0x25, 0x4a, 0x94, 0x35, 0x6a, 0xd4, 0xb5, 0x77, 0xee, 0xc1, 0x9f, 0x23, - 0x46, 0x8c, 0x05, 0x0a, 0x14, 0x28, 0x50, 0xa0, 0x5d, 0xba, 0x69, 0xd2, 0xb9, 0x6f, 0xde, 0xa1, - 0x5f, 0xbe, 0x61, 0xc2, 0x99, 0x2f, 0x5e, 0xbc, 0x65, 0xca, 0x89, 0x0f, 0x1e, 0x3c, 0x78, 0xf0, - 0xfd, 0xe7, 0xd3, 0xbb, 0x6b, 0xd6, 0xb1, 0x7f, 0xfe, 0xe1, 0xdf, 0xa3, 0x5b, 0xb6, 0x71, 0xe2, - 0xd9, 0xaf, 0x43, 0x86, 0x11, 0x22, 0x44, 0x88, 0x0d, 0x1a, 0x34, 0x68, 0xd0, 0xbd, 0x67, 0xce, - 0x81, 0x1f, 0x3e, 0x7c, 0xf8, 0xed, 0xc7, 0x93, 0x3b, 0x76, 0xec, 0xc5, 0x97, 0x33, 0x66, 0xcc, - 0x85, 0x17, 0x2e, 0x5c, 0xb8, 0x6d, 0xda, 0xa9, 0x4f, 0x9e, 0x21, 0x42, 0x84, 0x15, 0x2a, 0x54, - 0xa8, 0x4d, 0x9a, 0x29, 0x52, 0xa4, 0x55, 0xaa, 0x49, 0x92, 0x39, 0x72, 0xe4, 0xd5, 0xb7, 0x73, - 0xe6, 0xd1, 0xbf, 0x63, 0xc6, 0x91, 0x3f, 0x7e, 0xfc, 0xe5, 0xd7, 0xb3, 0x7b, 0xf6, 0xf1, 0xff, - 0xe3, 0xdb, 0xab, 0x4b, 0x96, 0x31, 0x62, 0xc4, 0x95, 0x37, 0x6e, 0xdc, 0xa5, 0x57, 0xae, 0x41, - 0x82, 0x19, 0x32, 0x64, 0xc8, 0x8d, 0x07, 0x0e, 0x1c, 0x38, 0x70, 0xe0, 0xdd, 0xa7, 0x53, 0xa6, - 0x51, 0xa2, 0x59, 0xb2, 0x79, 0xf2, 0xf9, 0xef, 0xc3, 0x9b, 0x2b, 0x56, 0xac, 0x45, 0x8a, 0x09, - 0x12, 0x24, 0x48, 0x90, 0x3d, 0x7a, 0xf4, 0xf5, 0xf7, 0xf3, 0xfb, 0xeb, 0xcb, 0x8b, 0x0b, 0x16, - 0x2c, 0x58, 0xb0, 0x7d, 0xfa, 0xe9, 0xcf, 0x83, 0x1b, 0x36, 0x6c, 0xd8, 0xad, 0x47, 0x8e, 0x00 - ]; - // Galois field log table. - var GALOIS_LOG = [ - 0xff, 0x00, 0x01, 0x19, 0x02, 0x32, 0x1a, 0xc6, 0x03, 0xdf, 0x33, 0xee, 0x1b, 0x68, 0xc7, 0x4b, - 0x04, 0x64, 0xe0, 0x0e, 0x34, 0x8d, 0xef, 0x81, 0x1c, 0xc1, 0x69, 0xf8, 0xc8, 0x08, 0x4c, 0x71, - 0x05, 0x8a, 0x65, 0x2f, 0xe1, 0x24, 0x0f, 0x21, 0x35, 0x93, 0x8e, 0xda, 0xf0, 0x12, 0x82, 0x45, - 0x1d, 0xb5, 0xc2, 0x7d, 0x6a, 0x27, 0xf9, 0xb9, 0xc9, 0x9a, 0x09, 0x78, 0x4d, 0xe4, 0x72, 0xa6, - 0x06, 0xbf, 0x8b, 0x62, 0x66, 0xdd, 0x30, 0xfd, 0xe2, 0x98, 0x25, 0xb3, 0x10, 0x91, 0x22, 0x88, - 0x36, 0xd0, 0x94, 0xce, 0x8f, 0x96, 0xdb, 0xbd, 0xf1, 0xd2, 0x13, 0x5c, 0x83, 0x38, 0x46, 0x40, - 0x1e, 0x42, 0xb6, 0xa3, 0xc3, 0x48, 0x7e, 0x6e, 0x6b, 0x3a, 0x28, 0x54, 0xfa, 0x85, 0xba, 0x3d, - 0xca, 0x5e, 0x9b, 0x9f, 0x0a, 0x15, 0x79, 0x2b, 0x4e, 0xd4, 0xe5, 0xac, 0x73, 0xf3, 0xa7, 0x57, - 0x07, 0x70, 0xc0, 0xf7, 0x8c, 0x80, 0x63, 0x0d, 0x67, 0x4a, 0xde, 0xed, 0x31, 0xc5, 0xfe, 0x18, - 0xe3, 0xa5, 0x99, 0x77, 0x26, 0xb8, 0xb4, 0x7c, 0x11, 0x44, 0x92, 0xd9, 0x23, 0x20, 0x89, 0x2e, - 0x37, 0x3f, 0xd1, 0x5b, 0x95, 0xbc, 0xcf, 0xcd, 0x90, 0x87, 0x97, 0xb2, 0xdc, 0xfc, 0xbe, 0x61, - 0xf2, 0x56, 0xd3, 0xab, 0x14, 0x2a, 0x5d, 0x9e, 0x84, 0x3c, 0x39, 0x53, 0x47, 0x6d, 0x41, 0xa2, - 0x1f, 0x2d, 0x43, 0xd8, 0xb7, 0x7b, 0xa4, 0x76, 0xc4, 0x17, 0x49, 0xec, 0x7f, 0x0c, 0x6f, 0xf6, - 0x6c, 0xa1, 0x3b, 0x52, 0x29, 0x9d, 0x55, 0xaa, 0xfb, 0x60, 0x86, 0xb1, 0xbb, 0xcc, 0x3e, 0x5a, - 0xcb, 0x59, 0x5f, 0xb0, 0x9c, 0xa9, 0xa0, 0x51, 0x0b, 0xf5, 0x16, 0xeb, 0x7a, 0x75, 0x2c, 0xd7, - 0x4f, 0xae, 0xd5, 0xe9, 0xe6, 0xe7, 0xad, 0xe8, 0x74, 0xd6, 0xf4, 0xea, 0xa8, 0x50, 0x58, 0xaf - ]; - // *Badness* coefficients. - var N1 = 3; - var N2 = 3; - var N3 = 40; - var N4 = 10; - // Version pattern. - var VERSION_BLOCK = [ - 0xc94, 0x5bc, 0xa99, 0x4d3, 0xbf6, 0x762, 0x847, 0x60d, 0x928, 0xb78, 0x45d, 0xa17, 0x532, - 0x9a6, 0x683, 0x8c9, 0x7ec, 0xec4, 0x1e1, 0xfab, 0x08e, 0xc1a, 0x33f, 0xd75, 0x250, 0x9d5, - 0x6f0, 0x8ba, 0x79f, 0xb0b, 0x42e, 0xa64, 0x541, 0xc69 - ]; - // Mode for node.js file system file writes. - var WRITE_MODE = parseInt('0666', 8); - - // Private variables - // ----------------- - - // Run lengths for badness. - var badBuffer = []; - // Constructor for `canvas` elements in the node.js environment. - var Canvas; - // Data block. - var dataBlock; - // ECC data blocks and tables. - var eccBlock, neccBlock1, neccBlock2; - // ECC buffer. - var eccBuffer = []; - // ECC level (defaults to **L**). - var eccLevel = 1; - // Image buffer. - var frameBuffer = []; - // Fixed part of the image. - var frameMask = []; - // File system within the node.js environment. - var fs; - // Constructor for `img` elements in the node.js environment. - var Image; - // Indicates whether or not this script is running in node.js. - var inNode = false; - // Generator polynomial. - var polynomial = []; - // Save the previous value of the `qr` variable. - var previousQr = root.qr; - // Data input buffer. - var stringBuffer = []; - // Version for the data. - var version; - // Data width is based on `version`. - var width; - - // Private functions - // ----------------- - - // Create a new canvas using `document.createElement` unless script is running in node.js, in - // which case the `canvas` module is used. - function createCanvas() { - return inNode ? new Canvas() : root.document.createElement('canvas'); - } - - // Create a new image using `document.createElement` unless script is running in node.js, in - // which case the `canvas` module is used. - function createImage() { - return inNode ? new Image() : root.document.createElement('img'); - } - - // Force the canvas image to be downloaded in the browser. - // Optionally, a `callback` function can be specified which will be called upon completed. Since - // this is not an asynchronous operation, this is merely convenient and helps simplify the - // calling code. - function download(cvs, data, callback) { - var mime = data.mime || DEFAULT_MIME; - - root.location.href = cvs.toDataURL(mime).replace(mime, DOWNLOAD_MIME); - - if (typeof callback === 'function') callback(); - } - - // Normalize the `data` that is provided to the main API. - function normalizeData(data) { - if (typeof data === 'string') data = { value: data }; - return data || {}; - } - - // Override the `qr` API methods that require HTML5 canvas support to throw a relevant error. - function overrideAPI(qr) { - var methods = [ 'canvas', 'image', 'save', 'saveSync', 'toDataURL' ]; - var i; - - function overrideMethod(name) { - qr[name] = function () { - throw new Error(name + ' requires HTML5 canvas element support'); - }; - } - - for (i = 0; i < methods.length; i++) { - overrideMethod(methods[i]); - } - } - - // Asynchronously write the data of the rendered canvas to a given file path. - function writeFile(cvs, data, callback) { - if (typeof data.path !== 'string') { - return callback(new TypeError('Invalid path type: ' + typeof data.path)); - } - - var fd, buff; - - // Write the buffer to the open file stream once both prerequisites are met. - function writeBuffer() { - fs.write(fd, buff, 0, buff.length, 0, function (error) { - fs.close(fd); - - callback(error); - }); - } - - // Create a buffer of the canvas' data. - cvs.toBuffer(function (error, _buff) { - if (error) return callback(error); - - buff = _buff; - if (fd) { - writeBuffer(); - } - }); - - // Open a stream for the file to be written. - fs.open(data.path, 'w', WRITE_MODE, function (error, _fd) { - if (error) return callback(error); - - fd = _fd; - if (buff) { - writeBuffer(); - } - }); - } - - // Write the data of the rendered canvas to a given file path. - function writeFileSync(cvs, data) { - if (typeof data.path !== 'string') { - throw new TypeError('Invalid path type: ' + typeof data.path); - } - - var buff = cvs.toBuffer(); - var fd = fs.openSync(data.path, 'w', WRITE_MODE); - - try { - fs.writeSync(fd, buff, 0, buff.length, 0); - } finally { - fs.closeSync(fd); - } - } - - // Set bit to indicate cell in frame is immutable (symmetric around diagonal). - function setMask(x, y) { - var bit; - - if (x > y) { - bit = x; - x = y; - y = bit; - } - - bit = y; - bit *= y; - bit += y; - bit >>= 1; - bit += x; - - frameMask[bit] = 1; - } - - // Enter alignment pattern. Foreground colour to frame, background to mask. Frame will be merged - // with mask later. - function addAlignment(x, y) { - var i; - - frameBuffer[x + width * y] = 1; - - for (i = -2; i < 2; i++) { - frameBuffer[(x + i) + width * (y - 2)] = 1; - frameBuffer[(x - 2) + width * (y + i + 1)] = 1; - frameBuffer[(x + 2) + width * (y + i)] = 1; - frameBuffer[(x + i + 1) + width * (y + 2)] = 1; - } - - for (i = 0; i < 2; i++) { - setMask(x - 1, y + i); - setMask(x + 1, y - i); - setMask(x - i, y - 1); - setMask(x + i, y + 1); - } - } - - // Exponentiation mod N. - function modN(x) { - while (x >= 255) { - x -= 255; - x = (x >> 8) + (x & 255); - } - - return x; - } - - // Calculate and append `ecc` data to the `data` block. If block is in the string buffer the - // indices to buffers are used. - function appendData(data, dataLength, ecc, eccLength) { - var bit, i, j; - - for (i = 0; i < eccLength; i++) { - stringBuffer[ecc + i] = 0; - } - - for (i = 0; i < dataLength; i++) { - bit = GALOIS_LOG[stringBuffer[data + i] ^ stringBuffer[ecc]]; - - if (bit !== 255) { - for (j = 1; j < eccLength; j++) { - stringBuffer[ecc + j - 1] = stringBuffer[ecc + j] ^ - GALOIS_EXPONENT[modN(bit + polynomial[eccLength - j])]; - } - } else { - for (j = ecc; j < ecc + eccLength; j++) { - stringBuffer[j] = stringBuffer[j + 1]; - } - } - - stringBuffer[ecc + eccLength - 1] = bit === 255 ? 0 : - GALOIS_EXPONENT[modN(bit + polynomial[0])]; - } - } - - // Check mask since symmetricals use half. - function isMasked(x, y) { - var bit; - - if (x > y) { - bit = x; - x = y; - y = bit; - } - - bit = y; - bit += y * y; - bit >>= 1; - bit += x; - - return frameMask[bit] === 1; - } - - // Apply the selected mask out of the 8 options. - function applyMask(mask) { - var x, y, r3x, r3y; - - switch (mask) { - case 0: - for (y = 0; y < width; y++) { - for (x = 0; x < width; x++) { - if (!((x + y) & 1) && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 1: - for (y = 0; y < width; y++) { - for (x = 0; x < width; x++) { - if (!(y & 1) && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 2: - for (y = 0; y < width; y++) { - for (r3x = 0, x = 0; x < width; x++, r3x++) { - if (r3x === 3) r3x = 0; - - if (!r3x && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 3: - for (r3y = 0, y = 0; y < width; y++, r3y++) { - if (r3y === 3) r3y = 0; - - for (r3x = r3y, x = 0; x < width; x++, r3x++) { - if (r3x === 3) r3x = 0; - - if (!r3x && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 4: - for (y = 0; y < width; y++) { - for (r3x = 0, r3y = ((y >> 1) & 1), x = 0; x < width; x++, r3x++) { - if (r3x === 3) { - r3x = 0; - r3y = !r3y; - } - - if (!r3y && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 5: - for (r3y = 0, y = 0; y < width; y++, r3y++) { - if (r3y === 3) r3y = 0; - - for (r3x = 0, x = 0; x < width; x++, r3x++) { - if (r3x === 3) r3x = 0; - - if (!((x & y & 1) + !(!r3x | !r3y)) && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 6: - for (r3y = 0, y = 0; y < width; y++, r3y++) { - if (r3y === 3) r3y = 0; - - for (r3x = 0, x = 0; x < width; x++, r3x++) { - if (r3x === 3) r3x = 0; - - if (!(((x & y & 1) + (r3x && (r3x === r3y))) & 1) && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - case 7: - for (r3y = 0, y = 0; y < width; y++, r3y++) { - if (r3y === 3) r3y = 0; - - for (r3x = 0, x = 0; x < width; x++, r3x++) { - if (r3x === 3) r3x = 0; - - if (!(((r3x && (r3x === r3y)) + ((x + y) & 1)) & 1) && !isMasked(x, y)) { - frameBuffer[x + y * width] ^= 1; - } - } - } - - break; - } - } - - // Using the table for the length of each run, calculate the amount of bad image. Long runs or - // those that look like finders are called twice; once for X and Y. - function getBadRuns(length) { - var badRuns = 0; - var i; - - for (i = 0; i <= length; i++) { - if (badBuffer[i] >= 5) { - badRuns += N1 + badBuffer[i] - 5; - } - } - - // FBFFFBF as in finder. - for (i = 3; i < length - 1; i += 2) { - if (badBuffer[i - 2] === badBuffer[i + 2] && - badBuffer[i + 2] === badBuffer[i - 1] && - badBuffer[i - 1] === badBuffer[i + 1] && - badBuffer[i - 1] * 3 === badBuffer[i] && - // Background around the foreground pattern? Not part of the specs. - (badBuffer[i - 3] === 0 || i + 3 > length || - badBuffer[i - 3] * 3 >= badBuffer[i] * 4 || - badBuffer[i + 3] * 3 >= badBuffer[i] * 4)) { - badRuns += N3; - } - } - - return badRuns; - } - - // Calculate how bad the masked image is (e.g. blocks, imbalance, runs, or finders). - function checkBadness() { - var b, b1, bad, big, bw, count, h, x, y; - bad = bw = count = 0; - - // Blocks of same colour. - for (y = 0; y < width - 1; y++) { - for (x = 0; x < width - 1; x++) { - // All foreground colour. - if ((frameBuffer[x + width * y] && - frameBuffer[(x + 1) + width * y] && - frameBuffer[x + width * (y + 1)] && - frameBuffer[(x + 1) + width * (y + 1)]) || - // All background colour. - !(frameBuffer[x + width * y] || - frameBuffer[(x + 1) + width * y] || - frameBuffer[x + width * (y + 1)] || - frameBuffer[(x + 1) + width * (y + 1)])) { - bad += N2; - } - } - } - - // X runs. - for (y = 0; y < width; y++) { - badBuffer[0] = 0; - - for (h = b = x = 0; x < width; x++) { - if ((b1 = frameBuffer[x + width * y]) === b) { - badBuffer[h]++; - } else { - badBuffer[++h] = 1; - } - - b = b1; - bw += b ? 1 : -1; - } - - bad += getBadRuns(h); - } - - if (bw < 0) bw = -bw; - - big = bw; - big += big << 2; - big <<= 1; - - while (big > width * width) { - big -= width * width; - count++; - } - - bad += count * N4; - - // Y runs. - for (x = 0; x < width; x++) { - badBuffer[0] = 0; - - for (h = b = y = 0; y < width; y++) { - if ((b1 = frameBuffer[x + width * y]) === b) { - badBuffer[h]++; - } else { - badBuffer[++h] = 1; - } - - b = b1; - } - - bad += getBadRuns(h); - } - - return bad; - } - - // Generate the encoded QR image for the string provided. - function generateFrame(str) { - var i, j, k, m, t, v, x, y; - - // Find the smallest version that fits the string. - t = str.length; - - version = 0; - - do { - version++; - - k = (eccLevel - 1) * 4 + (version - 1) * 16; - - neccBlock1 = ECC_BLOCKS[k++]; - neccBlock2 = ECC_BLOCKS[k++]; - dataBlock = ECC_BLOCKS[k++]; - eccBlock = ECC_BLOCKS[k]; - - k = dataBlock * (neccBlock1 + neccBlock2) + neccBlock2 - 3 + (version <= 9); - - if (t <= k) break; - } while (version < 40); - - // FIXME: Ensure that it fits insted of being truncated. - width = 17 + 4 * version; - - // Allocate, clear and setup data structures. - v = dataBlock + (dataBlock + eccBlock) * (neccBlock1 + neccBlock2) + neccBlock2; - - for (t = 0; t < v; t++) { - eccBuffer[t] = 0; - } - - stringBuffer = str.slice(0); - - for (t = 0; t < width * width; t++) { - frameBuffer[t] = 0; - } - - for (t = 0; t < (width * (width + 1) + 1) / 2; t++) { - frameMask[t] = 0; - } - - // Insert finders: Foreground colour to frame and background to mask. - for (t = 0; t < 3; t++) { - k = y = 0; - - if (t === 1) k = (width - 7); - if (t === 2) y = (width - 7); - - frameBuffer[(y + 3) + width * (k + 3)] = 1; - - for (x = 0; x < 6; x++) { - frameBuffer[(y + x) + width * k] = 1; - frameBuffer[y + width * (k + x + 1)] = 1; - frameBuffer[(y + 6) + width * (k + x)] = 1; - frameBuffer[(y + x + 1) + width * (k + 6)] = 1; - } - - for (x = 1; x < 5; x++) { - setMask(y + x, k + 1); - setMask(y + 1, k + x + 1); - setMask(y + 5, k + x); - setMask(y + x + 1, k + 5); - } - - for (x = 2; x < 4; x++) { - frameBuffer[(y + x) + width * (k + 2)] = 1; - frameBuffer[(y + 2) + width * (k + x + 1)] = 1; - frameBuffer[(y + 4) + width * (k + x)] = 1; - frameBuffer[(y + x + 1) + width * (k + 4)] = 1; - } - } - - // Alignment blocks. - if (version > 1) { - t = ALIGNMENT_DELTA[version]; - y = width - 7; - - for (;;) { - x = width - 7; - - while (x > t - 3) { - addAlignment(x, y); - - if (x < t) break; - - x -= t; - } - - if (y <= t + 9) break; - - y -= t; - - addAlignment(6, y); - addAlignment(y, 6); - } - } - - // Single foreground cell. - frameBuffer[8 + width * (width - 8)] = 1; - - // Timing gap (mask only). - for (y = 0; y < 7; y++) { - setMask(7, y); - setMask(width - 8, y); - setMask(7, y + width - 7); - } - - for (x = 0; x < 8; x++) { - setMask(x, 7); - setMask(x + width - 8, 7); - setMask(x, width - 8); - } - - // Reserve mask, format area. - for (x = 0; x < 9; x++) { - setMask(x, 8); - } - - for (x = 0; x < 8; x++) { - setMask(x + width - 8, 8); - setMask(8, x); - } - - for (y = 0; y < 7; y++) { - setMask(8, y + width - 7); - } - - // Timing row/column. - for (x = 0; x < width - 14; x++) { - if (x & 1) { - setMask(8 + x, 6); - setMask(6, 8 + x); - } else { - frameBuffer[(8 + x) + width * 6] = 1; - frameBuffer[6 + width * (8 + x)] = 1; - } - } - - // Version block. - if (version > 6) { - t = VERSION_BLOCK[version - 7]; - k = 17; - - for (x = 0; x < 6; x++) { - for (y = 0; y < 3; y++, k--) { - if (1 & (k > 11 ? version >> (k - 12) : t >> k)) { - frameBuffer[(5 - x) + width * (2 - y + width - 11)] = 1; - frameBuffer[(2 - y + width - 11) + width * (5 - x)] = 1; - } else { - setMask(5 - x, 2 - y + width - 11); - setMask(2 - y + width - 11, 5 - x); - } - } - } - } - - // Sync mask bits. Only set above for background cells, so now add the foreground. - for (y = 0; y < width; y++) { - for (x = 0; x <= y; x++) { - if (frameBuffer[x + width * y]) { - setMask(x, y); - } - } - } - - // Convert string to bit stream. 8-bit data to QR-coded 8-bit data (numeric, alphanum, or kanji - // not supported). - v = stringBuffer.length; - - // String to array. - for (i = 0; i < v; i++) { - eccBuffer[i] = stringBuffer.charCodeAt(i); - } - - stringBuffer = eccBuffer.slice(0); - - // Calculate max string length. - x = dataBlock * (neccBlock1 + neccBlock2) + neccBlock2; - - if (v >= x - 2) { - v = x - 2; - - if (version > 9) v--; - } - - // Shift and re-pack to insert length prefix. - i = v; - - if (version > 9) { - stringBuffer[i + 2] = 0; - stringBuffer[i + 3] = 0; - - while (i--) { - t = stringBuffer[i]; - - stringBuffer[i + 3] |= 255 & (t << 4); - stringBuffer[i + 2] = t >> 4; - } - - stringBuffer[2] |= 255 & (v << 4); - stringBuffer[1] = v >> 4; - stringBuffer[0] = 0x40 | (v >> 12); - } else { - stringBuffer[i + 1] = 0; - stringBuffer[i + 2] = 0; - - while (i--) { - t = stringBuffer[i]; - - stringBuffer[i + 2] |= 255 & (t << 4); - stringBuffer[i + 1] = t >> 4; - } - - stringBuffer[1] |= 255 & (v << 4); - stringBuffer[0] = 0x40 | (v >> 4); - } - - // Fill to end with pad pattern. - i = v + 3 - (version < 10); - - while (i < x) { - stringBuffer[i++] = 0xec; - stringBuffer[i++] = 0x11; - } - - // Calculate generator polynomial. - polynomial[0] = 1; - - for (i = 0; i < eccBlock; i++) { - polynomial[i + 1] = 1; - - for (j = i; j > 0; j--) { - polynomial[j] = polynomial[j] ? polynomial[j - 1] ^ - GALOIS_EXPONENT[modN(GALOIS_LOG[polynomial[j]] + i)] : polynomial[j - 1]; - } - - polynomial[0] = GALOIS_EXPONENT[modN(GALOIS_LOG[polynomial[0]] + i)]; - } - - // Use logs for generator polynomial to save calculation step. - for (i = 0; i <= eccBlock; i++) { - polynomial[i] = GALOIS_LOG[polynomial[i]]; - } - - // Append ECC to data buffer. - k = x; - y = 0; - - for (i = 0; i < neccBlock1; i++) { - appendData(y, dataBlock, k, eccBlock); - - y += dataBlock; - k += eccBlock; - } - - for (i = 0; i < neccBlock2; i++) { - appendData(y, dataBlock + 1, k, eccBlock); - - y += dataBlock + 1; - k += eccBlock; - } - - // Interleave blocks. - y = 0; - - for (i = 0; i < dataBlock; i++) { - for (j = 0; j < neccBlock1; j++) { - eccBuffer[y++] = stringBuffer[i + j * dataBlock]; - } - - for (j = 0; j < neccBlock2; j++) { - eccBuffer[y++] = stringBuffer[(neccBlock1 * dataBlock) + i + (j * (dataBlock + 1))]; - } - } - - for (j = 0; j < neccBlock2; j++) { - eccBuffer[y++] = stringBuffer[(neccBlock1 * dataBlock) + i + (j * (dataBlock + 1))]; - } - - for (i = 0; i < eccBlock; i++) { - for (j = 0; j < neccBlock1 + neccBlock2; j++) { - eccBuffer[y++] = stringBuffer[x + i + j * eccBlock]; - } - } - - stringBuffer = eccBuffer; - - // Pack bits into frame avoiding masked area. - x = y = width - 1; - k = v = 1; - - // inteleaved data and ECC codes. - m = (dataBlock + eccBlock) * (neccBlock1 + neccBlock2) + neccBlock2; - - for (i = 0; i < m; i++) { - t = stringBuffer[i]; - - for (j = 0; j < 8; j++, t <<= 1) { - if (0x80 & t) { - frameBuffer[x + width * y] = 1; - } - - // Find next fill position. - do { - if (v) { - x--; - } else { - x++; - - if (k) { - if (y !== 0) { - y--; - } else { - x -= 2; - k = !k; - - if (x === 6) { - x--; - y = 9; - } - } - } else { - if (y !== width - 1) { - y++; - } else { - x -= 2; - k = !k; - - if (x === 6) { - x--; - y -= 8; - } - } - } - } - - v = !v; - } while (isMasked(x, y)); - } - } - - // Save pre-mask copy of frame. - stringBuffer = frameBuffer.slice(0); - - t = 0; - y = 30000; - - // Using `for` instead of `while` since in original Arduino code if an early mask was *good - // enough* it wouldn't try for a better one since they get more complex and take longer. - for (k = 0; k < 8; k++) { - // Returns foreground-background imbalance. - applyMask(k); - - x = checkBadness(); - - // Is current mask better than previous best? - if (x < y) { - y = x; - t = k; - } - - // Don't increment `i` to a void redoing mask. - if (t === 7) break; - - // Reset for next pass. - frameBuffer = stringBuffer.slice(0); - } - - // Redo best mask as none were *good enough* (i.e. last wasn't `t`). - if (t !== k) { - applyMask(t); - } - - // Add in final mask/ECC level bytes. - y = FINAL_FORMAT[t + ((eccLevel - 1) << 3)]; - - // Low byte. - for (k = 0; k < 8; k++, y >>= 1) { - if (y & 1) { - frameBuffer[(width - 1 - k) + width * 8] = 1; - - if (k < 6) { - frameBuffer[8 + width * k] = 1; - } else { - frameBuffer[8 + width * (k + 1)] = 1; - } - } - } - - // High byte. - for (k = 0; k < 7; k++, y >>= 1) { - if (y & 1) { - frameBuffer[8 + width * (width - 7 + k)] = 1; - - if (k) { - frameBuffer[(6 - k) + width * 8] = 1; - } else { - frameBuffer[7 + width * 8] = 1; - } - } - } - - // Finally, return the image data. - return frameBuffer; - } - - // qr.js setup - // ----------- - - // Build the publicly exposed API. - var qr = { - - // Constants - // --------- - - // Current version of `qr`. - VERSION: '1.1.3', - - // QR functions - // ------------ - - // Generate the QR code using the data provided and render it on to a `` element. - // If no `` element is specified in the argument provided a new one will be created and - // used. - // ECC (error correction capacity) determines how many intential errors are contained in the QR - // code. - canvas: function(data) { - data = normalizeData(data); - - // Module size of the generated QR code (i.e. 1-10). - var size = data.size >= 1 && data.size <= 10 ? data.size : 4; - // Actual size of the QR code symbol and is scaled to 25 pixels (e.g. 1 = 25px, 3 = 75px). - size *= 25; - - // `` element used to render the QR code. - var cvs = data.canvas || createCanvas(); - // Retreive the 2D context of the canvas. - var c2d = cvs.getContext('2d'); - // Ensure the canvas has the correct dimensions. - c2d.canvas.width = size; - c2d.canvas.height = size; - // Fill the canvas with the correct background colour. - c2d.fillStyle = data.background || '#fff'; - c2d.fillRect(0, 0, size, size); - - // Determine the ECC level to be applied. - eccLevel = ECC_LEVELS[(data.level && data.level.toUpperCase()) || 'L']; - - // Generate the image frame for the given `value`. - var frame = generateFrame(data.value || ''); - - c2d.lineWidth = 1; - - // Determine the *pixel* size. - var px = size; - px /= width; - px = Math.floor(px); - - // Draw the QR code. - c2d.clearRect(0, 0, size, size); - c2d.fillStyle = data.background || '#fff'; - c2d.fillRect(0, 0, px * (width + 8), px * (width + 8)); - c2d.fillStyle = data.foreground || '#000'; - - var i, j; - - for (i = 0; i < width; i++) { - for (j = 0; j < width; j++) { - if (frame[j * width + i]) { - c2d.fillRect(px * i, px * j, px, px); - } - } - } - - return cvs; - }, - - // Generate the QR code using the data provided and render it on to a `` element. - // If no `` element is specified in the argument provided a new one will be created and - // used. - // ECC (error correction capacity) determines how many intential errors are contained in the QR - // code. - image: function(data) { - data = normalizeData(data); - - // `` element only which the QR code is rendered. - var cvs = this.canvas(data); - // `` element used to display the QR code. - var img = data.image || createImage(); - - // Apply the QR code to `img`. - img.src = cvs.toDataURL(data.mime || DEFAULT_MIME); - img.height = cvs.height; - img.width = cvs.width; - - return img; - }, - - // Generate the QR code using the data provided and render it on to a `` element and - // save it as an image file. - // If no `` element is specified in the argument provided a new one will be created and - // used. - // ECC (error correction capacity) determines how many intential errors are contained in the QR - // code. - // If called in a browser the `path` property/argument is ignored and will simply prompt the - // user to choose a location and file name. However, if called within node.js the file will be - // saved to specified path. - // A `callback` function must be provided which will be called once the saving process has - // started. If an error occurs it will be passed as the first argument to this function, - // otherwise this argument will be `null`. - save: function(data, path, callback) { - data = normalizeData(data); - - switch (typeof path) { - case 'function': - callback = path; - path = null; - break; - case 'string': - data.path = path; - break; - } - - // Callback function is required. - if (typeof callback !== 'function') { - throw new TypeError('Invalid callback type: ' + typeof callback); - } - - var completed = false; - // `` element only which the QR code is rendered. - var cvs = this.canvas(data); - - // Simple function to try and ensure that the `callback` function is only called once. - function done(error) { - if (!completed) { - completed = true; - - callback(error); - } - } - - if (inNode) { - writeFile(cvs, data, done); - } else { - download(cvs, data, done); - } - }, - - // Generate the QR code using the data provided and render it on to a `` element and - // save it as an image file. - // If no `` element is specified in the argument provided a new one will be created and - // used. - // ECC (error correction capacity) determines how many intential errors are contained in the QR - // code. - // If called in a browser the `path` property/argument is ignored and will simply prompt the - // user to choose a location and file name. However, if called within node.js the file will be - // saved to specified path. - saveSync: function(data, path) { - data = normalizeData(data); - - if (typeof path === 'string') data.path = path; - - // `` element only which the QR code is rendered. - var cvs = this.canvas(data); - - if (inNode) { - writeFileSync(cvs, data); - } else { - download(cvs, data); - } - }, - - // Generate the QR code using the data provided and render it on to a `` element before - // returning its data URI. - // If no `` element is specified in the argument provided a new one will be created and - // used. - // ECC (error correction capacity) determines how many intential errors are contained in the QR - // code. - toDataURL: function(data) { - data = normalizeData(data); - - return this.canvas(data).toDataURL(data.mime || DEFAULT_MIME); - }, - - // Utility functions - // ----------------- - - // Run qr.js in *noConflict* mode, returning the `qr` variable to its previous owner. - // Returns a reference to `qr`. - noConflict: function() { - root.qr = previousQr; - return this; - } - - }; - - // Support - // ------- - - // Export `qr` for node.js and CommonJS. - if (typeof exports !== 'undefined') { - inNode = true; - - if (typeof module !== 'undefined' && module.exports) { - exports = module.exports = qr; - } - exports.qr = qr; - - // Import required node.js modules. - Canvas = require('canvas'); - Image = Canvas.Image; - fs = require('fs'); - } else if (typeof define === 'function' && define.amd) { - define(function () { - return qr; - }); - } else { - // In non-HTML5 browser so strip base functionality. - if (!root.HTMLCanvasElement) { - overrideAPI(qr); - } - - root.qr = qr; - } - -})(this); diff --git a/inc/qr-1.1.3.min.js b/inc/qr-1.1.3.min.js deleted file mode 100644 index 19d704e..0000000 --- a/inc/qr-1.1.3.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! qr-js v1.1.3 | (c) 2014 Alasdair Mercer | GPL v3 License -jsqrencode | (c) 2010 tz@execpc.com | GPL v3 License -*/ -!function(a){"use strict";function b(){return T?new r:a.document.createElement("canvas")}function c(){return T?new x:a.document.createElement("img")}function d(b,c,d){var e=c.mime||B;a.location.href=b.toDataURL(e).replace(e,C),"function"==typeof d&&d()}function e(a){return"string"==typeof a&&(a={value:a}),a||{}}function f(a){function b(b){a[b]=function(){throw new Error(b+" requires HTML5 canvas element support")}}var c,d=["canvas","image","save","saveSync","toDataURL"];for(c=0;cb&&(c=a,a=b,b=c),c=b,c*=b,c+=b,c>>=1,c+=a,S[c]=1}function j(a,b){var c;for(R[a+z*b]=1,c=-2;2>c;c++)R[a+c+z*(b-2)]=1,R[a-2+z*(b+c+1)]=1,R[a+2+z*(b+c)]=1,R[a+c+1+z*(b+2)]=1;for(c=0;2>c;c++)i(a-1,b+c),i(a+1,b-c),i(a-c,b-1),i(a+c,b+1)}function k(a){for(;a>=255;)a-=255,a=(a>>8)+(255&a);return a}function l(a,b,c,d){var e,f,g;for(f=0;d>f;f++)W[c+f]=0;for(f=0;b>f;f++){if(e=H[W[a+f]^W[c]],255!==e)for(g=1;d>g;g++)W[c+g-1]=W[c+g]^G[k(e+U[d-g])];else for(g=c;c+d>g;g++)W[g]=W[g+1];W[c+d-1]=255===e?0:G[k(e+U[0])]}}function m(a,b){var c;return a>b&&(c=a,a=b,b=c),c=b,c+=b*b,c>>=1,c+=a,1===S[c]}function n(a){var b,c,d,e;switch(a){case 0:for(c=0;z>c;c++)for(b=0;z>b;b++)b+c&1||m(b,c)||(R[b+c*z]^=1);break;case 1:for(c=0;z>c;c++)for(b=0;z>b;b++)1&c||m(b,c)||(R[b+c*z]^=1);break;case 2:for(c=0;z>c;c++)for(d=0,b=0;z>b;b++,d++)3===d&&(d=0),d||m(b,c)||(R[b+c*z]^=1);break;case 3:for(e=0,c=0;z>c;c++,e++)for(3===e&&(e=0),d=e,b=0;z>b;b++,d++)3===d&&(d=0),d||m(b,c)||(R[b+c*z]^=1);break;case 4:for(c=0;z>c;c++)for(d=0,e=c>>1&1,b=0;z>b;b++,d++)3===d&&(d=0,e=!e),e||m(b,c)||(R[b+c*z]^=1);break;case 5:for(e=0,c=0;z>c;c++,e++)for(3===e&&(e=0),d=0,b=0;z>b;b++,d++)3===d&&(d=0),(b&c&1)+!(!d|!e)||m(b,c)||(R[b+c*z]^=1);break;case 6:for(e=0,c=0;z>c;c++,e++)for(3===e&&(e=0),d=0,b=0;z>b;b++,d++)3===d&&(d=0),(b&c&1)+(d&&d===e)&1||m(b,c)||(R[b+c*z]^=1);break;case 7:for(e=0,c=0;z>c;c++,e++)for(3===e&&(e=0),d=0,b=0;z>b;b++,d++)3===d&&(d=0),(d&&d===e)+(b+c&1)&1||m(b,c)||(R[b+c*z]^=1)}}function o(a){var b,c=0;for(b=0;a>=b;b++)O[b]>=5&&(c+=I+O[b]-5);for(b=3;a-1>b;b+=2)O[b-2]===O[b+2]&&O[b+2]===O[b-1]&&O[b-1]===O[b+1]&&3*O[b-1]===O[b]&&(0===O[b-3]||b+3>a||3*O[b-3]>=4*O[b]||3*O[b+3]>=4*O[b])&&(c+=K);return c}function p(){var a,b,c,d,e,f,g,h,i;for(c=e=f=0,i=0;z-1>i;i++)for(h=0;z-1>h;h++)(R[h+z*i]&&R[h+1+z*i]&&R[h+z*(i+1)]&&R[h+1+z*(i+1)]||!(R[h+z*i]||R[h+1+z*i]||R[h+z*(i+1)]||R[h+1+z*(i+1)]))&&(c+=J);for(i=0;z>i;i++){for(O[0]=0,g=a=h=0;z>h;h++)(b=R[h+z*i])===a?O[g]++:O[++g]=1,a=b,e+=a?1:-1;c+=o(g)}for(0>e&&(e=-e),d=e,d+=d<<2,d<<=1;d>z*z;)d-=z*z,f++;for(c+=f*L,h=0;z>h;h++){for(O[0]=0,g=a=i=0;z>i;i++)(b=R[h+z*i])===a?O[g]++:O[++g]=1,a=b;c+=o(g)}return c}function q(a){var b,c,d,e,f,g,h,o;f=a.length,y=0;do if(y++,d=4*(Q-1)+16*(y-1),u=D[d++],v=D[d++],s=D[d++],t=D[d],d=s*(u+v)+v-3+(9>=y),d>=f)break;while(40>y);for(z=17+4*y,g=s+(s+t)*(u+v)+v,f=0;g>f;f++)P[f]=0;for(W=a.slice(0),f=0;z*z>f;f++)R[f]=0;for(f=0;(z*(z+1)+1)/2>f;f++)S[f]=0;for(f=0;3>f;f++){for(d=o=0,1===f&&(d=z-7),2===f&&(o=z-7),R[o+3+z*(d+3)]=1,h=0;6>h;h++)R[o+h+z*d]=1,R[o+z*(d+h+1)]=1,R[o+6+z*(d+h)]=1,R[o+h+1+z*(d+6)]=1;for(h=1;5>h;h++)i(o+h,d+1),i(o+1,d+h+1),i(o+5,d+h),i(o+h+1,d+5);for(h=2;4>h;h++)R[o+h+z*(d+2)]=1,R[o+2+z*(d+h+1)]=1,R[o+4+z*(d+h)]=1,R[o+h+1+z*(d+4)]=1}if(y>1)for(f=A[y],o=z-7;;){for(h=z-7;h>f-3&&(j(h,o),!(f>h));)h-=f;if(f+9>=o)break;o-=f,j(6,o),j(o,6)}for(R[8+z*(z-8)]=1,o=0;7>o;o++)i(7,o),i(z-8,o),i(7,o+z-7);for(h=0;8>h;h++)i(h,7),i(h+z-8,7),i(h,z-8);for(h=0;9>h;h++)i(h,8);for(h=0;8>h;h++)i(h+z-8,8),i(8,h);for(o=0;7>o;o++)i(8,o+z-7);for(h=0;z-14>h;h++)1&h?(i(8+h,6),i(6,8+h)):(R[8+h+6*z]=1,R[6+z*(8+h)]=1);if(y>6)for(f=M[y-7],d=17,h=0;6>h;h++)for(o=0;3>o;o++,d--)1&(d>11?y>>d-12:f>>d)?(R[5-h+z*(2-o+z-11)]=1,R[2-o+z-11+z*(5-h)]=1):(i(5-h,2-o+z-11),i(2-o+z-11,5-h));for(o=0;z>o;o++)for(h=0;o>=h;h++)R[h+z*o]&&i(h,o);for(g=W.length,b=0;g>b;b++)P[b]=W.charCodeAt(b);if(W=P.slice(0),h=s*(u+v)+v,g>=h-2&&(g=h-2,y>9&&g--),b=g,y>9){for(W[b+2]=0,W[b+3]=0;b--;)f=W[b],W[b+3]|=255&f<<4,W[b+2]=f>>4;W[2]|=255&g<<4,W[1]=g>>4,W[0]=64|g>>12}else{for(W[b+1]=0,W[b+2]=0;b--;)f=W[b],W[b+2]|=255&f<<4,W[b+1]=f>>4;W[1]|=255&g<<4,W[0]=64|g>>4}for(b=g+3-(10>y);h>b;)W[b++]=236,W[b++]=17;for(U[0]=1,b=0;t>b;b++){for(U[b+1]=1,c=b;c>0;c--)U[c]=U[c]?U[c-1]^G[k(H[U[c]]+b)]:U[c-1];U[0]=G[k(H[U[0]]+b)]}for(b=0;t>=b;b++)U[b]=H[U[b]];for(d=h,o=0,b=0;u>b;b++)l(o,s,d,t),o+=s,d+=t;for(b=0;v>b;b++)l(o,s+1,d,t),o+=s+1,d+=t;for(o=0,b=0;s>b;b++){for(c=0;u>c;c++)P[o++]=W[b+c*s];for(c=0;v>c;c++)P[o++]=W[u*s+b+c*(s+1)]}for(c=0;v>c;c++)P[o++]=W[u*s+b+c*(s+1)];for(b=0;t>b;b++)for(c=0;u+v>c;c++)P[o++]=W[h+b+c*t];for(W=P,h=o=z-1,d=g=1,e=(s+t)*(u+v)+v,b=0;e>b;b++)for(f=W[b],c=0;8>c;c++,f<<=1){128&f&&(R[h+z*o]=1);do g?h--:(h++,d?0!==o?o--:(h-=2,d=!d,6===h&&(h--,o=9)):o!==z-1?o++:(h-=2,d=!d,6===h&&(h--,o-=8))),g=!g;while(m(h,o))}for(W=R.slice(0),f=0,o=3e4,d=0;8>d&&(n(d),h=p(),o>h&&(o=h,f=d),7!==f);d++)R=W.slice(0);for(f!==d&&n(f),o=F[f+(Q-1<<3)],d=0;8>d;d++,o>>=1)1&o&&(R[z-1-d+8*z]=1,6>d?R[8+z*d]=1:R[8+z*(d+1)]=1);for(d=0;7>d;d++,o>>=1)1&o&&(R[8+z*(z-7+d)]=1,d?R[6-d+8*z]=1:R[7+8*z]=1);return R}var r,s,t,u,v,w,x,y,z,A=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],B="image/png",C="image/octet-stream",D=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],E={L:1,M:2,Q:3,H:4},F=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],G=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],H=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],I=3,J=3,K=40,L=10,M=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],N=parseInt("0666",8),O=[],P=[],Q=1,R=[],S=[],T=!1,U=[],V=a.qr,W=[],X={VERSION:"1.1.3",canvas:function(a){a=e(a);var c=a.size>=1&&a.size<=10?a.size:4;c*=25;var d=a.canvas||b(),f=d.getContext("2d");f.canvas.width=c,f.canvas.height=c,f.fillStyle=a.background||"#fff",f.fillRect(0,0,c,c),Q=E[a.level&&a.level.toUpperCase()||"L"];var g=q(a.value||"");f.lineWidth=1;var h=c;h/=z,h=Math.floor(h),f.clearRect(0,0,c,c),f.fillStyle=a.background||"#fff",f.fillRect(0,0,h*(z+8),h*(z+8)),f.fillStyle=a.foreground||"#000";var i,j;for(i=0;z>i;i++)for(j=0;z>j;j++)g[j*z+i]&&f.fillRect(h*i,h*j,h,h);return d},image:function(a){a=e(a);var b=this.canvas(a),d=a.image||c();return d.src=b.toDataURL(a.mime||B),d.height=b.height,d.width=b.width,d},save:function(a,b,c){function f(a){h||(h=!0,c(a))}switch(a=e(a),typeof b){case"function":c=b,b=null;break;case"string":a.path=b}if("function"!=typeof c)throw new TypeError("Invalid callback type: "+typeof c);var h=!1,i=this.canvas(a);T?g(i,a,f):d(i,a,f)},saveSync:function(a,b){a=e(a),"string"==typeof b&&(a.path=b);var c=this.canvas(a);T?h(c,a):d(c,a)},toDataURL:function(a){return a=e(a),this.canvas(a).toDataURL(a.mime||B)},noConflict:function(){return a.qr=V,this}};"undefined"!=typeof exports?(T=!0,"undefined"!=typeof module&&module.exports&&(exports=module.exports=X),exports.qr=X,r=require("canvas"),x=r.Image,w=require("fs")):"function"==typeof define&&define.amd?define(function(){return X}):(a.HTMLCanvasElement||f(X),a.qr=X)}(this); -//# sourceMappingURL=qr.min.map \ No newline at end of file diff --git a/inc/shaarli.css b/inc/shaarli.css index 78bcfd3..d119348 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -405,12 +405,12 @@ h1 { } */ -.linkdate, .linkarchive { +.linkdate { font-size:8pt; color:#888; } -.linkdate a, .linkarchive a { +.linkdate a { color:#E28E3F; } @@ -451,12 +451,12 @@ a.qrcode img { color: #F57900; } -.linkdate, .linkarchive { +.linkdate { font-size: 8pt; color: #888; } -.linkdate a, .linkarchive a { +.linkdate a { background-image: url('../images/calendar.png'); padding: 2px 0 3px 20px; background-repeat: no-repeat; diff --git a/tpl/configure.html b/tpl/configure.html index e4bd076..9c725a5 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -38,6 +38,7 @@ + diff --git a/tpl/daily.html b/tpl/daily.html index 38aa401..93a3ab4 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -2,18 +2,43 @@ {include="includes"} - +
                                                                  -
                                                                  - All links of one day
                                                                  in a single page.
                                                                  - {if="$previousday"} <Previous day{else}<Previous day{/if} - - - {if="$nextday"}Next day>{else}Next day>{/if} -

                                                                  - rss_feedDaily RSS Feed +
                                                                  + {loop="$plugin_start_zone"} + {$value} + {/loop}
                                                                  -
                                                                  floral_left The Daily Shaarli floral_right
                                                                  -
                                                                  ——————————— {function="strftime('%A %d, %B %Y', $day)"} ———————————
                                                                  + +
                                                                  + All links of one day
                                                                  in a single page.
                                                                  + {if="$previousday"} <Previous day{else}<Previous day{/if} + - + {if="$nextday"}Next day>{else}Next day>{/if} +
                                                                  + + {loop="$daily_about_plugin"} + {$value} + {/loop} + +
                                                                  + rss_feedDaily RSS Feed +
                                                                  + +
                                                                  + floral_left + The Daily Shaarli + floral_right +
                                                                  + +
                                                                  + ——————————— + {function="strftime('%A %d, %B %Y', $day)"} + ——————————— +
                                                                  +
                                                                  {if="$linksToDisplay"} @@ -47,6 +72,12 @@
                                                                  {$link.thumbnail}
                                                                  {/if}
                                                                  {$link.formatedDescription}
                                                                  + +
                                                                  + {loop="$link.link_plugin"} + {$value} + {/loop} +
                                                                  {/loop}
                                                                  @@ -55,6 +86,14 @@ {else}
                                                                  No articles on this day.
                                                                  {/if} + +
                                                                  + +
                                                                  + {loop="$plugin_end_zone"} + {$value} + {/loop} +
                                                                  -
                                                                  {include="page.footer"} diff --git a/tpl/editlink.html b/tpl/editlink.html index 3733ca2..889d913 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -21,6 +21,11 @@

                                                                  + + {loop="$edit_link_plugin"} + {$value} + {/loop} + {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}  
                                                                  diff --git a/tpl/includes.html b/tpl/includes.html index 623e19e..bdf3a07 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -8,3 +8,6 @@ {if="is_file('inc/user.css')"}{/if} +{loop="$plugins_includes.css_files"} + +{/loop} \ No newline at end of file diff --git a/tpl/linklist.html b/tpl/linklist.html index daf8706..9ed2885 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -17,6 +17,9 @@ + {loop="$plugins_header.fields_toolbar"} + {$value} + {/loop} @@ -24,6 +27,12 @@ {include="linklist.paging"} + + {if="count($links)==0"}
                                                                  Nothing found.
                                                                  {else} @@ -40,7 +49,7 @@ + + {include="linklist.paging"} {include="page.footer"} - diff --git a/tpl/linklist.paging.html b/tpl/linklist.paging.html index 848541c..e91c8f8 100644 --- a/tpl/linklist.paging.html +++ b/tpl/linklist.paging.html @@ -8,8 +8,13 @@ Click to see only private links {/if} + + {/if} + {loop="$action_plugin"} + {$value} + {/loop}
                                                                  Links per page: 20 50 100
                                                                  diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 8143669..6c29850 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -1,5 +1,8 @@ {if="$newversion"}
                                                                  Shaarli {$newversion} is available.
                                                                  @@ -7,3 +10,7 @@ {if="isLoggedIn()"} {/if} + +{loop="$plugins_footer.js_files"} + +{/loop} diff --git a/tpl/page.header.html b/tpl/page.header.html index 2d186aa..1d46d80 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -11,7 +11,7 @@ {$shaarlititle} - + {if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"} {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} {else} @@ -33,6 +33,9 @@
                                                                • Tag cloud
                                                                • Picture wall
                                                                • Daily
                                                                • + {loop="$plugins_header.buttons_toolbar"} + {$value} + {/loop} {/if}
                                                                diff --git a/tpl/picwall.html b/tpl/picwall.html index f59685c..97d5efd 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -5,15 +5,34 @@ + +
                                                                + {loop="$plugin_start_zone"} + {$value} + {/loop} +
                                                                +
                                                                {loop="linksToDisplay"}
                                                                {$value.thumbnail}{$value.title} + {loop="$value.picwall_plugin"} + {$value} + {/loop}
                                                                {/loop}
                                                                + +
                                                                + +
                                                                + {loop="$plugin_end_zone"} + {$value} + {/loop} +
                                                                + {include="page.footer"} + {/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index 9ed2885..f6e9e82 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -9,12 +9,13 @@ {include="page.header"} {/if} - {$value.title} + + {$value.title} +
                                                                {if="$value.description"}
                                                                {$value.description}
                                                                {/if} {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} @@ -83,7 +85,7 @@ {$value} - {/loop} - {$value.url}
                                                                + {$value.url}
                                                                {if="$value.tags"}
                                                                {loop="value.taglist"}{$value} {/loop} diff --git a/tpl/picwall.html b/tpl/picwall.html index 97d5efd..230c948 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -16,7 +16,7 @@
                                                                {loop="linksToDisplay"}
                                                                - {$value.thumbnail}{$value.title} + {$value.thumbnail}{$value.title} {loop="$value.picwall_plugin"} {$value} {/loop} From 657f0e25ba2c6f39775a8386b62d7c662ae709f7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 26 Nov 2015 20:51:53 +0100 Subject: [PATCH 219/658] Fixes incorrect call to From 2e28269baed195d58bbe169841eed176b171db76 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index b4d9395..bb00c11 100644 --- a/index.php +++ b/index.php @@ -337,7 +337,7 @@ function checkUpdate() function logm($message) { $t = strval(date('Y/m/d_H:i:s')).' - '.$_SERVER["REMOTE_ADDR"].' - '.strval($message)."\n"; - file_put_contents($GLOBAL['config']['LOG_FILE'], $t, FILE_APPEND); + file_put_contents($GLOBALS['config']['LOG_FILE'], $t, FILE_APPEND); } // In a string, converts URLs to clickable links. From 4bf35ba56bb9f06de0cb9ab920b799a39f8eaffc Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 24 Nov 2015 02:52:22 +0100 Subject: [PATCH 220/658] application: refactor version checks, move to ApplicationUtils Relates to #372 Modifications: - move checkUpdate() to ApplicationUtils - reduce file I/O operations during version checks - apply coding conventions - add test coverage Tools: - create a sandbox directory for tests Signed-off-by: VirtualTam --- .gitignore | 5 +- Makefile | 2 + application/ApplicationUtils.php | 92 +++++++++++++ index.php | 39 ++---- tests/ApplicationUtilsTest.php | 218 +++++++++++++++++++++++++++++++ tests/CacheTest.php | 6 +- tests/CachedPageTest.php | 2 +- tests/LinkDBTest.php | 2 +- 8 files changed, 331 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index b98c38b..75cd3a6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,9 +19,8 @@ composer.lock # Ignore development and test resources coverage doxygen -tests/datastore.php -tests/dummycache/ +sandbox phpmd.html # Ignore user plugin configuration -plugins/*/config.php \ No newline at end of file +plugins/*/config.php diff --git a/Makefile b/Makefile index c560d8d..a86f9aa 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,7 @@ test: @echo "-------" @echo "PHPUNIT" @echo "-------" + @mkdir -p sandbox @$(BIN)/phpunit tests ## @@ -119,6 +120,7 @@ test: ### remove all unversioned files clean: @git clean -df + @rm -rf sandbox ### generate Doxygen documentation doxygen: clean diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index b0e94e2..c7414b7 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -4,6 +4,98 @@ */ class ApplicationUtils { + private static $GIT_URL = 'https://raw.githubusercontent.com/shaarli/Shaarli'; + private static $GIT_BRANCH = 'master'; + private static $VERSION_FILE = 'shaarli_version.php'; + private static $VERSION_START_TAG = ''; + + /** + * Gets the latest version code from the Git repository + * + * The code is read from the raw content of the version file on the Git server. + * + * @return mixed the version code from the repository if available, else 'false' + */ + public static function getLatestGitVersionCode($url, $timeout=2) + { + list($headers, $data) = get_http_url($url, $timeout); + + if (strpos($headers[0], '200 OK') === false) { + error_log('Failed to retrieve ' . $url); + return false; + } + + return str_replace( + array(self::$VERSION_START_TAG, self::$VERSION_END_TAG, PHP_EOL), + array('', '', ''), + $data + ); + } + + /** + * Checks if a new Shaarli version has been published on the Git repository + * + * Updates checks are run periodically, according to the following criteria: + * - the update checks are enabled (install, global config); + * - the user is logged in (or this is an open instance); + * - the last check is older than a given interval; + * - the check is non-blocking if the HTTPS connection to Git fails; + * - in case of failure, the update file's modification date is updated, + * to avoid intempestive connection attempts. + * + * @param string $currentVersion the current version code + * @param string $updateFile the file where to store the latest version code + * @param int $checkInterval the minimum interval between update checks (in seconds + * @param bool $enableCheck whether to check for new versions + * @param bool $isLoggedIn whether the user is logged in + * + * @return mixed the new version code if available and greater, else 'false' + */ + public static function checkUpdate( + $currentVersion, $updateFile, $checkInterval, $enableCheck, $isLoggedIn) + { + if (! $isLoggedIn) { + // Do not check versions for visitors + return false; + } + + if (empty($enableCheck)) { + // Do not check if the user doesn't want to + return false; + } + + if (is_file($updateFile) && (filemtime($updateFile) > time() - $checkInterval)) { + // Shaarli has checked for updates recently - skip HTTP query + $latestKnownVersion = file_get_contents($updateFile); + + if (version_compare($latestKnownVersion, $currentVersion) == 1) { + return $latestKnownVersion; + } + return false; + } + + // Late Static Binding allows overriding within tests + // See http://php.net/manual/en/language.oop5.late-static-bindings.php + $latestVersion = static::getLatestGitVersionCode( + self::$GIT_URL . '/' . self::$GIT_BRANCH . '/' . self::$VERSION_FILE + ); + + if (! $latestVersion) { + // Only update the file's modification date + file_put_contents($updateFile, $currentVersion); + return false; + } + + // Update the file's content and modification date + file_put_contents($updateFile, $latestVersion); + + if (version_compare($latestVersion, $currentVersion) == 1) { + return $latestVersion; + } + + return false; + } /** * Checks the PHP version to ensure Shaarli can run diff --git a/index.php b/index.php index 3954be9..90045d6 100644 --- a/index.php +++ b/index.php @@ -305,32 +305,6 @@ function setup_login_state() { } $userIsLoggedIn = setup_login_state(); -// Checks if an update is available for Shaarli. -// (at most once a day, and only for registered user.) -// Output: '' = no new version. -// other= the available version. -function checkUpdate() -{ - if (!isLoggedIn()) return ''; // Do not check versions for visitors. - if (empty($GLOBALS['config']['ENABLE_UPDATECHECK'])) return ''; // Do not check if the user doesn't want to. - - // Get latest version number at most once a day. - if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME'])', '', str_replace('tpl = new RainTPL; - $this->tpl->assign('newversion', escape(checkUpdate())); + $this->tpl->assign( + 'newversion', + escape( + ApplicationUtils::checkUpdate( + shaarli_version, + $GLOBALS['config']['UPDATECHECK_FILENAME'], + $GLOBALS['config']['UPDATECHECK_INTERVAL'], + $GLOBALS['config']['ENABLE_UPDATECHECK'], + isLoggedIn() + ) + ) + ); $this->tpl->assign('feedurl', escape(index_url($_SERVER))); $searchcrits = ''; // Search criteria if (!empty($_GET['searchtags'])) { diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index 01301e6..437c21f 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php @@ -5,12 +5,230 @@ require_once 'application/ApplicationUtils.php'; +/** + * Fake ApplicationUtils class to avoid HTTP requests + */ +class FakeApplicationUtils extends ApplicationUtils +{ + public static $VERSION_CODE = ''; + + /** + * Toggle HTTP requests, allow overriding the version code + */ + public static function getLatestGitVersionCode($url, $timeout=0) + { + return self::$VERSION_CODE; + } +} + /** * Unitary tests for Shaarli utilities */ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase { + protected static $testUpdateFile = 'sandbox/update.txt'; + protected static $testVersion = '0.5.0'; + protected static $versionPattern = '/^\d+\.\d+\.\d+$/'; + + /** + * Reset test data for each test + */ + public function setUp() + { + FakeApplicationUtils::$VERSION_CODE = ''; + if (file_exists(self::$testUpdateFile)) { + unlink(self::$testUpdateFile); + } + } + + /** + * Retrieve the latest version code available on Git + * + * Expected format: Semantic Versioning - major.minor.patch + */ + public function testGetLatestGitVersionCode() + { + $testTimeout = 10; + + $this->assertEquals( + '0.5.4', + ApplicationUtils::getLatestGitVersionCode( + 'https://raw.githubusercontent.com/shaarli/Shaarli/' + .'v0.5.4/shaarli_version.php', + $testTimeout + ) + ); + $this->assertRegexp( + self::$versionPattern, + ApplicationUtils::getLatestGitVersionCode( + 'https://raw.githubusercontent.com/shaarli/Shaarli/' + .'master/shaarli_version.php', + $testTimeout + ) + ); + } + + /** + * Attempt to retrieve the latest version from an invalid URL + */ + public function testGetLatestGitVersionCodeInvalidUrl() + { + $this->assertFalse( + ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 0) + ); + } + + /** + * Test update checks - the user is logged off + */ + public function testCheckUpdateLoggedOff() + { + $this->assertFalse( + ApplicationUtils::checkUpdate(self::$testVersion, 'null', 0, false, false) + ); + } + + /** + * Test update checks - the user has disabled updates + */ + public function testCheckUpdateUserDisabled() + { + $this->assertFalse( + ApplicationUtils::checkUpdate(self::$testVersion, 'null', 0, false, true) + ); + } + + /** + * A newer version is available + */ + public function testCheckUpdateNewVersionNew() + { + $newVersion = '1.8.3'; + FakeApplicationUtils::$VERSION_CODE = $newVersion; + + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertEquals($newVersion, $version); + } + + /** + * No available information about versions + */ + public function testCheckUpdateNewVersionUnavailable() + { + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertFalse($version); + } + + /** + * Shaarli is up-to-date + */ + public function testCheckUpdateNewVersionUpToDate() + { + FakeApplicationUtils::$VERSION_CODE = self::$testVersion; + + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertFalse($version); + } + + /** + * Time-traveller's Shaarli + */ + public function testCheckUpdateNewVersionMaartiMcFly() + { + FakeApplicationUtils::$VERSION_CODE = '0.4.1'; + + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertFalse($version); + } + + /** + * The version has been checked recently and Shaarli is up-to-date + */ + public function testCheckUpdateNewVersionTwiceUpToDate() + { + FakeApplicationUtils::$VERSION_CODE = self::$testVersion; + + // Create the update file + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertFalse($version); + + // Reuse the update file + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + + $this->assertFalse($version); + } + + /** + * The version has been checked recently and Shaarli is outdated + */ + public function testCheckUpdateNewVersionTwiceOutdated() + { + $newVersion = '1.8.3'; + FakeApplicationUtils::$VERSION_CODE = $newVersion; + + // Create the update file + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + $this->assertEquals($newVersion, $version); + + // Reuse the update file + $version = FakeApplicationUtils::checkUpdate( + self::$testVersion, + self::$testUpdateFile, + 100, + true, + true + ); + $this->assertEquals($newVersion, $version); + } + /** * Check supported PHP versions */ diff --git a/tests/CacheTest.php b/tests/CacheTest.php index aa5395b..eacd448 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -11,10 +11,10 @@ require_once 'application/Cache.php'; /** * Unitary tests for cached pages */ -class CachedTest extends PHPUnit_Framework_TestCase +class CacheTest extends PHPUnit_Framework_TestCase { // test cache directory - protected static $testCacheDir = 'tests/dummycache'; + protected static $testCacheDir = 'sandbox/dummycache'; // dummy cached file names / content protected static $pages = array('a', 'toto', 'd7b59c'); @@ -56,7 +56,7 @@ class CachedTest extends PHPUnit_Framework_TestCase public function testPurgeCachedPagesMissingDir() { $this->assertEquals( - 'Cannot purge tests/dummycache_missing: no directory', + 'Cannot purge sandbox/dummycache_missing: no directory', purgeCachedPages(self::$testCacheDir.'_missing') ); } diff --git a/tests/CachedPageTest.php b/tests/CachedPageTest.php index e97af03..51565cd 100644 --- a/tests/CachedPageTest.php +++ b/tests/CachedPageTest.php @@ -11,7 +11,7 @@ require_once 'application/CachedPage.php'; class CachedPageTest extends PHPUnit_Framework_TestCase { // test cache directory - protected static $testCacheDir = 'tests/pagecache'; + protected static $testCacheDir = 'sandbox/pagecache'; protected static $url = 'http://shaar.li/?do=atom'; protected static $filename; diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index ff917f6..7b22b27 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php @@ -16,7 +16,7 @@ require_once 'tests/utils/ReferenceLinkDB.php'; class LinkDBTest extends PHPUnit_Framework_TestCase { // datastore to test write operations - protected static $testDatastore = 'tests/datastore.php'; + protected static $testDatastore = 'sandbox/datastore.php'; protected static $refDB = null; protected static $publicLinkDB = null; protected static $privateLinkDB = null; From 4407b45fd3b09257ea79edba8d4f50db350f8fa9 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 27 Nov 2015 00:10:43 +0100 Subject: [PATCH 221/658] application: default to the "stable" branch for update checks Relates to #372 Relates to #390 Signed-off-by: VirtualTam --- application/ApplicationUtils.php | 18 ++++++++++++++---- index.php | 32 +++++++++++++++++++------------- tests/ApplicationUtilsTest.php | 14 ++++++++++++-- tpl/page.footer.html | 12 ++++++++++-- 4 files changed, 55 insertions(+), 21 deletions(-) diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index c7414b7..6d87811 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -5,7 +5,7 @@ class ApplicationUtils { private static $GIT_URL = 'https://raw.githubusercontent.com/shaarli/Shaarli'; - private static $GIT_BRANCH = 'master'; + private static $GIT_BRANCHES = array('master', 'stable'); private static $VERSION_FILE = 'shaarli_version.php'; private static $VERSION_START_TAG = ''; @@ -52,8 +52,12 @@ class ApplicationUtils * * @return mixed the new version code if available and greater, else 'false' */ - public static function checkUpdate( - $currentVersion, $updateFile, $checkInterval, $enableCheck, $isLoggedIn) + public static function checkUpdate($currentVersion, + $updateFile, + $checkInterval, + $enableCheck, + $isLoggedIn, + $branch='stable') { if (! $isLoggedIn) { // Do not check versions for visitors @@ -75,10 +79,16 @@ class ApplicationUtils return false; } + if (! in_array($branch, self::$GIT_BRANCHES)) { + throw new Exception( + 'Invalid branch selected for updates: "' . $branch . '"' + ); + } + // Late Static Binding allows overriding within tests // See http://php.net/manual/en/language.oop5.late-static-bindings.php $latestVersion = static::getLatestGitVersionCode( - self::$GIT_URL . '/' . self::$GIT_BRANCH . '/' . self::$VERSION_FILE + self::$GIT_URL . '/' . $branch . '/' . self::$VERSION_FILE ); if (! $latestVersion) { diff --git a/index.php b/index.php index 90045d6..a100563 100644 --- a/index.php +++ b/index.php @@ -92,7 +92,8 @@ $GLOBALS['config']['ENABLE_THUMBNAILS'] = true; $GLOBALS['config']['ENABLE_LOCALCACHE'] = true; // Update check frequency for Shaarli. 86400 seconds=24 hours -$GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400 ; +$GLOBALS['config']['UPDATECHECK_BRANCH'] = 'stable'; +$GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400; /* @@ -631,18 +632,23 @@ class pageBuilder private function initialize() { $this->tpl = new RainTPL; - $this->tpl->assign( - 'newversion', - escape( - ApplicationUtils::checkUpdate( - shaarli_version, - $GLOBALS['config']['UPDATECHECK_FILENAME'], - $GLOBALS['config']['UPDATECHECK_INTERVAL'], - $GLOBALS['config']['ENABLE_UPDATECHECK'], - isLoggedIn() - ) - ) - ); + + try { + $version = ApplicationUtils::checkUpdate( + shaarli_version, + $GLOBALS['config']['UPDATECHECK_FILENAME'], + $GLOBALS['config']['UPDATECHECK_INTERVAL'], + $GLOBALS['config']['ENABLE_UPDATECHECK'], + isLoggedIn(), + $GLOBALS['config']['UPDATECHECK_BRANCH'] + ); + $this->tpl->assign('newVersion', escape($version)); + + } catch (Exception $exc) { + logm($exc->getMessage()); + $this->tpl->assign('versionError', escape($exc->getMessage())); + } + $this->tpl->assign('feedurl', escape(index_url($_SERVER))); $searchcrits = ''; // Search criteria if (!empty($_GET['searchtags'])) { diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index 437c21f..6064357 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php @@ -75,7 +75,7 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase public function testGetLatestGitVersionCodeInvalidUrl() { $this->assertFalse( - ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 0) + ApplicationUtils::getLatestGitVersionCode('htttp://null.io', 1) ); } @@ -102,7 +102,7 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase /** * A newer version is available */ - public function testCheckUpdateNewVersionNew() + public function testCheckUpdateNewVersionAvailable() { $newVersion = '1.8.3'; FakeApplicationUtils::$VERSION_CODE = $newVersion; @@ -134,6 +134,16 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase $this->assertFalse($version); } + /** + * Test update checks - invalid Git branch + * @expectedException Exception + * @expectedExceptionMessageRegExp /Invalid branch selected for updates/ + */ + public function testCheckUpdateInvalidGitBranch() + { + ApplicationUtils::checkUpdate('', 'null', 0, true, true, 'unstable'); + } + /** * Shaarli is up-to-date */ diff --git a/tpl/page.footer.html b/tpl/page.footer.html index 6c29850..b20aae5 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -4,8 +4,16 @@ {$value} {/loop}
                                                                -{if="$newversion"} -
                                                                Shaarli {$newversion} is available.
                                                                +{if="$newVersion"} +
                                                                + Shaarli {$newVersion} is + available. +
                                                                +{/if} +{if="$versionError"} +
                                                                + Error: {$versionError} +
                                                                {/if} {if="isLoggedIn()"} From a33c574461cd082588b11b8843fe8fd7f92e3fe6 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 30 Nov 2015 22:43:28 +0100 Subject: [PATCH 222/658] remove obsolete doc --- plugins/playvideos/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/playvideos/README.md b/plugins/playvideos/README.md index ec1ead8..54729e0 100644 --- a/plugins/playvideos/README.md +++ b/plugins/playvideos/README.md @@ -1,22 +1,22 @@ ### ► Play Videos plugin for Shaarli -This plugin adds a `► Play Videos` button to [Shaarli](https://github.com/shaarli/Shaarli)'s toolbar. Click this button to play all videos on the page in an overlay HTML5 player. Nice for continuous stream of music, documentaries, talks... + +Adds a `► Play Videos` button to [Shaarli](https://github.com/shaarli/Shaarli)'s toolbar. Click this button to play all videos on the page in an overlay HTML5 player. Nice for continuous stream of music, documentaries, talks... + + This uses code from https://zaius.github.io/youtube_playlist/ and is currently only compatible with Youtube videos. -![](https://cdn.mediacru.sh/D_izf0zjAtxy.png) - #### Installation and setup -Place the files in the `tpl/plugins/playvideos/` directory of your Shaarli. -This is a default Shaarli plugin, you just have to enable it. -To enable the plugin, add `playvideos` to the `TOOLBAR_PLUGINS` config option in your `index.php` or `data/options.php`. Example: +This is a default Shaarli plugin, you just have to enable it. See https://github.com/shaarli/Shaarli/wiki/Shaarli-configuration/ - $GLOBALS['config']['TOOLBAR_PLUGINS'] = array('aplugins', 'anotherone', 'playvideos'); #### Troubleshooting + If your server has [Content Security Policy](http://content-security-policy.com/) headers enabled, this may prevent the script from loading fully. You should relax the CSP in your server settings. Example CSP rule for apache2: `Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"` + ### License ``` File: youtube_playlist.js @@ -68,4 +68,4 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ---------------------------------------------------- -``` \ No newline at end of file +``` From 8025c63906eab4091b75ec0beac06b3a5837d31b Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 30 Nov 2015 23:17:01 +0100 Subject: [PATCH 223/658] [doc] add apache2 CSP config --- plugins/playvideos/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/playvideos/README.md b/plugins/playvideos/README.md index 54729e0..b169847 100644 --- a/plugins/playvideos/README.md +++ b/plugins/playvideos/README.md @@ -14,8 +14,16 @@ This is a default Shaarli plugin, you just have to enable it. See https://github #### Troubleshooting If your server has [Content Security Policy](http://content-security-policy.com/) headers enabled, this may prevent the script from loading fully. You should relax the CSP in your server settings. Example CSP rule for apache2: -`Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'"` +In `/etc/apache2/conf-available/shaarli-csp.conf`: + +```apache + + Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://www.youtube.com https://s.ytimg.com 'unsafe-eval'" + +``` + +Then run `a2enconf shaarli-csp; service apache2 reload` ### License ``` From 9ecdeb54528eaebf12edc6af7a4082420a9899ee Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 1 Dec 2015 21:25:50 +0100 Subject: [PATCH 224/658] Bump version to v0.6.1 Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index a100563..d26c0c1 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index a5f0a09..11ad87d 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From b6a54537b8823d2b96e9bdb64e280959d6681c36 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 3 Dec 2015 19:27:34 +0100 Subject: [PATCH 225/658] Remove dummycache folder on tear down. --- tests/CacheTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/CacheTest.php b/tests/CacheTest.php index eacd448..26c4322 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -30,13 +30,22 @@ class CacheTest extends PHPUnit_Framework_TestCase } else { array_map('unlink', glob(self::$testCacheDir.'/*')); } - + foreach (self::$pages as $page) { file_put_contents(self::$testCacheDir.'/'.$page.'.cache', $page); } file_put_contents(self::$testCacheDir.'/intru.der', 'ShouldNotBeThere'); } + /** + * Remove dummycache folder after each tests. + */ + public function tearDown() + { + array_map('unlink', glob(self::$testCacheDir.'/*')); + rmdir(self::$testCacheDir); + } + /** * Purge cached pages */ From 4a7af9759a1874bdf6ec00a286040a3c64b9870e Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 3 Dec 2015 20:30:46 +0100 Subject: [PATCH 226/658] fix: assign template variables to empty values so they can be evaluated Regression introduced in #394 Signed-off-by: VirtualTam --- application/ApplicationUtils.php | 2 ++ index.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index 6d87811..274331e 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -50,6 +50,8 @@ class ApplicationUtils * @param bool $enableCheck whether to check for new versions * @param bool $isLoggedIn whether the user is logged in * + * @throws Exception an invalid branch has been set for update checks + * * @return mixed the new version code if available and greater, else 'false' */ public static function checkUpdate($currentVersion, diff --git a/index.php b/index.php index d26c0c1..e259204 100644 --- a/index.php +++ b/index.php @@ -643,9 +643,11 @@ class pageBuilder $GLOBALS['config']['UPDATECHECK_BRANCH'] ); $this->tpl->assign('newVersion', escape($version)); + $this->tpl->assign('versionError', ''); } catch (Exception $exc) { logm($exc->getMessage()); + $this->tpl->assign('newVersion', ''); $this->tpl->assign('versionError', escape($exc->getMessage())); } From 2f5c1361045d7ad4de31bceff04f03bad655c7c4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 5 Dec 2015 11:05:08 +0100 Subject: [PATCH 227/658] Fixes #399 - show single link title as page title --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index e259204..81ab767 100644 --- a/index.php +++ b/index.php @@ -1948,6 +1948,7 @@ function buildLinkList($PAGE,$LINKSDB) // Fill all template fields. $data = array( + 'pagetitle' => $GLOBALS['pagetitle'], 'linkcount' => count($LINKSDB), 'previous_page_url' => $previous_page_url, 'next_page_url' => $next_page_url, From 18cca483b0b51f190bd875fc4273a0fff3fedebd Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 7 Dec 2015 10:29:24 +0100 Subject: [PATCH 228/658] Temporary fix for head titles only set the title on permalink. --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 index.php diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 81ab767..0dd5829 --- a/index.php +++ b/index.php @@ -1948,7 +1948,6 @@ function buildLinkList($PAGE,$LINKSDB) // Fill all template fields. $data = array( - 'pagetitle' => $GLOBALS['pagetitle'], 'linkcount' => count($LINKSDB), 'previous_page_url' => $previous_page_url, 'next_page_url' => $next_page_url, @@ -1962,6 +1961,10 @@ function buildLinkList($PAGE,$LINKSDB) 'links' => $linkDisp, 'tags' => $LINKSDB->allTags(), ); + // FIXME! temporary fix - see #399. + if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) { + $data['pagetitle'] = $GLOBALS['pagetitle']; + } $pluginManager = PluginManager::getInstance(); $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); From 0504659db7de8a0e490e26a85ccfe704e5693494 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 26 Nov 2015 21:09:09 +0100 Subject: [PATCH 229/658] Minimal indent of tools.html --- tpl/tools.html | 51 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 4 deletions(-) mode change 100644 => 100755 tpl/tools.html diff --git a/tpl/tools.html b/tpl/tools.html old mode 100644 new mode 100755 index c9ada4a..c13f4f1 --- a/tpl/tools.html +++ b/tpl/tools.html @@ -10,12 +10,50 @@ Rename/delete tags : Rename or delete a tag in all links

                                                                Import : Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)

                                                                Export : Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)

                                                                - ✚Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
                                                                    Then click "✚Shaare link" button in any page you want to share.


                                                                - ✚Add Note ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
                                                                    Then click "✚Add Note" button anytime to start composing a (default private) Note (text post) to your Shaarli.


                                                                - ✚Add to Firefox social ⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.

                                                                - {loop="$tools_plugin"} + + ✚Shaare link + + + + ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
                                                                +     Then click "✚Shaare link" button in any page you want to share. +
                                                                +


                                                                + + ✚Add Note + + + + ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
                                                                +     Then click "✚Add Note" button anytime to start composing a private Note (text post) to your Shaarli. +
                                                                +


                                                                + + ✚Add to Firefox social + + + ⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox. +

                                                                + + {loop="$tools_plugin"} {$value} {/loop} +
                                                                From 6a6f6c32e5876a347a806cc43d25596b9257765b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 7 Dec 2015 10:50:28 +0100 Subject: [PATCH 230/658] Fixes #403 : Remove QRCode in core CSS and fix plugin layout --- inc/shaarli.css | 10 ---------- plugins/qrcode/qrcode.html | 8 +++----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/inc/shaarli.css b/inc/shaarli.css index 5578610..451f048 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -414,16 +414,6 @@ h1 { color:#E28E3F; } -.linkqrcode { - display: inline; - position: relative; -} - -a.qrcode img { - width: 13px; - height: 13px; -} - #linklist li.private { background: url('../images/private.png') no-repeat 4px center; padding-left: 30px; diff --git a/plugins/qrcode/qrcode.html b/plugins/qrcode/qrcode.html index ffdaf3b..58ac500 100644 --- a/plugins/qrcode/qrcode.html +++ b/plugins/qrcode/qrcode.html @@ -1,5 +1,3 @@ - + + + From aca447a71353b304c6180c10b0bee18cfacbc4f9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 8 Dec 2015 15:09:17 +0100 Subject: [PATCH 231/658] Reset permissions on index.php (changed in 18cca483b0b51f190bd875fc4273a0fff3fedebd ). --- index.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 index.php diff --git a/index.php b/index.php old mode 100755 new mode 100644 From 38603b2450e983edfab5770bd3dd681c6073f898 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 7 Dec 2015 11:25:11 +0100 Subject: [PATCH 232/658] Fixes #403: build the daily page through renderPage() * new entry in the Router for daily page. * add an always displayed button in demo_plugin --- application/Router.php | 6 ++++++ index.php | 20 ++++++++++++++------ plugins/demo_plugin/demo_plugin.php | 2 ++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/application/Router.php b/application/Router.php index 1e6a398..0c81384 100644 --- a/application/Router.php +++ b/application/Router.php @@ -13,6 +13,8 @@ class Router public static $PAGE_TAGCLOUD = 'tagcloud'; + public static $PAGE_DAILY = 'daily'; + public static $PAGE_TOOLS = 'tools'; public static $PAGE_CHANGEPASSWORD = 'changepasswd'; @@ -69,6 +71,10 @@ class Router return self::$PAGE_OPENSEARCH; } + if (startsWith($query, 'do='. self::$PAGE_DAILY)) { + return self::$PAGE_DAILY; + } + // At this point, only loggedin pages. if (!$loggedIn) { return self::$PAGE_LINKLIST; diff --git a/index.php b/index.php index 81ab767..1850e40 100644 --- a/index.php +++ b/index.php @@ -995,8 +995,12 @@ function showDailyRSS() { exit; } -// "Daily" page. -function showDaily() +/** + * Show the 'Daily' page. + * + * @param PageBuilder $pageBuilder Template engine wrapper. + */ +function showDaily($pageBuilder) { $LINKSDB = new LinkDB( $GLOBALS['config']['DATASTORE'], @@ -1059,7 +1063,7 @@ function showDaily() array_push($columns[$index],$link); // Put entry in this column. $fill[$index]+=$length; } - $PAGE = new pageBuilder; + $data = array( 'linksToDisplay' => $linksToDisplay, 'linkcount' => count($LINKSDB), @@ -1072,10 +1076,10 @@ function showDaily() $pluginManager->executeHooks('render_daily', $data, array('loggedin' => isLoggedIn())); foreach ($data as $key => $value) { - $PAGE->assign($key, $value); + $pageBuilder->assign($key, $value); } - $PAGE->renderPage('daily'); + $pageBuilder->renderPage('daily'); exit; } @@ -1209,6 +1213,11 @@ function renderPage() exit; } + // Daily page. + if ($targetPage == Router::$PAGE_DAILY) { + showDaily($PAGE); + } + // Display openseach plugin (XML) if ($targetPage == Router::$PAGE_OPENSEARCH) { header('Content-Type: application/xml; charset=utf-8'); @@ -2456,7 +2465,6 @@ if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=g if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=rss')) { showRSS(); exit; } if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=atom')) { showATOM(); exit; } if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=dailyrss')) { showDailyRSS(); exit; } -if (isset($_SERVER["QUERY_STRING"]) && startswith($_SERVER["QUERY_STRING"],'do=daily')) { showDaily(); exit; } if (!isset($_SESSION['LINKS_PER_PAGE'])) $_SESSION['LINKS_PER_PAGE']=$GLOBALS['config']['LINKS_PER_PAGE']; renderPage(); ?> diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php index 84763c2..9384c21 100644 --- a/plugins/demo_plugin/demo_plugin.php +++ b/plugins/demo_plugin/demo_plugin.php @@ -40,6 +40,8 @@ function hook_demo_plugin_render_header($data) // Fields in toolbar $data['fields_toolbar'][] = 'DEMO_fields_toolbar'; } + // Another button always displayed + $data['buttons_toolbar'][] = '
                                                              • DEMO
                                                              • '; return $data; } From 40a5f296a6f983e5a31961994e7c2db461e70f5e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 7 Dec 2015 11:54:18 +0100 Subject: [PATCH 233/658] Adding a new placeholder in render_footer hook. Allow free elements at the end of the page. --- plugins/demo_plugin/custom_demo.css | 6 ++++++ plugins/demo_plugin/demo_plugin.php | 6 ++++++ tpl/page.footer.html | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/plugins/demo_plugin/custom_demo.css b/plugins/demo_plugin/custom_demo.css index ab1720b..af5e8bf 100644 --- a/plugins/demo_plugin/custom_demo.css +++ b/plugins/demo_plugin/custom_demo.css @@ -4,4 +4,10 @@ .upper_plugin_demo { float: left; +} + +#demo_marquee { + background: darkmagenta; + color: white; + font-weight: bold; } \ No newline at end of file diff --git a/plugins/demo_plugin/demo_plugin.php b/plugins/demo_plugin/demo_plugin.php index 84763c2..f03ddb2 100644 --- a/plugins/demo_plugin/demo_plugin.php +++ b/plugins/demo_plugin/demo_plugin.php @@ -74,6 +74,7 @@ function hook_demo_plugin_render_includes($data) * * Template placeholders: * - text + * - endofpage * - js_files * * Data: @@ -89,6 +90,11 @@ function hook_demo_plugin_render_footer($data) // footer text $data['text'][] = 'Shaarli is now enhanced by the awesome demo_plugin.'; + // Free elements at the end of the page. + $data['endofpage'][] = '' . + 'DEMO: it\'s 1999 all over again!' . + ''; + // List of plugin's JS files. // Note that you just need to specify CSS path. $data['js_files'][] = PluginManager::$PLUGINS_PATH . '/demo_plugin/demo_plugin.js'; diff --git a/tpl/page.footer.html b/tpl/page.footer.html index b20aae5..195dada 100644 --- a/tpl/page.footer.html +++ b/tpl/page.footer.html @@ -4,6 +4,11 @@ {$value} {/loop} + +{loop="$plugins_footer.endofpage"} + {$value} +{/loop} + {if="$newVersion"}
                                                                Shaarli {$newVersion} is From 28a4fc546fd937ba4aef89e2a70bf3e1ae1508d3 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 13 Dec 2015 20:44:22 +0100 Subject: [PATCH 234/658] Fixes QRCode style * fixes a regression misplacing QRCode popup. * adds a 'show' class in JS to handle CSS transition. --- inc/shaarli.css | 19 ------------------- plugins/qrcode/qrcode.css | 23 +++++++++++++++++++++++ plugins/qrcode/qrcode.html | 8 +++++--- plugins/qrcode/qrcode.php | 16 ++++++++++++++++ plugins/qrcode/shaarli-qrcode.js | 10 ++++++++-- 5 files changed, 52 insertions(+), 24 deletions(-) create mode 100755 plugins/qrcode/qrcode.css diff --git a/inc/shaarli.css b/inc/shaarli.css index 451f048..d6bbdbc 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -739,25 +739,6 @@ h1 { background: #ffffff; } -div#permalinkQrcode { - padding: 20px; - width: 220px; - height: 220px; - background-color: #ffffff; - border: 1px solid black; - position: absolute; - top: -100px; - left: -100px; - text-align: center; - font-size: 8pt; - z-index: 50; - -webkit-box-shadow: 2px 2px 20px 2px #333333; - -moz-box-shadow: 2px 2px 20px 2px #333333; - -o-box-shadow: 2px 2px 20px 2px #333333; - -ms-box-shadow: 2px 2px 20px 2px #333333; - box-shadow: 2px 2px 20px 2px #333333; -} - div.daily { font-family: Georgia, 'DejaVu Serif', Norasi, serif; background-color: #E6D6BE; diff --git a/plugins/qrcode/qrcode.css b/plugins/qrcode/qrcode.css new file mode 100755 index 0000000..0d514a0 --- /dev/null +++ b/plugins/qrcode/qrcode.css @@ -0,0 +1,23 @@ +.linkqrcode { + display: inline; + position: relative; +} + +#permalinkQrcode { + position: absolute; + z-index: 200; + padding: 20px; + width: 220px; + height: 220px; + background-color: #ffffff; + border: 1px solid black; + top: -110px; + left: -110px; + text-align: center; + font-size: 8pt; + box-shadow: 2px 2px 20px 2px #333333; +} + +#permalinkQrcode img { + margin-bottom: 5px; +} diff --git a/plugins/qrcode/qrcode.html b/plugins/qrcode/qrcode.html index 58ac500..ffdaf3b 100644 --- a/plugins/qrcode/qrcode.html +++ b/plugins/qrcode/qrcode.html @@ -1,3 +1,5 @@ - - - + diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5f6e76a..a709aba 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php @@ -39,3 +39,19 @@ function hook_qrcode_render_footer($data) return $data; } + +/** + * When linklist is displayed, include qrcode CSS file. + * + * @param array $data - header data. + * + * @return mixed - header data with qrcode CSS file added. + */ +function hook_qrcode_render_includes($data) +{ + if ($data['_PAGE_'] == Router::$PAGE_LINKLIST) { + $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.css'; + } + + return $data; +} diff --git a/plugins/qrcode/shaarli-qrcode.js b/plugins/qrcode/shaarli-qrcode.js index 0a8de21..615f54c 100644 --- a/plugins/qrcode/shaarli-qrcode.js +++ b/plugins/qrcode/shaarli-qrcode.js @@ -19,7 +19,7 @@ function showQrCode(caller,loading) // Build the div which contains the QR-Code: var element = document.createElement('div'); - element.id="permalinkQrcode"; + element.id = 'permalinkQrcode'; // Make QR-Code div commit sepuku when clicked: if ( element.attachEvent ){ @@ -37,6 +37,12 @@ function showQrCode(caller,loading) element.appendChild(image); element.innerHTML += "
                                                                Click to close"; caller.parentNode.appendChild(element); + + // Show the QRCode + qrcodeImage = document.getElementById('permalinkQrcode'); + // Workaround to deal with newly created element lag for transition. + window.getComputedStyle(qrcodeImage).opacity; + qrcodeImage.className = 'show'; } else { @@ -48,7 +54,7 @@ function showQrCode(caller,loading) // Remove any displayed QR-Code function removeQrcode() { - var elem = document.getElementById("permalinkQrcode"); + var elem = document.getElementById('permalinkQrcode'); if (elem) { elem.parentNode.removeChild(elem); } From 49e62f22ad750d4d60936ec8437caee91809b179 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 Dec 2015 10:24:31 +0100 Subject: [PATCH 235/658] QRCode plugin: use url instead of real_url Fixes #414 and avoid usage of redirector in QRCode. Also fixed a bug with URL encoding. --- application/LinkDB.php | 4 +++- plugins/qrcode/qrcode.php | 6 +++++- tests/plugins/PlugQrcodeTest.php | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/application/LinkDB.php b/application/LinkDB.php index f771ac8..51fa926 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -17,8 +17,10 @@ * - private: Is this link private? 0=no, other value=yes * - tags: tags attached to this entry (separated by spaces) * - title Title of the link - * - url URL of the link. Can be absolute or relative. + * - url URL of the link. Used for displayable links (no redirector, relative, etc.). + * Can be absolute or relative. * Relative URLs are permalinks (e.g.'?m-ukcw') + * - real_url Absolute processed URL. * * Implements 3 interfaces: * - ArrayAccess: behaves like an associative array; diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5f6e76a..84a1961 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php @@ -17,7 +17,11 @@ function hook_qrcode_render_linklist($data) $qrcode_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.html'); foreach ($data['links'] as &$value) { - $qrcode = sprintf($qrcode_html, $value['real_url'], $value['real_url'], PluginManager::$PLUGINS_PATH); + $qrcode = sprintf($qrcode_html, + urlencode($value['url']), + $value['url'], + PluginManager::$PLUGINS_PATH + ); $value['link_plugin'][] = $qrcode; } diff --git a/tests/plugins/PlugQrcodeTest.php b/tests/plugins/PlugQrcodeTest.php index c749fa8..86dc7f2 100644 --- a/tests/plugins/PlugQrcodeTest.php +++ b/tests/plugins/PlugQrcodeTest.php @@ -30,7 +30,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase 'title' => $str, 'links' => array( array( - 'real_url' => $str, + 'url' => $str, ) ) ); @@ -39,7 +39,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase $link = $data['links'][0]; // data shouldn't be altered $this->assertEquals($str, $data['title']); - $this->assertEquals($str, $link['real_url']); + $this->assertEquals($str, $link['url']); // plugin data $this->assertEquals(1, count($link['link_plugin'])); From ba83317573a1477d731cbd3d974b601cf9afdba3 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 23 Dec 2015 19:54:37 +0100 Subject: [PATCH 236/658] Bump version to v0.6.2 Signed-off-by: VirtualTam --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index d0876d9..40a6fbe 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ /shaarli/ define('WEB_PATH', substr($_SERVER["REQUEST_URI"], 0, 1+strrpos($_SERVER["REQUEST_URI"], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index 11ad87d..fe5f389 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From c6a7972de51a15d94ccb69dfb008d5560820452c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 23 Dec 2015 19:11:33 +0100 Subject: [PATCH 237/658] Add a .gitattributes to ease repository management Features: - enforce LF (Unix) line endings - omit dev/test resources & code from Git(Hub) archives - treat minified resources (CSS, JS) as binaries to avoid cluttered diffs Resources: - http://git-scm.com/docs/gitattributes - https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes - https://help.github.com/articles/dealing-with-line-endings/ - http://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/ - https://github.com/Danimoth/gitattributes Signed-off-by: VirtualTam --- .gitattributes | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e616be2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,28 @@ +# Set default behavior +* text=auto eol=lf + +# Ensure sources are processed +*.css text +*.html text diff=html +*.js text +*.md text +*.php text diff=php + +# Do not alter images nor minified scripts +*.ico binary +*.jpg binary +*.png binary +*.min.css binary +*.min.js binary + +# Exclude from Git archives +.gitattributes export-ignore +.gitignore export-ignore +.travis.yml export-ignore +composer.json export-ignore +doc/**/*.json export-ignore +doc/**/*.md export-ignore +Doxyfile export-ignore +Makefile export-ignore +phpunit.xml export-ignore +tests/ export-ignore From 938d9cce77ed5098dd69643795cb4014f3688b35 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 Dec 2015 10:20:27 +0100 Subject: [PATCH 238/658] Wallabag plugin improvement * Fixes a bug where URL weren't properly encoded. * Adds Wallabag V2 support. * Adds a URL function to handle trailing slash. * UT. * README updated. --- application/Url.php | 12 +++++ plugins/wallabag/README.md | 25 ++++++--- plugins/wallabag/WallabagInstance.php | 71 ++++++++++++++++++++++++++ plugins/wallabag/config.php.dist | 3 +- plugins/wallabag/wallabag.html | 2 +- plugins/wallabag/wallabag.php | 17 +++++- tests/Url/UrlTest.php | 11 ++++ tests/plugins/PluginWallabagTest.php | 4 +- tests/plugins/WallabagInstanceTest.php | 60 ++++++++++++++++++++++ 9 files changed, 194 insertions(+), 11 deletions(-) create mode 100644 plugins/wallabag/WallabagInstance.php create mode 100644 tests/plugins/WallabagInstanceTest.php diff --git a/application/Url.php b/application/Url.php index af43b45..d80c9c5 100644 --- a/application/Url.php +++ b/application/Url.php @@ -51,6 +51,18 @@ function get_url_scheme($url) return $obj_url->getScheme(); } +/** + * Adds a trailing slash at the end of URL if necessary. + * + * @param string $url URL to check/edit. + * + * @return string $url URL with a end trailing slash. + */ +function add_trailing_slash($url) +{ + return $url . (!endsWith($url, '/') ? '/' : ''); +} + /** * URL representation and cleanup utilities * diff --git a/plugins/wallabag/README.md b/plugins/wallabag/README.md index 08e0d44..5bc35be 100644 --- a/plugins/wallabag/README.md +++ b/plugins/wallabag/README.md @@ -2,7 +2,8 @@ For each link in your Shaarli, adds a button to save the target page in your [wallabag](https://www.wallabag.org/). -### Installation/configuration +### Installation + Clone this repository inside your `tpl/plugins/` directory, or download the archive and unpack it there. The directory structure should look like: @@ -11,19 +12,31 @@ The directory structure should look like: └── plugins    └── wallabag    ├── README.md + ├── config.php.dist    ├── wallabag.html +    ├── wallabag.php    └── wallabag.png ``` -To enable the plugin, add `'wallabag'` to your list of enabled plugins in `data/options.php` (`PLUGINS` array) -. This should look like: +To enable the plugin, add `'wallabag'` to your list of enabled plugins in `data/options.php` (`PLUGINS` array). +This should look like: ``` $GLOBALS['config']['PLUGINS'] = array('qrcode', 'any_other_plugin', 'wallabag') ``` -Then, set the `WALLABAG_URL` variable in `data/options.php` pointing to your wallabag URL. Example: +### Configuration +Copy `config.php.dist` into `config.php` and setup your instance. + +*Wallabag instance URL* ``` -$GLOBALS['config']['WALLABAG_URL'] = 'http://demo.wallabag.org' ; //Base URL of your wallabag installation -``` \ No newline at end of file +$GLOBALS['config']['WALLABAG_URL'] = 'http://v2.wallabag.org' ; +``` + +*Wallabag version*: either `1` (for 1.x) or `2` (for 2.x) +``` +$GLOBALS['config']['WALLABAG_VERSION'] = 2; +``` + +> Note: these settings can also be set in `data/config.php`. \ No newline at end of file diff --git a/plugins/wallabag/WallabagInstance.php b/plugins/wallabag/WallabagInstance.php new file mode 100644 index 0000000..87352e6 --- /dev/null +++ b/plugins/wallabag/WallabagInstance.php @@ -0,0 +1,71 @@ + '1.x', + 2 => '2.x', + ); + + /** + * @var array Static reference to WB endpoint according to the API version. + * - key: version name. + * - value: endpoint. + */ + private static $wallabagEndpoints = array( + '1.x' => '?plainurl=', + '2.x' => 'bookmarklet?url=', + ); + + /** + * @var string Wallabag user instance URL. + */ + private $instanceUrl; + + /** + * @var string Wallabag user instance API version. + */ + private $apiVersion; + + function __construct($instance, $version) + { + if ($this->isVersionAllowed($version)) { + $this->apiVersion = self::$wallabagVersions[$version]; + } else { + // Default API version: 1.x. + $this->apiVersion = self::$wallabagVersions[1]; + } + + $this->instanceUrl = add_trailing_slash($instance); + } + + /** + * Build the Wallabag URL to reach from instance URL and API version endpoint. + * + * @return string wallabag url. + */ + public function getWallabagUrl() + { + return $this->instanceUrl . self::$wallabagEndpoints[$this->apiVersion]; + } + + /** + * Checks version configuration. + * + * @param mixed $version given version ID. + * + * @return bool true if it's valid, false otherwise. + */ + private function isVersionAllowed($version) + { + return isset(self::$wallabagVersions[$version]); + } +} diff --git a/plugins/wallabag/config.php.dist b/plugins/wallabag/config.php.dist index 7cf0d30..a602708 100644 --- a/plugins/wallabag/config.php.dist +++ b/plugins/wallabag/config.php.dist @@ -1,3 +1,4 @@ + diff --git a/plugins/wallabag/wallabag.php b/plugins/wallabag/wallabag.php index 37969c9..e3c399a 100644 --- a/plugins/wallabag/wallabag.php +++ b/plugins/wallabag/wallabag.php @@ -4,6 +4,8 @@ * Plugin Wallabag. */ +require_once 'WallabagInstance.php'; + // don't raise unnecessary warnings if (is_file(PluginManager::$PLUGINS_PATH . '/wallabag/config.php')) { include PluginManager::$PLUGINS_PATH . '/wallabag/config.php'; @@ -28,12 +30,23 @@ function hook_wallabag_render_linklist($data) return $data; } - $wallabag_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/wallabag/wallabag.html'); + $version = isset($GLOBALS['plugins']['WALLABAG_VERSION']) + ? $GLOBALS['plugins']['WALLABAG_VERSION'] + : ''; + $wallabagInstance = new WallabagInstance($GLOBALS['plugins']['WALLABAG_URL'], $version); + + $wallabagHtml = file_get_contents(PluginManager::$PLUGINS_PATH . '/wallabag/wallabag.html'); foreach ($data['links'] as &$value) { - $wallabag = sprintf($wallabag_html, $GLOBALS['plugins']['WALLABAG_URL'], $value['url'], PluginManager::$PLUGINS_PATH); + $wallabag = sprintf( + $wallabagHtml, + $wallabagInstance->getWallabagUrl(), + urlencode($value['url']), + PluginManager::$PLUGINS_PATH + ); $value['link_plugin'][] = $wallabag; } return $data; } + diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php index e498d79..af6daaa 100644 --- a/tests/Url/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -145,4 +145,15 @@ class UrlTest extends PHPUnit_Framework_TestCase $url = new Url('git://domain.tld/push?pull=clone#checkout'); $this->assertEquals('git', $url->getScheme()); } + + /** + * Test add trailing slash. + */ + function testAddTrailingSlash() + { + $strOn = 'http://randomstr.com/test/'; + $strOff = 'http://randomstr.com/test'; + $this->assertEquals($strOn, add_trailing_slash($strOn)); + $this->assertEquals($strOn, add_trailing_slash($strOff)); + } } diff --git a/tests/plugins/PluginWallabagTest.php b/tests/plugins/PluginWallabagTest.php index 7cc83f4..5d3a60e 100644 --- a/tests/plugins/PluginWallabagTest.php +++ b/tests/plugins/PluginWallabagTest.php @@ -44,6 +44,8 @@ class PluginWallabagTest extends PHPUnit_Framework_TestCase // plugin data $this->assertEquals(1, count($link['link_plugin'])); - $this->assertNotFalse(strpos($link['link_plugin'][0], $str)); + $this->assertNotFalse(strpos($link['link_plugin'][0], urlencode($str))); + $this->assertNotFalse(strpos($link['link_plugin'][0], $GLOBALS['plugins']['WALLABAG_URL'])); } } + diff --git a/tests/plugins/WallabagInstanceTest.php b/tests/plugins/WallabagInstanceTest.php new file mode 100644 index 0000000..7c14c1d --- /dev/null +++ b/tests/plugins/WallabagInstanceTest.php @@ -0,0 +1,60 @@ +instance = 'http://some.url'; + } + + /** + * Test WallabagInstance with API V1. + */ + function testWallabagInstanceV1() + { + $instance = new WallabagInstance($this->instance, 1); + $expected = $this->instance . '/?plainurl='; + $result = $instance->getWallabagUrl(); + $this->assertEquals($expected, $result); + } + + /** + * Test WallabagInstance with API V2. + */ + function testWallabagInstanceV2() + { + $instance = new WallabagInstance($this->instance, 2); + $expected = $this->instance . '/bookmarklet?url='; + $result = $instance->getWallabagUrl(); + $this->assertEquals($expected, $result); + } + + /** + * Test WallabagInstance with an invalid API version. + */ + function testWallabagInstanceInvalidVersion() + { + $instance = new WallabagInstance($this->instance, false); + $expected = $this->instance . '/?plainurl='; + $result = $instance->getWallabagUrl(); + $this->assertEquals($expected, $result); + + $instance = new WallabagInstance($this->instance, 3); + $expected = $this->instance . '/?plainurl='; + $result = $instance->getWallabagUrl(); + $this->assertEquals($expected, $result); + } +} From 453f4653c325dc23193e16432170bf634c42e8a2 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 24 Dec 2015 17:17:46 +0100 Subject: [PATCH 239/658] Docker: move Dockerfiles to the main repository Relates to #420 Fixes: - [all] remove Nginx' 'server_name' attribute - [dev] create the phpinfo() script from the Dockerfile Modifications: - [all] remove documentation/guide (to be added to the wiki) - [all] update maintainer information - [prod] differentiate 'master' (:latest) and 'stable' (:stable) images Signed-off-by: VirtualTam --- .gitattributes | 3 ++ docker/.htaccess | 2 + docker/development/Dockerfile | 28 +++++++++++ docker/development/IMAGE.md | 10 ++++ docker/development/nginx.conf | 64 ++++++++++++++++++++++++ docker/development/supervised.conf | 13 +++++ docker/production/Dockerfile | 20 ++++++++ docker/production/IMAGE.md | 5 ++ docker/production/nginx.conf | 56 +++++++++++++++++++++ docker/production/stable/Dockerfile | 20 ++++++++ docker/production/stable/IMAGE.md | 5 ++ docker/production/stable/nginx.conf | 56 +++++++++++++++++++++ docker/production/stable/supervised.conf | 13 +++++ docker/production/supervised.conf | 13 +++++ 14 files changed, 308 insertions(+) create mode 100644 docker/.htaccess create mode 100644 docker/development/Dockerfile create mode 100644 docker/development/IMAGE.md create mode 100644 docker/development/nginx.conf create mode 100644 docker/development/supervised.conf create mode 100644 docker/production/Dockerfile create mode 100644 docker/production/IMAGE.md create mode 100644 docker/production/nginx.conf create mode 100644 docker/production/stable/Dockerfile create mode 100644 docker/production/stable/IMAGE.md create mode 100644 docker/production/stable/nginx.conf create mode 100644 docker/production/stable/supervised.conf create mode 100644 docker/production/supervised.conf diff --git a/.gitattributes b/.gitattributes index e616be2..aaf6a39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,11 +2,13 @@ * text=auto eol=lf # Ensure sources are processed +*.conf text *.css text *.html text diff=html *.js text *.md text *.php text diff=php +Dockerfile text # Do not alter images nor minified scripts *.ico binary @@ -22,6 +24,7 @@ composer.json export-ignore doc/**/*.json export-ignore doc/**/*.md export-ignore +docker/ export-ignore Doxyfile export-ignore Makefile export-ignore phpunit.xml export-ignore diff --git a/docker/.htaccess b/docker/.htaccess new file mode 100644 index 0000000..b584d98 --- /dev/null +++ b/docker/.htaccess @@ -0,0 +1,2 @@ +Allow from none +Deny from all diff --git a/docker/development/Dockerfile b/docker/development/Dockerfile new file mode 100644 index 0000000..2ed59b8 --- /dev/null +++ b/docker/development/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:jessie +MAINTAINER Shaarli Community + +RUN apt-get update \ + && apt-get install -y \ + nginx-light php5-fpm php5-gd supervisor \ + git nano + +ADD https://getcomposer.org/composer.phar /usr/local/bin/composer +RUN chmod 755 /usr/local/bin/composer + +COPY nginx.conf /etc/nginx/nginx.conf +COPY supervised.conf /etc/supervisor/conf.d/supervised.conf +RUN echo "" > /var/www/index.php + +WORKDIR /var/www +RUN rm -rf html \ + && git clone https://github.com/shaarli/Shaarli.git shaarli \ + && chown -R www-data:www-data . + +WORKDIR /var/www/shaarli +RUN composer install + +VOLUME /var/www/shaarli/data + +EXPOSE 80 + +CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] diff --git a/docker/development/IMAGE.md b/docker/development/IMAGE.md new file mode 100644 index 0000000..e2ff0f0 --- /dev/null +++ b/docker/development/IMAGE.md @@ -0,0 +1,10 @@ +## shaarli:dev +- [Debian 8 Jessie](https://hub.docker.com/_/debian/) +- [PHP5-FPM](http://php-fpm.org/) +- [Nginx](http://nginx.org/) +- [Shaarli](https://github.com/shaarli/Shaarli) + +### Development tools +- [composer](https://getcomposer.org/) +- [git](http://git-scm.com/) +- [nano](http://www.nano-editor.org/) diff --git a/docker/development/nginx.conf b/docker/development/nginx.conf new file mode 100644 index 0000000..cda09b5 --- /dev/null +++ b/docker/development/nginx.conf @@ -0,0 +1,64 @@ +user www-data www-data; +daemon off; +worker_processes 4; + +events { + worker_connections 768; +} + +http { + include mime.types; + default_type application/octet-stream; + keepalive_timeout 20; + + index index.html index.php; + + server { + listen 80; + root /var/www/shaarli; + + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + + location /phpinfo/ { + # add a PHP info page for convenience + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME /var/www/index.php; + include fastcgi_params; + } + + location ~ /\. { + # deny access to dotfiles + access_log off; + log_not_found off; + deny all; + } + + location ~ ~$ { + # deny access to temp editor files, e.g. "script.php~" + access_log off; + log_not_found off; + deny all; + } + + location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { + # cache static assets + expires max; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + } + + location ~ (index)\.php$ { + # filter and proxy PHP requests to PHP-FPM + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + include fastcgi.conf; + } + + location ~ \.php$ { + # deny access to all other PHP scripts + deny all; + } + } +} diff --git a/docker/development/supervised.conf b/docker/development/supervised.conf new file mode 100644 index 0000000..5acd979 --- /dev/null +++ b/docker/development/supervised.conf @@ -0,0 +1,13 @@ +[program:php5-fpm] +command=/usr/sbin/php5-fpm -F +priority=5 +autostart=true +autorestart=true + +[program:nginx] +command=/usr/sbin/nginx +priority=10 +autostart=true +autorestart=true +stdout_events_enabled=true +stderr_events_enabled=true diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile new file mode 100644 index 0000000..3db4eb5 --- /dev/null +++ b/docker/production/Dockerfile @@ -0,0 +1,20 @@ +FROM debian:jessie +MAINTAINER Shaarli Community + +RUN apt-get update \ + && apt-get install -y curl nginx-light php5-fpm php5-gd supervisor + +COPY nginx.conf /etc/nginx/nginx.conf +COPY supervised.conf /etc/supervisor/conf.d/supervised.conf + +WORKDIR /var/www +RUN rm -rf html \ + && curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xvzf - \ + && mv Shaarli-master shaarli \ + && chown -R www-data:www-data shaarli + +VOLUME /var/www/shaarli/data + +EXPOSE 80 + +CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] diff --git a/docker/production/IMAGE.md b/docker/production/IMAGE.md new file mode 100644 index 0000000..6f827b3 --- /dev/null +++ b/docker/production/IMAGE.md @@ -0,0 +1,5 @@ +## shaarli:latest +- [Debian 8 Jessie](https://hub.docker.com/_/debian/) +- [PHP5-FPM](http://php-fpm.org/) +- [Nginx](http://nginx.org/) +- [Shaarli](https://github.com/shaarli/Shaarli) diff --git a/docker/production/nginx.conf b/docker/production/nginx.conf new file mode 100644 index 0000000..e23c458 --- /dev/null +++ b/docker/production/nginx.conf @@ -0,0 +1,56 @@ +user www-data www-data; +daemon off; +worker_processes 4; + +events { + worker_connections 768; +} + +http { + include mime.types; + default_type application/octet-stream; + keepalive_timeout 20; + + index index.html index.php; + + server { + listen 80; + root /var/www/shaarli; + + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + + location ~ /\. { + # deny access to dotfiles + access_log off; + log_not_found off; + deny all; + } + + location ~ ~$ { + # deny access to temp editor files, e.g. "script.php~" + access_log off; + log_not_found off; + deny all; + } + + location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { + # cache static assets + expires max; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + } + + location ~ (index)\.php$ { + # filter and proxy PHP requests to PHP-FPM + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + include fastcgi.conf; + } + + location ~ \.php$ { + # deny access to all other PHP scripts + deny all; + } + } +} diff --git a/docker/production/stable/Dockerfile b/docker/production/stable/Dockerfile new file mode 100644 index 0000000..2bb3948 --- /dev/null +++ b/docker/production/stable/Dockerfile @@ -0,0 +1,20 @@ +FROM debian:jessie +MAINTAINER Shaarli Community + +RUN apt-get update \ + && apt-get install -y curl nginx-light php5-fpm php5-gd supervisor + +COPY nginx.conf /etc/nginx/nginx.conf +COPY supervised.conf /etc/supervisor/conf.d/supervised.conf + +WORKDIR /var/www +RUN rm -rf html \ + && curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xvzf - \ + && mv Shaarli-stable shaarli \ + && chown -R www-data:www-data shaarli + +VOLUME /var/www/shaarli/data + +EXPOSE 80 + +CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] diff --git a/docker/production/stable/IMAGE.md b/docker/production/stable/IMAGE.md new file mode 100644 index 0000000..d85b1d7 --- /dev/null +++ b/docker/production/stable/IMAGE.md @@ -0,0 +1,5 @@ +## shaarli:stable +- [Debian 8 Jessie](https://hub.docker.com/_/debian/) +- [PHP5-FPM](http://php-fpm.org/) +- [Nginx](http://nginx.org/) +- [Shaarli (stable)](https://github.com/shaarli/Shaarli/tree/stable) diff --git a/docker/production/stable/nginx.conf b/docker/production/stable/nginx.conf new file mode 100644 index 0000000..e23c458 --- /dev/null +++ b/docker/production/stable/nginx.conf @@ -0,0 +1,56 @@ +user www-data www-data; +daemon off; +worker_processes 4; + +events { + worker_connections 768; +} + +http { + include mime.types; + default_type application/octet-stream; + keepalive_timeout 20; + + index index.html index.php; + + server { + listen 80; + root /var/www/shaarli; + + access_log /var/log/nginx/shaarli.access.log; + error_log /var/log/nginx/shaarli.error.log; + + location ~ /\. { + # deny access to dotfiles + access_log off; + log_not_found off; + deny all; + } + + location ~ ~$ { + # deny access to temp editor files, e.g. "script.php~" + access_log off; + log_not_found off; + deny all; + } + + location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { + # cache static assets + expires max; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; + } + + location ~ (index)\.php$ { + # filter and proxy PHP requests to PHP-FPM + fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_index index.php; + include fastcgi.conf; + } + + location ~ \.php$ { + # deny access to all other PHP scripts + deny all; + } + } +} diff --git a/docker/production/stable/supervised.conf b/docker/production/stable/supervised.conf new file mode 100644 index 0000000..5acd979 --- /dev/null +++ b/docker/production/stable/supervised.conf @@ -0,0 +1,13 @@ +[program:php5-fpm] +command=/usr/sbin/php5-fpm -F +priority=5 +autostart=true +autorestart=true + +[program:nginx] +command=/usr/sbin/nginx +priority=10 +autostart=true +autorestart=true +stdout_events_enabled=true +stderr_events_enabled=true diff --git a/docker/production/supervised.conf b/docker/production/supervised.conf new file mode 100644 index 0000000..5acd979 --- /dev/null +++ b/docker/production/supervised.conf @@ -0,0 +1,13 @@ +[program:php5-fpm] +command=/usr/sbin/php5-fpm -F +priority=5 +autostart=true +autorestart=true + +[program:nginx] +command=/usr/sbin/nginx +priority=10 +autostart=true +autorestart=true +stdout_events_enabled=true +stderr_events_enabled=true From 6a6aa2b96da86f100089c643e905aede5260c8c8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 3 Jan 2016 14:42:43 +0100 Subject: [PATCH 240/658] Fixes #428: validate buttons presence instead of value Also adds a validation where renaming with 'fromtag' specified and empty 'totag'. It was causing a 404, now it just re-render the form. --- index.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index 40a6fbe..1a83ca4 100644 --- a/index.php +++ b/index.php @@ -1453,19 +1453,20 @@ function renderPage() // -------- User wants to rename a tag or delete it if ($targetPage == Router::$PAGE_CHANGETAG) { - if (empty($_POST['fromtag'])) - { - $PAGE->assign('linkcount',count($LINKSDB)); - $PAGE->assign('token',getToken()); + if (empty($_POST['fromtag']) || (empty($_POST['totag']) && isset($_POST['renametag']))) { + $PAGE->assign('linkcount', count($LINKSDB)); + $PAGE->assign('token', getToken()); $PAGE->assign('tags', $LINKSDB->allTags()); $PAGE->renderPage('changetag'); exit; } - if (!tokenOk($_POST['token'])) die('Wrong token.'); + + if (!tokenOk($_POST['token'])) { + die('Wrong token.'); + } // Delete a tag: - if (!empty($_POST['deletetag']) && !empty($_POST['fromtag'])) - { + if (isset($_POST['deletetag']) && !empty($_POST['fromtag'])) { $needle=trim($_POST['fromtag']); $linksToAlter = $LINKSDB->filterTags($needle,true); // True for case-sensitive tag search. foreach($linksToAlter as $key=>$value) @@ -1481,8 +1482,7 @@ function renderPage() } // Rename a tag: - if (!empty($_POST['renametag']) && !empty($_POST['fromtag']) && !empty($_POST['totag'])) - { + if (isset($_POST['renametag']) && !empty($_POST['fromtag']) && !empty($_POST['totag'])) { $needle=trim($_POST['fromtag']); $linksToAlter = $LINKSDB->filterTags($needle,true); // true for case-sensitive tag search. foreach($linksToAlter as $key=>$value) From 1be4afacf98e0124258199ec416dc1c4b4948305 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 17 Nov 2015 21:01:11 +0100 Subject: [PATCH 241/658] PLUGIN Markdown Parse link description in Markdown (HTML) before rendering. * hard remove of Shaarli's HTML before parsing. * Using Parsedown PHP lib. * Includes basic markdown CSS. * Style: removed 400px height max limit for shaares. * Unit tests. --- COPYING | 4 + application/Utils.php | 8 - inc/shaarli.css | 1 - plugins/markdown/Parsedown.php | 1528 ++++++++++++++++++++++++++ plugins/markdown/README.md | 51 + plugins/markdown/help.html | 5 + plugins/markdown/markdown.css | 137 +++ plugins/markdown/markdown.meta | 1 + plugins/markdown/markdown.php | 158 +++ tests/plugins/PluginMarkdownTest.php | 112 ++ 10 files changed, 1996 insertions(+), 9 deletions(-) create mode 100644 plugins/markdown/Parsedown.php create mode 100644 plugins/markdown/README.md create mode 100644 plugins/markdown/help.html create mode 100644 plugins/markdown/markdown.css create mode 100644 plugins/markdown/markdown.meta create mode 100644 plugins/markdown/markdown.php create mode 100644 tests/plugins/PluginMarkdownTest.php diff --git a/COPYING b/COPYING index 2292946..2893910 100644 --- a/COPYING +++ b/COPYING @@ -72,6 +72,10 @@ Files: plugins/wallabag/wallabag.png License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) 2015 Nicolas Lœuillet - https://github.com/wallabag/wallabag +Files: plugins/markdown/Parsedown.php +License: MIT License (http://opensource.org/licenses/MIT) +Copyright: (C) 2015 Emanuil Rusev - https://github.com/erusev/parsedown + ---------------------------------------------------- ZLIB/LIBPNG LICENSE diff --git a/application/Utils.php b/application/Utils.php index f84f70e..ac8bfbf 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -43,14 +43,6 @@ function endsWith($haystack, $needle, $case=true) return (strcasecmp(substr($haystack, strlen($haystack) - strlen($needle)), $needle) === 0); } -/** - * Same as nl2br(), but escapes < and > - */ -function nl2br_escaped($html) -{ - return str_replace('>', '>', str_replace('<', '<', nl2br($html))); -} - /** * htmlspecialchars wrapper */ diff --git a/inc/shaarli.css b/inc/shaarli.css index 451f048..79ba1d6 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -467,7 +467,6 @@ h1 { margin-top: 0; margin-bottom: 12px; font-weight: normal; - max-height: 400px; overflow: auto; } diff --git a/plugins/markdown/Parsedown.php b/plugins/markdown/Parsedown.php new file mode 100644 index 0000000..91e05dc --- /dev/null +++ b/plugins/markdown/Parsedown.php @@ -0,0 +1,1528 @@ +DefinitionData = array(); + + # standardize line breaks + $text = str_replace(array("\r\n", "\r"), "\n", $text); + + # remove surrounding line breaks + $text = trim($text, "\n"); + + # split text into lines + $lines = explode("\n", $text); + + # iterate through lines to identify blocks + $markup = $this->lines($lines); + + # trim line breaks + $markup = trim($markup, "\n"); + + return $markup; + } + + # + # Setters + # + + function setBreaksEnabled($breaksEnabled) + { + $this->breaksEnabled = $breaksEnabled; + + return $this; + } + + protected $breaksEnabled; + + function setMarkupEscaped($markupEscaped) + { + $this->markupEscaped = $markupEscaped; + + return $this; + } + + protected $markupEscaped; + + function setUrlsLinked($urlsLinked) + { + $this->urlsLinked = $urlsLinked; + + return $this; + } + + protected $urlsLinked = true; + + # + # Lines + # + + protected $BlockTypes = array( + '#' => array('Header'), + '*' => array('Rule', 'List'), + '+' => array('List'), + '-' => array('SetextHeader', 'Table', 'Rule', 'List'), + '0' => array('List'), + '1' => array('List'), + '2' => array('List'), + '3' => array('List'), + '4' => array('List'), + '5' => array('List'), + '6' => array('List'), + '7' => array('List'), + '8' => array('List'), + '9' => array('List'), + ':' => array('Table'), + '<' => array('Comment', 'Markup'), + '=' => array('SetextHeader'), + '>' => array('Quote'), + '[' => array('Reference'), + '_' => array('Rule'), + '`' => array('FencedCode'), + '|' => array('Table'), + '~' => array('FencedCode'), + ); + + # ~ + + protected $unmarkedBlockTypes = array( + 'Code', + ); + + # + # Blocks + # + + private function lines(array $lines) + { + $CurrentBlock = null; + + foreach ($lines as $line) + { + if (chop($line) === '') + { + if (isset($CurrentBlock)) + { + $CurrentBlock['interrupted'] = true; + } + + continue; + } + + if (strpos($line, "\t") !== false) + { + $parts = explode("\t", $line); + + $line = $parts[0]; + + unset($parts[0]); + + foreach ($parts as $part) + { + $shortage = 4 - mb_strlen($line, 'utf-8') % 4; + + $line .= str_repeat(' ', $shortage); + $line .= $part; + } + } + + $indent = 0; + + while (isset($line[$indent]) and $line[$indent] === ' ') + { + $indent ++; + } + + $text = $indent > 0 ? substr($line, $indent) : $line; + + # ~ + + $Line = array('body' => $line, 'indent' => $indent, 'text' => $text); + + # ~ + + if (isset($CurrentBlock['continuable'])) + { + $Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock); + + if (isset($Block)) + { + $CurrentBlock = $Block; + + continue; + } + else + { + if (method_exists($this, 'block'.$CurrentBlock['type'].'Complete')) + { + $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock); + } + } + } + + # ~ + + $marker = $text[0]; + + # ~ + + $blockTypes = $this->unmarkedBlockTypes; + + if (isset($this->BlockTypes[$marker])) + { + foreach ($this->BlockTypes[$marker] as $blockType) + { + $blockTypes []= $blockType; + } + } + + # + # ~ + + foreach ($blockTypes as $blockType) + { + $Block = $this->{'block'.$blockType}($Line, $CurrentBlock); + + if (isset($Block)) + { + $Block['type'] = $blockType; + + if ( ! isset($Block['identified'])) + { + $Blocks []= $CurrentBlock; + + $Block['identified'] = true; + } + + if (method_exists($this, 'block'.$blockType.'Continue')) + { + $Block['continuable'] = true; + } + + $CurrentBlock = $Block; + + continue 2; + } + } + + # ~ + + if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted'])) + { + $CurrentBlock['element']['text'] .= "\n".$text; + } + else + { + $Blocks []= $CurrentBlock; + + $CurrentBlock = $this->paragraph($Line); + + $CurrentBlock['identified'] = true; + } + } + + # ~ + + if (isset($CurrentBlock['continuable']) and method_exists($this, 'block'.$CurrentBlock['type'].'Complete')) + { + $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock); + } + + # ~ + + $Blocks []= $CurrentBlock; + + unset($Blocks[0]); + + # ~ + + $markup = ''; + + foreach ($Blocks as $Block) + { + if (isset($Block['hidden'])) + { + continue; + } + + $markup .= "\n"; + $markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']); + } + + $markup .= "\n"; + + # ~ + + return $markup; + } + + # + # Code + + protected function blockCode($Line, $Block = null) + { + if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted'])) + { + return; + } + + if ($Line['indent'] >= 4) + { + $text = substr($Line['body'], 4); + + $Block = array( + 'element' => array( + 'name' => 'pre', + 'handler' => 'element', + 'text' => array( + 'name' => 'code', + 'text' => $text, + ), + ), + ); + + return $Block; + } + } + + protected function blockCodeContinue($Line, $Block) + { + if ($Line['indent'] >= 4) + { + if (isset($Block['interrupted'])) + { + $Block['element']['text']['text'] .= "\n"; + + unset($Block['interrupted']); + } + + $Block['element']['text']['text'] .= "\n"; + + $text = substr($Line['body'], 4); + + $Block['element']['text']['text'] .= $text; + + return $Block; + } + } + + protected function blockCodeComplete($Block) + { + $text = $Block['element']['text']['text']; + + $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8'); + + $Block['element']['text']['text'] = $text; + + return $Block; + } + + # + # Comment + + protected function blockComment($Line) + { + if ($this->markupEscaped) + { + return; + } + + if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!') + { + $Block = array( + 'markup' => $Line['body'], + ); + + if (preg_match('/-->$/', $Line['text'])) + { + $Block['closed'] = true; + } + + return $Block; + } + } + + protected function blockCommentContinue($Line, array $Block) + { + if (isset($Block['closed'])) + { + return; + } + + $Block['markup'] .= "\n" . $Line['body']; + + if (preg_match('/-->$/', $Line['text'])) + { + $Block['closed'] = true; + } + + return $Block; + } + + # + # Fenced Code + + protected function blockFencedCode($Line) + { + if (preg_match('/^['.$Line['text'][0].']{3,}[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches)) + { + $Element = array( + 'name' => 'code', + 'text' => '', + ); + + if (isset($matches[1])) + { + $class = 'language-'.$matches[1]; + + $Element['attributes'] = array( + 'class' => $class, + ); + } + + $Block = array( + 'char' => $Line['text'][0], + 'element' => array( + 'name' => 'pre', + 'handler' => 'element', + 'text' => $Element, + ), + ); + + return $Block; + } + } + + protected function blockFencedCodeContinue($Line, $Block) + { + if (isset($Block['complete'])) + { + return; + } + + if (isset($Block['interrupted'])) + { + $Block['element']['text']['text'] .= "\n"; + + unset($Block['interrupted']); + } + + if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text'])) + { + $Block['element']['text']['text'] = substr($Block['element']['text']['text'], 1); + + $Block['complete'] = true; + + return $Block; + } + + $Block['element']['text']['text'] .= "\n".$Line['body'];; + + return $Block; + } + + protected function blockFencedCodeComplete($Block) + { + $text = $Block['element']['text']['text']; + + $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8'); + + $Block['element']['text']['text'] = $text; + + return $Block; + } + + # + # Header + + protected function blockHeader($Line) + { + if (isset($Line['text'][1])) + { + $level = 1; + + while (isset($Line['text'][$level]) and $Line['text'][$level] === '#') + { + $level ++; + } + + if ($level > 6) + { + return; + } + + $text = trim($Line['text'], '# '); + + $Block = array( + 'element' => array( + 'name' => 'h' . min(6, $level), + 'text' => $text, + 'handler' => 'line', + ), + ); + + return $Block; + } + } + + # + # List + + protected function blockList($Line) + { + list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]'); + + if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches)) + { + $Block = array( + 'indent' => $Line['indent'], + 'pattern' => $pattern, + 'element' => array( + 'name' => $name, + 'handler' => 'elements', + ), + ); + + $Block['li'] = array( + 'name' => 'li', + 'handler' => 'li', + 'text' => array( + $matches[2], + ), + ); + + $Block['element']['text'] []= & $Block['li']; + + return $Block; + } + } + + protected function blockListContinue($Line, array $Block) + { + if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches)) + { + if (isset($Block['interrupted'])) + { + $Block['li']['text'] []= ''; + + unset($Block['interrupted']); + } + + unset($Block['li']); + + $text = isset($matches[1]) ? $matches[1] : ''; + + $Block['li'] = array( + 'name' => 'li', + 'handler' => 'li', + 'text' => array( + $text, + ), + ); + + $Block['element']['text'] []= & $Block['li']; + + return $Block; + } + + if ($Line['text'][0] === '[' and $this->blockReference($Line)) + { + return $Block; + } + + if ( ! isset($Block['interrupted'])) + { + $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']); + + $Block['li']['text'] []= $text; + + return $Block; + } + + if ($Line['indent'] > 0) + { + $Block['li']['text'] []= ''; + + $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']); + + $Block['li']['text'] []= $text; + + unset($Block['interrupted']); + + return $Block; + } + } + + # + # Quote + + protected function blockQuote($Line) + { + if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches)) + { + $Block = array( + 'element' => array( + 'name' => 'blockquote', + 'handler' => 'lines', + 'text' => (array) $matches[1], + ), + ); + + return $Block; + } + } + + protected function blockQuoteContinue($Line, array $Block) + { + if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches)) + { + if (isset($Block['interrupted'])) + { + $Block['element']['text'] []= ''; + + unset($Block['interrupted']); + } + + $Block['element']['text'] []= $matches[1]; + + return $Block; + } + + if ( ! isset($Block['interrupted'])) + { + $Block['element']['text'] []= $Line['text']; + + return $Block; + } + } + + # + # Rule + + protected function blockRule($Line) + { + if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text'])) + { + $Block = array( + 'element' => array( + 'name' => 'hr' + ), + ); + + return $Block; + } + } + + # + # Setext + + protected function blockSetextHeader($Line, array $Block = null) + { + if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) + { + return; + } + + if (chop($Line['text'], $Line['text'][0]) === '') + { + $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2'; + + return $Block; + } + } + + # + # Markup + + protected function blockMarkup($Line) + { + if ($this->markupEscaped) + { + return; + } + + if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches)) + { + $element = strtolower($matches[1]); + + if (in_array($element, $this->textLevelElements)) + { + return; + } + + $Block = array( + 'name' => $matches[1], + 'depth' => 0, + 'markup' => $Line['text'], + ); + + $length = strlen($matches[0]); + + $remainder = substr($Line['text'], $length); + + if (trim($remainder) === '') + { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) + { + $Block['closed'] = true; + + $Block['void'] = true; + } + } + else + { + if (isset($matches[2]) or in_array($matches[1], $this->voidElements)) + { + return; + } + + if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder)) + { + $Block['closed'] = true; + } + } + + return $Block; + } + } + + protected function blockMarkupContinue($Line, array $Block) + { + if (isset($Block['closed'])) + { + return; + } + + if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open + { + $Block['depth'] ++; + } + + if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close + { + if ($Block['depth'] > 0) + { + $Block['depth'] --; + } + else + { + $Block['closed'] = true; + } + } + + if (isset($Block['interrupted'])) + { + $Block['markup'] .= "\n"; + + unset($Block['interrupted']); + } + + $Block['markup'] .= "\n".$Line['body']; + + return $Block; + } + + # + # Reference + + protected function blockReference($Line) + { + if (preg_match('/^\[(.+?)\]:[ ]*?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches)) + { + $id = strtolower($matches[1]); + + $Data = array( + 'url' => $matches[2], + 'title' => null, + ); + + if (isset($matches[3])) + { + $Data['title'] = $matches[3]; + } + + $this->DefinitionData['Reference'][$id] = $Data; + + $Block = array( + 'hidden' => true, + ); + + return $Block; + } + } + + # + # Table + + protected function blockTable($Line, array $Block = null) + { + if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) + { + return; + } + + if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '') + { + $alignments = array(); + + $divider = $Line['text']; + + $divider = trim($divider); + $divider = trim($divider, '|'); + + $dividerCells = explode('|', $divider); + + foreach ($dividerCells as $dividerCell) + { + $dividerCell = trim($dividerCell); + + if ($dividerCell === '') + { + continue; + } + + $alignment = null; + + if ($dividerCell[0] === ':') + { + $alignment = 'left'; + } + + if (substr($dividerCell, - 1) === ':') + { + $alignment = $alignment === 'left' ? 'center' : 'right'; + } + + $alignments []= $alignment; + } + + # ~ + + $HeaderElements = array(); + + $header = $Block['element']['text']; + + $header = trim($header); + $header = trim($header, '|'); + + $headerCells = explode('|', $header); + + foreach ($headerCells as $index => $headerCell) + { + $headerCell = trim($headerCell); + + $HeaderElement = array( + 'name' => 'th', + 'text' => $headerCell, + 'handler' => 'line', + ); + + if (isset($alignments[$index])) + { + $alignment = $alignments[$index]; + + $HeaderElement['attributes'] = array( + 'style' => 'text-align: '.$alignment.';', + ); + } + + $HeaderElements []= $HeaderElement; + } + + # ~ + + $Block = array( + 'alignments' => $alignments, + 'identified' => true, + 'element' => array( + 'name' => 'table', + 'handler' => 'elements', + ), + ); + + $Block['element']['text'] []= array( + 'name' => 'thead', + 'handler' => 'elements', + ); + + $Block['element']['text'] []= array( + 'name' => 'tbody', + 'handler' => 'elements', + 'text' => array(), + ); + + $Block['element']['text'][0]['text'] []= array( + 'name' => 'tr', + 'handler' => 'elements', + 'text' => $HeaderElements, + ); + + return $Block; + } + } + + protected function blockTableContinue($Line, array $Block) + { + if (isset($Block['interrupted'])) + { + return; + } + + if ($Line['text'][0] === '|' or strpos($Line['text'], '|')) + { + $Elements = array(); + + $row = $Line['text']; + + $row = trim($row); + $row = trim($row, '|'); + + preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches); + + foreach ($matches[0] as $index => $cell) + { + $cell = trim($cell); + + $Element = array( + 'name' => 'td', + 'handler' => 'line', + 'text' => $cell, + ); + + if (isset($Block['alignments'][$index])) + { + $Element['attributes'] = array( + 'style' => 'text-align: '.$Block['alignments'][$index].';', + ); + } + + $Elements []= $Element; + } + + $Element = array( + 'name' => 'tr', + 'handler' => 'elements', + 'text' => $Elements, + ); + + $Block['element']['text'][1]['text'] []= $Element; + + return $Block; + } + } + + # + # ~ + # + + protected function paragraph($Line) + { + $Block = array( + 'element' => array( + 'name' => 'p', + 'text' => $Line['text'], + 'handler' => 'line', + ), + ); + + return $Block; + } + + # + # Inline Elements + # + + protected $InlineTypes = array( + '"' => array('SpecialCharacter'), + '!' => array('Image'), + '&' => array('SpecialCharacter'), + '*' => array('Emphasis'), + ':' => array('Url'), + '<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'), + '>' => array('SpecialCharacter'), + '[' => array('Link'), + '_' => array('Emphasis'), + '`' => array('Code'), + '~' => array('Strikethrough'), + '\\' => array('EscapeSequence'), + ); + + # ~ + + protected $inlineMarkerList = '!"*_&[:<>`~\\'; + + # + # ~ + # + + public function line($text) + { + $markup = ''; + + # $excerpt is based on the first occurrence of a marker + + while ($excerpt = strpbrk($text, $this->inlineMarkerList)) + { + $marker = $excerpt[0]; + + $markerPosition = strpos($text, $marker); + + $Excerpt = array('text' => $excerpt, 'context' => $text); + + foreach ($this->InlineTypes[$marker] as $inlineType) + { + $Inline = $this->{'inline'.$inlineType}($Excerpt); + + if ( ! isset($Inline)) + { + continue; + } + + # makes sure that the inline belongs to "our" marker + + if (isset($Inline['position']) and $Inline['position'] > $markerPosition) + { + continue; + } + + # sets a default inline position + + if ( ! isset($Inline['position'])) + { + $Inline['position'] = $markerPosition; + } + + # the text that comes before the inline + $unmarkedText = substr($text, 0, $Inline['position']); + + # compile the unmarked text + $markup .= $this->unmarkedText($unmarkedText); + + # compile the inline + $markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']); + + # remove the examined text + $text = substr($text, $Inline['position'] + $Inline['extent']); + + continue 2; + } + + # the marker does not belong to an inline + + $unmarkedText = substr($text, 0, $markerPosition + 1); + + $markup .= $this->unmarkedText($unmarkedText); + + $text = substr($text, $markerPosition + 1); + } + + $markup .= $this->unmarkedText($text); + + return $markup; + } + + # + # ~ + # + + protected function inlineCode($Excerpt) + { + $marker = $Excerpt['text'][0]; + + if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(? strlen($matches[0]), + 'element' => array( + 'name' => 'code', + 'text' => $text, + ), + ); + } + } + + protected function inlineEmailTag($Excerpt) + { + if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $Excerpt['text'], $matches)) + { + $url = $matches[1]; + + if ( ! isset($matches[2])) + { + $url = 'mailto:' . $url; + } + + return array( + 'extent' => strlen($matches[0]), + 'element' => array( + 'name' => 'a', + 'text' => $matches[1], + 'attributes' => array( + 'href' => $url, + ), + ), + ); + } + } + + protected function inlineEmphasis($Excerpt) + { + if ( ! isset($Excerpt['text'][1])) + { + return; + } + + $marker = $Excerpt['text'][0]; + + if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches)) + { + $emphasis = 'strong'; + } + elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches)) + { + $emphasis = 'em'; + } + else + { + return; + } + + return array( + 'extent' => strlen($matches[0]), + 'element' => array( + 'name' => $emphasis, + 'handler' => 'line', + 'text' => $matches[1], + ), + ); + } + + protected function inlineEscapeSequence($Excerpt) + { + if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters)) + { + return array( + 'markup' => $Excerpt['text'][1], + 'extent' => 2, + ); + } + } + + protected function inlineImage($Excerpt) + { + if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') + { + return; + } + + $Excerpt['text']= substr($Excerpt['text'], 1); + + $Link = $this->inlineLink($Excerpt); + + if ($Link === null) + { + return; + } + + $Inline = array( + 'extent' => $Link['extent'] + 1, + 'element' => array( + 'name' => 'img', + 'attributes' => array( + 'src' => $Link['element']['attributes']['href'], + 'alt' => $Link['element']['text'], + ), + ), + ); + + $Inline['element']['attributes'] += $Link['element']['attributes']; + + unset($Inline['element']['attributes']['href']); + + return $Inline; + } + + protected function inlineLink($Excerpt) + { + $Element = array( + 'name' => 'a', + 'handler' => 'line', + 'text' => null, + 'attributes' => array( + 'href' => null, + 'title' => null, + ), + ); + + $extent = 0; + + $remainder = $Excerpt['text']; + + if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches)) + { + $Element['text'] = $matches[1]; + + $extent += strlen($matches[0]); + + $remainder = substr($remainder, $extent); + } + else + { + return; + } + + if (preg_match('/^[(]((?:[^ ()]|[(][^ )]+[)])+)(?:[ ]+("[^"]*"|\'[^\']*\'))?[)]/', $remainder, $matches)) + { + $Element['attributes']['href'] = $matches[1]; + + if (isset($matches[2])) + { + $Element['attributes']['title'] = substr($matches[2], 1, - 1); + } + + $extent += strlen($matches[0]); + } + else + { + if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) + { + $definition = strlen($matches[1]) ? $matches[1] : $Element['text']; + $definition = strtolower($definition); + + $extent += strlen($matches[0]); + } + else + { + $definition = strtolower($Element['text']); + } + + if ( ! isset($this->DefinitionData['Reference'][$definition])) + { + return; + } + + $Definition = $this->DefinitionData['Reference'][$definition]; + + $Element['attributes']['href'] = $Definition['url']; + $Element['attributes']['title'] = $Definition['title']; + } + + $Element['attributes']['href'] = str_replace(array('&', '<'), array('&', '<'), $Element['attributes']['href']); + + return array( + 'extent' => $extent, + 'element' => $Element, + ); + } + + protected function inlineMarkup($Excerpt) + { + if ($this->markupEscaped or strpos($Excerpt['text'], '>') === false) + { + return; + } + + if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches)) + { + return array( + 'markup' => $matches[0], + 'extent' => strlen($matches[0]), + ); + } + + if ($Excerpt['text'][1] === '!' and preg_match('/^/s', $Excerpt['text'], $matches)) + { + return array( + 'markup' => $matches[0], + 'extent' => strlen($matches[0]), + ); + } + + if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches)) + { + return array( + 'markup' => $matches[0], + 'extent' => strlen($matches[0]), + ); + } + } + + protected function inlineSpecialCharacter($Excerpt) + { + if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text'])) + { + return array( + 'markup' => '&', + 'extent' => 1, + ); + } + + $SpecialCharacter = array('>' => 'gt', '<' => 'lt', '"' => 'quot'); + + if (isset($SpecialCharacter[$Excerpt['text'][0]])) + { + return array( + 'markup' => '&'.$SpecialCharacter[$Excerpt['text'][0]].';', + 'extent' => 1, + ); + } + } + + protected function inlineStrikethrough($Excerpt) + { + if ( ! isset($Excerpt['text'][1])) + { + return; + } + + if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches)) + { + return array( + 'extent' => strlen($matches[0]), + 'element' => array( + 'name' => 'del', + 'text' => $matches[1], + 'handler' => 'line', + ), + ); + } + } + + protected function inlineUrl($Excerpt) + { + if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/') + { + return; + } + + if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE)) + { + $Inline = array( + 'extent' => strlen($matches[0][0]), + 'position' => $matches[0][1], + 'element' => array( + 'name' => 'a', + 'text' => $matches[0][0], + 'attributes' => array( + 'href' => $matches[0][0], + ), + ), + ); + + return $Inline; + } + } + + protected function inlineUrlTag($Excerpt) + { + if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches)) + { + $url = str_replace(array('&', '<'), array('&', '<'), $matches[1]); + + return array( + 'extent' => strlen($matches[0]), + 'element' => array( + 'name' => 'a', + 'text' => $url, + 'attributes' => array( + 'href' => $url, + ), + ), + ); + } + } + + # ~ + + protected function unmarkedText($text) + { + if ($this->breaksEnabled) + { + $text = preg_replace('/[ ]*\n/', "
                                                                \n", $text); + } + else + { + $text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "
                                                                \n", $text); + $text = str_replace(" \n", "\n", $text); + } + + return $text; + } + + # + # Handlers + # + + protected function element(array $Element) + { + $markup = '<'.$Element['name']; + + if (isset($Element['attributes'])) + { + foreach ($Element['attributes'] as $name => $value) + { + if ($value === null) + { + continue; + } + + $markup .= ' '.$name.'="'.$value.'"'; + } + } + + if (isset($Element['text'])) + { + $markup .= '>'; + + if (isset($Element['handler'])) + { + $markup .= $this->{$Element['handler']}($Element['text']); + } + else + { + $markup .= $Element['text']; + } + + $markup .= ''; + } + else + { + $markup .= ' />'; + } + + return $markup; + } + + protected function elements(array $Elements) + { + $markup = ''; + + foreach ($Elements as $Element) + { + $markup .= "\n" . $this->element($Element); + } + + $markup .= "\n"; + + return $markup; + } + + # ~ + + protected function li($lines) + { + $markup = $this->lines($lines); + + $trimmedMarkup = trim($markup); + + if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '

                                                                ') + { + $markup = $trimmedMarkup; + $markup = substr($markup, 3); + + $position = strpos($markup, "

                                                                "); + + $markup = substr_replace($markup, '', $position, 4); + } + + return $markup; + } + + # + # Deprecated Methods + # + + function parse($text) + { + $markup = $this->text($text); + + return $markup; + } + + # + # Static Methods + # + + static function instance($name = 'default') + { + if (isset(self::$instances[$name])) + { + return self::$instances[$name]; + } + + $instance = new static(); + + self::$instances[$name] = $instance; + + return $instance; + } + + private static $instances = array(); + + # + # Fields + # + + protected $DefinitionData; + + # + # Read-Only + + protected $specialCharacters = array( + '\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|', + ); + + protected $StrongRegex = array( + '*' => '/^[*]{2}((?:\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s', + '_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us', + ); + + protected $EmRegex = array( + '*' => '/^[*]((?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s', + '_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us', + ); + + protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?'; + + protected $voidElements = array( + 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', + ); + + protected $textLevelElements = array( + 'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont', + 'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing', + 'i', 'rp', 'del', 'code', 'strike', 'marquee', + 'q', 'rt', 'ins', 'font', 'strong', + 's', 'tt', 'sub', 'mark', + 'u', 'xm', 'sup', 'nobr', + 'var', 'ruby', + 'wbr', 'span', + 'time', + ); +} \ No newline at end of file diff --git a/plugins/markdown/README.md b/plugins/markdown/README.md new file mode 100644 index 0000000..22d0af3 --- /dev/null +++ b/plugins/markdown/README.md @@ -0,0 +1,51 @@ +## Markdown Shaarli plugin + +Convert all your shaares description to HTML formatted Markdown. + +Read more about Markdown syntax here. + +### Installation + +Clone this repository inside your `tpl/plugins/` directory, or download the archive and unpack it there. +The directory structure should look like: + +``` +??? plugins + ??? markdown + ??? help.html + ??? markdown.css + ??? markdown.meta + ??? markdown.php + ??? Parsedown.php + ??? README.md +``` + +To enable the plugin, add `markdown` to your list of enabled plugins in `data/config.php` +(`ENABLED_PLUGINS` array). + +This should look like: + +``` +$GLOBALS['config']['ENABLED_PLUGINS'] = array('qrcode', 'any_other_plugin', 'markdown') +``` + +### Known issue + +#### Redirector + +If you're using a redirector, you *need* to add a space after a link, +otherwise the rest of the line will be `urlencode`. + +``` +[link](http://domain.tld)-->test +``` + +Will consider `http://domain.tld)-->test` as URL. + +Instead, add an additional space. + +``` +[link](http://domain.tld) -->test +``` + +> Won't fix because a `)` is a valid part of an URL. diff --git a/plugins/markdown/help.html b/plugins/markdown/help.html new file mode 100644 index 0000000..a679783 --- /dev/null +++ b/plugins/markdown/help.html @@ -0,0 +1,5 @@ +
                                                                + Description will be rendered with + + Markdown syntax. +
                                                                diff --git a/plugins/markdown/markdown.css b/plugins/markdown/markdown.css new file mode 100644 index 0000000..6d666dc --- /dev/null +++ b/plugins/markdown/markdown.css @@ -0,0 +1,137 @@ +/** + * Credit to Simon Laroche + * whom created the CSS which this file is based on. + * License: Unlicense + */ + +.markdown p{ + margin:0.75em 0; +} + +.markdown img{ + max-width:100%; +} + +.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6{ + font-weight:normal; + font-style:normal; + line-height:1em; + margin:0.75em 0; +} +.markdown h4, .markdown h5, .markdown h6{ font-weight: bold; } +.markdown h1{ font-size:2.5em; } +.markdown h2{ font-size:2em; } +.markdown h3{ font-size:1.5em; } +.markdown h4{ font-size:1.2em; } +.markdown h5{ font-size:1em; } +.markdown h6{ font-size:0.9em; } + +.markdown blockquote{ + color:#666666; + padding-left: 3em; + border-left: 0.5em #EEE solid; + margin:0.75em 0; +} +.markdown hr { display: block; height: 2px; border: 0; border-top: 1px solid #aaa;border-bottom: 1px solid #eee; margin: 1em 0; padding: 0; } +.markdown pre, .markdown code, .markdown kbd, .markdown samp { + font-family: monospace, 'courier new'; + font-size: 0.98em; +} +.markdown pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; } + +.markdown b, .markdown strong { font-weight: bold; } + +.markdown dfn, .markdown em { font-style: italic; } + +.markdown ins { background: #ff9; color: #000; text-decoration: none; } + +.markdown mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; } + +.markdown sub, .markdown sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } +.markdown sup { top: -0.5em; } +.markdown sub { bottom: -0.25em; } + +.markdown ul, .markdown ol { margin: 1em 0; padding: 0 0 0 2em; } +.markdown li p:last-child { margin:0 } +.markdown dd { margin: 0 0 0 2em; } + +.markdown img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; } + +.markdown table { border-collapse: collapse; border-spacing: 0; } +.markdown td { vertical-align: top; } + +@media only screen and (min-width: 480px) { + .markdown {font-size:0.9em;} +} + +@media only screen and (min-width: 768px) { + .markdown {font-size:1em;} +} + +#linklist .markdown li { + padding: 0; + border: none; + background: none; +} + +#linklist .markdown ul li { + list-style: circle; +} + +#linklist .markdown ol li { + list-style: decimal; +} + +.markdown table { + padding: 0; +} +.markdown table tr { + border-top: 1px solid #cccccc; + background-color: white; + margin: 0; + padding: 0; +} +.markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} +.markdown table tr th { + font-weight: bold; + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} +.markdown table tr td { + border: 1px solid #cccccc; + text-align: left; + margin: 0; + padding: 6px 13px; +} +.markdown table tr th :first-child, .markdown table tr td :first-child { + margin-top: 0; +} +.markdown table tr th :last-child, table tr td :last-child { + margin-bottom: 0; +} + +.md_help { + color: white; +} + +/* + Remove header links style + */ +#pageheader .md_help a { + color: lightgray; + font-weight: bold; + text-decoration: underline; + + background: none; + box-shadow: none; + padding: 0; + margin: 0; +} + +#pageheader .md_help a:hover { + color: white; +} diff --git a/plugins/markdown/markdown.meta b/plugins/markdown/markdown.meta new file mode 100644 index 0000000..af8c0db --- /dev/null +++ b/plugins/markdown/markdown.meta @@ -0,0 +1 @@ +description="Render shaare description with Markdown syntax." diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php new file mode 100644 index 0000000..3630ef1 --- /dev/null +++ b/plugins/markdown/markdown.php @@ -0,0 +1,158 @@ +[^ ]+!m', '$1', $description); +} + +/** + * Remove
                                                                tag to let markdown handle it. + * + * @param string $description input description text. + * + * @return string $description without
                                                                tags. + */ +function reverse_nl2br($description) +{ + return preg_replace('!
                                                                !im', '', $description); +} + +/** + * Remove HTML spaces ' ' auto generated by Shaarli core system. + * + * @param string $description input description text. + * + * @return string $description without HTML links. + */ +function reverse_space2nbsp($description) +{ + return preg_replace('/(^| ) /m', '$1 ', $description); +} + +/** + * Remove '>' at start of line auto generated by Shaarli core system + * to allow markdown blockquotes. + * + * @param string $description input description text. + * + * @return string $description without HTML links. + */ +function reset_quote_tags($description) +{ + return preg_replace('/^( *)> /m', '$1> ', $description); +} + +/** + * Render shaare contents through Markdown parser. + * 1. Remove HTML generated by Shaarli core. + * 2. Generate markdown descriptions. + * 3. Wrap description in 'markdown' CSS class. + * + * @param string $description input description text. + * + * @return string HTML processed $description. + */ +function process_markdown($description) +{ + $parsedown = new Parsedown(); + + $processedDescription = $description; + $processedDescription = reverse_text2clickable($processedDescription); + $processedDescription = reverse_nl2br($processedDescription); + $processedDescription = reverse_space2nbsp($processedDescription); + $processedDescription = reset_quote_tags($processedDescription); + $processedDescription = $parsedown + ->setMarkupEscaped(false) + ->setBreaksEnabled(true) + ->text($processedDescription); + $processedDescription = '
                                                                '. $processedDescription . '
                                                                '; + + return $processedDescription; +} diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php new file mode 100644 index 0000000..455f5ba --- /dev/null +++ b/tests/plugins/PluginMarkdownTest.php @@ -0,0 +1,112 @@ + array( + 0 => array( + 'description' => $markdown, + ), + ), + ); + + $data = hook_markdown_render_linklist($data); + $this->assertNotFalse(strpos($data['links'][0]['description'], '

                                                                ')); + $this->assertNotFalse(strpos($data['links'][0]['description'], '

                                                                ')); + } + + /** + * Test render_daily hook. + * Only check that there is basic markdown rendering. + */ + function testMarkdownDaily() + { + $markdown = '# My title' . PHP_EOL . 'Very interesting content.'; + $data = array( + // Columns data + 'cols' => array( + // First, second, third. + 0 => array( + // nth link + 0 => array( + 'formatedDescription' => $markdown, + ), + ), + ), + ); + + $data = hook_markdown_render_daily($data); + $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

                                                                ')); + $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

                                                                ')); + } + + /** + * Test reverse_text2clickable(). + */ + function testReverseText2clickable() + { + $text = 'stuff http://hello.there/is=someone#here otherstuff'; + $clickableText = text2clickable($text, ''); + $reversedText = reverse_text2clickable($clickableText); + $this->assertEquals($text, $reversedText); + } + + /** + * Test reverse_nl2br(). + */ + function testReverseNl2br() + { + $text = 'stuff' . PHP_EOL . 'otherstuff'; + $processedText = nl2br($text); + $reversedText = reverse_nl2br($processedText); + $this->assertEquals($text, $reversedText); + } + + /** + * Test reverse_space2nbsp(). + */ + function testReverseSpace2nbsp() + { + $text = ' stuff' . PHP_EOL . ' otherstuff and another'; + $processedText = space2nbsp($text); + $reversedText = reverse_space2nbsp($processedText); + $this->assertEquals($text, $reversedText); + } + + /** + * Test reset_quote_tags() + */ + function testResetQuoteTags() + { + $text = '> quote1'. PHP_EOL . ' > quote2 ' . PHP_EOL . 'noquote'; + $processedText = escape($text); + $reversedText = reset_quote_tags($processedText); + $this->assertEquals($text, $reversedText); + } +} From 822bffced8212e7f34bcb2ad063b31a78bd57bdb Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 27 Dec 2015 10:08:20 +0100 Subject: [PATCH 242/658] Link filter refactoring * introduce class LinkFilter to handle link filter operation (and lighten LinkDB). * handle 'private only' in filtering. * update template to prefill search fields with current search terms. * coding style. * unit test (mostly move from LinkDB to LinkFilter). PS: preparation for #358 #315 and 'AND' search. --- application/LinkDB.php | 120 ++------------- application/LinkFilter.php | 259 ++++++++++++++++++++++++++++++++ application/Utils.php | 12 +- index.php | 200 +++++++++++++----------- tests/LinkDBTest.php | 235 +++-------------------------- tests/LinkFilterTest.php | 242 +++++++++++++++++++++++++++++ tests/utils/ReferenceLinkDB.php | 5 + tpl/linklist.html | 17 ++- 8 files changed, 676 insertions(+), 414 deletions(-) create mode 100644 application/LinkFilter.php create mode 100644 tests/LinkFilterTest.php diff --git a/application/LinkDB.php b/application/LinkDB.php index 51fa926..be7d901 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -62,6 +62,11 @@ class LinkDB implements Iterator, Countable, ArrayAccess // link redirector set in user settings. private $_redirector; + /** + * @var LinkFilter instance. + */ + private $linkFilter; + /** * Creates a new LinkDB * @@ -80,6 +85,7 @@ class LinkDB implements Iterator, Countable, ArrayAccess $this->_redirector = $redirector; $this->_checkDB(); $this->_readDB(); + $this->linkFilter = new LinkFilter($this->_links); } /** @@ -334,114 +340,18 @@ You use the community supported version of the original Shaarli project, by Seba } /** - * Returns the list of links corresponding to a full-text search + * Filter links. * - * Searches: - * - in the URLs, title and description; - * - are case-insensitive. + * @param string $type Type of filter. + * @param mixed $request Search request, string or array. + * @param bool $casesensitive Optional: Perform case sensitive filter + * @param bool $privateonly Optional: Returns private links only if true. * - * Example: - * print_r($mydb->filterFulltext('hollandais')); - * - * mb_convert_case($val, MB_CASE_LOWER, 'UTF-8') - * - allows to perform searches on Unicode text - * - see https://github.com/shaarli/Shaarli/issues/75 for examples + * @return array filtered links */ - public function filterFulltext($searchterms) - { - // FIXME: explode(' ',$searchterms) and perform a AND search. - // FIXME: accept double-quotes to search for a string "as is"? - $filtered = array(); - $search = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8'); - $keys = array('title', 'description', 'url', 'tags'); - - foreach ($this->_links as $link) { - $found = false; - - foreach ($keys as $key) { - if (strpos(mb_convert_case($link[$key], MB_CASE_LOWER, 'UTF-8'), - $search) !== false) { - $found = true; - } - } - - if ($found) { - $filtered[$link['linkdate']] = $link; - } - } - krsort($filtered); - return $filtered; - } - - /** - * Returns the list of links associated with a given list of tags - * - * You can specify one or more tags, separated by space or a comma, e.g. - * print_r($mydb->filterTags('linux programming')); - */ - public function filterTags($tags, $casesensitive=false) - { - // Same as above, we use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) - // FIXME: is $casesensitive ever true? - $t = str_replace( - ',', ' ', - ($casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8')) - ); - - $searchtags = explode(' ', $t); - $filtered = array(); - - foreach ($this->_links as $l) { - $linktags = explode( - ' ', - ($casesensitive ? $l['tags']:mb_convert_case($l['tags'], MB_CASE_LOWER, 'UTF-8')) - ); - - if (count(array_intersect($linktags, $searchtags)) == count($searchtags)) { - $filtered[$l['linkdate']] = $l; - } - } - krsort($filtered); - return $filtered; - } - - - /** - * Returns the list of articles for a given day, chronologically sorted - * - * Day must be in the form 'YYYYMMDD' (e.g. '20120125'), e.g. - * print_r($mydb->filterDay('20120125')); - */ - public function filterDay($day) - { - if (! checkDateFormat('Ymd', $day)) { - throw new Exception('Invalid date format'); - } - - $filtered = array(); - foreach ($this->_links as $l) { - if (startsWith($l['linkdate'], $day)) { - $filtered[$l['linkdate']] = $l; - } - } - ksort($filtered); - return $filtered; - } - - /** - * Returns the article corresponding to a smallHash - */ - public function filterSmallHash($smallHash) - { - $filtered = array(); - foreach ($this->_links as $l) { - if ($smallHash == smallHash($l['linkdate'])) { - // Yes, this is ugly and slow - $filtered[$l['linkdate']] = $l; - return $filtered; - } - } - return $filtered; + public function filter($type, $request, $casesensitive = false, $privateonly = false) { + $requestFilter = is_array($request) ? implode(' ', $request) : $request; + return $this->linkFilter->filter($type, $requestFilter, $casesensitive, $privateonly); } /** diff --git a/application/LinkFilter.php b/application/LinkFilter.php new file mode 100644 index 0000000..cf64737 --- /dev/null +++ b/application/LinkFilter.php @@ -0,0 +1,259 @@ +links = $links; + } + + /** + * Filter links according to parameters. + * + * @param string $type Type of filter (eg. tags, permalink, etc.). + * @param string $request Filter content. + * @param bool $casesensitive Optional: Perform case sensitive filter if true. + * @param bool $privateonly Optional: Only returns private links if true. + * + * @return array filtered link list. + */ + public function filter($type, $request, $casesensitive = false, $privateonly = false) + { + switch($type) { + case self::$FILTER_HASH: + return $this->filterSmallHash($request); + break; + case self::$FILTER_TEXT: + return $this->filterFulltext($request, $privateonly); + break; + case self::$FILTER_TAG: + return $this->filterTags($request, $casesensitive, $privateonly); + break; + case self::$FILTER_DAY: + return $this->filterDay($request); + break; + default: + return $this->noFilter($privateonly); + } + } + + /** + * Unknown filter, but handle private only. + * + * @param bool $privateonly returns private link only if true. + * + * @return array filtered links. + */ + private function noFilter($privateonly = false) + { + if (! $privateonly) { + krsort($this->links); + return $this->links; + } + + $out = array(); + foreach ($this->links as $value) { + if ($value['private']) { + $out[$value['linkdate']] = $value; + } + } + + krsort($out); + return $out; + } + + /** + * Returns the shaare corresponding to a smallHash. + * + * @param string $smallHash permalink hash. + * + * @return array $filtered array containing permalink data. + */ + private function filterSmallHash($smallHash) + { + $filtered = array(); + foreach ($this->links as $l) { + if ($smallHash == smallHash($l['linkdate'])) { + // Yes, this is ugly and slow + $filtered[$l['linkdate']] = $l; + return $filtered; + } + } + return $filtered; + } + + /** + * Returns the list of links corresponding to a full-text search + * + * Searches: + * - in the URLs, title and description; + * - are case-insensitive. + * + * Example: + * print_r($mydb->filterFulltext('hollandais')); + * + * mb_convert_case($val, MB_CASE_LOWER, 'UTF-8') + * - allows to perform searches on Unicode text + * - see https://github.com/shaarli/Shaarli/issues/75 for examples + * + * @param string $searchterms search query. + * @param bool $privateonly return only private links if true. + * + * @return array search results. + */ + private function filterFulltext($searchterms, $privateonly = false) + { + // FIXME: explode(' ',$searchterms) and perform a AND search. + // FIXME: accept double-quotes to search for a string "as is"? + $filtered = array(); + $search = mb_convert_case($searchterms, MB_CASE_LOWER, 'UTF-8'); + $explodedSearch = explode(' ', trim($search)); + $keys = array('title', 'description', 'url', 'tags'); + + // Iterate over every stored link. + foreach ($this->links as $link) { + $found = false; + + // ignore non private links when 'privatonly' is on. + if (! $link['private'] && $privateonly === true) { + continue; + } + + // Iterate over searchable link fields. + foreach ($keys as $key) { + // Search full expression. + if (strpos( + mb_convert_case($link[$key], MB_CASE_LOWER, 'UTF-8'), + $search + ) !== false) { + $found = true; + } + + if ($found) { + break; + } + } + + if ($found) { + $filtered[$link['linkdate']] = $link; + } + } + + krsort($filtered); + return $filtered; + } + + /** + * Returns the list of links associated with a given list of tags + * + * You can specify one or more tags, separated by space or a comma, e.g. + * print_r($mydb->filterTags('linux programming')); + * + * @param string $tags list of tags separated by commas or blank spaces. + * @param bool $casesensitive ignore case if false. + * @param bool $privateonly returns private links only. + * + * @return array filtered links. + */ + public function filterTags($tags, $casesensitive = false, $privateonly = false) + { + $searchtags = $this->tagsStrToArray($tags, $casesensitive); + $filtered = array(); + + foreach ($this->links as $l) { + // ignore non private links when 'privatonly' is on. + if (! $l['private'] && $privateonly === true) { + continue; + } + + $linktags = $this->tagsStrToArray($l['tags'], $casesensitive); + + if (count(array_intersect($linktags, $searchtags)) == count($searchtags)) { + $filtered[$l['linkdate']] = $l; + } + } + krsort($filtered); + return $filtered; + } + + /** + * Returns the list of articles for a given day, chronologically sorted + * + * Day must be in the form 'YYYYMMDD' (e.g. '20120125'), e.g. + * print_r($mydb->filterDay('20120125')); + * + * @param string $day day to filter. + * + * @return array all link matching given day. + * + * @throws Exception if date format is invalid. + */ + public function filterDay($day) + { + if (! checkDateFormat('Ymd', $day)) { + throw new Exception('Invalid date format'); + } + + $filtered = array(); + foreach ($this->links as $l) { + if (startsWith($l['linkdate'], $day)) { + $filtered[$l['linkdate']] = $l; + } + } + ksort($filtered); + return $filtered; + } + + /** + * Convert a list of tags (str) to an array. Also + * - handle case sensitivity. + * - accepts spaces commas as separator. + * - remove private tags for loggedout users. + * + * @param string $tags string containing a list of tags. + * @param bool $casesensitive will convert everything to lowercase if false. + * + * @return array filtered tags string. + */ + public function tagsStrToArray($tags, $casesensitive) + { + // We use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) + $tagsOut = $casesensitive ? $tags : mb_convert_case($tags, MB_CASE_LOWER, 'UTF-8'); + $tagsOut = str_replace(',', ' ', $tagsOut); + + return explode(' ', trim($tagsOut)); + } +} diff --git a/application/Utils.php b/application/Utils.php index f84f70e..aeaef9f 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -72,12 +72,14 @@ function sanitizeLink(&$link) /** * Checks if a string represents a valid date + + * @param string $format The expected DateTime format of the string + * @param string $string A string-formatted date * - * @param string a string-formatted date - * @param format the expected DateTime format of the string - * @return whether the string is a valid date - * @see http://php.net/manual/en/class.datetime.php - * @see http://php.net/manual/en/datetime.createfromformat.php + * @return bool whether the string is a valid date + * + * @see http://php.net/manual/en/class.datetime.php + * @see http://php.net/manual/en/datetime.createfromformat.php */ function checkDateFormat($format, $string) { diff --git a/index.php b/index.php index 40a6fbe..1664c01 100644 --- a/index.php +++ b/index.php @@ -151,6 +151,7 @@ require_once 'application/CachedPage.php'; require_once 'application/FileUtils.php'; require_once 'application/HttpUtils.php'; require_once 'application/LinkDB.php'; +require_once 'application/LinkFilter.php'; require_once 'application/TimeZone.php'; require_once 'application/Url.php'; require_once 'application/Utils.php'; @@ -730,18 +731,23 @@ function showRSS() // Read links from database (and filter private links if user it not logged in). // Optionally filter the results: - $linksToDisplay=array(); - if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); - else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); - else $linksToDisplay = $LINKSDB; - - $nblinksToDisplay = 50; // Number of links to display. - if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. - { - $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ; + if (!empty($_GET['searchterm'])) { + $linksToDisplay = $LINKSDB->filter(LinkFilter::$FILTER_TEXT, $_GET['searchterm']); + } + elseif (!empty($_GET['searchtags'])) { + $linksToDisplay = $LINKSDB->filter(LinkFilter::$FILTER_TAG, trim($_GET['searchtags'])); + } + else { + $linksToDisplay = $LINKSDB; } - $pageaddr=escape(index_url($_SERVER)); + $nblinksToDisplay = 50; // Number of links to display. + // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. + if (!empty($_GET['nb'])) { + $nblinksToDisplay = $_GET['nb'] == 'all' ? count($linksToDisplay) : max(intval($_GET['nb']), 1); + } + + $pageaddr = escape(index_url($_SERVER)); echo ''; echo ''.$GLOBALS['title'].''.$pageaddr.''; echo 'Shared linksen-en'.$pageaddr.''."\n\n"; @@ -821,15 +827,20 @@ function showATOM() ); // Optionally filter the results: - $linksToDisplay=array(); - if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']); - else if (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); - else $linksToDisplay = $LINKSDB; + if (!empty($_GET['searchterm'])) { + $linksToDisplay = $LINKSDB->filter(LinkFilter::$FILTER_TEXT, $_GET['searchterm']); + } + else if (!empty($_GET['searchtags'])) { + $linksToDisplay = $LINKSDB->filter(LinkFilter::$FILTER_TAG, trim($_GET['searchtags'])); + } + else { + $linksToDisplay = $LINKSDB; + } $nblinksToDisplay = 50; // Number of links to display. - if (!empty($_GET['nb'])) // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. - { - $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ; + // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links. + if (!empty($_GET['nb'])) { + $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max(intval($_GET['nb']), 1); } $pageaddr=escape(index_url($_SERVER)); @@ -1024,7 +1035,7 @@ function showDaily($pageBuilder) } try { - $linksToDisplay = $LINKSDB->filterDay($day); + $linksToDisplay = $LINKSDB->filter(LinkFilter::$FILTER_DAY, $day); } catch (Exception $exc) { error_log($exc); $linksToDisplay = array(); @@ -1149,13 +1160,17 @@ function renderPage() if ($targetPage == Router::$PAGE_PICWALL) { // Optionally filter the results: - $links=array(); - if (!empty($_GET['searchterm'])) $links = $LINKSDB->filterFulltext($_GET['searchterm']); - elseif (!empty($_GET['searchtags'])) $links = $LINKSDB->filterTags(trim($_GET['searchtags'])); - else $links = $LINKSDB; + if (!empty($_GET['searchterm'])) { + $links = $LINKSDB->filter(LinkFilter::$FILTER_TEXT, $_GET['searchterm']); + } + elseif (! empty($_GET['searchtags'])) { + $links = $LINKSDB->filter(LinkFilter::$FILTER_TAG, trim($_GET['searchtags'])); + } + else { + $links = $LINKSDB; + } - $body=''; - $linksToDisplay=array(); + $linksToDisplay = array(); // Get only links which have a thumbnail. foreach($links as $link) @@ -1282,7 +1297,7 @@ function renderPage() } if (isset($params['searchtags'])) { - $tags = explode(' ',$params['searchtags']); + $tags = explode(' ', $params['searchtags']); $tags=array_diff($tags, array($_GET['removetag'])); // Remove value from array $tags. if (count($tags)==0) { unset($params['searchtags']); @@ -1467,7 +1482,8 @@ function renderPage() if (!empty($_POST['deletetag']) && !empty($_POST['fromtag'])) { $needle=trim($_POST['fromtag']); - $linksToAlter = $LINKSDB->filterTags($needle,true); // True for case-sensitive tag search. + // True for case-sensitive tag search. + $linksToAlter = $LINKSDB->filter(LinkFilter::$FILTER_TAG, $needle, true); foreach($linksToAlter as $key=>$value) { $tags = explode(' ',trim($value['tags'])); @@ -1484,7 +1500,8 @@ function renderPage() if (!empty($_POST['renametag']) && !empty($_POST['fromtag']) && !empty($_POST['totag'])) { $needle=trim($_POST['fromtag']); - $linksToAlter = $LINKSDB->filterTags($needle,true); // true for case-sensitive tag search. + // True for case-sensitive tag search. + $linksToAlter = $LINKSDB->filter(LinkFilter::$FILTER_TAG, $needle, true); foreach($linksToAlter as $key=>$value) { $tags = explode(' ',trim($value['tags'])); @@ -1865,81 +1882,78 @@ function importFile() function buildLinkList($PAGE,$LINKSDB) { // ---- Filter link database according to parameters - $linksToDisplay=array(); - $search_type=''; - $search_crits=''; - if (isset($_GET['searchterm'])) // Fulltext search - { - $linksToDisplay = $LINKSDB->filterFulltext(trim($_GET['searchterm'])); - $search_crits=escape(trim($_GET['searchterm'])); - $search_type='fulltext'; + $search_type = ''; + $search_crits = ''; + $privateonly = !empty($_SESSION['privateonly']) ? true : false; + + // Fulltext search + if (isset($_GET['searchterm'])) { + $search_crits = escape(trim($_GET['searchterm'])); + $search_type = LinkFilter::$FILTER_TEXT; + $linksToDisplay = $LINKSDB->filter($search_type, $search_crits, false, $privateonly); } - elseif (isset($_GET['searchtags'])) // Search by tag - { - $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); - $search_crits=explode(' ',escape(trim($_GET['searchtags']))); - $search_type='tags'; + // Search by tag + elseif (isset($_GET['searchtags'])) { + $search_crits = explode(' ', escape(trim($_GET['searchtags']))); + $search_type = LinkFilter::$FILTER_TAG; + $linksToDisplay = $LINKSDB->filter($search_type, $search_crits, false, $privateonly); } - elseif (isset($_SERVER['QUERY_STRING']) && preg_match('/[a-zA-Z0-9-_@]{6}(&.+?)?/',$_SERVER['QUERY_STRING'])) // Detect smallHashes in URL - { - $linksToDisplay = $LINKSDB->filterSmallHash(substr(trim($_SERVER["QUERY_STRING"], '/'),0,6)); - if (count($linksToDisplay)==0) - { - header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); - echo '

                                                                404 Not found.

                                                                Oh crap. The link you are trying to reach does not exist or has been deleted.'; + // Detect smallHashes in URL. + elseif (isset($_SERVER['QUERY_STRING']) + && preg_match('/[a-zA-Z0-9-_@]{6}(&.+?)?/', $_SERVER['QUERY_STRING'])) { + $search_type = LinkFilter::$FILTER_HASH; + $search_crits = substr(trim($_SERVER["QUERY_STRING"], '/'), 0, 6); + $linksToDisplay = $LINKSDB->filter($search_type, $search_crits); + + if (count($linksToDisplay) == 0) { + header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); + echo '

                                                                404 Not found.

                                                                Oh crap. + The link you are trying to reach does not exist or has been deleted.'; echo '
                                                                Would you mind clicking here?'; exit; } - $search_type='permalink'; } - else - $linksToDisplay = $LINKSDB; // Otherwise, display without filtering. - - - // Option: Show only private links - if (!empty($_SESSION['privateonly'])) - { - $tmp = array(); - foreach($linksToDisplay as $linkdate=>$link) - { - if ($link['private']!=0) $tmp[$linkdate]=$link; - } - $linksToDisplay=$tmp; + // Otherwise, display without filtering. + else { + $linksToDisplay = $LINKSDB->filter('', '', false, $privateonly); } // ---- Handle paging. - /* Can someone explain to me why you get the following error when using array_keys() on an object which implements the interface ArrayAccess??? - "Warning: array_keys() expects parameter 1 to be array, object given in ... " - If my class implements ArrayAccess, why won't array_keys() accept it ? ( $keys=array_keys($linksToDisplay); ) - */ - $keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks PHP. + $keys = array(); + foreach ($linksToDisplay as $key => $value) { + $keys[] = $key; + } // If there is only a single link, we change on-the-fly the title of the page. - if (count($linksToDisplay)==1) $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'].' - '.$GLOBALS['title']; + if (count($linksToDisplay) == 1) { + $GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'].' - '.$GLOBALS['title']; + } // Select articles according to paging. - $pagecount = ceil(count($keys)/$_SESSION['LINKS_PER_PAGE']); - $pagecount = ($pagecount==0 ? 1 : $pagecount); - $page=( empty($_GET['page']) ? 1 : intval($_GET['page'])); - $page = ( $page<1 ? 1 : $page ); - $page = ( $page>$pagecount ? $pagecount : $page ); - $i = ($page-1)*$_SESSION['LINKS_PER_PAGE']; // Start index. - $end = $i+$_SESSION['LINKS_PER_PAGE']; - $linkDisp=array(); // Links to display + $pagecount = ceil(count($keys) / $_SESSION['LINKS_PER_PAGE']); + $pagecount = $pagecount == 0 ? 1 : $pagecount; + $page= empty($_GET['page']) ? 1 : intval($_GET['page']); + $page = $page < 1 ? 1 : $page; + $page = $page > $pagecount ? $pagecount : $page; + // Start index. + $i = ($page-1) * $_SESSION['LINKS_PER_PAGE']; + $end = $i + $_SESSION['LINKS_PER_PAGE']; + $linkDisp = array(); while ($i<$end && $i1) $next_page_url='?page='.($page-1).$searchterm.$searchtags; + $searchterm = empty($_GET['searchterm']) ? '' : '&searchterm=' . $_GET['searchterm']; + $searchtags = empty($_GET['searchtags']) ? '' : '&searchtags=' . $_GET['searchtags']; + $previous_page_url = ''; + if ($i != count($keys)) { + $previous_page_url = '?page=' . ($page+1) . $searchterm . $searchtags; + } + $next_page_url=''; + if ($page>1) { + $next_page_url = '?page=' . ($page-1) . $searchterm . $searchtags; + } - $token = ''; if (isLoggedIn()) $token=getToken(); + $token = ''; + if (isLoggedIn()) { + $token = getToken(); + } // Fill all template fields. $data = array( diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 7b22b27..3b1a205 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php @@ -301,217 +301,6 @@ class LinkDBTest extends PHPUnit_Framework_TestCase ); } - /** - * Filter links using a tag - */ - public function testFilterOneTag() - { - $this->assertEquals( - 3, - sizeof(self::$publicLinkDB->filterTags('web', false)) - ); - - $this->assertEquals( - 4, - sizeof(self::$privateLinkDB->filterTags('web', false)) - ); - } - - /** - * Filter links using a tag - case-sensitive - */ - public function testFilterCaseSensitiveTag() - { - $this->assertEquals( - 0, - sizeof(self::$privateLinkDB->filterTags('mercurial', true)) - ); - - $this->assertEquals( - 1, - sizeof(self::$privateLinkDB->filterTags('Mercurial', true)) - ); - } - - /** - * Filter links using a tag combination - */ - public function testFilterMultipleTags() - { - $this->assertEquals( - 1, - sizeof(self::$publicLinkDB->filterTags('dev cartoon', false)) - ); - - $this->assertEquals( - 2, - sizeof(self::$privateLinkDB->filterTags('dev cartoon', false)) - ); - } - - /** - * Filter links using a non-existent tag - */ - public function testFilterUnknownTag() - { - $this->assertEquals( - 0, - sizeof(self::$publicLinkDB->filterTags('null', false)) - ); - } - - /** - * Return links for a given day - */ - public function testFilterDay() - { - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterDay('20121206')) - ); - - $this->assertEquals( - 3, - sizeof(self::$privateLinkDB->filterDay('20121206')) - ); - } - - /** - * 404 - day not found - */ - public function testFilterUnknownDay() - { - $this->assertEquals( - 0, - sizeof(self::$publicLinkDB->filterDay('19700101')) - ); - - $this->assertEquals( - 0, - sizeof(self::$privateLinkDB->filterDay('19700101')) - ); - } - - /** - * Use an invalid date format - * @expectedException Exception - * @expectedExceptionMessageRegExp /Invalid date format/ - */ - public function testFilterInvalidDayWithChars() - { - self::$privateLinkDB->filterDay('Rainy day, dream away'); - } - - /** - * Use an invalid date format - * @expectedException Exception - * @expectedExceptionMessageRegExp /Invalid date format/ - */ - public function testFilterInvalidDayDigits() - { - self::$privateLinkDB->filterDay('20'); - } - - /** - * Retrieve a link entry with its hash - */ - public function testFilterSmallHash() - { - $links = self::$privateLinkDB->filterSmallHash('IuWvgA'); - - $this->assertEquals( - 1, - sizeof($links) - ); - - $this->assertEquals( - 'MediaGoblin', - $links['20130614_184135']['title'] - ); - - } - - /** - * No link for this hash - */ - public function testFilterUnknownSmallHash() - { - $this->assertEquals( - 0, - sizeof(self::$privateLinkDB->filterSmallHash('Iblaah')) - ); - } - - /** - * Full-text search - result from a link's URL - */ - public function testFilterFullTextURL() - { - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('ars.userfriendly.org')) - ); - } - - /** - * Full-text search - result from a link's title only - */ - public function testFilterFullTextTitle() - { - // use miscellaneous cases - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('userfriendly -')) - ); - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('UserFriendly -')) - ); - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('uSeRFrIendlY -')) - ); - - // use miscellaneous case and offset - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('RFrIendL')) - ); - } - - /** - * Full-text search - result from the link's description only - */ - public function testFilterFullTextDescription() - { - $this->assertEquals( - 1, - sizeof(self::$publicLinkDB->filterFullText('media publishing')) - ); - } - - /** - * Full-text search - result from the link's tags only - */ - public function testFilterFullTextTags() - { - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('gnu')) - ); - } - - /** - * Full-text search - result set from mixed sources - */ - public function testFilterFullTextMixed() - { - $this->assertEquals( - 2, - sizeof(self::$publicLinkDB->filterFullText('free software')) - ); - } - /** * Test real_url without redirector. */ @@ -534,4 +323,28 @@ class LinkDBTest extends PHPUnit_Framework_TestCase $this->assertStringStartsWith($redirector, $link['real_url']); } } + + /** + * Test filter with string. + */ + public function testFilterString() + { + $tags = 'dev cartoon'; + $this->assertEquals( + 2, + count(self::$privateLinkDB->filter(LinkFilter::$FILTER_TAG, $tags, true, false)) + ); + } + + /** + * Test filter with string. + */ + public function testFilterArray() + { + $tags = array('dev', 'cartoon'); + $this->assertEquals( + 2, + count(self::$privateLinkDB->filter(LinkFilter::$FILTER_TAG, $tags, true, false)) + ); + } } diff --git a/tests/LinkFilterTest.php b/tests/LinkFilterTest.php new file mode 100644 index 0000000..5107ab7 --- /dev/null +++ b/tests/LinkFilterTest.php @@ -0,0 +1,242 @@ +getLinks()); + } + + /** + * Blank filter. + */ + public function testFilter() + { + $this->assertEquals( + 6, + count(self::$linkFilter->filter('', '')) + ); + + // Private only. + $this->assertEquals( + 2, + count(self::$linkFilter->filter('', '', false, true)) + ); + } + + /** + * Filter links using a tag + */ + public function testFilterOneTag() + { + $this->assertEquals( + 4, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false)) + ); + + // Private only. + $this->assertEquals( + 1, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, true)) + ); + } + + /** + * Filter links using a tag - case-sensitive + */ + public function testFilterCaseSensitiveTag() + { + $this->assertEquals( + 0, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'mercurial', true)) + ); + + $this->assertEquals( + 1, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'Mercurial', true)) + ); + } + + /** + * Filter links using a tag combination + */ + public function testFilterMultipleTags() + { + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'dev cartoon', false)) + ); + } + + /** + * Filter links using a non-existent tag + */ + public function testFilterUnknownTag() + { + $this->assertEquals( + 0, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'null', false)) + ); + } + + /** + * Return links for a given day + */ + public function testFilterDay() + { + $this->assertEquals( + 3, + count(self::$linkFilter->filter(LinkFilter::$FILTER_DAY, '20121206')) + ); + } + + /** + * 404 - day not found + */ + public function testFilterUnknownDay() + { + $this->assertEquals( + 0, + count(self::$linkFilter->filter(LinkFilter::$FILTER_DAY, '19700101')) + ); + } + + /** + * Use an invalid date format + * @expectedException Exception + * @expectedExceptionMessageRegExp /Invalid date format/ + */ + public function testFilterInvalidDayWithChars() + { + self::$linkFilter->filter(LinkFilter::$FILTER_DAY, 'Rainy day, dream away'); + } + + /** + * Use an invalid date format + * @expectedException Exception + * @expectedExceptionMessageRegExp /Invalid date format/ + */ + public function testFilterInvalidDayDigits() + { + self::$linkFilter->filter(LinkFilter::$FILTER_DAY, '20'); + } + + /** + * Retrieve a link entry with its hash + */ + public function testFilterSmallHash() + { + $links = self::$linkFilter->filter(LinkFilter::$FILTER_HASH, 'IuWvgA'); + + $this->assertEquals( + 1, + count($links) + ); + + $this->assertEquals( + 'MediaGoblin', + $links['20130614_184135']['title'] + ); + } + + /** + * No link for this hash + */ + public function testFilterUnknownSmallHash() + { + $this->assertEquals( + 0, + count(self::$linkFilter->filter(LinkFilter::$FILTER_HASH, 'Iblaah')) + ); + } + + /** + * Full-text search - result from a link's URL + */ + public function testFilterFullTextURL() + { + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'ars.userfriendly.org')) + ); + } + + /** + * Full-text search - result from a link's title only + */ + public function testFilterFullTextTitle() + { + // use miscellaneous cases + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'userfriendly -')) + ); + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'UserFriendly -')) + ); + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'uSeRFrIendlY -')) + ); + + // use miscellaneous case and offset + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'RFrIendL')) + ); + } + + /** + * Full-text search - result from the link's description only + */ + public function testFilterFullTextDescription() + { + $this->assertEquals( + 1, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'media publishing')) + ); + } + + /** + * Full-text search - result from the link's tags only + */ + public function testFilterFullTextTags() + { + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'gnu')) + ); + + // Private only. + $this->assertEquals( + 1, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', false, true)) + ); + } + + /** + * Full-text search - result set from mixed sources + */ + public function testFilterFullTextMixed() + { + $this->assertEquals( + 2, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'free software')) + ); + } +} diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index 47b5182..011317e 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -124,4 +124,9 @@ class ReferenceLinkDB { return $this->_privateCount; } + + public function getLinks() + { + return $this->_links; + } } diff --git a/tpl/linklist.html b/tpl/linklist.html index 666748a..09860ba 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -7,15 +7,24 @@
                                                            • +
                                                            • Docker
                                                            • +
                                                            • Plugin list
                                                            • Usage
                                                            • How To
                                                            • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                            • Directory structure
                                                            • 3rd party libraries
                                                            • Plugin System
                                                            • +
                                                            • Release Shaarli
                                                            • Security
                                                            • Static analysis
                                                            • Theming
                                                            • @@ -79,7 +106,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                                              Backup and restore the datastore file

                                                              Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.

                                                              Example command:

                                                              -
                                                              rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
                                                              +
                                                              rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php

                                                              To export links as an HTML file, under Tools > Export, choose:

                                                                @@ -92,7 +119,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                              • This can be done using the shaarchiver tool.

                                                              Example command:

                                                              -
                                                              ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
                                                              +
                                                              ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all

                                                              Diigo

                                                              If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

                                                              diff --git a/doc/Browsing-and-searching.html b/doc/Browsing-and-searching.html new file mode 100644 index 0000000..a088785 --- /dev/null +++ b/doc/Browsing-and-searching.html @@ -0,0 +1,84 @@ + + + + + + + Shaarli – Browsing and searching + + + + + + +

                                                              Browsing and searching

                                                              +

                                                              Browsing and Searching

                                                              +

                                                              Status: DRAFT

                                                              +

                                                              + +

                                                              Use the Search text field to search in any of the fields of all links (Title, URL, Description...)

                                                              +

                                                              Exclude text/tags: Use the - operator before a word or tag (example -uninteresting) to prevent entries containing (or tagged) uninteresting from showing up in the search results.

                                                              +

                                                              Exact text search: Use double-quotes (example "exact search") to search for the exact expression.

                                                              +

                                                              Both exclude patterns and exact searches can be combined with normal searches (example "exact search" term otherterm -notthis "very exact" stuff -notagain)

                                                              + +

                                                              Use the Filter by tags field to restrict displayed links to entries tagged with one or multiple tags (use space to separate tags).

                                                              +

                                                              Hidden tags: Tags starting with a dot . (example .secret) are private. They can only be seen and searched when logged in.

                                                              +

                                                              Alternatively you can use the Tag cloud to discover all tags and click on any of them to display related links.

                                                              +

                                                              Filtering RSS feeds/Picture wall

                                                              +

                                                              RSS feeds can also be restricted to only return items matching a text/tag search: see RSS feeds.

                                                              + + diff --git a/doc/Browsing-and-searching.md b/doc/Browsing-and-searching.md new file mode 100644 index 0000000..187fe44 --- /dev/null +++ b/doc/Browsing-and-searching.md @@ -0,0 +1,28 @@ +#Browsing and searching +# Browsing and Searching + +Status: DRAFT + +![(http://pix.toile-libre.org/upload/original/1455571378.png)]((http://pix.toile-libre.org/upload/original/1455571378.png).html) + +## Plain text search + +Use the `Search text` field to search in _any_ of the fields of all links (Title, URL, Description...) + +**Exclude text/tags:** Use the `-` operator before a word or tag (example `-uninteresting`) to prevent entries containing (or tagged) `uninteresting` from showing up in the search results. + +**Exact text search:** Use double-quotes (example `"exact search"`) to search for the exact expression. + +Both exclude patterns and exact searches can be combined with normal searches (example `"exact search" term otherterm -notthis "very exact" stuff -notagain`) + +## Tags search + +Use the `Filter by tags` field to restrict displayed links to entries tagged with one or multiple tags (use space to separate tags). + +**Hidden tags:** Tags starting with a dot `.` (example `.secret`) are private. They can only be seen and searched when logged in. + +Alternatively you can use the `Tag cloud` to discover all tags and click on any of them to display related links. + +## Filtering RSS feeds/Picture wall + +RSS feeds can also be restricted to only return items matching a text/tag search: see [RSS feeds](RSS-feeds.html). diff --git a/doc/Coding-guidelines.html b/doc/Coding-guidelines.html index 40d1791..8dbf3bc 100644 --- a/doc/Coding-guidelines.html +++ b/doc/Coding-guidelines.html @@ -4,12 +4,12 @@ - Shaarli - Coding guidelines + Shaarli – Coding guidelines - +
                                                          • +
                                                          • Docker
                                                          • +
                                                          • Plugin list
                                                          • Usage
                                                          • How To
                                                          • @@ -43,6 +51,7 @@
                                                          • Directory structure
                                                          • 3rd party libraries
                                                          • Plugin System
                                                          • +
                                                          • Release Shaarli
                                                          • Security
                                                          • Static analysis
                                                          • Theming
                                                          • diff --git a/doc/Community-&-Related-software.html b/doc/Community-&-Related-software.html index 34bc615..8dd0e43 100644 --- a/doc/Community-&-Related-software.html +++ b/doc/Community-&-Related-software.html @@ -4,12 +4,12 @@ - Shaarli - Community & Related software + Shaarli – Community & Related software - +
                                                        • +
                                                        • Docker
                                                        • +
                                                        • Plugin list
                                                        • Usage
                                                        • How To
                                                        • @@ -43,6 +51,7 @@
                                                        • Directory structure
                                                        • 3rd party libraries
                                                        • Plugin System
                                                        • +
                                                        • Release Shaarli
                                                        • Security
                                                        • Static analysis
                                                        • Theming
                                                        • @@ -72,6 +81,10 @@
                                                        • Shaarli.fr/my - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of DMeloni
                                                        • Shaarli Community - Unknown Shaarli hoster (unsupported, old fork)
                                                        +

                                                        Third party plugins

                                                        +
                                                          +
                                                        • autosave - periodically saves contents of the Edit link/Save link dialog to your browser's LocalStorage to avoid data loss when typing a long entry.
                                                        • +

                                                        Themes

                                                        See Theming for the list of community-contributed themes, and an installation guide.

                                                        Server apps

                                                        @@ -85,7 +98,7 @@

                                                      Mobile Apps

                                                      diff --git a/doc/Community-&-Related-software.md b/doc/Community-&-Related-software.md index 77ea242..27da45d 100644 --- a/doc/Community-&-Related-software.md +++ b/doc/Community-&-Related-software.md @@ -15,6 +15,10 @@ _TODO: contact repos owners to see if they'd like to standardize their work with - [Shaarli.fr/my](https://www.shaarli.fr/my.php) - Unofficial, unsupported (old fork) hosted Shaarlis provider, courtesy of [DMeloni](https://github.com/DMeloni)[](.html) - [Shaarli Community](http://shaarferme.etudiant-libre.fr.nf/index.php) - Unknown Shaarli hoster (unsupported, old fork)[](.html) +### Third party plugins + + * [autosave](https://github.com/kalvn/shaarli-plugin-autosave) - periodically saves contents of the _Edit link/Save link_ dialog to your browser's LocalStorage to avoid data loss when typing a long entry.[](.html) + ### Themes See [Theming](Theming.html) for the list of community-contributed themes, and an installation guide. @@ -27,7 +31,7 @@ See [Theming](Theming.html) for the list of community-contributed themes, and an - [Self dead link](https://github.com/qwertygc/shaarli-dev-code/blob/master/self-dead-link.php) - Detect dead links on shaarli. This version use the database of shaarli. An [another version](https://github.com/qwertygc/shaarli-dev-code/blob/master/dead-link.php), can be used for others shaarli (but use most ressources).[](.html) ### Mobile Apps -- [github.com/mro/ShaarliOS](https://github.com/mro/ShaarliOS#the-missing-ios-8-share-extension-to-shaarli) iOS share extension - see [#308](https://github.com/shaarli/Shaarli/issues/308#issuecomment-132303709) for some promo codes,[](.html) +- [Shaarli💫](http://app.mro.name/Shaarli💫) iOS share extension - see [#308](https://github.com/shaarli/Shaarli/issues/308#issuecomment-184592070) for some promo codes,[](.html) - [Shaarli for Android](http://sebsauvage.net/links/?ZAyDzg) - Android application that adds Shaarli as a sharing provider[](.html) - [Shaarlier for Android](https://github.com/dimtion/Shaarlier) - Android application to simply add links directly into your Shaarli[](.html) diff --git a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html index e27b113..067c682 100644 --- a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html +++ b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html @@ -4,31 +4,49 @@ - Shaarli - Copy an existing installation over SSH and serve it locally + Shaarli – Copy an existing installation over SSH and serve it locally - +
                                                  • +
                                                  • Docker
                                                  • +
                                                  • Plugin list
                                                  • Usage
                                                  • How To
                                                  • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                  • Directory structure
                                                  • 3rd party libraries
                                                  • Plugin System
                                                  • +
                                                  • Release Shaarli
                                                  • Security
                                                  • Static analysis
                                                  • Theming
                                                  • @@ -77,7 +104,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                                    Copy an existing installation over SSH and serve it locally

                                                    Example bash script:

                                                    -
                                                    #!/bin/bash
                                                    +
                                                    #!/bin/bash
                                                     #Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
                                                     #Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
                                                     #Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
                                                    @@ -124,9 +151,9 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                     
                                                     ##### MAIN #################
                                                     
                                                    -_main
                                                    +_main

                                                    This outputs:

                                                    -
                                                    $ ./local-shaarli.sh
                                                    +
                                                    $ ./local-shaarli.sh
                                                     PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
                                                     Listening on http://localhost:7431
                                                     Document root is /home/user/local-shaarli/shaarli
                                                    @@ -134,6 +161,6 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                     
                                                     [Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /[](.html)
                                                     [Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html[](.html)
                                                    -[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...[](.html)
                                                    +[Mon Sep 1 21:56:37 2014] ::1:57881 [200]: /...[](.html)
                                                    diff --git a/doc/Create-and-serve-multiple-Shaarlis-(farm).html b/doc/Create-and-serve-multiple-Shaarlis-(farm).html new file mode 100644 index 0000000..d3da1a2 --- /dev/null +++ b/doc/Create-and-serve-multiple-Shaarlis-(farm).html @@ -0,0 +1,160 @@ + + + + + + + Shaarli – Create and serve multiple Shaarlis (farm) + + + + + + + +

                                                    Create and serve multiple Shaarlis (farm)

                                                    +

                                                    Example bash script (creates multiple shaarli instances and generates an HTML index of them)

                                                    +
                                                    #!/bin/bash
                                                    +set -o errexit
                                                    +set -o nounset
                                                    +
                                                    +#config
                                                    +shaarli_base_dir='/var/www/shaarli'
                                                    +accounts='bob john whatever username'
                                                    +shaarli_repo_url='https://github.com/shaarli/Shaarli'
                                                    +ref="master"
                                                    +
                                                    +#clone multiple shaarli instances
                                                    +if [ ! -d "$shaarli_base_dir" ]; then mkdir "$shaarli_base_dir"; fi[](.html)
                                                    +   
                                                    +for account in $accounts; do
                                                    +    if [ -d "$shaarli_base_dir/$account" ];[](.html)
                                                    +    then echo "[info] account $account already exists, skipping";[](.html)
                                                    +    else echo "[info] creating new account $account ..."; git clone --quiet "$shaarli_repo_url" -b "$ref" "$shaarli_base_dir/$account"; fi[](.html)
                                                    +done
                                                    +
                                                    +#generate html index of shaarlis
                                                    +htmlhead='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
                                                    +<!-- Minimal html template thanks to http://www.sitepoint.com/a-minimal-html-document/ -->
                                                    +<html lang="en">
                                                    +    <head>
                                                    +        <meta http-equiv="content-type" content="text/html; charset=utf-8">
                                                    +        <title>My Shaarli farm</title>
                                                    +        <style>body {font-family: "Open Sans"}</style>
                                                    +    </head>
                                                    +    <body>
                                                    +    <div>
                                                    +    <h1>My Shaarli farm</h1>
                                                    +    <ul style="list-style-type: none;">'
                                                    +
                                                    +accountlinks=''
                                                    +    
                                                    +htmlfooter='
                                                    +    </ul>
                                                    +    </div>
                                                    +    </body>
                                                    +</html>'    
                                                    +    
                                                    +
                                                    +
                                                    +for account in $accounts; do accountlinks="$accountlinks\n<li><a href=\"$account\">$account</a></li>"; done
                                                    +if [ -d "$shaarli_base_dir/index.html" ]; then echo "[removing old index.html]"; rm "$shaarli_base_dir/index.html" ]; fi[](.html)
                                                    +echo "[info] generating new index of shaarlis"[](.html)
                                                    +echo -e "$htmlhead $accountlinks $htmlfooter" > "$shaarli_base_dir/index.html"
                                                    +echo '[info] done.'[](.html)
                                                    +echo "[info] list of accounts: $accounts"[](.html)
                                                    +echo "[info] contents of $shaarli_base_dir:"[](.html)
                                                    +tree -a -L 1 "$shaarli_base_dir"
                                                    +

                                                    This script just serves as an example. More precise or complex (applying custom configuration, etc) automation is possible using configuration management software like Ansible

                                                    + + diff --git a/doc/Create-and-serve-multiple-Shaarlis-(farm).md b/doc/Create-and-serve-multiple-Shaarlis-(farm).md new file mode 100644 index 0000000..a71f652 --- /dev/null +++ b/doc/Create-and-serve-multiple-Shaarlis-(farm).md @@ -0,0 +1,58 @@ +#Create and serve multiple Shaarlis (farm) +Example bash script (creates multiple shaarli instances and generates an HTML index of them) + +```bash +#!/bin/bash +set -o errexit +set -o nounset + +#config +shaarli_base_dir='/var/www/shaarli' +accounts='bob john whatever username' +shaarli_repo_url='https://github.com/shaarli/Shaarli' +ref="master" + +#clone multiple shaarli instances +if [ ! -d "$shaarli_base_dir" ]; then mkdir "$shaarli_base_dir"; fi[](.html) + +for account in $accounts; do + if [ -d "$shaarli_base_dir/$account" ];[](.html) + then echo "[info] account $account already exists, skipping";[](.html) + else echo "[info] creating new account $account ..."; git clone --quiet "$shaarli_repo_url" -b "$ref" "$shaarli_base_dir/$account"; fi[](.html) +done + +#generate html index of shaarlis +htmlhead=' + + + + + My Shaarli farm + + + +
                                                    +

                                                    My Shaarli farm

                                                    +
                                                      ' + +accountlinks='' + +htmlfooter=' +
                                                    +
                                                    + +' + + + +for account in $accounts; do accountlinks="$accountlinks\n
                                                  • $account
                                                  • "; done +if [ -d "$shaarli_base_dir/index.html" ]; then echo "[removing old index.html]"; rm "$shaarli_base_dir/index.html" ]; fi[](.html) +echo "[info] generating new index of shaarlis"[](.html) +echo -e "$htmlhead $accountlinks $htmlfooter" > "$shaarli_base_dir/index.html" +echo '[info] done.'[](.html) +echo "[info] list of accounts: $accounts"[](.html) +echo "[info] contents of $shaarli_base_dir:"[](.html) +tree -a -L 1 "$shaarli_base_dir" +``` + +This script just serves as an example. More precise or complex (applying custom configuration, etc) automation is possible using configuration management software like [Ansible](https://www.ansible.com/)[](.html) diff --git a/doc/Datastore-hacks.html b/doc/Datastore-hacks.html index 0bf2a49..6273fae 100644 --- a/doc/Datastore-hacks.html +++ b/doc/Datastore-hacks.html @@ -4,31 +4,49 @@ - Shaarli - Datastore hacks + Shaarli – Datastore hacks - +
                                                • +
                                                • Docker
                                                • +
                                                • Plugin list
                                                • Usage
                                                • How To
                                                • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                • Directory structure
                                                • 3rd party libraries
                                                • Plugin System
                                                • +
                                                • Release Shaarli
                                                • Security
                                                • Static analysis
                                                • Theming
                                                • @@ -78,17 +105,19 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                                  Datastore hacks

                                                  Decode datastore content

                                                  To display the array representing the data saved in data/datastore.php, use the following snippet:

                                                  -
                                                  $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
                                                  +
                                                  $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
                                                   $out = unserialize(gzinflate(base64_decode($data)));
                                                   echo "<pre>"; // Pretty printing is love, pretty printing is life
                                                   print_r($out);
                                                   echo "</pre>";
                                                  -exit;
                                                  +exit;

                                                  This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation).

                                                  +

                                                  Alternatively, you can transform to JSON format (and pretty-print if you have jq installed):

                                                  +
                                                  php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace("!.*/\* (.+) \*/.*!", "$1", file_get_contents("data/datastore.php")))))));' | jq .
                                                  • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
                                                  • -
                                                  • Remove type="hidden" from this line
                                                  • +
                                                  • Replace type="hidden" with type="text" from this line
                                                  • A new date/time field becomes available in the edit/new link dialog.
                                                  • You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
                                                  diff --git a/doc/Datastore-hacks.md b/doc/Datastore-hacks.md index 33aa222..ef6f6d5 100644 --- a/doc/Datastore-hacks.md +++ b/doc/Datastore-hacks.md @@ -12,8 +12,13 @@ exit; ``` This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation). +Alternatively, you can transform to JSON format (and pretty-print if you have `jq` installed): +``` +php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace("!.*/\* (.+) \*/.*!", "$1", file_get_contents("data/datastore.php")))))));' | jq . +``` + ### Changing the timestamp for a link * Look for `` in `tpl/editlink.tpl` (line 14) -* Remove `type="hidden"` from this line +* Replace `type="hidden"` with `type="text"` from this line * A new date/time field becomes available in the edit/new link dialog. * You can set the timestamp manually by entering it in the format `YYYMMDD_HHMMS`. diff --git a/doc/Development.html b/doc/Development.html index 88cf585..f7ada07 100644 --- a/doc/Development.html +++ b/doc/Development.html @@ -4,12 +4,12 @@ - Shaarli - Development + Shaarli – Development - +
                                              • +
                                              • Docker
                                              • +
                                              • Plugin list
                                              • Usage
                                              • How To
                                              • @@ -43,6 +51,7 @@
                                              • Directory structure
                                              • 3rd party libraries
                                              • Plugin System
                                              • +
                                              • Release Shaarli
                                              • Security
                                              • Static analysis
                                              • Theming
                                              • @@ -92,7 +101,7 @@

                                              After all jobs have finished, Travis returns the results to GitHub:

                                                -
                                              • a status icon represents the result for the master branch: (https://api.travis-ci.org/shaarli/Shaarli.svg)
                                              • +
                                              • a status icon represents the result for the master branch: (https://api.travis-ci.org/shaarli/Shaarli.svg)
                                              • Pull Requests are updated with the Travis result
                                                • Green: all tests have passed
                                                • diff --git a/doc/Directory-structure.html b/doc/Directory-structure.html index 7015923..2369950 100644 --- a/doc/Directory-structure.html +++ b/doc/Directory-structure.html @@ -4,31 +4,49 @@ - Shaarli - Directory structure + Shaarli – Directory structure - +
                                              • +
                                              • Docker
                                              • +
                                              • Plugin list
                                              • Usage
                                              • How To
                                              • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                              • Directory structure
                                              • 3rd party libraries
                                              • Plugin System
                                              • +
                                              • Release Shaarli
                                              • Security
                                              • Static analysis
                                              • Theming
                                              • @@ -77,7 +104,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                                Directory structure

                                                Here is the directory structure of Shaarli and the purpose of the different files:

                                                -
                                                    index.php        # Main program
                                                +
                                                    index.php        # Main program
                                                     application/     # Shaarli classes
                                                         ├── LinkDB.php
                                                         └── Utils.php
                                                @@ -104,6 +131,6 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                                     cache/           # thumbnails cache
                                                                      # This directory is automatically created. You can erase it anytime you want.
                                                     tmp/             # Temporary directory for compiled RainTPL templates.
                                                -                     # This directory is automatically created. You can erase it anytime you want.
                                                + # This directory is automatically created. You can erase it anytime you want.
                                                diff --git a/doc/Docker.html b/doc/Docker.html new file mode 100644 index 0000000..ab95da3 --- /dev/null +++ b/doc/Docker.html @@ -0,0 +1,245 @@ + + + + + + + Shaarli – Docker + + + + + + + +

                                                Docker

                                                + +

                                                Docker usage

                                                +

                                                Basics

                                                +

                                                Install Docker, by following the instructions relevant
                                                +to your OS / distribution, and start the service.

                                                +

                                                Search an image on DockerHub

                                                +
                                                $ docker search debian
                                                +
                                                +NAME            DESCRIPTION                                     STARS   OFFICIAL   AUTOMATED
                                                +ubuntu          Ubuntu is a Debian-based Linux operating s...   2065    [OK][](.html)
                                                +debian          Debian is a Linux distribution that's comp...   603     [OK][](.html)
                                                +google/debian                                                   47                 [OK][](.html)
                                                +

                                                Show available tags for a repository

                                                +
                                                $ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool
                                                +
                                                +% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                +Dload  Upload   Total   Spent    Left  Speed
                                                +100  1283    0  1283    0     0    433      0 --:--:--  0:00:02 --:--:--   433
                                                +

                                                Sample output:

                                                +
                                                [[](.html)
                                                +    {
                                                +        "layer": "85a02782",
                                                +        "name": "stretch"
                                                +    },
                                                +    {
                                                +        "layer": "59abecbc",
                                                +        "name": "testing"
                                                +    },
                                                +    {
                                                +        "layer": "bf0fd686",
                                                +        "name": "unstable"
                                                +    },
                                                +    {
                                                +        "layer": "60c52dbe",
                                                +        "name": "wheezy"
                                                +    },
                                                +    {
                                                +        "layer": "c5b806fe",
                                                +        "name": "wheezy-backports"
                                                +    }
                                                +]
                                                +

                                                Pull an image from DockerHub

                                                +
                                                $ docker pull repository[:tag][](.html)
                                                +
                                                +$ docker pull debian:wheezy
                                                +wheezy: Pulling from debian
                                                +4c8cbfd2973e: Pull complete
                                                +60c52dbe9d91: Pull complete
                                                +Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe
                                                +Status: Downloaded newer image for debian:wheezy
                                                +

                                                Get and run a Shaarli image

                                                +

                                                DockerHub repository

                                                +

                                                The images can be found in the shaarli/shaarli
                                                +repository.

                                                +

                                                Available image tags

                                                +
                                                  +
                                                • latest: master branch (tarball release)
                                                • +
                                                • stable: stable branch (tarball release)
                                                • +
                                                • dev: master branch (Git clone)
                                                • +
                                                +

                                                All images rely on:

                                                + +

                                                Download from DockerHub

                                                +
                                                $ docker pull shaarli/shaarli
                                                +latest: Pulling from shaarli/shaarli
                                                +32716d9fcddb: Pull complete
                                                +84899d045435: Pull complete
                                                +4b6ad7444763: Pull complete
                                                +e0345ef7a3e0: Pull complete
                                                +5c1dd344094f: Pull complete
                                                +6422305a200b: Pull complete
                                                +7d63f861dbef: Pull complete
                                                +3eb97210645c: Pull complete
                                                +869319d746ff: Already exists
                                                +869319d746ff: Pulling fs layer
                                                +902b87aaaec9: Already exists
                                                +Digest: sha256:f836b4627b958b3f83f59c332f22f02fcd495ace3056f2be2c4912bd8704cc98
                                                +Status: Downloaded newer image for shaarli/shaarli:latest
                                                +

                                                Create and start a new container from the image

                                                +
                                                # map the host's :8000 port to the container's :80 port
                                                +$ docker create -p 8000:80 shaarli/shaarli
                                                +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
                                                +
                                                +# launch the container in the background
                                                +$ docker start d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
                                                +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
                                                +
                                                +# list active containers
                                                +$ docker ps
                                                +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
                                                +d40b7af693d6  shaarli/shaarli  /usr/bin/supervisor  15 seconds ago  Up 4 seconds  0.0.0.0:8000->80/tcp  backstabbing_galileo
                                                +

                                                Stop and destroy a container

                                                +
                                                $ docker stop backstabbing_galileo  # those docker guys are really rude to physicists!
                                                +backstabbing_galileo
                                                +
                                                +# check the container is stopped
                                                +$ docker ps
                                                +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
                                                +
                                                +# list ALL containers
                                                +$ docker ps -a
                                                +CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                      PORTS               NAMES
                                                +d40b7af693d6        shaarli/shaarli     /usr/bin/supervisor   5 minutes ago       Exited (0) 48 seconds ago                       backstabbing_galileo
                                                +
                                                +# destroy the container
                                                +$ docker rm backstabbing_galileo  # let's put an end to these barbarian practices
                                                +backstabbing_galileo
                                                +
                                                +$ docker ps -a
                                                +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
                                                +

                                                Resources

                                                +

                                                Docker

                                                + +

                                                DockerHub

                                                + +

                                                Service management

                                                + + + diff --git a/doc/Docker.md b/doc/Docker.md new file mode 100644 index 0000000..1faa790 --- /dev/null +++ b/doc/Docker.md @@ -0,0 +1,157 @@ +#Docker +- [Docker usage](#docker-usage)[](.html) +- [Get and run a Shaarli image](#get-and-run-a-shaarli-image)[](.html) +- [Resources](#resources)[](.html) + +## Docker usage +### Basics +Install [Docker](https://www.docker.com/), by following the instructions relevant[](.html) +to your OS / distribution, and start the service. + +#### Search an image on [DockerHub](https://hub.docker.com/)[](.html) + +```bash +$ docker search debian + +NAME DESCRIPTION STARS OFFICIAL AUTOMATED +ubuntu Ubuntu is a Debian-based Linux operating s... 2065 [OK][](.html) +debian Debian is a Linux distribution that's comp... 603 [OK][](.html) +google/debian 47 [OK][](.html) +``` + +#### Show available tags for a repository +```bash +$ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool + +% Total % Received % Xferd Average Speed Time Time Time Current +Dload Upload Total Spent Left Speed +100 1283 0 1283 0 0 433 0 --:--:-- 0:00:02 --:--:-- 433 +``` + +Sample output: +```json +[[](.html) + { + "layer": "85a02782", + "name": "stretch" + }, + { + "layer": "59abecbc", + "name": "testing" + }, + { + "layer": "bf0fd686", + "name": "unstable" + }, + { + "layer": "60c52dbe", + "name": "wheezy" + }, + { + "layer": "c5b806fe", + "name": "wheezy-backports" + } +] + +``` + +#### Pull an image from DockerHub +```bash +$ docker pull repository[:tag][](.html) + +$ docker pull debian:wheezy +wheezy: Pulling from debian +4c8cbfd2973e: Pull complete +60c52dbe9d91: Pull complete +Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe +Status: Downloaded newer image for debian:wheezy +``` + +## Get and run a Shaarli image +### DockerHub repository +The images can be found in the [`shaarli/shaarli`](https://hub.docker.com/r/shaarli/shaarli/)[](.html) +repository. + +### Available image tags +- `latest`: master branch (tarball release) +- `stable`: stable branch (tarball release) +- `dev`: master branch (Git clone) + +All images rely on: +- [Debian 8 Jessie](https://hub.docker.com/_/debian/)[](.html) +- [PHP5-FPM](http://php-fpm.org/)[](.html) +- [Nginx](http://nginx.org/)[](.html) + +### Download from DockerHub +```bash +$ docker pull shaarli/shaarli +latest: Pulling from shaarli/shaarli +32716d9fcddb: Pull complete +84899d045435: Pull complete +4b6ad7444763: Pull complete +e0345ef7a3e0: Pull complete +5c1dd344094f: Pull complete +6422305a200b: Pull complete +7d63f861dbef: Pull complete +3eb97210645c: Pull complete +869319d746ff: Already exists +869319d746ff: Pulling fs layer +902b87aaaec9: Already exists +Digest: sha256:f836b4627b958b3f83f59c332f22f02fcd495ace3056f2be2c4912bd8704cc98 +Status: Downloaded newer image for shaarli/shaarli:latest +``` + +### Create and start a new container from the image +```bash +# map the host's :8000 port to the container's :80 port +$ docker create -p 8000:80 shaarli/shaarli +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101 + +# launch the container in the background +$ docker start d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101 +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101 + +# list active containers +$ docker ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +d40b7af693d6 shaarli/shaarli /usr/bin/supervisor 15 seconds ago Up 4 seconds 0.0.0.0:8000->80/tcp backstabbing_galileo +``` + +### Stop and destroy a container +```bash +$ docker stop backstabbing_galileo # those docker guys are really rude to physicists! +backstabbing_galileo + +# check the container is stopped +$ docker ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES + +# list ALL containers +$ docker ps -a +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +d40b7af693d6 shaarli/shaarli /usr/bin/supervisor 5 minutes ago Exited (0) 48 seconds ago backstabbing_galileo + +# destroy the container +$ docker rm backstabbing_galileo # let's put an end to these barbarian practices +backstabbing_galileo + +$ docker ps -a +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +``` + +## Resources +### Docker +- [Where are Docker images stored?](http://blog.thoward37.me/articles/where-are-docker-images-stored/)[](.html) +- [Dockerfile reference](https://docs.docker.com/reference/builder/)[](.html) +- [Dockerfile best practices](https://docs.docker.com/articles/dockerfile_best-practices/)[](.html) +- [Volumes](https://docs.docker.com/userguide/dockervolumes/)[](.html) + +### DockerHub +- [Repositories](https://docs.docker.com/userguide/dockerrepos/)[](.html) +- [Teams and organizations](https://docs.docker.com/docker-hub/orgs/)[](.html) +- [GitHub automated build](https://docs.docker.com/docker-hub/github/)[](.html) + +### Service management +- [Using supervisord](https://docs.docker.com/articles/using_supervisord/)[](.html) +- [Nginx in the foreground](http://nginx.org/en/docs/ngx_core_module.html#daemon)[](.html) +- [supervisord](http://supervisord.org/)[](.html) diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html index 7d7fe96..aaafbfe 100644 --- a/doc/Download-CSS-styles-from-an-OPML-list.html +++ b/doc/Download-CSS-styles-from-an-OPML-list.html @@ -4,31 +4,49 @@ - Shaarli - Download CSS styles from an OPML list + Shaarli – Download CSS styles from an OPML list - +
                                            • +
                                            • Docker
                                            • +
                                            • Plugin list
                                            • Usage
                                            • How To
                                            • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                            • Directory structure
                                            • 3rd party libraries
                                            • Plugin System
                                            • +
                                            • Release Shaarli
                                            • Security
                                            • Static analysis
                                            • Theming
                                            • @@ -78,7 +105,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                              Download CSS styles from an OPML list

                                              Download CSS styles for shaarlis listed in an opml file

                                              Example php script:

                                              -
                                              <!---- ?php -->
                                              +
                                              <!---- ?php -->
                                               <!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
                                               <!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
                                               
                                              @@ -226,6 +253,6 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                               $knownStyles = findKnownStyles();
                                               copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
                                               
                                              -<!--- ? ---->
                                              +<!--- ? ---->
                                              diff --git a/doc/Download.html b/doc/Download.html index 5f39c70..6d668e8 100644 --- a/doc/Download.html +++ b/doc/Download.html @@ -4,31 +4,49 @@ - Shaarli - Download + Shaarli – Download - +
                                          • +
                                          • Docker
                                          • +
                                          • Plugin list
                                          • Usage
                                          • How To
                                          • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                          • Directory structure
                                          • 3rd party libraries
                                          • Plugin System
                                          • +
                                          • Release Shaarli
                                          • Security
                                          • Static analysis
                                          • Theming
                                          • @@ -80,18 +107,18 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                            Latest stable revision

                                            This revision has been released and tested.

                                            -
                                            $ git clone https://github.com/shaarli/Shaarli.git -b stable shaarli
                                            +
                                            $ git clone https://github.com/shaarli/Shaarli.git -b stable shaarli

                                            Download as an archive

                                            -
                                            $ wget https://github.com/shaarli/Shaarli/archive/stable.zip
                                            +
                                            $ wget https://github.com/shaarli/Shaarli/archive/stable.zip
                                             $ unzip stable.zip
                                            -$ mv Shaarli-stable shaarli
                                            +$ mv Shaarli-stable shaarli

                                            Tarballs are also available:

                                            -
                                            $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
                                            +
                                            $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
                                             $ tar xvf stable.tar.gz
                                            -$ mv Shaarli-stable shaarli
                                            +$ mv Shaarli-stable shaarli

                                            Development (mainline)

                                            Use at your own risk!

                                            To get the latest changes:

                                            -
                                            $ git clone https://github.com/shaarli/Shaarli.git shaarli
                                            +
                                            $ git clone https://github.com/shaarli/Shaarli.git shaarli
                                            diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html index 388ff96..d6f9a92 100644 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -4,12 +4,12 @@ - Shaarli - Example patch add new via field for links + Shaarli – Example patch add new via field for links - +
                                        • +
                                        • Docker
                                        • +
                                        • Plugin list
                                        • Usage
                                        • How To
                                        • @@ -43,6 +51,7 @@
                                        • Directory structure
                                        • 3rd party libraries
                                        • Plugin System
                                        • +
                                        • Release Shaarli
                                        • Security
                                        • Static analysis
                                        • Theming
                                        • diff --git a/doc/FAQ.html b/doc/FAQ.html index 33eb7c6..72343b3 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -4,12 +4,12 @@ - Shaarli - FAQ + Shaarli – FAQ - +
                                        +
                                      • Docker
                                      • +
                                      • Plugin list
                                      • Usage
                                      • How To
                                      • @@ -43,6 +51,7 @@
                                      • Directory structure
                                      • 3rd party libraries
                                      • Plugin System
                                      • +
                                      • Release Shaarli
                                      • Security
                                      • Static analysis
                                      • Theming
                                      • diff --git a/doc/Firefox-share.html b/doc/Firefox-share.html index 2943a86..0ae7060 100644 --- a/doc/Firefox-share.html +++ b/doc/Firefox-share.html @@ -4,12 +4,12 @@ - Shaarli - Firefox share + Shaarli – Firefox share - +
                                    • +
                                    • Docker
                                    • +
                                    • Plugin list
                                    • Usage
                                    • How To
                                    • @@ -43,6 +51,7 @@
                                    • Directory structure
                                    • 3rd party libraries
                                    • Plugin System
                                    • +
                                    • Release Shaarli
                                    • Security
                                    • Static analysis
                                    • Theming
                                    • @@ -69,6 +78,19 @@
                                    • When you are visiting a webpage you would like to share with Shaarli, click the Firefox Share button images/firefoxshare.png
                                    • You can edit your link before and after saving, just like the bookmarklet above.
                                    -

                                    |  | Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections. |
                                    |------|-------------------------------------------------------------------------------|

                                    + ++++ + + + + + + + + +
                                    Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections.
                                    diff --git a/doc/GnuPG-signature.html b/doc/GnuPG-signature.html index a1210b7..c187c99 100644 --- a/doc/GnuPG-signature.html +++ b/doc/GnuPG-signature.html @@ -4,31 +4,49 @@ - Shaarli - GnuPG signature + Shaarli – GnuPG signature - +
                                    @@ -39,18 +57,26 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                  • Download
                                  • Server requirements
                                  • Server configuration
                                  • +
                                  • Server security
                                  • +
                                  • Shaarli installation
                                  • Shaarli configuration
                                  • +
                                  • Plugin installation & configuration
                                • +
                                • Docker
                                • +
                                • Plugin list
                                • Usage
                                • How To
                                • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                • Directory structure
                                • 3rd party libraries
                                • Plugin System
                                • +
                                • Release Shaarli
                                • Security
                                • Static analysis
                                • Theming
                                • @@ -78,10 +105,13 @@ code > span.er { color: #ff0000; font-weight: bold; }

                                  GnuPG signature

                                  Introduction

                                  PGP and GPG

                                  -

                                  Gnu Privacy Guard (GnuPG) is an Open Source implementation of the Pretty Good [](.html)
                                  Privacy
                                  (OpenPGP) specification. Its main purposes are digital authentication,
                                  signature and encryption.

                                  +

                                  Gnu Privacy Guard (GnuPG) is an Open Source implementation of the Pretty Good [](.html)
                                  +Privacy
                                  (OpenPGP) specification. Its main purposes are digital authentication,
                                  +signature and encryption.

                                  It is often used by the FLOSS community to verify:

                                  Trust

                                  @@ -95,9 +125,12 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                • Web of trust

                                Generate a GPG key

                                -

                                See Generating a GPG key for Git tagging.

                                +

                                gpg - provide identity information

                                -
                                $ gpg --gen-key
                                +
                                $ gpg --gen-key
                                 
                                 gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.
                                 This is free software: you are free to change and redistribute it.
                                @@ -116,7 +149,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                 We need to generate a lot of random bytes. It is a good idea to perform
                                 some other action (type on the keyboard, move the mouse, utilize the
                                 disks) during the prime generation; this gives the random number
                                -generator a better chance to gain enough entropy.
                                +generator a better chance to gain enough entropy.

                                gpg - entropy interlude

                                At this point, you will:

                                  @@ -124,7 +157,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                • be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step may take some time

                                gpg - key creation confirmation

                                -
                                gpg: key A9D53A3E marked as ultimately trusted
                                +
                                gpg: key A9D53A3E marked as ultimately trusted
                                 public and secret key created and signed.
                                 
                                 gpg: checking the trustdb
                                @@ -133,69 +166,11 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                 pub   rsa2048/A9D53A3E 2015-07-31
                                       Key fingerprint = AF2A 5381 E54B 2FD2 14C4  A9A3 0E35 ACA4 A9D5 3A3E
                                 uid       [ultimate] Marvin the Paranoid Android <marvin@h2g2.net>[](.html)
                                -sub   rsa2048/8C0EACF1 2015-07-31
                                +sub rsa2048/8C0EACF1 2015-07-31

                                gpg - submit your public key to a PGP server (Optional)

                                -
                                $ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
                                -gpg: sending key A9D53A3E to hkp server pgp.mit.edu
                                +
                                $ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
                                +gpg: sending key A9D53A3E to hkp server pgp.mit.edu

                                Create and push a GPG-signed tag

                                -

                                See Git - Maintaining a project - Tagging your [](.html)
                                releases
                                .

                                -

                                Prerequisites

                                -

                                This guide assumes that you have:

                                -
                                  -
                                • a GPG key matching your GitHub authentication credentials -
                                    -
                                  • i.e., the email address identified by the GPG key is the same as the one in your ~/.gitconfig
                                  • -
                                • -
                                • a GitHub fork of Shaarli
                                • -
                                • a local clone of your Shaarli fork, with the following remotes: -
                                    -
                                  • origin pointing to your GitHub fork
                                  • -
                                  • upstream pointing to the main Shaarli repository
                                  • -
                                • -
                                • maintainer permissions on the main Shaarli repository (to push the signed tag)
                                • -
                                -

                                Bump Shaarli's version

                                -
                                $ cd /path/to/shaarli
                                -
                                -# create a new branch
                                -$ git fetch upstream
                                -$ git checkout upstream/master -b v0.5.0
                                -
                                -# bump the version number
                                -$ vim index.php shaarli_version.php
                                -
                                -# commit the changes
                                -$ git add index.php shaarli_version.php
                                -$ git commit -s -m "Bump version to v0.5.0"
                                -
                                -# push the commit on your GitHub fork
                                -$ git push origin v0.5.0
                                -

                                Create and merge a Pull Request

                                -

                                This one is pretty straightforward ;-)

                                -

                                Create and push a signed tag

                                -
                                # update your local copy
                                -$ git checkout master
                                -$ git fetch upstream
                                -$ git pull upstream master
                                -
                                -# create a signed tag
                                -$ git tag -s -m "Release v0.5.0" v0.5.0
                                -
                                -# push it to "upstream"
                                -$ git push --tags upstream
                                -

                                Verify a signed tag

                                -

                                v0.5.0 is the first GPG-signed tag pushed on the Community Shaarli.

                                -

                                Let's have a look at its signature!

                                -
                                $ cd /path/to/shaarli
                                -$ git fetch upstream
                                -
                                -# get the SHA1 reference of the tag
                                -$ git show-ref tags/v0.5.0
                                -f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
                                -
                                -# verify the tag signature information
                                -$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
                                -gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
                                -gpg: Good signature from "VirtualTam <virtualtam@flibidi.net>" [ultimate][](.html)
                                +

                                See Release Shaarli.

                                diff --git a/doc/GnuPG-signature.md b/doc/GnuPG-signature.md index e8dbdb1..b0028d5 100644 --- a/doc/GnuPG-signature.md +++ b/doc/GnuPG-signature.md @@ -20,7 +20,8 @@ Trust can be gained by having your key signed by other people (and signing their - [Web of trust](https://en.wikipedia.org/wiki/Web_of_trust)[](.html) ## Generate a GPG key -See [Generating a GPG key for Git tagging](http://stackoverflow.com/a/16725717).[](.html) +- [Generating a GPG key for Git tagging](http://stackoverflow.com/a/16725717) (StackOverflow)[](.html) +- [Generating a GPG key](https://help.github.com/articles/generating-a-gpg-key/) (GitHub)[](.html) ### gpg - provide identity information ```bash @@ -72,70 +73,5 @@ gpg: sending key A9D53A3E to hkp server pgp.mit.edu ``` ## Create and push a GPG-signed tag -See [Git - Maintaining a project - Tagging your [](.html) -releases](http://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#Tagging-Your-Releases). -### Prerequisites -This guide assumes that you have: -- a GPG key matching your GitHub authentication credentials - - i.e., the email address identified by the GPG key is the same as the one in your `~/.gitconfig` -- a GitHub fork of Shaarli -- a local clone of your Shaarli fork, with the following remotes: - - `origin` pointing to your GitHub fork - - `upstream` pointing to the main Shaarli repository -- maintainer permissions on the main Shaarli repository (to push the signed tag) - -### Bump Shaarli's version -```bash -$ cd /path/to/shaarli - -# create a new branch -$ git fetch upstream -$ git checkout upstream/master -b v0.5.0 - -# bump the version number -$ vim index.php shaarli_version.php - -# commit the changes -$ git add index.php shaarli_version.php -$ git commit -s -m "Bump version to v0.5.0" - -# push the commit on your GitHub fork -$ git push origin v0.5.0 -``` - -### Create and merge a Pull Request -This one is pretty straightforward ;-) - -### Create and push a signed tag -```bash -# update your local copy -$ git checkout master -$ git fetch upstream -$ git pull upstream master - -# create a signed tag -$ git tag -s -m "Release v0.5.0" v0.5.0 - -# push it to "upstream" -$ git push --tags upstream -``` - -### Verify a signed tag -[`v0.5.0`](https://github.com/shaarli/Shaarli/releases/tag/v0.5.0) is the first GPG-signed tag pushed on the Community Shaarli.[](.html) - -Let's have a look at its signature! - -```bash -$ cd /path/to/shaarli -$ git fetch upstream - -# get the SHA1 reference of the tag -$ git show-ref tags/v0.5.0 -f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0 - -# verify the tag signature information -$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1 -gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F -gpg: Good signature from "VirtualTam " [ultimate][](.html) -``` +See [Release Shaarli](Release-Shaarli.html). diff --git a/doc/Home.html b/doc/Home.html index 39d951c..827d256 100644 --- a/doc/Home.html +++ b/doc/Home.html @@ -4,12 +4,12 @@ - Shaarli - Home + Shaarli – Home - +
                                @@ -20,18 +20,26 @@
                              • Download
                              • Server requirements
                              • Server configuration
                              • +
                              • Server security
                              • +
                              • Shaarli installation
                              • Shaarli configuration
                              • +
                              • Plugin installation & configuration
                            • +
                            • Docker
                            • +
                            • Plugin list
                            • Usage
                            • How To
                            • @@ -43,6 +51,7 @@
                            • Directory structure
                            • 3rd party libraries
                            • Plugin System
                            • +
                            • Release Shaarli
                            • Security
                            • Static analysis
                            • Theming
                            • @@ -61,7 +70,7 @@

                              Welcome to the Shaarli wiki

                              Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli.

                              For general info, read the README.

                              -

                              If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion or read the current issues. If you've found a bug, please create a new issue.

                              +

                              If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion (archive) or read the current issues. If you've found a bug, please create a new issue.

                              If you would like a feature added to Shaarli, check the issues labeled feature, enhancement, and plugin.

                              Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the doc/ directory of your Shaarli installation.

                              diff --git a/doc/Home.md b/doc/Home.md index a824d98..38413f2 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -7,7 +7,7 @@ Here you can find some info on how to use, configure, tweak and solve problems w For general info, read the [README](https://github.com/shaarli/Shaarli/blob/master/README.md).[](.html) -If you have any questions or ideas, please join the [chat](https://gitter.im/shaarli/Shaarli) (also reachable via [IRC](https://irc.gitter.im/)), post them in our [general discussion](https://github.com/shaarli/Shaarli/issues/44) or read the current [issues](https://github.com/shaarli/Shaarli/issues). If you've found a bug, please create a [new issue](https://github.com/shaarli/Shaarli/issues/new).[](.html) +If you have any questions or ideas, please join the [chat](https://gitter.im/shaarli/Shaarli) (also reachable via [IRC](https://irc.gitter.im/)), post them in our [general discussion](https://github.com/shaarli/Shaarli/issues/308) ([archive](https://github.com/shaarli/Shaarli/issues/44)) or read the current [issues](https://github.com/shaarli/Shaarli/issues). If you've found a bug, please create a [new issue](https://github.com/shaarli/Shaarli/issues/new).[](.html) If you would like a feature added to Shaarli, check the issues labeled [`feature`](https://github.com/shaarli/Shaarli/labels/feature), [`enhancement`](https://github.com/shaarli/Shaarli/labels/enhancement), and [`plugin`](https://github.com/shaarli/Shaarli/labels/plugin).[](.html) diff --git a/doc/Plugin-System.html b/doc/Plugin-System.html index cb1cb74..2a660c4 100644 --- a/doc/Plugin-System.html +++ b/doc/Plugin-System.html @@ -4,31 +4,49 @@ - Shaarli - Plugin System + Shaarli – Plugin System - +
                          • +
                          • Docker
                          • +
                          • Plugin list
                          • Usage
                          • How To
                          • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                          • Directory structure
                          • 3rd party libraries
                          • Plugin System
                          • +
                          • Release Shaarli
                          • Security
                          • Static analysis
                          • Theming
                          • @@ -77,32 +104,11 @@ code > span.er { color: #ff0000; font-weight: bold; }

                            Plugin System

                            -

                            Note: Plugin current status - in developpement (not merged into master).

                            +

                            Note: Plugin current status - in development (not merged into master).

                            -

                            I am a user. Plugin User Guide.

                            -

                            I am a developper. Developper API.

                            +

                            I am a developer. Developer API.

                            I am a template designer. Guide for template designer.

                            -

                            Plugin User Guide

                            -

                            Manage plugins

                            -

                            In config.php, change $GLOBALS'config'['ENABLED_PLUGINS'] array:

                            -
                            $GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html)
                            -

                            Full list:

                            -
                            $GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html)
                            -    'qrcode', 'archiveorg', 'readityourself', 'playvideos',
                            -    'wallabag', 'markdown', 'addlink_toolbar',
                            -);
                            -

                            List of plugins

                            -

                            Plugin maintained by the community:

                            -
                              -
                            • Archive.org - add a clickable icon to every link to archive.org.
                            • -
                            • Addlink in toolbar - add a field to paste new links URL in toolbar.
                            • -
                            • Markdown - write and display Shaare in Markdown.
                            • -
                            • Play videos - popup to play all videos displayed in linklist.
                            • -
                            • QRCode - add a clickable icon generating a QRCode for every link.
                            • -
                            • ReadItYourself - add a clickable icon for ReadItYourself.
                            • -
                            • Wallabag - add a clickable icon for Wallabag.
                            • -
                            -

                            Developper API

                            +

                            Developer API

                            What can I do with plugins?

                            The plugin system let you:

                              @@ -134,72 +140,86 @@ code > span.er { color: #ff0000; font-weight: bold; }

                              Template placeholders are displayed in template in specific places.

                              RainTPL displays every element contained in the placeholder's array. These element can be added by plugins.

                              For example, let's add a value in the placeholder top_placeholder which is displayed at the top of my page:

                              -
                              $data['top_placeholder'[] = 'My content';](]-=-'My-content';.html)
                              +
                              $data['top_placeholder'[] = 'My content';](]-=-'My-content';.html)
                               # OR
                               array_push($data['top_placeholder'], 'My', 'content');[](.html)
                               
                              -return $data;
                              +return $data;

                              Data manipulation

                              When a page is displayed, every variable send to the template engine is passed to plugins before that in $data.

                              The data contained by this array can be altered before template rendering.

                              For exemple, in linklist, it is possible to alter every title:

                              -
                              // mind the reference if you want $data to be altered
                              +
                              // mind the reference if you want $data to be altered
                               foreach ($data['links'] as &$value) {[](.html)
                                   // String reverse every title.
                                   $value['title'] = strrev($value['title']);[](.html)
                               }
                               
                              -return $data;
                              +return $data;
                              +

                              Metadata

                              +

                              Every plugin needs a <plugin_name>.meta file, which is in fact an .ini file (KEY="VALUE"), to be listed in plugin administration.

                              +

                              Each file contain two keys:

                              +
                                +
                              • description: plugin description
                              • +
                              • parameters: user parameter names, separated by a ;.
                              • +
                              +
                              +

                              Note: In PHP, parse_ini_file() seems to want strings to be between by quotes " in the ini file.

                              +

                              It's not working!

                              Use demo_plugin as a functional example. It covers most of the plugin system features.

                              If it's still not working, please open an issue.

                              Hooks

                              - +
                              ++++ - + - + - + - + - + - + - + - + - + - + - + @@ -393,6 +413,20 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • tags
                            • Guide for template designer

                              +

                              Plugin administration

                              +

                              Your theme must include a plugin administration page: pluginsadmin.html.

                              +
                              +

                              Note: repo's template link needs to be added when the PR is merged.

                              +
                              +

                              Use the default one as an example.

                              +

                              Aside from classic RainTPL loops, plugins order is handle by JavaScript. You can just include plugin_admin.js, only if:

                              +
                                +
                              • you're using a table.
                              • +
                              • you call orderUp() and orderUp() onclick on arrows.
                              • +
                              • you add data-line and data-order to your rows.
                              • +
                              +

                              Otherwise, you can use your own JS as long as this field is send by the form:

                              +

                              Placeholder system

                              In order to make plugins work with every custom themes, you need to add variable placeholder in your templates.

                              It's a RainTPL loop like this:

                              @@ -406,96 +440,104 @@ code > span.er { color: #ff0000; font-weight: bold; }
                              {loop="$plugins_header.buttons_toolbar"}
                                   {$value}
                               {/loop}
                              +

                              At the end of file, before clearing floating blocks:

                              +
                              {if="!empty($plugin_errors) && isLoggedIn()"}
                              +    <ul class="errors">
                              +        {loop="plugin_errors"}
                              +            <li>{$value}</li>
                              +        {/loop}
                              +    </ul>
                              +{/if}

                              includes.html

                              At the end of the file:

                              -
                              {loop="$plugins_includes.css_files"}
                              +
                              {loop="$plugins_includes.css_files"}
                               <link type="text/css" rel="stylesheet" href="{$value}#"/>
                              -{/loop}
                              +{/loop}

                              page.footer.html

                              At the end of your footer notes:

                              -
                              {loop="$plugins_footer.text"}
                              +
                              {loop="$plugins_footer.text"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              At the end of file:

                              -
                              {loop="$plugins_footer.js_files"}
                              +
                              {loop="$plugins_footer.js_files"}
                                    <script src="{$value}#"></script>
                              -{/loop}
                              +{/loop}

                              linklist.html

                              After search fields:

                              -
                              {loop="$plugins_header.fields_toolbar"}
                              +
                              {loop="$plugins_header.fields_toolbar"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              Before displaying the link list (after paging):

                              -
                              {loop="$plugin_start_zone"}
                              +
                              {loop="$plugin_start_zone"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              For every links (icons):

                              -
                              {loop="$value.link_plugin"}
                              +
                              {loop="$value.link_plugin"}
                                   <span>{$value}</span>
                              -{/loop}
                              +{/loop}

                              Before end paging:

                              -
                              {loop="$plugin_end_zone"}
                              +
                              {loop="$plugin_end_zone"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              linklist.paging.html

                              After the "private only" icon:

                              -
                              {loop="$action_plugin"}
                              +
                              {loop="$action_plugin"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              editlink.html

                              After tags field:

                              -
                              {loop="$edit_link_plugin"}
                              +
                              {loop="$edit_link_plugin"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              tools.html

                              After the last tool:

                              -
                              {loop="$tools_plugin"}
                              +
                              {loop="$tools_plugin"}
                                    {$value}
                              -{/loop}
                              +{/loop}

                              picwall.html

                              Top:

                              -
                              <div id="plugin_zone_start_picwall" class="plugin_zone">
                              +
                              <div id="plugin_zone_start_picwall" class="plugin_zone">
                                   {loop="$plugin_start_zone"}
                                       {$value}
                                   {/loop}
                              -</div>
                              +</div>

                              Bottom:

                              -
                              <div id="plugin_zone_end_picwall" class="plugin_zone">
                              +
                              <div id="plugin_zone_end_picwall" class="plugin_zone">
                                   {loop="$plugin_end_zone"}
                                       {$value}
                                   {/loop}
                              -</div>
                              +</div>

                              tagcloud.html

                              Top:

                              -
                                 <div id="plugin_zone_start_tagcloud" class="plugin_zone">
                              +
                                 <div id="plugin_zone_start_tagcloud" class="plugin_zone">
                                       {loop="$plugin_start_zone"}
                                           {$value}
                                       {/loop}
                              -    </div>
                              + </div>

                              Bottom:

                              -
                                  <div id="plugin_zone_end_tagcloud" class="plugin_zone">
                              +
                                  <div id="plugin_zone_end_tagcloud" class="plugin_zone">
                                       {loop="$plugin_end_zone"}
                                           {$value}
                                       {/loop}
                              -    </div>
                              + </div>

                              daily.html

                              Top:

                              -
                              <div id="plugin_zone_start_picwall" class="plugin_zone">
                              +
                              <div id="plugin_zone_start_picwall" class="plugin_zone">
                                    {loop="$plugin_start_zone"}
                                        {$value}
                                    {/loop}
                              -</div>
                              +</div>

                              After every link:

                              -
                              <div class="dailyEntryFooter">
                              +
                              <div class="dailyEntryFooter">
                                    {loop="$link.link_plugin"}
                                         {$value}
                                    {/loop}
                              -</div>
                              +</div>

                              Bottom:

                              -
                              <div id="plugin_zone_end_picwall" class="plugin_zone">
                              +
                              <div id="plugin_zone_end_picwall" class="plugin_zone">
                                   {loop="$plugin_end_zone"}
                                       {$value}
                                   {/loop}
                              -</div>
                              +</div>
                              diff --git a/doc/Plugin-System.md b/doc/Plugin-System.md index 8cba666..8281e61 100644 --- a/doc/Plugin-System.md +++ b/doc/Plugin-System.md @@ -1,44 +1,11 @@ #Plugin System -> Note: Plugin current status - in developpement (not merged into master). +> Note: Plugin current status - in development (not merged into master). -[**I am a user.** Plugin User Guide.](#plugin-user-guide)[](.html) - -[**I am a developper.** Developper API.](#developper-api)[](.html) +[**I am a developer.** Developer API.](#developer-api)[](.html) [**I am a template designer.** Guide for template designer.](#guide-for-template-designer)[](.html) -## Plugin User Guide - -### Manage plugins - -In `config.php`, change $GLOBALS['config'['ENABLED_PLUGINS'] array:]('ENABLED_PLUGINS']-array:.html) - -```php -$GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html) -``` - -Full list: - -```php -$GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html) - 'qrcode', 'archiveorg', 'readityourself', 'playvideos', - 'wallabag', 'markdown', 'addlink_toolbar', -); -``` - -### List of plugins - -Plugin maintained by the community: - - * Archive.org - add a clickable icon to every link to archive.org. - * Addlink in toolbar - add a field to paste new links URL in toolbar. - * Markdown - write and display Shaare in Markdown. - * Play videos - popup to play all videos displayed in linklist. - * QRCode - add a clickable icon generating a QRCode for every link. - * ReadItYourself - add a clickable icon for ReadItYourself. - * Wallabag - add a clickable icon for Wallabag. - -## Developper API +## Developer API ### What can I do with plugins? @@ -123,6 +90,17 @@ foreach ($data['links'] as &$value) {[](.html) return $data; ``` +### Metadata + +Every plugin needs a `.meta` file, which is in fact an `.ini` file (`KEY="VALUE"`), to be listed in plugin administration. + +Each file contain two keys: + + * `description`: plugin description + * `parameters`: user parameter names, separated by a `;`. + +> Note: In PHP, `parse_ini_file()` seems to want strings to be between by quotes `"` in the ini file. + ### It's not working! Use `demo_plugin` as a functional example. It covers most of the plugin system features. @@ -399,6 +377,24 @@ Allow to alter the link being saved in the datastore. ## Guide for template designer +### Plugin administration + +Your theme must include a plugin administration page: `pluginsadmin.html`. + +> Note: repo's template link needs to be added when the PR is merged. + +Use the default one as an example. + +Aside from classic RainTPL loops, plugins order is handle by JavaScript. You can just include `plugin_admin.js`, only if: + + * you're using a table. + * you call orderUp() and orderUp() onclick on arrows. + * you add data-line and data-order to your rows. + +Otherwise, you can use your own JS as long as this field is send by the form: + + + ### Placeholder system In order to make plugins work with every custom themes, you need to add variable placeholder in your templates. @@ -421,6 +417,16 @@ At the end of the menu: {$value} {/loop} +At the end of file, before clearing floating blocks: + + {if="!empty($plugin_errors) && isLoggedIn()"} +
                                + {loop="plugin_errors"} +
                              • {$value}
                              • + {/loop} +
                              + {/if} + **includes.html** At the end of the file: diff --git a/doc/Plugin-installation-&-configuration.html b/doc/Plugin-installation-&-configuration.html new file mode 100644 index 0000000..3d2f970 --- /dev/null +++ b/doc/Plugin-installation-&-configuration.html @@ -0,0 +1,154 @@ + + + + + + + Shaarli – Plugin installation & configuration + + + + + + + +

                              Plugin installation & configuration

                              +

                              Plugin installation

                              +

                              There is a bunch of plugins shipped with Shaarli, where there is nothing to do to install them.

                              +

                              If you want to install a third party plugin:

                              +
                                +
                              • Download it.
                              • +
                              • Put it in the plugins directory in Shaarli's installation folder.
                              • +
                              • Make sure you put it correctly:
                              • +
                              +
                              | index.php
                              +| plugins/
                              +|---| custom_plugin/
                              +|   |---| custom_plugin.php
                              +|   |---| ...
                              +
                              +
                                +
                              • Make sure your webserver can read and write the files in your plugin folder.
                              • +
                              +

                              Plugin configuration

                              +

                              In Shaarli's administration page (Tools link), go to Plugin administration.

                              +

                              Here you can enable and disable all plugins available, and configure them.

                              +

                              administration screenshot

                              +

                              Plugin order

                              +

                              In the plugin administration page, you can move enabled plugins to the top or bottom of the list. The first plugins in the list will be processed first.

                              +

                              This is important in case plugins are depending on each other. Read plugins README details for more information.

                              +

                              Use case: The (non existent) plugin shaares_footer adds a footer to every shaare in Markdown syntax. It needs to be processed before (higher in the list) the Markdown plugin. Otherwise its syntax won't be translated in HTML.

                              +

                              File mode

                              +

                              Enabled plugin are stored in your config.php parameters file, under the array:

                              +
                              $GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html)
                              +

                              You can edit them manually here.
                              +Example:

                              +
                              $GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html)
                              +    'qrcode', 
                              +    'archiveorg',
                              +    'wallabag',
                              +    'markdown',
                              +);
                              +

                              Plugin usage

                              +

                              Usage of each plugin is documented in it's README file:

                              +
                                +
                              • addlink-toolbar: Adds the addlink input on the linklist page
                              • +
                              • archiveorg: For each link, add an Archive.org icon
                              • +
                              • markdown: Render shaare description with Markdown syntax.
                              • +
                              • playvideos: Add a button in the toolbar allowing to watch all videos.
                              • +
                              • qrcode: For each link, add a QRCode icon.
                              • +
                              • readityourself: For each link, add a ReadItYourself icon to save the shaared URL
                              • +
                              • wallabag: For each link, add a Wallabag icon to save it in your instance.
                              • +
                              + + diff --git a/doc/Plugin-installation-&-configuration.md b/doc/Plugin-installation-&-configuration.md new file mode 100644 index 0000000..c260aa1 --- /dev/null +++ b/doc/Plugin-installation-&-configuration.md @@ -0,0 +1,69 @@ +#Plugin installation & configuration +## Plugin installation + +There is a bunch of plugins shipped with Shaarli, where there is nothing to do to install them. + +If you want to install a third party plugin: + + * Download it. + * Put it in the `plugins` directory in Shaarli's installation folder. + * Make sure you put it correctly: + +``` +| index.php +| plugins/ +|---| custom_plugin/ +| |---| custom_plugin.php +| |---| ... + +``` + + * Make sure your webserver can read and write the files in your plugin folder. + +## Plugin configuration + +In Shaarli's administration page (`Tools` link), go to `Plugin administration`. + +Here you can enable and disable all plugins available, and configure them. + +![administration screenshot](https://camo.githubusercontent.com/5da68e191969007492ca0fbeb25f3b2357b748cc/687474703a2f2f692e696d6775722e636f6d2f766837544643712e706e67)[](.html) + +## Plugin order + +In the plugin administration page, you can move enabled plugins to the top or bottom of the list. The first plugins in the list will be processed first. + +This is important in case plugins are depending on each other. Read plugins README details for more information. + +**Use case**: The (non existent) plugin `shaares_footer` adds a footer to every shaare in Markdown syntax. It needs to be processed *before* (higher in the list) the Markdown plugin. Otherwise its syntax won't be translated in HTML. + +## File mode + +Enabled plugin are stored in your `config.php` parameters file, under the `array`: + +```php +$GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html) +``` + +You can edit them manually here. +Example: + +```php +$GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html) + 'qrcode', + 'archiveorg', + 'wallabag', + 'markdown', +); +``` + +### Plugin usage + +Usage of each plugin is documented in it's README file: + + * `addlink-toolbar`: Adds the addlink input on the linklist page + * `archiveorg`: For each link, add an Archive.org icon + * [`markdown`](https://github.com/shaarli/Shaarli/blob/master/plugins/markdown/README.md): Render shaare description with Markdown syntax.[](.html) + * [`playvideos`](https://github.com/shaarli/Shaarli/blob/master/plugins/playvideos/README.md): Add a button in the toolbar allowing to watch all videos.[](.html) + * `qrcode`: For each link, add a QRCode icon. + * `readityourself`: For each link, add a ReadItYourself icon to save the shaared URL + * [`wallabag`](https://github.com/shaarli/Shaarli/blob/master/plugins/wallabag/README.md): For each link, add a Wallabag icon to save it in your instance.[](.html) diff --git a/doc/Plugin-list.html b/doc/Plugin-list.html new file mode 100644 index 0000000..16eca04 --- /dev/null +++ b/doc/Plugin-list.html @@ -0,0 +1,87 @@ + + + + + + + Shaarli – Plugin list + + + + + + +

                              Plugin list

                              +

                              Community plugins

                              +

                              These plugins are maintained by the community:

                              +
                                +
                              • Archive.org - add a clickable icon to every link to archive.org.
                              • +
                              • Addlink in toolbar - add a field to paste new links URL in toolbar.
                              • +
                              • Markdown - write and display Shaare in Markdown.
                              • +
                              • Play videos - popup to play all videos displayed in linklist.
                              • +
                              • QRCode - add a clickable icon generating a QRCode for every link.
                              • +
                              • ReadItYourself - add a clickable icon for ReadItYourself.
                              • +
                              • Wallabag - add a clickable icon for Wallabag.
                              • +
                              +

                              Third party plugins

                              + + + diff --git a/doc/Plugin-list.md b/doc/Plugin-list.md new file mode 100644 index 0000000..bb4f553 --- /dev/null +++ b/doc/Plugin-list.md @@ -0,0 +1,18 @@ +#Plugin list +## Community plugins + +These plugins are maintained by the community: + + * Archive.org - add a clickable icon to every link to archive.org. + * Addlink in toolbar - add a field to paste new links URL in toolbar. + * Markdown - write and display Shaare in Markdown. + * Play videos - popup to play all videos displayed in linklist. + * QRCode - add a clickable icon generating a QRCode for every link. + * ReadItYourself - add a clickable icon for ReadItYourself. + * Wallabag - add a clickable icon for Wallabag. + +## Third party plugins + + * [autosave](https://github.com/kalvn/shaarli-plugin-autosave) by [@kalvn](https://github.com/kalvn): Automatically saves data when editing a link to avoid any loss in case of crash or unexpected shutdown.[](.html) + * [Code Coloration](https://github.com/ArthurHoaro/code-coloration) by [@ArthurHoaro](https://github.com/ArthurHoaro): client side code syntax highlighter.[](.html) + * [social](https://github.com/alexisju/social) by [@alexisju](https://github.com/alexisju): share links to social networks.[](.html) diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html index 859869b..9b1447a 100644 --- a/doc/RSS-feeds.html +++ b/doc/RSS-feeds.html @@ -4,12 +4,12 @@ - Shaarli - RSS feeds + Shaarli – RSS feeds - +

                              RSS feeds

                              +

                              Feeds options

                              +

                              Feeds are available in ATOM with ?do=atom and RSS with do=RSS.

                              +

                              Options:

                              +
                                +
                              • You can use permalinks in the feed URL to get permalink to Shaares instead of direct link to shaared URL. +
                                  +
                                • E.G. https://my.shaarli.domain/?do=atom&permalinks.
                                • +
                              • +
                              • You can use nb parameter in the feed URL to specify the number of Shaares you want in a feed (default if not specified: 50). The keyword all is available if you want everything. +
                                  +
                                • https://my.shaarli.domain/?do=atom&permalinks&nb=42
                                • +
                                • https://my.shaarli.domain/?do=atom&permalinks&nb=all
                                • +
                              • +

                              RSS Feeds or Picture Wall for a specific search/tag

                              It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag.

                              For example, if you want to subscribe only to links tagged photography:

                              diff --git a/doc/RSS-feeds.md b/doc/RSS-feeds.md index 764b3a4..757bed9 100644 --- a/doc/RSS-feeds.md +++ b/doc/RSS-feeds.md @@ -1,5 +1,17 @@ #RSS feeds +### Feeds options + +Feeds are available in ATOM with `?do=atom` and RSS with `do=RSS`. + +Options: +- You can use `permalinks` in the feed URL to get permalink to Shaares instead of direct link to shaared URL. + - E.G. `https://my.shaarli.domain/?do=atom&permalinks`. +- You can use `nb` parameter in the feed URL to specify the number of Shaares you want in a feed (default if not specified: `50`). The keyword `all` is available if you want everything. + - `https://my.shaarli.domain/?do=atom&permalinks&nb=42` + - `https://my.shaarli.domain/?do=atom&permalinks&nb=all` + ### RSS Feeds or Picture Wall for a specific search/tag + It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to **only display results of a specific search, or for a specific tag**. For example, if you want to subscribe only to links tagged `photography`: diff --git a/doc/Release-Shaarli.html b/doc/Release-Shaarli.html new file mode 100644 index 0000000..69b4947 --- /dev/null +++ b/doc/Release-Shaarli.html @@ -0,0 +1,171 @@ + + + + + + + Shaarli – Release Shaarli + + + + + + + +

                              Release Shaarli

                              +

                              See Git - Maintaining a project - Tagging your [](.html)
                              +releases
                              .

                              +

                              Prerequisites

                              +

                              This guide assumes that you have:

                              +
                                +
                              • a GPG key matching your GitHub authentication credentials +
                                  +
                                • i.e., the email address identified by the GPG key is the same as the one in your ~/.gitconfig
                                • +
                              • +
                              • a GitHub fork of Shaarli
                              • +
                              • a local clone of your Shaarli fork, with the following remotes: +
                                  +
                                • origin pointing to your GitHub fork
                                • +
                                • upstream pointing to the main Shaarli repository
                                • +
                              • +
                              • maintainer permissions on the main Shaarli repository (to push the signed tag)
                              • +
                              • Pandoc needs to be installed.
                              • +
                              +

                              Bump Shaarli's version

                              +
                              $ cd /path/to/shaarli
                              +
                              +# create a new branch
                              +$ git fetch upstream
                              +$ git checkout upstream/master -b v0.5.0
                              +
                              +# bump the version number
                              +$ vim index.php shaarli_version.php
                              +
                              +# rebuild the documentation from the wiki
                              +$ make htmldoc
                              +
                              +# commit the changes
                              +$ git add index.php shaarli_version.php doc
                              +$ git commit -s -m "Bump version to v0.5.0"
                              +
                              +# push the commit on your GitHub fork
                              +$ git push origin v0.5.0
                              +

                              Create and merge a Pull Request

                              +

                              This one is pretty straightforward ;-)

                              +

                              Create and push a signed tag

                              +
                              # update your local copy
                              +$ git checkout master
                              +$ git fetch upstream
                              +$ git pull upstream master
                              +
                              +# create a signed tag
                              +$ git tag -s -m "Release v0.5.0" v0.5.0
                              +
                              +# push it to "upstream"
                              +$ git push --tags upstream
                              +

                              Verify a signed tag

                              +

                              v0.5.0 is the first GPG-signed tag pushed on the Community Shaarli.

                              +

                              Let's have a look at its signature!

                              +
                              $ cd /path/to/shaarli
                              +$ git fetch upstream
                              +
                              +# get the SHA1 reference of the tag
                              +$ git show-ref tags/v0.5.0
                              +f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
                              +
                              +# verify the tag signature information
                              +$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
                              +gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
                              +gpg: Good signature from "VirtualTam <virtualtam@flibidi.net>" [ultimate][](.html)
                              + + diff --git a/doc/Release-Shaarli.md b/doc/Release-Shaarli.md new file mode 100644 index 0000000..d5044fe --- /dev/null +++ b/doc/Release-Shaarli.md @@ -0,0 +1,72 @@ +#Release Shaarli +See [Git - Maintaining a project - Tagging your [](.html) +releases](http://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#Tagging-Your-Releases). + +### Prerequisites +This guide assumes that you have: +- a GPG key matching your GitHub authentication credentials + - i.e., the email address identified by the GPG key is the same as the one in your `~/.gitconfig` +- a GitHub fork of Shaarli +- a local clone of your Shaarli fork, with the following remotes: + - `origin` pointing to your GitHub fork + - `upstream` pointing to the main Shaarli repository +- maintainer permissions on the main Shaarli repository (to push the signed tag) +- [Pandoc](http://pandoc.org/) needs to be installed.[](.html) + +### Bump Shaarli's version +```bash +$ cd /path/to/shaarli + +# create a new branch +$ git fetch upstream +$ git checkout upstream/master -b v0.5.0 + +# bump the version number +$ vim index.php shaarli_version.php + +# rebuild the documentation from the wiki +$ make htmldoc + +# commit the changes +$ git add index.php shaarli_version.php doc +$ git commit -s -m "Bump version to v0.5.0" + +# push the commit on your GitHub fork +$ git push origin v0.5.0 +``` + +### Create and merge a Pull Request +This one is pretty straightforward ;-) + +### Create and push a signed tag +```bash +# update your local copy +$ git checkout master +$ git fetch upstream +$ git pull upstream master + +# create a signed tag +$ git tag -s -m "Release v0.5.0" v0.5.0 + +# push it to "upstream" +$ git push --tags upstream +``` + +### Verify a signed tag +[`v0.5.0`](https://github.com/shaarli/Shaarli/releases/tag/v0.5.0) is the first GPG-signed tag pushed on the Community Shaarli.[](.html) + +Let's have a look at its signature! + +```bash +$ cd /path/to/shaarli +$ git fetch upstream + +# get the SHA1 reference of the tag +$ git show-ref tags/v0.5.0 +f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0 + +# verify the tag signature information +$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1 +gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F +gpg: Good signature from "VirtualTam " [ultimate][](.html) +``` diff --git a/doc/Security.html b/doc/Security.html index 914fa50..87a4ee4 100644 --- a/doc/Security.html +++ b/doc/Security.html @@ -4,31 +4,49 @@ - Shaarli - Security + Shaarli – Security - +
                              @@ -39,18 +57,26 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Download
                            • Server requirements
                            • Server configuration
                            • +
                            • Server security
                            • +
                            • Shaarli installation
                            • Shaarli configuration
                            • +
                            • Plugin installation & configuration
                            • +
                            • Docker
                            • +
                            • Plugin list
                            • Usage
                            • How To
                            • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Directory structure
                            • 3rd party libraries
                            • Plugin System
                            • +
                            • Release Shaarli
                            • Security
                            • Static analysis
                            • Theming
                            • @@ -101,8 +128,8 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Links are stored as an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file.
                            • Even if the server does not support .htaccess files, the data file will still not be readable by URL.
                            • The database looks like this:

                              -
                              <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
                              -...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
                            • +
                              <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
                              +...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
                            • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg. 20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.

                            • diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html index 3aa8972..e1edf55 100644 --- a/doc/Server-configuration.html +++ b/doc/Server-configuration.html @@ -4,31 +4,49 @@ - Shaarli - Server configuration + Shaarli – Server configuration - +
                              @@ -39,18 +57,26 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Download
                            • Server requirements
                            • Server configuration
                            • +
                            • Server security
                            • +
                            • Shaarli installation
                            • Shaarli configuration
                            • +
                            • Plugin installation & configuration
                            • +
                            • Docker
                            • +
                            • Plugin list
                            • Usage
                            • How To
                            • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • Directory structure
                            • 3rd party libraries
                            • Plugin System
                            • +
                            • Release Shaarli
                            • Security
                            • Static analysis
                            • Theming
                            • @@ -79,10 +106,10 @@ code > span.er { color: #ff0000; font-weight: bold; }

                              Example virtual host configurations for popular web servers

                              Prerequisites

                              +

                              Shaarli

                              • Shaarli is installed in a directory readable/writeable by the user
                              • the correct read/write permissions have been granted to the web server user and/or group
                              • @@ -90,25 +117,35 @@ code > span.er { color: #ff0000; font-weight: bold; }
                              • a key pair (public, private) and a certificate have been generated
                              • the appropriate server SSL extension is installed and active
                              +

                              HTTPS, TLS and self-signed certificates

                              Related guides:

                              +

                              Proxies

                              +

                              If Shaarli is served behind a proxy (i.e. there is a proxy server between clients and the web server hosting Shaarli), please refer to the proxy server documentation for proper configuration. In particular, you have to ensure that the following server variables are properly set:

                              +
                                +
                              • X-Forwarded-Proto;
                              • +
                              • X-Forwarded-Host;
                              • +
                              • X-Forwarded-For.
                              • +
                              +

                              See also proxy-related issues.

                              Apache

                              Minimal

                              -
                              <VirtualHost *:80>
                              +
                              <VirtualHost *:80>
                                   ServerName   shaarli.my-domain.org
                                   DocumentRoot /absolute/path/to/shaarli/
                              -</VirtualHost>
                              +</VirtualHost>

                              Debug - Log all the things!

                              This configuration will log both Apache and PHP errors, which may prove useful to identify server configuration errors.

                              See:

                              -
                              <VirtualHost *:80>
                              +
                              <VirtualHost *:80>
                                   ServerName   shaarli.my-domain.org
                                   DocumentRoot /absolute/path/to/shaarli/
                               
                              @@ -120,24 +157,24 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                   php_flag  display_errors on
                                   php_value error_reporting 2147483647
                                   php_value error_log /var/log/apache2/shaarli-php-error.log
                              -</VirtualHost>
                              +</VirtualHost>

                              Standard - Keep access and error logs

                              -
                              <VirtualHost *:80>
                              +
                              <VirtualHost *:80>
                                   ServerName   shaarli.my-domain.org
                                   DocumentRoot /absolute/path/to/shaarli/
                               
                                   LogLevel  warn
                                   ErrorLog  /var/log/apache2/shaarli-error.log
                                   CustomLog /var/log/apache2/shaarli-access.log combined
                              -</VirtualHost>
                              +</VirtualHost>

                              Paranoid - Redirect HTTP (:80) to HTTPS (:443)

                              See Server-side TLS (Mozilla).

                              -
                              <VirtualHost *:443>
                              +
                              <VirtualHost *:443>
                                   ServerName   shaarli.my-domain.org
                                   DocumentRoot /absolute/path/to/shaarli/
                               
                                   SSLEngine             on
                              -    SSLCertificateFile    /absolute/path/to/the/website/certificate.crt
                              +    SSLCertificateFile    /absolute/path/to/the/website/certificate.pem
                                   SSLCertificateKeyFile /absolute/path/to/the/website/key.key
                               
                                   <Directory /absolute/path/to/shaarli/>
                              @@ -158,7 +195,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                                   LogLevel  warn
                                   ErrorLog  /var/log/apache2/shaarli-error.log
                                   CustomLog /var/log/apache2/shaarli-access.log combined
                              -</VirtualHost>
                              +</VirtualHost>

                              LightHttpd

                              Nginx

                              Foreword

                              @@ -204,13 +241,13 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • user:group = john:users,
                            • which corresponds to the following service configuration:

                              -
                              ; /etc/php/php-fpm.conf
                              +
                              ; /etc/php/php-fpm.conf
                               user = john
                               group = users
                               
                               [...][](.html)
                               listen.owner = john
                              -listen.group = users
                              +listen.group = users
                              # /etc/nginx/nginx.conf
                               user john users;
                               
                              @@ -374,5 +411,10 @@ http {
                                       include php.conf;
                                   }
                               }
                              +

                              Restricting search engines and web crawler traffic

                              +

                              Creating a robots.txt witht he following contents at the root of your Shaarli installation will prevent "honest" web crawlers from indexing each and every link and Daily page from a Shaarli instance, thus getting rid of a certain amount of unsollicited network traffic.

                              +
                              User-agent: *
                              +Disallow: /
                              +

                              See: http://www.robotstxt.org/, http://www.robotstxt.org/robotstxt.html, http://www.robotstxt.org/meta.html

                              diff --git a/doc/Server-configuration.md b/doc/Server-configuration.md index c7b17c5..fd98a60 100644 --- a/doc/Server-configuration.md +++ b/doc/Server-configuration.md @@ -2,19 +2,29 @@ *Example virtual host configurations for popular web servers* - [Apache](#apache)[](.html) -- [LightHttpd](#lighthttpd) (empty)[](.html) - [Nginx](#nginx)[](.html) ## Prerequisites +### Shaarli * Shaarli is installed in a directory readable/writeable by the user * the correct read/write permissions have been granted to the web server _user and/or group_ * for HTTPS / SSL: * a key pair (public, private) and a certificate have been generated * the appropriate server SSL extension is installed and active +### HTTPS, TLS and self-signed certificates Related guides: * [How to Create Self-Signed SSL Certificates with OpenSSL](http://www.xenocafe.com/tutorials/linux/centos/openssl/self_signed_certificates/index.php)[](.html) * [How do I create my own Certificate Authority?](https://workaround.org/certificate-authority)[](.html) +* Generate a self-signed certificate (will trigger browser warnings) with apache2: `make-ssl-cert generate-default-snakeoil --force-overwrite` will create `/etc/ssl/certs/ssl-cert-snakeoil.pem` and `/etc/ssl/private/ssl-cert-snakeoil.key` + +### Proxies +If Shaarli is served behind a proxy (i.e. there is a proxy server between clients and the web server hosting Shaarli), please refer to the proxy server documentation for proper configuration. In particular, you have to ensure that the following server variables are properly set: +- `X-Forwarded-Proto`; +- `X-Forwarded-Host`; +- `X-Forwarded-For`. + +See also [proxy-related](https://github.com/shaarli/Shaarli/issues?utf8=%E2%9C%93&q=label%3Aproxy+) issues.[](.html) ## Apache ### Minimal @@ -29,7 +39,7 @@ This configuration will log both Apache and PHP errors, which may prove useful t See: * [Apache/PHP - error log per VirtualHost](http://stackoverflow.com/q/176) (StackOverflow)[](.html) -* [PHP: php_value vs php_admin_value and the use of php_flag explained](PHP: php_value vs php_admin_value and the use of php_flag explained)[](.html) +* [PHP: php_value vs php_admin_value and the use of php_flag explained](https://ma.ttias.be/php-php_value-vs-php_admin_value-and-the-use-of-php_flag-explained/)[](.html) ```apache @@ -68,7 +78,7 @@ See [Server-side TLS](https://wiki.mozilla.org/Security/Server_Side_TLS#Apache) DocumentRoot /absolute/path/to/shaarli/ SSLEngine on - SSLCertificateFile /absolute/path/to/the/website/certificate.crt + SSLCertificateFile /absolute/path/to/the/website/certificate.pem SSLCertificateKeyFile /absolute/path/to/the/website/key.key @@ -324,3 +334,15 @@ http { } } ``` + +## Restricting search engines and web crawler traffic + +Creating a `robots.txt` witht he following contents at the root of your Shaarli installation will prevent "honest" web crawlers from indexing each and every link and Daily page from a Shaarli instance, thus getting rid of a certain amount of unsollicited network traffic. + +``` +User-agent: * +Disallow: / +``` + +See: http://www.robotstxt.org/, http://www.robotstxt.org/robotstxt.html, http://www.robotstxt.org/meta.html + diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html index f34f589..ff0ad9c 100644 --- a/doc/Server-requirements.html +++ b/doc/Server-requirements.html @@ -4,12 +4,12 @@ - Shaarli - Server requirements + Shaarli – Server requirements - +
                              - - - + + + - + - + - + - +
                              HooksHooks Description
                              render_headerrender_header Allow plugin to add content in page headers.
                              render_includesrender_includes Allow plugin to include their own CSS files.
                              render_footerrender_footer Allow plugin to add content in page footer and include their own JS files.
                              render_linklistrender_linklist It allows to add content at the begining and end of the page, after every link displayed and to alter link data.
                              render_editlinkrender_editlink Allow to add fields in the form, or display elements.
                              render_toolsrender_tools Allow to add content at the end of the page.
                              render_picwallrender_picwall Allow to add content at the top and bottom of the page.
                              render_tagcloudrender_tagcloud Allow to add content at the top and bottom of the page.
                              render_dailyrender_daily Allow to add content at the top and bottom of the page, the bottom of each link and to alter data.
                              savelinksavelink Allow to alter the link being saved in the datastore.
                              7RC2planned7.0Supported
                              5.6 Supported:white_check_mark:
                              5.5 Supported:white_check_mark:
                              5.4 EOL: 2015-09-14:white_check_mark:
                              5.3 EOL: 2014-08-14:white_check_mark:
                              @@ -106,32 +116,40 @@ -

                              PHP 7 information:

                              -

                              Extensions

                              - +
                              +++++ - + - + - - - + + + - + + + + + + - + + + + + +
                              ExtensionExtension Required?UsageUsage
                              php-mbstringCentOS, Fedora, RHEL, Windowsmultibyte (Unicode) string supportopensslAllOpenSSL, HTTPS
                              php-gdphp-mbstringCentOS, Fedora, RHEL, Windowsmultibyte (Unicode) string support
                              php-gd -thumbnail resizingthumbnail resizing
                              php-intlOptionalTag cloud intelligent sorting (eg. e->è->f)
                              diff --git a/doc/Server-requirements.md b/doc/Server-requirements.md index 8f44d60..7955fdd 100644 --- a/doc/Server-requirements.md +++ b/doc/Server-requirements.md @@ -3,13 +3,14 @@ ### Release information - [PHP: Supported versions](http://php.net/supported-versions.php)[](.html) - [PHP: Unsupported versions](http://php.net/eol.php) _(EOL - End Of Life)_[](.html) +- [PHP 7 Changelog](http://php.net/ChangeLog-7.php)[](.html) - [PHP 5 Changelog](http://php.net/ChangeLog-5.php)[](.html) - [PHP: Bugs](https://bugs.php.net/)[](.html) ### Supported versions Version | Status | Shaarli compatibility :---:|:---:|:---: -7 | RC2 | planned +7.0 | Supported | :white_check_mark: 5.6 | Supported | :white_check_mark: 5.5 | Supported | :white_check_mark: 5.4 | EOL: 2015-09-14 | :white_check_mark: @@ -18,14 +19,10 @@ Version | Status | Shaarli compatibility See also: - [Travis configuration](https://github.com/shaarli/Shaarli/blob/master/.travis.yml)[](.html) -PHP 7 information: -- Announcements: [Beta1](http://php.net/archive/2015.php#id2015-07-10-4), [RC1](http://php.net/archive/2015.php#id2015-08-21-1), [RC2](http://php.net/archive/2015.php#id2015-09-04-1)[](.html) -- [TODOLIST](https://wiki.php.net/todo/php70)[](.html) -- [Recent bugs](https://bugs.php.net/search.php?limit=30&order_by=id&direction=DESC&cmd=display&status=Open&bug_type=All&phpver=7.0)[](.html) -- [Git repository](http://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.0.0)[](.html) - ### Extensions Extension | Required? | Usage ---|:---:|--- +[`openssl`](http://php.net/manual/en/book.openssl.php) | All | OpenSSL, HTTPS[](.html) [`php-mbstring`](http://php.net/manual/en/book.mbstring.php) | CentOS, Fedora, RHEL, Windows | multibyte (Unicode) string support[](.html) [`php-gd`](http://php.net/manual/en/book.image.php) | - | thumbnail resizing[](.html) +[`php-intl`](http://php.net/manual/fr/book.intl.php) | Optional | Tag cloud intelligent sorting (eg. `e->è->f`)[](.html) diff --git a/doc/Server-security.html b/doc/Server-security.html new file mode 100644 index 0000000..97f9378 --- /dev/null +++ b/doc/Server-security.html @@ -0,0 +1,166 @@ + + + + + + + Shaarli – Server security + + + + + + + +

                              Server security

                              +

                              php.ini

                              +

                              PHP settings are defined in:

                              +
                                +
                              • a main configuration file, usually found under /etc/php5/php.ini; some distributions provide different configuration environments, e.g. +
                                  +
                                • /etc/php5/php.ini - used when running console scripts
                                • +
                                • /etc/php5/apache2/php.ini - used when a client requests PHP resources from Apache
                                • +
                                • /etc/php5/php-fpm.conf - used when PHP requests are proxied to PHP-FPM
                                • +
                              • +
                              • additional configuration files/entries, depending on the installed/enabled extensions: +
                                  +
                                • /etc/php/conf.d/xdebug.ini
                                • +
                              • +
                              +

                              Locate .ini files

                              +

                              Console environment

                              +
                              $ php --ini
                              +Configuration File (php.ini) Path: /etc/php
                              +Loaded Configuration File:         /etc/php/php.ini
                              +Scan for additional .ini files in: /etc/php/conf.d
                              +Additional .ini files parsed:      /etc/php/conf.d/xdebug.ini
                              +

                              Server environment

                              +
                                +
                              • create a phpinfo.php script located in a path supported by the web server, e.g. +
                                  +
                                • Apache (with user dirs enabled): /home/myself/public_html/phpinfo.php
                                • +
                                • /var/www/test/phpinfo.php
                                • +
                              • +
                              • make sure the script is readable by the web server user/group (usually, www, www-data or httpd)
                              • +
                              • access the script from a web browser
                              • +
                              • look at the Loaded Configuration File and Scan this dir for additional .ini files entries

                                +
                                <?php phpinfo(); ?>
                              • +
                              +

                              fail2ban

                              +

                              fail2ban is an intrusion prevention framework that reads server (Apache, SSH, etc.) and uses iptables profiles to block brute-force attempts:

                              + +

                              Read Shaarli logs to ban IPs

                              +

                              Example configuration:

                              +
                                +
                              • allow 3 login attempts per IP address
                              • +
                              • after 3 failures, permanently ban the corresponding IP adddress
                              • +
                              +

                              /etc/fail2ban/jail.local

                              +
                              [shaarli-auth][](.html)
                              +enabled  = true
                              +port     = https,http
                              +filter   = shaarli-auth
                              +logpath  = /var/www/path/to/shaarli/data/log.txt
                              +maxretry = 3
                              +bantime = -1
                              +

                              /etc/fail2ban/filter.d/shaarli-auth.conf

                              +
                              [INCLUDES][](.html)
                              +before = common.conf
                              +[Definition][](.html)
                              +failregex = \s-\s<HOST>\s-\sLogin failed for user.*$
                              +ignoreregex = 
                              + + diff --git a/doc/Server-security.md b/doc/Server-security.md new file mode 100644 index 0000000..0d16e28 --- /dev/null +++ b/doc/Server-security.md @@ -0,0 +1,60 @@ +#Server security +## php.ini +PHP settings are defined in: +- a main configuration file, usually found under `/etc/php5/php.ini`; some distributions provide different configuration environments, e.g. + - `/etc/php5/php.ini` - used when running console scripts + - `/etc/php5/apache2/php.ini` - used when a client requests PHP resources from Apache + - `/etc/php5/php-fpm.conf` - used when PHP requests are proxied to PHP-FPM +- additional configuration files/entries, depending on the installed/enabled extensions: + - `/etc/php/conf.d/xdebug.ini` + +### Locate .ini files +#### Console environment +```bash +$ php --ini +Configuration File (php.ini) Path: /etc/php +Loaded Configuration File: /etc/php/php.ini +Scan for additional .ini files in: /etc/php/conf.d +Additional .ini files parsed: /etc/php/conf.d/xdebug.ini +``` + +#### Server environment +- create a `phpinfo.php` script located in a path supported by the web server, e.g. + - Apache (with user dirs enabled): `/home/myself/public_html/phpinfo.php` + - `/var/www/test/phpinfo.php` +- make sure the script is readable by the web server user/group (usually, `www`, `www-data` or `httpd`) +- access the script from a web browser +- look at the _Loaded Configuration File_ and _Scan this dir for additional .ini files_ entries +```php + +``` + +## fail2ban +`fail2ban` is an intrusion prevention framework that reads server (Apache, SSH, etc.) and uses `iptables` profiles to block brute-force attempts: +- [Official website](http://www.fail2ban.org/wiki/index.php/Main_Page)[](.html) +- [Source code](https://github.com/fail2ban/fail2ban)[](.html) + +### Read Shaarli logs to ban IPs +Example configuration: +- allow 3 login attempts per IP address +- after 3 failures, permanently ban the corresponding IP adddress + +`/etc/fail2ban/jail.local` +```ini +[shaarli-auth][](.html) +enabled = true +port = https,http +filter = shaarli-auth +logpath = /var/www/path/to/shaarli/data/log.txt +maxretry = 3 +bantime = -1 +``` + +`/etc/fail2ban/filter.d/shaarli-auth.conf` +```ini +[INCLUDES][](.html) +before = common.conf +[Definition][](.html) +failregex = \s-\s\s-\sLogin failed for user.*$ +ignoreregex = +``` diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html index b7e29cb..f53289f 100644 --- a/doc/Shaarli-configuration.html +++ b/doc/Shaarli-configuration.html @@ -4,31 +4,49 @@ - Shaarli - Shaarli configuration + Shaarli – Shaarli configuration - +
                            +
                          • Docker
                          • +
                          • Plugin list
                          • Usage
                          • How To
                          • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                          • Directory structure
                          • 3rd party libraries
                          • Plugin System
                          • +
                          • Release Shaarli
                          • Security
                          • Static analysis
                          • Theming
                          • @@ -81,6 +108,7 @@ code > span.er { color: #ff0000; font-weight: bold; }

                            Once your Shaarli instance is installed, the file data/config.php is generated:

                            • it contains all settings, and can be edited to customize values
                            • +
                            • it defines which plugins are enabled
                            • its values override those defined in index.php

                            File and directory permissions

                            @@ -88,14 +116,14 @@ code > span.er { color: #ff0000; font-weight: bold; }
                            • read access to the following resources:
                                -
                              • PHP scripts: index.php, application/*.php
                              • -
                              • 3rd party PHP and Javascript libraries: inc/*.php, inc\*.js
                              • +
                              • PHP scripts: index.php, application/*.php, plugins/*.php
                              • +
                              • 3rd party PHP and Javascript libraries: inc/*.php, inc/*.js
                              • static assets:
                                  -
                                • CSS stylesheets: inc\*.css
                                • -
                                • images\*
                                • +
                                • CSS stylesheets: inc/*.css
                                • +
                                • images/*
                              • -
                              • RainTPL templates: tpl\*.html
                              • +
                              • RainTPL templates: tpl/*.html
                            • read, write and execution access to the following directories:
                                @@ -117,7 +145,8 @@ code > span.er { color: #ff0000; font-weight: bold; }
                              • if you have a domain / subdomain to serve Shaarli, configure the server accordingly

                              Example data/config.php

                              -
                              <?php 
                              +

                              See also Plugin System.

                              +
                              <?php 
                               // User login
                               $GLOBALS['login'] = '<login>';[](.html)
                               
                              @@ -146,6 +175,10 @@ code > span.er { color: #ff0000; font-weight: bold; }
                               // Whether new links are private by default
                               $GLOBALS['privateLinkByDefault'] = false;[](.html)
                               
                              +// Enabled plugins
                              +// Note: each plugin may provide further settings through its own "config.php"
                              +$GLOBALS['config'['ENABLED_PLUGINS'] = array('addlink_toolbar', 'qrcode');]('ENABLED_PLUGINS']-=-array('addlink_toolbar',-'qrcode');.html)
                              +
                               // Subdirectory where Shaarli stores its data files.
                               // You can change it for better security.
                               $GLOBALS['config'['DATADIR'] = 'data';]('DATADIR']-=-'data';.html)
                              @@ -218,6 +251,11 @@ code > span.er { color: #ff0000; font-weight: bold; }
                               // Show an ATOM Feed button next to the Subscribe (RSS) button.
                               // ATOM feeds are available at the address ?do=atom regardless of this option.
                               $GLOBALS['config'['SHOW_ATOM'] = false;]('SHOW_ATOM']-=-false;.html)
                              -?>
                              + +// Set this to true if the redirector requires encoded URL, false otherwise. +$GLOBALS['config'['REDIRECTOR_URLENCODE'] = true;]('REDIRECTOR_URLENCODE']-=-true;.html) +?>
                              +

                              Additional configuration

                              +

                              The playvideos plugin may require that you adapt your server's Content Security Policy configuration to work properly.

                              diff --git a/doc/Shaarli-configuration.md b/doc/Shaarli-configuration.md index 5bf70a6..d0560d7 100644 --- a/doc/Shaarli-configuration.md +++ b/doc/Shaarli-configuration.md @@ -5,17 +5,18 @@ Once your Shaarli instance is installed, the file `data/config.php` is generated: * it contains all settings, and can be edited to customize values +* it defines which [plugins](Plugin-System) are enabled[](.html) * its values override those defined in `index.php` ## File and directory permissions The server process running Shaarli must have: - `read` access to the following resources: - - PHP scripts: `index.php`, `application/*.php` - - 3rd party PHP and Javascript libraries: `inc/*.php`, `inc\*.js` + - PHP scripts: `index.php`, `application/*.php`, `plugins/*.php` + - 3rd party PHP and Javascript libraries: `inc/*.php`, `inc/*.js` - static assets: - - CSS stylesheets: `inc\*.css` - - `images\*` - - RainTPL templates: `tpl\*.html` + - CSS stylesheets: `inc/*.css` + - `images/*` + - RainTPL templates: `tpl/*.html` - `read`, `write` and `execution` access to the following directories: - `cache` - thumbnail cache - `data` - link data store, configuration options @@ -31,6 +32,8 @@ On a Linux distribution: - if you have a domain / subdomain to serve Shaarli, [configure the server](Server-configuration) accordingly[](.html) ## Example `data/config.php` +See also [Plugin System](Plugin-System.html). + ```php ``` + +## Additional configuration + +The playvideos plugin may require that you adapt your server's [Content Security Policy](https://github.com/shaarli/Shaarli/blob/master/plugins/playvideos/README.md#troubleshooting) configuration to work properly.[](.html) diff --git a/doc/Shaarli-installation.html b/doc/Shaarli-installation.html new file mode 100644 index 0000000..ae40b3a --- /dev/null +++ b/doc/Shaarli-installation.html @@ -0,0 +1,73 @@ + + + + + + + Shaarli – Shaarli installation + + + + + + +

                              Shaarli installation

                              +

                              Once Shaarli is downloaded and installed behind a web server, open it in your favorite browser.

                              +

                              install screenshot

                              +

                              Setup your Shaarli installation, and it's ready to use!

                              + + diff --git a/doc/Shaarli-installation.md b/doc/Shaarli-installation.md new file mode 100644 index 0000000..be9726e --- /dev/null +++ b/doc/Shaarli-installation.md @@ -0,0 +1,6 @@ +#Shaarli installation +Once Shaarli is downloaded and installed behind a web server, open it in your favorite browser. + +![install screenshot](http://i.imgur.com/wuMpDSN.png)[](.html) + +Setup your Shaarli installation, and it's ready to use! diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html index 6fa5e77..6dfdd56 100644 --- a/doc/Sharing-button.html +++ b/doc/Sharing-button.html @@ -4,12 +4,12 @@ - Shaarli - Sharing button + Shaarli – Sharing button - +
                              @@ -20,18 +20,26 @@
                            • Download
                            • Server requirements
                            • Server configuration
                            • +
                            • Server security
                            • +
                            • Shaarli installation
                            • Shaarli configuration
                            • +
                            • Plugin installation & configuration
                            +
                          • Docker
                          • +
                          • Plugin list
                          • Usage
                          • How To
                          • @@ -43,6 +51,7 @@
                          • Directory structure
                          • 3rd party libraries
                          • Plugin System
                          • +
                          • Release Shaarli
                          • Security
                          • Static analysis
                          • Theming
                          • @@ -74,5 +83,13 @@
                          • You can also check the “Private” box so that the link is saved but only visible to you.
                          • Click Save.Voilà! Your link is now shared.
                          +

                          Troubleshooting: The bookmarklet doesn't work with a few website (e.g. Github.com)

                          +

                          Websites which enforce Content Security Policy (CSP), such as github.com, disallow usage of bookmarklets. Unfortunatly, there is nothing Shaarli can do about it.

                          +

                          See #196.

                          +

                          There is an open bug for both Firefox and Chromium:

                          + diff --git a/doc/Sharing-button.md b/doc/Sharing-button.md index fe576a7..e438886 100644 --- a/doc/Sharing-button.md +++ b/doc/Sharing-button.md @@ -17,3 +17,15 @@ _This bookmarklet button is compatible with Firefox, Opera, Chrome and Safari. U * You will be able to edit this link later using the ![(https://raw.githubusercontent.com/shaarli/Shaarli/master/images/edit_icon.png) edit button.]((https://raw.githubusercontent.com/shaarli/Shaarli/master/images/edit_icon.png)-edit-button..html) * You can also check the “Private” box so that the link is saved but only visible to you. * Click `Save`.**Voilà! Your link is now shared.** + +### Troubleshooting: The bookmarklet doesn't work with a few website (e.g. Github.com) + +Websites which enforce Content Security Policy (CSP), such as github.com, disallow usage of bookmarklets. Unfortunatly, there is nothing Shaarli can do about it. + +See [#196](https://github.com/shaarli/Shaarli#196).[](.html) + +There is an open bug for both Firefox and Chromium: + + * https://bugzilla.mozilla.org/show_bug.cgi?id=866522 + * https://code.google.com/p/chromium/issues/detail?id=233903 + diff --git a/doc/Static-analysis.html b/doc/Static-analysis.html index e95893a..6d1695c 100644 --- a/doc/Static-analysis.html +++ b/doc/Static-analysis.html @@ -4,12 +4,12 @@ - Shaarli - Static analysis + Shaarli – Static analysis - +
                          @@ -20,18 +20,26 @@
                        • Download
                        • Server requirements
                        • Server configuration
                        • +
                        • Server security
                        • +
                        • Shaarli installation
                        • Shaarli configuration
                        • +
                        • Plugin installation & configuration
                      • +
                      • Docker
                      • +
                      • Plugin list
                      • Usage
                      • How To
                      • @@ -43,6 +51,7 @@
                      • Directory structure
                      • 3rd party libraries
                      • Plugin System
                      • +
                      • Release Shaarli
                      • Security
                      • Static analysis
                      • Theming
                      • diff --git a/doc/TODO.html b/doc/TODO.html index 7a6a4bf..e7ce4f0 100644 --- a/doc/TODO.html +++ b/doc/TODO.html @@ -4,12 +4,12 @@ - Shaarli - TODO + Shaarli – TODO - +
                    • +
                    • Docker
                    • +
                    • Plugin list
                    • Usage
                    • How To
                    • @@ -43,6 +51,7 @@
                    • Directory structure
                    • 3rd party libraries
                    • Plugin System
                    • +
                    • Release Shaarli
                    • Security
                    • Static analysis
                    • Theming
                    • diff --git a/doc/Theming.html b/doc/Theming.html index a751eb9..1eda52e 100644 --- a/doc/Theming.html +++ b/doc/Theming.html @@ -4,31 +4,49 @@ - Shaarli - Theming + Shaarli – Theming - +
                  • +
                  • Docker
                  • +
                  • Plugin list
                  • Usage
                  • How To
                  • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                  • Directory structure
                  • 3rd party libraries
                  • Plugin System
                  • +
                  • Release Shaarli
                  • Security
                  • Static analysis
                  • Theming
                  • @@ -89,14 +116,14 @@ code > span.er { color: #ff0000; font-weight: bold; }

                    RainTPL template

                    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

                      -
                    • Find the template you'd like to install (see the list of available templates|Theming#community-themes--templates)
                    • +
                    • Find the template you'd like to install (see the list of available templates|Theming#community-themes--templates)
                    • Find it's git clone URL or download the zip archive for the template.
                    • In your Shaarli tpl/ directory, run git clone https://url/of/my-template/ or unpack the zip archive.
                      • There should now be a my-template/ directory under the tpl/ dir, containing directly all the template files.
                    • Edit data/config.php to have Shaarli use this template, e.g.

                      -
                      $GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html)
                    • +
                      $GLOBALS['config'['RAINTPL_TPL'] = 'tpl/my-template/';]('RAINTPL_TPL']-=-'tpl/my-template/';.html)

                    Community themes & templates

                      @@ -116,7 +143,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                    • user sites are enabled, e.g. /home/user/public_html/somedir is served as http://localhost/~user/somedir
                    • http is the name of the Apache user
                    -
                    $ cd ~/public_html
                    +
                    $ cd ~/public_html
                     
                     # clone repositories
                     $ git clone https://github.com/shaarli/Shaarli.git shaarli
                    @@ -126,15 +153,15 @@ $ popd
                     
                     # set access rights for Apache
                     $ chgrp -R http shaarli
                    -$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
                    +$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp

                    Get config written:

                    • go to the freshly installed site
                    • fill the install form
                    • log in to Shaarli
                    -

                    Edit Shaarli's configuration|Shaarli configuration:

                    -
                    # the file should be owned by Apache, thus not writeable => sudo
                    -$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
                    +

                    Edit Shaarli's configuration|Shaarli configuration:

                    +
                    # the file should be owned by Apache, thus not writeable => sudo
                    +$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
                    diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html index 98fd535..0d58f32 100644 --- a/doc/Troubleshooting.html +++ b/doc/Troubleshooting.html @@ -4,31 +4,49 @@ - Shaarli - Troubleshooting + Shaarli – Troubleshooting - +
                • +
                • Docker
                • +
                • Plugin list
                • Usage
                • How To
                • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                • Directory structure
                • 3rd party libraries
                • Plugin System
                • +
                • Release Shaarli
                • Security
                • Static analysis
                • Theming
                • @@ -131,23 +158,24 @@ code > span.er { color: #ff0000; font-weight: bold; }

                  Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

                  To remove the current IP bans, delete the file data/ipbans.php

                  List of all login attempts

                  -

                  The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
                  Search for failed in this file to look for unauthorized login attempts.

                  +

                  The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
                  +Search for failed in this file to look for unauthorized login attempts.

                  Hosting problems

                  Old PHP versions

                  • On free.fr : free.fr now support php 5.6.x(link)and so support now the tag autocompletion but you have to do the following : At the root of your webspace create a sessions directory and a .htaccess file containing:
                  -
                  <IfDefine Free>
                  +
                  <IfDefine Free>
                   php56 1
                  -</IfDefine>
                  +</IfDefine>
                  • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
                  • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
                  • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
                  -
                  //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
                  +
                  //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
                   // FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
                  -//if (strpos($status,'200 OK')) $title=html_extract_title($data);
                  +//if (strpos($status,'200 OK')) $title=html_extract_title($data);
                  • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
                  • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
                  • diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html index 6d76077..b933bc7 100644 --- a/doc/Unit-tests.html +++ b/doc/Unit-tests.html @@ -4,31 +4,49 @@ - Shaarli - Unit tests + Shaarli – Unit tests - +
                  +
                • Docker
                • +
                • Plugin list
                • Usage
                • How To
                • @@ -62,6 +88,7 @@ code > span.er { color: #ff0000; font-weight: bold; }
                • Directory structure
                • 3rd party libraries
                • Plugin System
                • +
                • Release Shaarli
                • Security
                • Static analysis
                • Theming
                • @@ -84,27 +111,27 @@ code > span.er { color: #ff0000; font-weight: bold; }
                • a local version, downloadable here

                Sample usage

                -
                # system-wide version
                +
                # system-wide version
                 $ composer install
                 $ composer update
                 
                 # local version
                 $ php composer.phar self-update
                 $ php composer.phar install
                -$ php composer.phar update
                +$ php composer.phar update

                Install Shaarli dev dependencies

                -
                $ cd /path/to/shaarli
                -$ composer update
                +
                $ cd /path/to/shaarli
                +$ composer update

                Install and enable Xdebug to generate PHPUnit coverage reports

                For Debian-based distros:

                -
                $ aptitude install php5-xdebug
                +
                $ aptitude install php5-xdebug

                For ArchLinux:

                -
                $ pacman -S xdebug
                +
                $ pacman -S xdebug

                Then add the following line to /etc/php/php.ini:

                -
                zend_extension=xdebug.so
                +
                zend_extension=xdebug.so

                Run unit tests

                Successful test suite:

                -
                $ make test
                +
                $ make test
                 
                 -------
                 PHPUNIT
                @@ -117,9 +144,9 @@ $ composer update
                Time: 759 ms, Memory: 8.25Mb -OK (36 tests, 65 assertions)
                +OK (36 tests, 65 assertions)

                Test suite with failures and errors:

                -
                $ make test
                +
                $ make test
                 -------
                 PHPUNIT
                 -------
                @@ -165,7 +192,7 @@ DBTest.php on line 79 and defined
                 /home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:133
                 
                 FAILURES!
                -Tests: 36, Assertions: 63, Errors: 1, Failures: 2.
                +Tests: 36, Assertions: 63, Errors: 1, Failures: 2.

                Test results and coverage

                By default, PHPUnit will run all suitable tests found under the tests directory.

                Each test has 3 possible outcomes:

                diff --git a/doc/Upgrade-from-original-sebsauvage-Shaarli.html b/doc/Upgrade-from-original-sebsauvage-Shaarli.html new file mode 100644 index 0000000..5297c8b --- /dev/null +++ b/doc/Upgrade-from-original-sebsauvage-Shaarli.html @@ -0,0 +1,75 @@ + + + + + + + Shaarli – Upgrade from original sebsauvage Shaarli + + + + + + +

                Upgrade from original sebsauvage Shaarli

                +
                  +
                • Backup your original data/ directory.
                • +
                • Install and setup the Shaarli community fork.
                • +
                • Copy your original data directory over the new installation.
                • +
                + + diff --git a/doc/Upgrade-from-original-sebsauvage-Shaarli.md b/doc/Upgrade-from-original-sebsauvage-Shaarli.md new file mode 100644 index 0000000..6ae0c67 --- /dev/null +++ b/doc/Upgrade-from-original-sebsauvage-Shaarli.md @@ -0,0 +1,4 @@ +#Upgrade from original sebsauvage Shaarli + * Backup your original `data/` directory. + * [Install](https://github.com/shaarli/Shaarli#installation--upgrade) and setup the Shaarli community fork.[](.html) + * Copy your original `data` directory over the new installation. diff --git a/doc/Usage.html b/doc/Usage.html index 0ba457f..5b4b8a5 100644 --- a/doc/Usage.html +++ b/doc/Usage.html @@ -4,12 +4,12 @@ - Shaarli - Usage + Shaarli – Usage - +
                @@ -20,18 +20,26 @@
              • Download
              • Server requirements
              • Server configuration
              • +
              • Server security
              • +
              • Shaarli installation
              • Shaarli configuration
              • +
              • Plugin installation & configuration
            • +
            • Docker
            • +
            • Plugin list
            • Usage
            • How To
            • @@ -43,6 +51,7 @@
            • Directory structure
            • 3rd party libraries
            • Plugin System
            • +
            • Release Shaarli
            • Security
            • Static analysis
            • Theming
            • diff --git a/doc/_Footer.html b/doc/_Footer.html index 9803238..8cc166a 100644 --- a/doc/_Footer.html +++ b/doc/_Footer.html @@ -4,12 +4,12 @@ - Shaarli - _Footer + Shaarli – _Footer - +
          • +
          • Docker
          • +
          • Plugin list
          • Usage
          • How To
          • @@ -43,6 +51,7 @@
          • Directory structure
          • 3rd party libraries
          • Plugin System
          • +
          • Release Shaarli
          • Security
          • Static analysis
          • Theming
          • @@ -56,6 +65,7 @@
        -

        _Footer
        Shaarli, the personal, minimalist, super-fast, no-database delicious clone

        +

        _Footer
        +Shaarli, the personal, minimalist, super-fast, no-database delicious clone

        diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html index fbf6dff..2c7d283 100644 --- a/doc/_Sidebar.html +++ b/doc/_Sidebar.html @@ -4,12 +4,12 @@ - Shaarli - _Sidebar + Shaarli – _Sidebar - +
        @@ -20,18 +20,26 @@
      • Download
      • Server requirements
      • Server configuration
      • +
      • Server security
      • +
      • Shaarli installation
      • Shaarli configuration
      • +
      • Plugin installation & configuration
    • +
    • Docker
    • +
    • Plugin list
    • Usage
    • How To
    • @@ -43,6 +51,7 @@
    • Directory structure
    • 3rd party libraries
    • Plugin System
    • +
    • Release Shaarli
    • Security
    • Static analysis
    • Theming
    • @@ -64,18 +73,26 @@
    • Download
    • Server requirements
    • Server configuration
    • +
    • Server security
    • +
    • Shaarli installation
    • Shaarli configuration
    • +
    • Plugin installation & configuration
  • +
  • Docker
  • +
  • Plugin list
  • Usage
  • How To
  • @@ -87,6 +104,7 @@
  • Directory structure
  • 3rd party libraries
  • Plugin System
  • +
  • Release Shaarli
  • Security
  • Static analysis
  • Theming
  • diff --git a/doc/_Sidebar.md b/doc/_Sidebar.md index 68e3b9f..4522c25 100644 --- a/doc/_Sidebar.md +++ b/doc/_Sidebar.md @@ -4,14 +4,22 @@ - [Download](Download.html) - [Server requirements](Server-requirements.html) - [Server configuration](Server-configuration.html) + - [Server security](Server-security.html) + - [Shaarli installation](Shaarli-installation.html) - [Shaarli configuration](Shaarli-configuration.html) + - [Plugin installation & configuration](Plugin-installation-&-configuration.html) +- [Docker](Docker.html) +- [Plugin list](Plugin-list.html) - [Usage](Usage.html) - [Sharing button](Sharing-button.html) (bookmarklet) + - [Browsing and Searching](Browsing-and-Searching.html) - [Firefox share](Firefox-share.html) - [RSS feeds](RSS-feeds.html) - How To - [Backup, restore, import and export](Backup,-restore,-import-and-export.html) + - [Upgrade from original sebsauvage/Shaarli](Upgrade-from-original-sebsauvage/Shaarli.html) - [Copy an existing installation over SSH and serve it locally](Copy-an-existing-installation-over-SSH-and-serve-it-locally.html) + - [Create and serve multiple Shaarlis (farm)](Create-and-serve-multiple-Shaarlis-(farm).html) - [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) - [Datastore hacks](Datastore-hacks.html) - [Troubleshooting](Troubleshooting.html) @@ -21,6 +29,7 @@ - [Directory structure](Directory-structure.html) - [3rd party libraries](3rd-party-libraries.html) - [Plugin System](Plugin-System.html) + - [Release Shaarli](Release-Shaarli.html) - [Security](Security.html) - [Static analysis](Static-analysis.html) - [Theming](Theming.html) diff --git a/doc/images/doc-logo.svg b/doc/images/doc-logo.svg new file mode 100644 index 0000000..37fc665 --- /dev/null +++ b/doc/images/doc-logo.svg @@ -0,0 +1,522 @@ + + + Shaarli Logo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Shaarli Logo + + + http://blog.idleman.fr/ + + + 2012-08-29 22:36:01+02:00 + + + http://sebsauvage.net/ + + + + + Shaarli + Logo + + + + + http://thatguynamedandy.com/, +http://mro.name/me + + + + http://sebsauvage.net/files/shaarli_logo.zip + http://sebsauvage.net/wiki/doku.php?id=php:shaarli:discussion#comment_09a1e91bc0abc7db6d186a6abf429877 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/sidebar.html b/doc/sidebar.html index 826e4cb..8603eca 100644 --- a/doc/sidebar.html +++ b/doc/sidebar.html @@ -6,18 +6,26 @@
  • Download
  • Server requirements
  • Server configuration
  • +
  • Server security
  • +
  • Shaarli installation
  • Shaarli configuration
  • +
  • Plugin installation & configuration
  • +
  • Docker
  • +
  • Plugin list
  • Usage
  • How To
  • @@ -29,6 +37,7 @@
  • Directory structure
  • 3rd party libraries
  • Plugin System
  • +
  • Release Shaarli
  • Security
  • Static analysis
  • Theming
  • From 69a1a90c27953b8a2523f6e49258170cdc6b682d Mon Sep 17 00:00:00 2001 From: kalvn Date: Tue, 3 May 2016 19:05:36 +0200 Subject: [PATCH 313/658] Renames Awesomeplete dollar variable to avoid conflicts with jQuery --- inc/awesomplete-multiple-tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/awesomplete-multiple-tags.js b/inc/awesomplete-multiple-tags.js index e0f889b..4cc8429 100644 --- a/inc/awesomplete-multiple-tags.js +++ b/inc/awesomplete-multiple-tags.js @@ -1,5 +1,5 @@ -$ = Awesomplete.$; -awesomplete = new Awesomplete($('input[data-multiple]'), { +var awp = Awesomplete.$; +awesomplete = new Awesomplete(awp('input[data-multiple]'), { filter: function(text, input) { return Awesomplete.FILTER_CONTAINS(text, input.match(/[^ ]*$/)[0]); }, From ce7b0b6480aa854ee6893f5c889277b0e3b13efc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 6 Apr 2016 22:00:52 +0200 Subject: [PATCH 314/658] Fixes #531 - Title retrieving is failing with multiple use case see https://github.com/shaarli/Shaarli/issues/531 for details --- application/HttpUtils.php | 60 +++++++++++++++++++++++++----- application/LinkUtils.php | 6 +-- application/Url.php | 42 +++++++++++++++++++++ index.php | 8 ++-- tests/HttpUtils/GetHttpUrlTest.php | 27 ++++++++++++++ tests/Url/UrlTest.php | 15 ++++++++ 6 files changed, 142 insertions(+), 16 deletions(-) diff --git a/application/HttpUtils.php b/application/HttpUtils.php index af7cb37..0e1ce87 100644 --- a/application/HttpUtils.php +++ b/application/HttpUtils.php @@ -27,7 +27,9 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) { $urlObj = new Url($url); - if (! filter_var($url, FILTER_VALIDATE_URL) || ! $urlObj->isHttp()) { + $cleanUrl = $urlObj->indToAscii(); + + if (! filter_var($cleanUrl, FILTER_VALIDATE_URL) || ! $urlObj->isHttp()) { return array(array(0 => 'Invalid HTTP Url'), false); } @@ -35,22 +37,27 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) 'http' => array( 'method' => 'GET', 'timeout' => $timeout, - 'user_agent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0)' - .' Gecko/20100101 Firefox/23.0', - 'request_fulluri' => true, + 'user_agent' => 'Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:45.0)' + .' Gecko/20100101 Firefox/45.0', + 'accept_language' => substr(setlocale(LC_COLLATE, 0), 0, 2) . ',en-US;q=0.7,en;q=0.3', ) ); - $context = stream_context_create($options); stream_context_set_default($options); + list($headers, $finalUrl) = get_redirected_headers($cleanUrl); + if (! $headers || strpos($headers[0], '200 OK') === false) { + $options['http']['request_fulluri'] = true; + stream_context_set_default($options); + list($headers, $finalUrl) = get_redirected_headers($cleanUrl); + } - list($headers, $finalUrl) = get_redirected_headers($urlObj->cleanup()); if (! $headers || strpos($headers[0], '200 OK') === false) { return array($headers, false); } try { // TODO: catch Exception in calling code (thumbnailer) + $context = stream_context_create($options); $content = file_get_contents($finalUrl, false, $context, -1, $maxBytes); } catch (Exception $exc) { return array(array(0 => 'HTTP Error'), $exc->getMessage()); @@ -60,16 +67,19 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) } /** - * Retrieve HTTP headers, following n redirections (temporary and permanent). + * Retrieve HTTP headers, following n redirections (temporary and permanent ones). * - * @param string $url initial URL to reach. - * @param int $redirectionLimit max redirection follow.. + * @param string $url initial URL to reach. + * @param int $redirectionLimit max redirection follow.. * - * @return array + * @return array HTTP headers, or false if it failed. */ function get_redirected_headers($url, $redirectionLimit = 3) { $headers = get_headers($url, 1); + if (!empty($headers['location']) && empty($headers['Location'])) { + $headers['Location'] = $headers['location']; + } // Headers found, redirection found, and limit not reached. if ($redirectionLimit-- > 0 @@ -79,6 +89,7 @@ function get_redirected_headers($url, $redirectionLimit = 3) $redirection = is_array($headers['Location']) ? end($headers['Location']) : $headers['Location']; if ($redirection != $url) { + $redirection = getAbsoluteUrl($url, $redirection); return get_redirected_headers($redirection, $redirectionLimit); } } @@ -86,6 +97,35 @@ function get_redirected_headers($url, $redirectionLimit = 3) return array($headers, $url); } +/** + * Get an absolute URL from a complete one, and another absolute/relative URL. + * + * @param string $originalUrl The original complete URL. + * @param string $newUrl The new one, absolute or relative. + * + * @return string Final URL: + * - $newUrl if it was already an absolute URL. + * - if it was relative, absolute URL from $originalUrl path. + */ +function getAbsoluteUrl($originalUrl, $newUrl) +{ + $newScheme = parse_url($newUrl, PHP_URL_SCHEME); + // Already an absolute URL. + if (!empty($newScheme)) { + return $newUrl; + } + + $parts = parse_url($originalUrl); + $final = $parts['scheme'] .'://'. $parts['host']; + $final .= (!empty($parts['port'])) ? $parts['port'] : ''; + $final .= '/'; + if ($newUrl[0] != '/') { + $final .= substr(ltrim($parts['path'], '/'), 0, strrpos($parts['path'], '/')); + } + $final .= ltrim($newUrl, '/'); + return $final; +} + /** * Returns the server's base URL: scheme://domain.tld[:port] * diff --git a/application/LinkUtils.php b/application/LinkUtils.php index d8dc8b5..2df76ba 100644 --- a/application/LinkUtils.php +++ b/application/LinkUtils.php @@ -9,8 +9,8 @@ */ function html_extract_title($html) { - if (preg_match('!(.*?)!is', $html, $matches)) { - return trim(str_replace("\n", ' ', $matches[1])); + if (preg_match('!(.*?)!is', $html, $matches)) { + return trim(str_replace("\n", '', $matches[1])); } return false; } @@ -70,7 +70,7 @@ function headers_extract_charset($headers) function html_extract_charset($html) { // Get encoding specified in HTML header. - preg_match('#/]+)"? */?>#Usi', $html, $enc); + preg_match('#/]+)["\']? */?>#Usi', $html, $enc); if (!empty($enc[1])) { return strtolower($enc[1]); } diff --git a/application/Url.php b/application/Url.php index af38c4d..61a30a7 100644 --- a/application/Url.php +++ b/application/Url.php @@ -62,7 +62,21 @@ function add_trailing_slash($url) { return $url . (!endsWith($url, '/') ? '/' : ''); } +/** + * Converts an URL with an IDN host to a ASCII one. + * + * @param string $url Input URL. + * + * @return string converted URL. + */ +function url_with_idn_to_ascii($url) +{ + $parts = parse_url($url); + $parts['host'] = idn_to_ascii($parts['host']); + $httpUrl = new \http\Url($parts); + return $httpUrl->toString(); +} /** * URL representation and cleanup utilities * @@ -220,6 +234,22 @@ class Url return $this->toString(); } + /** + * Converts an URL with an International Domain Name host to a ASCII one. + * This requires PHP-intl. If it's not available, just returns this->cleanup(). + * + * @return string converted cleaned up URL. + */ + public function indToAscii() + { + $out = $this->cleanup(); + if (! function_exists('idn_to_ascii') || ! isset($this->parts['host'])) { + return $out; + } + $asciiHost = idn_to_ascii($this->parts['host']); + return str_replace($this->parts['host'], $asciiHost, $out); + } + /** * Get URL scheme. * @@ -232,6 +262,18 @@ class Url return $this->parts['scheme']; } + /** + * Get URL host. + * + * @return string the URL host or false if none is provided. + */ + public function getHost() { + if (empty($this->parts['host'])) { + return false; + } + return $this->parts['host']; + } + /** * Test if the Url is an HTTP one. * diff --git a/index.php b/index.php index dfc00fb..41a42cf 100644 --- a/index.php +++ b/index.php @@ -1516,7 +1516,7 @@ function renderPage() // -------- User want to post a new link: Display link edit form. if (isset($_GET['post'])) { - $url = cleanup_url(escape($_GET['post'])); + $url = cleanup_url($_GET['post']); $link_is_new = false; // Check if URL is not already in database (in this case, we will edit the existing link) @@ -1541,8 +1541,8 @@ function renderPage() // Extract title. $title = html_extract_title($content); // Re-encode title in utf-8 if necessary. - if (! empty($title) && $charset != 'utf-8') { - $title = mb_convert_encoding($title, $charset, 'utf-8'); + if (! empty($title) && strtolower($charset) != 'utf-8') { + $title = mb_convert_encoding($title, 'utf-8', $charset); } } } @@ -1551,6 +1551,8 @@ function renderPage() $url = '?' . smallHash($linkdate); $title = 'Note: '; } + $url = escape($url); + $title = escape($title); $link = array( 'linkdate' => $linkdate, diff --git a/tests/HttpUtils/GetHttpUrlTest.php b/tests/HttpUtils/GetHttpUrlTest.php index fd29350..ea53de5 100644 --- a/tests/HttpUtils/GetHttpUrlTest.php +++ b/tests/HttpUtils/GetHttpUrlTest.php @@ -35,4 +35,31 @@ class GetHttpUrlTest extends PHPUnit_Framework_TestCase $this->assertFalse($headers); $this->assertFalse($content); } + + /** + * Test getAbsoluteUrl with relative target URL. + */ + public function testGetAbsoluteUrlWithRelative() + { + $origin = 'http://non.existent/blabla/?test'; + $target = '/stuff.php'; + + $expected = 'http://non.existent/stuff.php'; + $this->assertEquals($expected, getAbsoluteUrl($origin, $target)); + + $target = 'stuff.php'; + $expected = 'http://non.existent/blabla/stuff.php'; + $this->assertEquals($expected, getAbsoluteUrl($origin, $target)); + } + + /** + * Test getAbsoluteUrl with absolute target URL. + */ + public function testGetAbsoluteUrlWithAbsolute() + { + $origin = 'http://non.existent/blabla/?test'; + $target = 'http://other.url/stuff.php'; + + $this->assertEquals($target, getAbsoluteUrl($origin, $target)); + } } diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php index a64a73e..5fdc861 100644 --- a/tests/Url/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -181,4 +181,19 @@ class UrlTest extends PHPUnit_Framework_TestCase $url = new Url('ftp://save.tld/mysave'); $this->assertFalse($url->isHttp()); } + + /** + * Test IndToAscii. + */ + function testIndToAscii() + { + $ind = 'http://www.académie-française.fr/'; + $expected = 'http://www.xn--acadmie-franaise-npb1a.fr/'; + $url = new Url($ind); + $this->assertEquals($expected, $url->indToAscii()); + + $notInd = 'http://www.academie-francaise.fr/'; + $url = new Url($notInd); + $this->assertEquals($notInd, $url->indToAscii()); + } } From 12ff86c961b49727fcae97938e864766aa77a2a9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 3 May 2016 20:09:24 +0200 Subject: [PATCH 315/658] Use correct 'UTC' timezone --- application/TimeZone.php | 4 ---- index.php | 20 ++++++++++++-------- tests/TimeZoneTest.php | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/application/TimeZone.php b/application/TimeZone.php index e363d90..26f2232 100644 --- a/application/TimeZone.php +++ b/application/TimeZone.php @@ -101,10 +101,6 @@ function generateTimeZoneForm($preselectedTimezone='') */ function isTimeZoneValid($continent, $city) { - if ($continent == 'UTC' && $city == 'UTC') { - return true; - } - return in_array( $continent.'/'.$city, timezone_identifiers_list() diff --git a/index.php b/index.php index d3369a2..01122eb 100644 --- a/index.php +++ b/index.php @@ -1276,11 +1276,15 @@ function renderPage() { if (!empty($_POST['title']) ) { - if (!tokenOk($_POST['token'])) die('Wrong token.'); // Go away! + if (!tokenOk($_POST['token'])) { + die('Wrong token.'); // Go away! + } $tz = 'UTC'; - if (!empty($_POST['continent']) && !empty($_POST['city'])) - if (isTimeZoneValid($_POST['continent'],$_POST['city'])) - $tz = $_POST['continent'].'/'.$_POST['city']; + if (!empty($_POST['continent']) && !empty($_POST['city']) + && isTimeZoneValid($_POST['continent'], $_POST['city']) + ) { + $tz = $_POST['continent'] . '/' . $_POST['city']; + } $GLOBALS['timezone'] = $tz; $GLOBALS['title']=$_POST['title']; $GLOBALS['titleLink']=$_POST['titleLink']; @@ -2113,10 +2117,10 @@ function install() if (!empty($_POST['setlogin']) && !empty($_POST['setpassword'])) { $tz = 'UTC'; - if (!empty($_POST['continent']) && !empty($_POST['city'])) { - if (isTimeZoneValid($_POST['continent'], $_POST['city'])) { - $tz = $_POST['continent'].'/'.$_POST['city']; - } + if (!empty($_POST['continent']) && !empty($_POST['city']) + && isTimeZoneValid($_POST['continent'], $_POST['city']) + ) { + $tz = $_POST['continent'].'/'.$_POST['city']; } $GLOBALS['timezone'] = $tz; // Everything is ok, let's create config file. diff --git a/tests/TimeZoneTest.php b/tests/TimeZoneTest.php index b219030..2976d11 100644 --- a/tests/TimeZoneTest.php +++ b/tests/TimeZoneTest.php @@ -67,7 +67,6 @@ class TimeZoneTest extends PHPUnit_Framework_TestCase { $this->assertTrue(isTimeZoneValid('America', 'Argentina/Ushuaia')); $this->assertTrue(isTimeZoneValid('Europe', 'Oslo')); - $this->assertTrue(isTimeZoneValid('UTC', 'UTC')); } /** @@ -78,5 +77,6 @@ class TimeZoneTest extends PHPUnit_Framework_TestCase $this->assertFalse(isTimeZoneValid('CEST', 'CEST')); $this->assertFalse(isTimeZoneValid('Europe', 'Atlantis')); $this->assertFalse(isTimeZoneValid('Middle_Earth', 'Moria')); + $this->assertFalse(isTimeZoneValid('UTC', 'UTC')); } } From caa69b585381cc1c22df3dbb9c943855b8f13a70 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 5 May 2016 13:28:43 +0200 Subject: [PATCH 316/658] typo --- application/HttpUtils.php | 4 ++-- application/Url.php | 2 +- tests/Url/UrlTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/HttpUtils.php b/application/HttpUtils.php index 0e1ce87..c84ba6f 100644 --- a/application/HttpUtils.php +++ b/application/HttpUtils.php @@ -27,7 +27,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) { $urlObj = new Url($url); - $cleanUrl = $urlObj->indToAscii(); + $cleanUrl = $urlObj->idnToAscii(); if (! filter_var($cleanUrl, FILTER_VALIDATE_URL) || ! $urlObj->isHttp()) { return array(array(0 => 'Invalid HTTP Url'), false); @@ -70,7 +70,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) * Retrieve HTTP headers, following n redirections (temporary and permanent ones). * * @param string $url initial URL to reach. - * @param int $redirectionLimit max redirection follow.. + * @param int $redirectionLimit max redirection follow. * * @return array HTTP headers, or false if it failed. */ diff --git a/application/Url.php b/application/Url.php index 61a30a7..77447c8 100644 --- a/application/Url.php +++ b/application/Url.php @@ -240,7 +240,7 @@ class Url * * @return string converted cleaned up URL. */ - public function indToAscii() + public function idnToAscii() { $out = $this->cleanup(); if (! function_exists('idn_to_ascii') || ! isset($this->parts['host'])) { diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php index 5fdc861..ce82265 100644 --- a/tests/Url/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -190,10 +190,10 @@ class UrlTest extends PHPUnit_Framework_TestCase $ind = 'http://www.académie-française.fr/'; $expected = 'http://www.xn--acadmie-franaise-npb1a.fr/'; $url = new Url($ind); - $this->assertEquals($expected, $url->indToAscii()); + $this->assertEquals($expected, $url->idnToAscii()); $notInd = 'http://www.academie-francaise.fr/'; $url = new Url($notInd); - $this->assertEquals($notInd, $url->indToAscii()); + $this->assertEquals($notInd, $url->idnToAscii()); } } From d8bf2463571cc38f883f7d27fb8a3bf50cb8702d Mon Sep 17 00:00:00 2001 From: nodiscc Date: Wed, 4 May 2016 21:27:32 +0200 Subject: [PATCH 317/658] add link to plugins doc --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a693e47..8577fbf 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ Login: `demo`; Password: `demo` - daily RSS feed - permalinks for easy reference - links can be public or private +- extensible through [plugins](https://github.com/shaarli/Shaarli/wiki/Plugins#plugin-usage) ### Tag, view and search your links! - add a custom title and description to archived links From bb4a23aa863b63e6148a085c15dedd7c960b4206 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 5 May 2016 19:22:06 +0200 Subject: [PATCH 318/658] Export: allow prepending notes with the Shaarli instance's URL Relates to #102 Additions: - application: - export: allow prepending note permalinks with the instance's URL - test coverage Modifications: - export template: switch to an HTML form - link selection (all/private/public) - prepend note permalinks with the instance's URL Signed-off-by: VirtualTam --- application/NetscapeBookmarkUtils.php | 15 ++++++++--- index.php | 16 +++++++++-- tests/NetscapeBookmarkUtilsTest.php | 38 ++++++++++++++++++++++++--- tpl/export.html | 24 ++++++++++------- 4 files changed, 74 insertions(+), 19 deletions(-) diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php index 8a29670..fdbb0ad 100644 --- a/application/NetscapeBookmarkUtils.php +++ b/application/NetscapeBookmarkUtils.php @@ -13,17 +13,19 @@ class NetscapeBookmarkUtils * - timestamp link addition date, using the Unix epoch format * - taglist comma-separated tag list * - * @param LinkDB $linkDb The link datastore - * @param string $selection Which links to export: (all|private|public) + * @param LinkDB $linkDb Link datastore + * @param string $selection Which links to export: (all|private|public) + * @param bool $prependNoteUrl Prepend note permalinks with the server's URL + * @param string $indexUrl Absolute URL of the Shaarli index page * * @throws Exception Invalid export selection * * @return array The links to be exported, with additional fields */ - public static function filterAndFormat($linkDb, $selection) + public static function filterAndFormat($linkDb, $selection, $prependNoteUrl, $indexUrl) { // see tpl/export.html for possible values - if (! in_array($selection, array('all','public','private'))) { + if (! in_array($selection, array('all', 'public', 'private'))) { throw new Exception('Invalid export selection: "'.$selection.'"'); } @@ -39,6 +41,11 @@ class NetscapeBookmarkUtils $date = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']); $link['timestamp'] = $date->getTimestamp(); $link['taglist'] = str_replace(' ', ',', $link['tags']); + + if (startsWith($link['url'], '?') && $prependNoteUrl) { + $link['url'] = $indexUrl . $link['url']; + } + $bookmarkLinks[] = $link; } diff --git a/index.php b/index.php index 47bae6e..408aeae 100644 --- a/index.php +++ b/index.php @@ -1590,8 +1590,9 @@ function renderPage() exit; } - // -------- Export as Netscape Bookmarks HTML file. if ($targetPage == Router::$PAGE_EXPORT) { + // Export links as a Netscape Bookmarks file + if (empty($_GET['selection'])) { $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->renderPage('export'); @@ -1600,10 +1601,21 @@ function renderPage() // export as bookmarks_(all|private|public)_YYYYmmdd_HHMMSS.html $selection = $_GET['selection']; + if (isset($_GET['prepend_note_url'])) { + $prependNoteUrl = $_GET['prepend_note_url']; + } else { + $prependNoteUrl = false; + } + try { $PAGE->assign( 'links', - NetscapeBookmarkUtils::filterAndFormat($LINKSDB, $selection) + NetscapeBookmarkUtils::filterAndFormat( + $LINKSDB, + $selection, + $prependNoteUrl, + index_url($_SERVER) + ) ); } catch (Exception $exc) { header('Content-Type: text/plain; charset=utf-8'); diff --git a/tests/NetscapeBookmarkUtilsTest.php b/tests/NetscapeBookmarkUtilsTest.php index b7472d9..41e6d84 100644 --- a/tests/NetscapeBookmarkUtilsTest.php +++ b/tests/NetscapeBookmarkUtilsTest.php @@ -39,7 +39,7 @@ class NetscapeBookmarkUtilsTest extends PHPUnit_Framework_TestCase */ public function testFilterAndFormatInvalid() { - NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'derp'); + NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'derp', false, ''); } /** @@ -47,7 +47,7 @@ class NetscapeBookmarkUtilsTest extends PHPUnit_Framework_TestCase */ public function testFilterAndFormatAll() { - $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'all'); + $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'all', false, ''); $this->assertEquals(self::$refDb->countLinks(), sizeof($links)); foreach ($links as $link) { $date = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']); @@ -67,7 +67,7 @@ class NetscapeBookmarkUtilsTest extends PHPUnit_Framework_TestCase */ public function testFilterAndFormatPrivate() { - $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'private'); + $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'private', false, ''); $this->assertEquals(self::$refDb->countPrivateLinks(), sizeof($links)); foreach ($links as $link) { $date = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']); @@ -87,7 +87,7 @@ class NetscapeBookmarkUtilsTest extends PHPUnit_Framework_TestCase */ public function testFilterAndFormatPublic() { - $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'public'); + $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'public', false, ''); $this->assertEquals(self::$refDb->countPublicLinks(), sizeof($links)); foreach ($links as $link) { $date = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $link['linkdate']); @@ -101,4 +101,34 @@ class NetscapeBookmarkUtilsTest extends PHPUnit_Framework_TestCase ); } } + + /** + * Do not prepend notes with the Shaarli index's URL + */ + public function testFilterAndFormatDoNotPrependNoteUrl() + { + $links = NetscapeBookmarkUtils::filterAndFormat(self::$linkDb, 'public', false, ''); + $this->assertEquals( + '?WDWyig', + $links[0]['url'] + ); + } + + /** + * Prepend notes with the Shaarli index's URL + */ + public function testFilterAndFormatPrependNoteUrl() + { + $indexUrl = 'http://localhost:7469/shaarli/'; + $links = NetscapeBookmarkUtils::filterAndFormat( + self::$linkDb, + 'public', + true, + $indexUrl + ); + $this->assertEquals( + $indexUrl . '?WDWyig', + $links[0]['url'] + ); + } } diff --git a/tpl/export.html b/tpl/export.html index 9582627..67c3d05 100644 --- a/tpl/export.html +++ b/tpl/export.html @@ -5,15 +5,21 @@ From dbcd06e988d8434f125b8a5ee8f5bbcb7cd87874 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 May 2016 19:58:19 +0200 Subject: [PATCH 319/658] Reindent the login template --- tpl/loginform.html | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/tpl/loginform.html b/tpl/loginform.html index 678375f..f0b45df 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -1,26 +1,27 @@ {include="includes"} - + {include="page.footer"} From 85c4bdc23581b91971315c42508c2d8f7a5fa738 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 May 2016 20:03:10 +0200 Subject: [PATCH 320/658] Prefill the login field when the authentication has failed --- index.php | 7 +++++-- tpl/loginform.html | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 47bae6e..dd876a6 100644 --- a/index.php +++ b/index.php @@ -495,9 +495,9 @@ if (isset($_POST['login'])) else { ban_loginFailed(); - $redir = ''; + $redir = '&username='. $_POST['login']; if (isset($_GET['post'])) { - $redir = '?post=' . urlencode($_GET['post']); + $redir .= '&post=' . urlencode($_GET['post']); foreach (array('description', 'source', 'title') as $param) { if (!empty($_GET[$param])) { $redir .= '&' . $param . '=' . urlencode($_GET[$param]); @@ -943,6 +943,9 @@ function renderPage() if ($GLOBALS['config']['OPEN_SHAARLI']) { header('Location: ?'); exit; } // No need to login for open Shaarli $token=''; if (ban_canLogin()) $token=getToken(); // Do not waste token generation if not useful. $PAGE->assign('token',$token); + if (isset($_GET['username'])) { + $PAGE->assign('username', escape($_GET['username'])); + } $PAGE->assign('returnurl',(isset($_SERVER['HTTP_REFERER']) ? escape($_SERVER['HTTP_REFERER']):'')); $PAGE->renderPage('loginform'); exit; diff --git a/tpl/loginform.html b/tpl/loginform.html index f0b45df..a49b42d 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -2,7 +2,13 @@ {include="includes"} +{if="ban_canLogin()"} + {if="empty($username)"} + onload="document.loginform.login.focus();" + {else} + onload="document.loginform.password.focus();" + {/if} +{/if}>
    - floral_left + floral_left The Daily Shaarli - floral_right + floral_right
    @@ -50,7 +50,7 @@
    {if="!$hide_timestamps || isLoggedIn()"} @@ -94,7 +94,7 @@ {$value} {/loop}
    -
    -
    +
    -
    {include="page.footer"} diff --git a/tpl/dailyrss.html b/tpl/default/dailyrss.html similarity index 100% rename from tpl/dailyrss.html rename to tpl/default/dailyrss.html diff --git a/tpl/editlink.html b/tpl/default/editlink.html similarity index 97% rename from tpl/editlink.html rename to tpl/default/editlink.html index 870cc16..d3f99fe 100644 --- a/tpl/editlink.html +++ b/tpl/default/editlink.html @@ -1,7 +1,7 @@ {include="includes"} - + - - -{if="is_file('inc/user.css')"}{/if} + + +{if="is_file('inc/user.css')"}{/if} {loop="$plugins_includes.css_files"} {/loop} diff --git a/tpl/install.html b/tpl/default/install.html similarity index 100% rename from tpl/install.html rename to tpl/default/install.html diff --git a/tpl/linklist.html b/tpl/default/linklist.html similarity index 98% rename from tpl/linklist.html rename to tpl/default/linklist.html index d423234..5accc92 100644 --- a/tpl/linklist.html +++ b/tpl/default/linklist.html @@ -1,7 +1,7 @@ - + {include="includes"} diff --git a/tpl/linklist.paging.html b/tpl/default/linklist.paging.html similarity index 100% rename from tpl/linklist.paging.html rename to tpl/default/linklist.paging.html diff --git a/tpl/loginform.html b/tpl/default/loginform.html similarity index 100% rename from tpl/loginform.html rename to tpl/default/loginform.html diff --git a/tpl/opensearch.html b/tpl/default/opensearch.html similarity index 100% rename from tpl/opensearch.html rename to tpl/default/opensearch.html diff --git a/tpl/page.footer.html b/tpl/default/page.footer.html similarity index 100% rename from tpl/page.footer.html rename to tpl/default/page.footer.html diff --git a/tpl/page.header.html b/tpl/default/page.header.html similarity index 100% rename from tpl/page.header.html rename to tpl/default/page.header.html diff --git a/tpl/page.html b/tpl/default/page.html similarity index 100% rename from tpl/page.html rename to tpl/default/page.html diff --git a/tpl/picwall.html b/tpl/default/picwall.html similarity index 100% rename from tpl/picwall.html rename to tpl/default/picwall.html diff --git a/tpl/pluginsadmin.html b/tpl/default/pluginsadmin.html similarity index 100% rename from tpl/pluginsadmin.html rename to tpl/default/pluginsadmin.html diff --git a/tpl/readme.txt b/tpl/default/readme.txt similarity index 100% rename from tpl/readme.txt rename to tpl/default/readme.txt diff --git a/tpl/tagcloud.html b/tpl/default/tagcloud.html similarity index 100% rename from tpl/tagcloud.html rename to tpl/default/tagcloud.html diff --git a/tpl/tools.html b/tpl/default/tools.html similarity index 100% rename from tpl/tools.html rename to tpl/default/tools.html From 69173356cd3e1862dbfd5072120e69ec48a11640 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 4 Jan 2017 18:06:14 +0100 Subject: [PATCH 446/658] API+Docker: enable nginx URL rewriting Closes https://github.com/shaarli/Shaarli/issues/668 Changed: - let nginx rewrite API URLs See: - https://www.slimframework.com/docs/start/web-servers.html - https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info Signed-off-by: VirtualTam --- docker/development/nginx.conf | 9 +++++++++ docker/production/nginx.conf | 9 +++++++++ docker/production/stable/nginx.conf | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/docker/development/nginx.conf b/docker/development/nginx.conf index ac0c6c6..79c45bf 100644 --- a/docker/development/nginx.conf +++ b/docker/development/nginx.conf @@ -56,7 +56,16 @@ http { alias /var/www/shaarli/images/favicon.ico; } + location / { + # Slim - rewrite URLs + try_files $uri /index.php$is_args$args; + } + location ~ (index)\.php$ { + # Slim - split URL path into (script_filename, path_info) + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + # filter and proxy PHP requests to PHP-FPM fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; diff --git a/docker/production/nginx.conf b/docker/production/nginx.conf index 5ffa02d..e8754d9 100644 --- a/docker/production/nginx.conf +++ b/docker/production/nginx.conf @@ -48,7 +48,16 @@ http { alias /var/www/shaarli/images/favicon.ico; } + location / { + # Slim - rewrite URLs + try_files $uri /index.php$is_args$args; + } + location ~ (index)\.php$ { + # Slim - split URL path into (script_filename, path_info) + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + # filter and proxy PHP requests to PHP-FPM fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; diff --git a/docker/production/stable/nginx.conf b/docker/production/stable/nginx.conf index 5ffa02d..e8754d9 100644 --- a/docker/production/stable/nginx.conf +++ b/docker/production/stable/nginx.conf @@ -48,7 +48,16 @@ http { alias /var/www/shaarli/images/favicon.ico; } + location / { + # Slim - rewrite URLs + try_files $uri /index.php$is_args$args; + } + location ~ (index)\.php$ { + # Slim - split URL path into (script_filename, path_info) + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + # filter and proxy PHP requests to PHP-FPM fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; From a0df06517bada0f811b464017ce385290e02c2bf Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 3 Jan 2017 11:42:21 +0100 Subject: [PATCH 447/658] Minor improvements regarding #705 (coding style, unit tests, etc.) --- .gitignore | 4 ++ CHANGELOG.md | 5 +- COPYING | 2 +- application/ApplicationUtils.php | 20 ++++++++ application/PageBuilder.php | 2 +- application/Utils.php | 10 ---- images/squiggle.png | Bin 684 -> 0 bytes index.php | 4 +- tests/ApplicationUtilsTest.php | 44 ++++++++++++++++++ tests/Updater/UpdaterTest.php | 1 + tests/utils/config/configJson.json.php | 3 +- tpl/default/configure.html | 13 +++--- tpl/default/{inc => css}/reset.css | 0 tpl/default/{inc => css}/shaarli.css | 0 tpl/default/daily.html | 8 ++-- .../default/images}/floral_left.png | Bin .../default/images}/floral_right.png | Bin .../default/images/squiggle.png | Bin .../default/images}/squiggle_closing.png | Bin tpl/default/includes.html | 4 +- 20 files changed, 92 insertions(+), 28 deletions(-) delete mode 100644 images/squiggle.png rename tpl/default/{inc => css}/reset.css (100%) rename tpl/default/{inc => css}/shaarli.css (100%) rename {images => tpl/default/images}/floral_left.png (100%) rename {images => tpl/default/images}/floral_right.png (100%) rename images/squiggle2.png => tpl/default/images/squiggle.png (100%) rename {images => tpl/default/images}/squiggle_closing.png (100%) diff --git a/.gitignore b/.gitignore index 9121905..19f3dc8 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,7 @@ phpmd.html # User plugin configuration plugins/*/config.php + +# 3rd party themes +tpl/* +!tpl/default diff --git a/CHANGELOG.md b/CHANGELOG.md index fe775b3..d3ecc1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,14 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [v0.9.0](https://github.com/shaarli/Shaarli/releases/tag/v0.9.0) - UNPUBLISHED -**WARNING**: Shaarli now requires PHP 5.5+. +**WARNING**: Shaarli now requires PHP 5.5+. ### Added - REST API: see [Shaarli API documentation](http://shaarli.github.io/api-documentation/) +- The theme can now be selected in the administration page. ### Changed +- Default template files are moved to a subfolder (`default`). + ### Fixed diff --git a/COPYING b/COPYING index 2292946..547ea57 100644 --- a/COPYING +++ b/COPYING @@ -43,7 +43,7 @@ License: CC-BY (http://creativecommons.org/licenses/by/3.0/) Copyright: (c) 2014 Designmodo Source: http://designmodo.com/linecons-free/ -Files: images/floral_left.png, images/floral_right.png, images/squiggle.png, images/squiggle2.png, images/squiggle_closing.png +Files: images/floral_left.png, images/floral_right.png, images/squiggle.png, images/squiggle_closing.png Licence: Public Domain Source: https://openclipart.org/people/j4p4n/j4p4n_ornimental_bookend_-_left.svg diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index a0f482b..cc009a1 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -195,4 +195,24 @@ class ApplicationUtils return $errors; } + + /** + * Get a list of available themes. + * + * It will return the name of any directory present in the template folder. + * + * @param string $tplDir Templates main directory. + * + * @return array List of theme names. + */ + public static function getThemes($tplDir) + { + $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR); + $themes = []; + foreach ($allTheme as $value) { + $themes[] = str_replace($tplDir.'/', '', $value); + } + + return $themes; + } } diff --git a/application/PageBuilder.php b/application/PageBuilder.php index e226a77..32c7f9f 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php @@ -79,7 +79,7 @@ class PageBuilder $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false)); $this->tpl->assign('token', getToken($this->conf)); // To be removed with a proper theme configuration. - $this->tpl->assign('theme', $this->conf->get('resource.theme', 'default')); + $this->tpl->assign('conf', $this->conf); } /** diff --git a/application/Utils.php b/application/Utils.php index 7556d3c..35d6522 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -270,13 +270,3 @@ function normalize_spaces($string) { return preg_replace('/\s{2,}/', ' ', trim($string)); } - -function getAllTheme($raintpl_tpl) -{ - $allTheme = glob($raintpl_tpl.'/*', GLOB_ONLYDIR); - foreach ($allTheme as $value) { - $themes[] = str_replace($raintpl_tpl.'/', '', $value); - } - - return $themes; -} diff --git a/images/squiggle.png b/images/squiggle.png deleted file mode 100644 index a6ce218c71972a1f48e1e7026a8764e2b2a49c9b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 684 zcmV;d0#p5oP)P001!v1^@s6FBSqg00006VoOIv0RI60 z0RN!9r;`8x010qNS#tmY4c7nw4c7reD4Tcy000McNliru-UtB;02}HY-Bthq0y#-U zK~z}7?bb_(jbR)H@ZZdt8Iw!ycTvfihIz2AAC_y7EFhXxvGpn(P&Xy8A@#O8lM zvbo*_gK)jxo-D-FdXr2-TRlluU;#??BpHK67}-)Mf=%d1;MId<8Ft_;zSqNp@i>JF zUf?#q{;k8CqW?ww3P}a;QT`hQ!>|R9(T%RGRiaAM01huce#V=c(Te4Gf;$+T_oE_R6|)ognn~KQ9xwCbGkM>Mz1WV4h3^mITd78p z(Ks48zJ=^sh$kfA;^O@KX>CR$4rX@L=`&%qs z(S2oP`VgYS*?)y+7=iYIcHyTuhT(V=$sR?%_vy$V`zqID97rKnN5n52!Udehy<}NA z1Td$s#n^#MY1u0aZDsr)72b)hg<_nC^O-BXq7#=39rb#uz9+O~B5uME?1`LRz5QQW zn_Mr>hcb@za;Z_+iF0_6?<+mchIMiCO>rg^>`Q_@ws4_h^V}C{zgI8VgsBP8Jgmuc zTOW$?F0LeIHsetEmpty('general.timezone', date_default_timezone_get()); $conf->setEmpty('general.title', 'Shared links on '. escape(index_url($_SERVER))); -$conf->setEmpty('resource.theme', 'default'); RainTPL::$tpl_dir = $conf->get('resource.raintpl_tpl').'/'.$conf->get('resource.theme').'/'; // template directory RainTPL::$cache_dir = $conf->get('resource.raintpl_tmp'); // cache directory @@ -1155,7 +1155,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) { $PAGE->assign('title', $conf->get('general.title')); $PAGE->assign('theme', $conf->get('resource.theme')); - $PAGE->assign('theme_available', getAllTheme($conf->get('resource.raintpl_tpl'))); + $PAGE->assign('theme_available', ThemeUtils::getThemes($conf->get('resource.raintpl_tpl'))); $PAGE->assign('redirector', $conf->get('redirector.url')); list($timezone_form, $timezone_js) = generateTimeZoneForm($conf->get('general.timezone')); $PAGE->assign('timezone_form', $timezone_form); diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index 634bd0e..c39649e 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php @@ -331,4 +331,48 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase ApplicationUtils::checkResourcePermissions($conf) ); } + + /** + * Test getThemes() with existing theme directories. + */ + public function testGetThemes() + { + $themes = ['theme1', 'default', 'Bl1p_- bL0p']; + foreach ($themes as $theme) { + mkdir('sandbox/tpl/'. $theme, 0777, true); + } + + // include a file which should be ignored + touch('sandbox/tpl/supertheme'); + + $res = ApplicationUtils::getThemes('sandbox/tpl/'); + foreach ($res as $theme) { + $this->assertTrue(in_array($theme, $themes)); + } + $this->assertFalse(in_array('supertheme', $res)); + + foreach ($themes as $theme) { + rmdir('sandbox/tpl/'. $theme); + } + unlink('sandbox/tpl/supertheme'); + rmdir('sandbox/tpl'); + } + + /** + * Test getThemes() without any theme dir. + */ + public function testGetThemesEmpty() + { + mkdir('sandbox/tpl/', 0777, true); + $this->assertEquals([], ApplicationUtils::getThemes('sandbox/tpl/')); + rmdir('sandbox/tpl/'); + } + + /** + * Test getThemes() with an invalid path. + */ + public function testGetThemesInvalid() + { + $this->assertEquals([], ApplicationUtils::getThemes('nope')); + } } diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 0171daa..a153099 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -2,6 +2,7 @@ require_once 'application/config/ConfigManager.php'; require_once 'tests/Updater/DummyUpdater.php'; +require_once 'inc/rain.tpl.class.php'; /** * Class UpdaterTest. diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index 06a302e..13d38c6 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -24,7 +24,8 @@ }, "resource": { "datastore": "tests\/utils\/config\/datastore.php", - "data_dir": "tests\/utils\/config" + "data_dir": "tests\/utils\/config", + "raintpl_tpl": "tpl/" }, "plugins": { "WALLABAG_VERSION": 1 diff --git a/tpl/default/configure.html b/tpl/default/configure.html index 94f6df6..e71133b 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -25,14 +25,15 @@ - diff --git a/tpl/default/inc/reset.css b/tpl/default/css/reset.css similarity index 100% rename from tpl/default/inc/reset.css rename to tpl/default/css/reset.css diff --git a/tpl/default/inc/shaarli.css b/tpl/default/css/shaarli.css similarity index 100% rename from tpl/default/inc/shaarli.css rename to tpl/default/css/shaarli.css diff --git a/tpl/default/daily.html b/tpl/default/daily.html index 024ee32..e86e90b 100644 --- a/tpl/default/daily.html +++ b/tpl/default/daily.html @@ -28,9 +28,9 @@
    - floral_left + floral_left The Daily Shaarli - floral_right + floral_right
    @@ -50,7 +50,7 @@
    {if="!$hide_timestamps || isLoggedIn()"} @@ -94,7 +94,7 @@ {$value} {/loop}
    -
    -
    +
    -
    {include="page.footer"} diff --git a/images/floral_left.png b/tpl/default/images/floral_left.png similarity index 100% rename from images/floral_left.png rename to tpl/default/images/floral_left.png diff --git a/images/floral_right.png b/tpl/default/images/floral_right.png similarity index 100% rename from images/floral_right.png rename to tpl/default/images/floral_right.png diff --git a/images/squiggle2.png b/tpl/default/images/squiggle.png similarity index 100% rename from images/squiggle2.png rename to tpl/default/images/squiggle.png diff --git a/images/squiggle_closing.png b/tpl/default/images/squiggle_closing.png similarity index 100% rename from images/squiggle_closing.png rename to tpl/default/images/squiggle_closing.png diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 2ff5d8d..c3b837f 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html @@ -6,8 +6,8 @@ - - + + {if="is_file('inc/user.css')"}{/if} {loop="$plugins_includes.css_files"} From 04a0e8ea34c241fdf6bd30b11f5242656f9cd1c2 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 3 Jan 2017 12:01:25 +0100 Subject: [PATCH 448/658] Updater: keep custom theme preference with the new theme setting --- application/ApplicationUtils.php | 20 ------------ application/ThemeUtils.php | 33 +++++++++++++++++++ application/Updater.php | 29 +++++++++++++++++ composer.json | 1 + tests/ApplicationUtilsTest.php | 44 ------------------------- tests/ThemeUtilsTest.php | 55 ++++++++++++++++++++++++++++++++ tests/Updater/UpdaterTest.php | 44 +++++++++++++++++++++++++ tpl/default/configure.html | 6 +--- 8 files changed, 163 insertions(+), 69 deletions(-) create mode 100644 application/ThemeUtils.php create mode 100644 tests/ThemeUtilsTest.php diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index cc009a1..a0f482b 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -195,24 +195,4 @@ class ApplicationUtils return $errors; } - - /** - * Get a list of available themes. - * - * It will return the name of any directory present in the template folder. - * - * @param string $tplDir Templates main directory. - * - * @return array List of theme names. - */ - public static function getThemes($tplDir) - { - $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR); - $themes = []; - foreach ($allTheme as $value) { - $themes[] = str_replace($tplDir.'/', '', $value); - } - - return $themes; - } } diff --git a/application/ThemeUtils.php b/application/ThemeUtils.php new file mode 100644 index 0000000..2718ed1 --- /dev/null +++ b/application/ThemeUtils.php @@ -0,0 +1,33 @@ +conf->write($this->isLoggedIn); return true; } + + /** + * New setting: theme name. If the default theme is used, nothing to do. + * + * If the user uses a custom theme, raintpl_tpl dir is updated to the parent directory, + * and the current theme is set as default in the theme setting. + * + * @return bool true if the update is successful, false otherwise. + */ + public function updateMethodDefaultTheme() + { + // raintpl_tpl isn't the root template directory anymore. + // We run the update only if this folder still contains the template files. + $tplDir = $this->conf->get('resource.raintpl_tpl'); + $tplFile = $tplDir . '/linklist.html'; + if (! file_exists($tplFile)) { + return true; + } + + $parent = dirname($tplDir); + $this->conf->set('resource.raintpl_tpl', $parent); + $this->conf->set('resource.theme', trim(str_replace($parent, '', $tplDir), '/')); + $this->conf->write($this->isLoggedIn); + + // Dependency injection gore + RainTPL::$tpl_dir = $tplDir; + + return true; + } } /** diff --git a/composer.json b/composer.json index cfbde1a..2fed0df 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ }, "autoload": { "psr-4": { + "Shaarli\\": "application", "Shaarli\\Api\\": "application/api/", "Shaarli\\Api\\Controllers\\": "application/api/controllers", "Shaarli\\Api\\Exceptions\\": "application/api/exceptions" diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index c39649e..634bd0e 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php @@ -331,48 +331,4 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase ApplicationUtils::checkResourcePermissions($conf) ); } - - /** - * Test getThemes() with existing theme directories. - */ - public function testGetThemes() - { - $themes = ['theme1', 'default', 'Bl1p_- bL0p']; - foreach ($themes as $theme) { - mkdir('sandbox/tpl/'. $theme, 0777, true); - } - - // include a file which should be ignored - touch('sandbox/tpl/supertheme'); - - $res = ApplicationUtils::getThemes('sandbox/tpl/'); - foreach ($res as $theme) { - $this->assertTrue(in_array($theme, $themes)); - } - $this->assertFalse(in_array('supertheme', $res)); - - foreach ($themes as $theme) { - rmdir('sandbox/tpl/'. $theme); - } - unlink('sandbox/tpl/supertheme'); - rmdir('sandbox/tpl'); - } - - /** - * Test getThemes() without any theme dir. - */ - public function testGetThemesEmpty() - { - mkdir('sandbox/tpl/', 0777, true); - $this->assertEquals([], ApplicationUtils::getThemes('sandbox/tpl/')); - rmdir('sandbox/tpl/'); - } - - /** - * Test getThemes() with an invalid path. - */ - public function testGetThemesInvalid() - { - $this->assertEquals([], ApplicationUtils::getThemes('nope')); - } } diff --git a/tests/ThemeUtilsTest.php b/tests/ThemeUtilsTest.php new file mode 100644 index 0000000..e44564b --- /dev/null +++ b/tests/ThemeUtilsTest.php @@ -0,0 +1,55 @@ +assertTrue(in_array($theme, $themes)); + } + $this->assertFalse(in_array('supertheme', $res)); + + foreach ($themes as $theme) { + rmdir('sandbox/tpl/'. $theme); + } + unlink('sandbox/tpl/supertheme'); + rmdir('sandbox/tpl'); + } + + /** + * Test getThemes() without any theme dir. + */ + public function testGetThemesEmpty() + { + mkdir('sandbox/tpl/', 0755, true); + $this->assertEquals([], ThemeUtils::getThemes('sandbox/tpl/')); + rmdir('sandbox/tpl/'); + } + + /** + * Test getThemes() with an invalid path. + */ + public function testGetThemesInvalid() + { + $this->assertEquals([], ThemeUtils::getThemes('nope')); + } +} diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index a153099..1d15cfa 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -422,4 +422,48 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; $this->assertTrue($updater->updateMethodDatastoreIds()); $this->assertEquals($checksum, hash_file('sha1', self::$testDatastore)); } + + /** + * Test defaultTheme update with default settings: nothing to do. + */ + public function testDefaultThemeWithDefaultSettings() + { + $sandbox = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandbox . '.json.php'); + $this->conf = new ConfigManager($sandbox); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodDefaultTheme()); + + $this->assertEquals('tpl/', $this->conf->get('resource.raintpl_tpl')); + $this->assertEquals('default', $this->conf->get('resource.theme')); + $this->conf = new ConfigManager($sandbox); + $this->assertEquals('tpl/', $this->conf->get('resource.raintpl_tpl')); + $this->assertEquals('default', $this->conf->get('resource.theme')); + unlink($sandbox . '.json.php'); + } + + /** + * Test defaultTheme update with a custom theme in a subfolder + */ + public function testDefaultThemeWithCustomTheme() + { + $theme = 'iamanartist'; + $sandbox = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandbox . '.json.php'); + $this->conf = new ConfigManager($sandbox); + mkdir('sandbox/'. $theme); + touch('sandbox/'. $theme .'/linklist.html'); + $this->conf->set('resource.raintpl_tpl', 'sandbox/'. $theme .'/'); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodDefaultTheme()); + + $this->assertEquals('sandbox', $this->conf->get('resource.raintpl_tpl')); + $this->assertEquals($theme, $this->conf->get('resource.theme')); + $this->conf = new ConfigManager($sandbox); + $this->assertEquals('sandbox', $this->conf->get('resource.raintpl_tpl')); + $this->assertEquals($theme, $this->conf->get('resource.theme')); + unlink($sandbox . '.json.php'); + unlink('sandbox/'. $theme .'/linklist.html'); + rmdir('sandbox/'. $theme); + } } diff --git a/tpl/default/configure.html b/tpl/default/configure.html index e71133b..5820e6e 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -25,11 +25,7 @@ - {if="!$link_is_new"}{/if} + {if="!$link_is_new && isset($link.id)"} + + {'Delete'|t} + + {/if} {if="$http_referer"}{/if} From ee6f4b64a91d76070f930cdf7602ab4686714c7a Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 6 Jan 2017 18:54:29 +0100 Subject: [PATCH 453/658] Cleanup: use safe boolean comparisons Signed-off-by: VirtualTam --- application/HttpUtils.php | 2 +- application/LinkUtils.php | 4 +++- application/Updater.php | 2 +- index.php | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/application/HttpUtils.php b/application/HttpUtils.php index e8fc1f5..a81f905 100644 --- a/application/HttpUtils.php +++ b/application/HttpUtils.php @@ -122,7 +122,7 @@ function get_http_response($url, $timeout = 30, $maxBytes = 4194304) $content = substr($response, $headSize); $headers = array(); foreach (preg_split('~[\r\n]+~', $rawHeadersLastRedir) as $line) { - if (empty($line) or ctype_space($line)) { + if (empty($line) || ctype_space($line)) { continue; } $splitLine = explode(': ', $line, 2); diff --git a/application/LinkUtils.php b/application/LinkUtils.php index cf58f80..976474d 100644 --- a/application/LinkUtils.php +++ b/application/LinkUtils.php @@ -89,7 +89,9 @@ function count_private($links) { $cpt = 0; foreach ($links as $link) { - $cpt = $link['private'] == true ? $cpt + 1 : $cpt; + if ($link['private']) { + $cpt += 1; + } } return $cpt; diff --git a/application/Updater.php b/application/Updater.php index 621c723..704ce7a 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -69,7 +69,7 @@ class Updater return $updatesRan; } - if ($this->methods == null) { + if ($this->methods === null) { throw new UpdaterException('Couldn\'t retrieve Updater class methods.'); } diff --git a/index.php b/index.php index e553d1d..a54dfb1 100644 --- a/index.php +++ b/index.php @@ -204,7 +204,7 @@ function setup_login_state($conf) } // If session does not exist on server side, or IP address has changed, or session has expired, logout. if (empty($_SESSION['uid']) - || ($conf->get('security.session_protection_disabled') == false && $_SESSION['ip'] != allIPs()) + || ($conf->get('security.session_protection_disabled') === false && $_SESSION['ip'] != allIPs()) || time() >= $_SESSION['expires_on']) { logout(); From 3ee5c69777af4d5b20cfd8e89e1cc3cf13f640eb Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 6 Jan 2017 18:34:36 +0100 Subject: [PATCH 454/658] Add an AUTHORS file, simplify COPYING, bump year to 2017 Added: - AUTHORS file listing Shaarli contributors - mailmap information to group a Git author's different aliases - Makefile target to list contributors from Git commit data Changed: - Simplify COPYING by using a single "Shaarli Community" entry - Bump year to 2017 See: - man git-shortlog - https://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html#_mapping_authors Signed-off-by: VirtualTam --- .gitattributes | 1 + .github/mailmap | 13 +++++++++++++ AUTHORS | 40 ++++++++++++++++++++++++++++++++++++++++ COPYING | 28 +--------------------------- Makefile | 8 +++++++- 5 files changed, 62 insertions(+), 28 deletions(-) create mode 100644 .github/mailmap create mode 100644 AUTHORS diff --git a/.gitattributes b/.gitattributes index d753b1d..059fbb1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -19,6 +19,7 @@ Dockerfile text # Exclude from Git archives .gitattributes export-ignore +.github export-ignore .gitignore export-ignore .travis.yml export-ignore doc/**/*.json export-ignore diff --git a/.github/mailmap b/.github/mailmap new file mode 100644 index 0000000..41d91e4 --- /dev/null +++ b/.github/mailmap @@ -0,0 +1,13 @@ +ArthurHoaro +Florian Eula feula +Florian Eula +Nicolas Danelon nicolasm +Nicolas Danelon +Nicolas Danelon +Nicolas Danelon +Sébastien Sauvage +Timo Van Neerden +Timo Van Neerden lehollandaisvolant +VirtualTam +VirtualTam +VirtualTam diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..aa041ae --- /dev/null +++ b/AUTHORS @@ -0,0 +1,40 @@ + 327 ArthurHoaro + 188 VirtualTam + 132 nodiscc + 56 Sébastien Sauvage + 15 Florian Eula + 13 Emilien Klein + 12 Nicolas Danelon + 7 Christophe HENRY + 4 Alexandre Alapetite + 4 David Sferruzza + 3 Teromene + 2 Chris Kuethe + 2 Knah Tsaeb + 2 Mathieu Chabanon + 2 Miloš Jovanović + 2 Qwerty + 2 Timo Van Neerden + 2 julienCXX + 2 kalvn + 1 Adrien Oliva + 1 Alexis J + 1 BoboTiG + 1 Bronco + 1 D Low + 1 Dimtion + 1 Fanch + 1 Felix Bartels + 1 Felix Kästner + 1 Florian Voigt + 1 Gary Marigliano + 1 Guillaume Virlet + 1 Jonathan Druart + 1 Julien Pivotto + 1 Kevin Canévet + 1 Knah Tsaeb + 1 Lionel Martin + 1 Marsup + 1 Sbgodin + 1 TsT + 1 dimtion diff --git a/COPYING b/COPYING index 547ea57..4bbdf2b 100644 --- a/COPYING +++ b/COPYING @@ -1,33 +1,7 @@ Files: * License: zlib/libpng Copyright: (c) 2011-2015 Sébastien SAUVAGE - (c) 2011-2015 Alexandre Alapetite - (c) 2011-2015 David Sferruzza - (c) 2011-2015 Christophe HENRY - (c) 2011-2015 Mathieu Chabanon - (c) 2011-2015 BoboTiG - (c) 2011-2015 Bronco - (c) 2011-2015 Emilien Klein - (c) 2011-2015 Knah Tsaeb - (c) 2011-2015 Lionel Martin - (c) 2011-2015 lehollandaisvolant - (c) 2011-2015 timo van neerden - (c) 2011-2015 nodiscc - (c) 2011-2015 Florian Eula - (c) 2011-2015 Arthur Hoaro - (c) 2011-2015 Aurélien "VirtualTam" Tamisier - (c) 2011-2015 qwertygc - (c) 2011-2015 idleman - (c) 2015 Alexis Ju - (c) 2015 dimtion - (c) 2015 Fanch - (c) 2015 Guillaume Virlet - (c) 2015 Felix Bartels - (c) 2015 Marsup - (c) 2015 Miloš Jovanović - (c) 2015 Nicolás Danelón - (c) 2015 TsT - + (c) 2011-2017 The Shaarli Community, see AUTHORS Files: inc/reset.css License: BSD (http://opensource.org/licenses/BSD-3-Clause) diff --git a/Makefile b/Makefile index 60aec9a..f3065b7 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,12 @@ clean: @git clean -df @rm -rf sandbox +### generate the AUTHORS file from Git commit information +authors: + @cp .github/mailmap .mailmap + @git shortlog -sne > AUTHORS + @rm .mailmap + ### generate Doxygen documentation doxygen: clean @rm -rf doxygen @@ -214,4 +220,4 @@ htmlpages: -o doc/$$base.html $$file; \ done; -htmldoc: doc htmlsidebar htmlpages +htmldoc: authors doc htmlsidebar htmlpages From 7282418baa20861dd8132524bc99be65ed9c1c24 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 16:43:32 +0100 Subject: [PATCH 455/658] Move user.css to data folder --- application/Updater.php | 16 ++++++++++++++++ tpl/default/includes.html | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/application/Updater.php b/application/Updater.php index 704ce7a..eb03c6d 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -308,6 +308,22 @@ class Updater return true; } + + /** + * Move the file to inc/user.css to data/user.css. + * + * Note: Due to hardcoded paths, it's not unit testable. But one line of code should be fine. + * + * @return bool true if the update is successful, false otherwise. + */ + public function updateMethodMoveUserCss() + { + if (! is_file('inc/user.css')) { + return true; + } + + return rename('inc/user.css', 'data/user.css'); + } } /** diff --git a/tpl/default/includes.html b/tpl/default/includes.html index c3b837f..17b78b1 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html @@ -8,7 +8,7 @@ -{if="is_file('inc/user.css')"}{/if} +{if="is_file('data/user.css')"}{/if} {loop="$plugins_includes.css_files"} {/loop} From 63ef549749fac9d0e302842f06e7794d1daabc13 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 7 Jan 2017 22:23:47 +0100 Subject: [PATCH 456/658] API: expect JWT in the Authorization header Relates to https://github.com/shaarli/Shaarli/pull/731 Added: - require the presence of the 'Authorization' header Changed: - use the HTTP Bearer Token authorization schema See: - https://jwt.io/introduction/#how-do-json-web-tokens-work- - https://tools.ietf.org/html/rfc6750 - http://security.stackexchange.com/q/108662 Signed-off-by: VirtualTam --- application/api/ApiMiddleware.php | 11 ++++++++--- tests/api/ApiMiddlewareTest.php | 29 ++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/application/api/ApiMiddleware.php b/application/api/ApiMiddleware.php index 162e88e..522091c 100644 --- a/application/api/ApiMiddleware.php +++ b/application/api/ApiMiddleware.php @@ -98,8 +98,7 @@ class ApiMiddleware * @throws ApiAuthorizationException The token couldn't be validated. */ protected function checkToken($request) { - $jwt = $request->getHeaderLine('jwt'); - if (empty($jwt)) { + if (! $request->hasHeader('Authorization')) { throw new ApiAuthorizationException('JWT token not provided'); } @@ -107,7 +106,13 @@ class ApiMiddleware throw new ApiAuthorizationException('Token secret must be set in Shaarli\'s administration'); } - ApiUtils::validateJwtToken($jwt, $this->conf->get('api.secret')); + $authorization = $request->getHeaderLine('Authorization'); + + if (! preg_match('/^Bearer (.*)/i', $authorization, $matches)) { + throw new ApiAuthorizationException('Invalid JWT header'); + } + + ApiUtils::validateJwtToken($matches[1], $this->conf->get('api.secret')); } /** diff --git a/tests/api/ApiMiddlewareTest.php b/tests/api/ApiMiddlewareTest.php index 4d4dd9b..d9753b1 100644 --- a/tests/api/ApiMiddlewareTest.php +++ b/tests/api/ApiMiddlewareTest.php @@ -143,7 +143,7 @@ class ApiMiddlewareTest extends \PHPUnit_Framework_TestCase $env = Environment::mock([ 'REQUEST_METHOD' => 'GET', 'REQUEST_URI' => '/echo', - 'HTTP_JWT'=> 'jwt', + 'HTTP_AUTHORIZATION'=> 'Bearer jwt', ]); $request = Request::createFromEnvironment($env); $response = new Response(); @@ -157,7 +157,30 @@ class ApiMiddlewareTest extends \PHPUnit_Framework_TestCase } /** - * Invoke the middleware without an invalid JWT token (debug): + * Invoke the middleware with an invalid JWT token header + */ + public function testInvalidJwtAuthHeaderDebug() + { + $this->conf->set('dev.debug', true); + $mw = new ApiMiddleware($this->container); + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'REQUEST_URI' => '/echo', + 'HTTP_AUTHORIZATION'=> 'PolarBearer jwt', + ]); + $request = Request::createFromEnvironment($env); + $response = new Response(); + /** @var Response $response */ + $response = $mw($request, $response, null); + + $this->assertEquals(401, $response->getStatusCode()); + $body = json_decode((string) $response->getBody()); + $this->assertEquals('Not authorized: Invalid JWT header', $body->message); + $this->assertContains('ApiAuthorizationException', $body->stacktrace); + } + + /** + * Invoke the middleware with an invalid JWT token (debug): * should return a 401 error Unauthorized - with a specific message and a stacktrace. * * Note: specific JWT errors tests are handled in ApiUtilsTest. @@ -169,7 +192,7 @@ class ApiMiddlewareTest extends \PHPUnit_Framework_TestCase $env = Environment::mock([ 'REQUEST_METHOD' => 'GET', 'REQUEST_URI' => '/echo', - 'HTTP_JWT'=> 'bad jwt', + 'HTTP_AUTHORIZATION'=> 'Bearer jwt', ]); $request = Request::createFromEnvironment($env); $response = new Response(); From c3b00963fe22479e87998c82bc83827a54c8d972 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 22 Dec 2016 14:36:45 +0100 Subject: [PATCH 457/658] REST API: implement getLinks service See http://shaarli.github.io/api-documentation/#links-links-collection-get --- application/api/ApiUtils.php | 31 ++ application/api/controllers/Links.php | 86 ++++++ index.php | 1 + tests/api/ApiUtilsTest.php | 65 +++++ tests/api/controllers/LinksTest.php | 393 ++++++++++++++++++++++++++ 5 files changed, 576 insertions(+) create mode 100644 application/api/controllers/Links.php create mode 100644 tests/api/controllers/LinksTest.php diff --git a/application/api/ApiUtils.php b/application/api/ApiUtils.php index fbb1e72..d024291 100644 --- a/application/api/ApiUtils.php +++ b/application/api/ApiUtils.php @@ -48,4 +48,35 @@ class ApiUtils throw new ApiAuthorizationException('Invalid JWT issued time'); } } + + /** + * Format a Link for the REST API. + * + * @param array $link Link data read from the datastore. + * @param string $indexUrl Shaarli's index URL (used for relative URL). + * + * @return array Link data formatted for the REST API. + */ + public static function formatLink($link, $indexUrl) + { + $out['id'] = $link['id']; + // Not an internal link + if ($link['url'][0] != '?') { + $out['url'] = $link['url']; + } else { + $out['url'] = $indexUrl . $link['url']; + } + $out['shorturl'] = $link['shorturl']; + $out['title'] = $link['title']; + $out['description'] = $link['description']; + $out['tags'] = preg_split('/\s+/', $link['tags'], -1, PREG_SPLIT_NO_EMPTY); + $out['private'] = $link['private'] == true; + $out['created'] = $link['created']->format(\DateTime::ATOM); + if (! empty($link['updated'])) { + $out['updated'] = $link['updated']->format(\DateTime::ATOM); + } else { + $out['updated'] = ''; + } + return $out; + } } diff --git a/application/api/controllers/Links.php b/application/api/controllers/Links.php new file mode 100644 index 0000000..1c7b41c --- /dev/null +++ b/application/api/controllers/Links.php @@ -0,0 +1,86 @@ +getParam('private'); + $links = $this->linkDb->filterSearch( + [ + 'searchtags' => $request->getParam('searchtags', ''), + 'searchterm' => $request->getParam('searchterm', ''), + ], + false, + $private === 'true' || $private === '1' + ); + + // Return links from the {offset}th link, starting from 0. + $offset = $request->getParam('offset'); + if (! empty($offset) && ! ctype_digit($offset)) { + throw new ApiBadParametersException('Invalid offset'); + } + $offset = ! empty($offset) ? intval($offset) : 0; + if ($offset > count($links)) { + return $response->withJson([], 200, $this->jsonStyle); + } + + // limit parameter is either a number of links or 'all' for everything. + $limit = $request->getParam('limit'); + if (empty($limit)) { + $limit = self::$DEFAULT_LIMIT; + } + else if (ctype_digit($limit)) { + $limit = intval($limit); + } else if ($limit === 'all') { + $limit = count($links); + } else { + throw new ApiBadParametersException('Invalid limit'); + } + + // 'environment' is set by Slim and encapsulate $_SERVER. + $index = index_url($this->ci['environment']); + + $out = []; + $cpt = 0; + foreach ($links as $link) { + if (count($out) >= $limit) { + break; + } + if ($cpt++ >= $offset) { + $out[] = ApiUtils::formatLink($link, $index); + } + } + + return $response->withJson($out, 200, $this->jsonStyle); + } +} diff --git a/index.php b/index.php index 2ed14d4..ff24ed7 100644 --- a/index.php +++ b/index.php @@ -2232,6 +2232,7 @@ $app = new \Slim\App($container); // REST API routes $app->group('/api/v1', function() { $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); + $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks'); })->add('\Shaarli\Api\ApiMiddleware'); $response = $app->run(true); diff --git a/tests/api/ApiUtilsTest.php b/tests/api/ApiUtilsTest.php index 10da145..516ee68 100644 --- a/tests/api/ApiUtilsTest.php +++ b/tests/api/ApiUtilsTest.php @@ -203,4 +203,69 @@ class ApiUtilsTest extends \PHPUnit_Framework_TestCase $token = $this->generateCustomJwtToken('{"JSON":1}', '{"iat":' . (time() + 60) . '}', 'secret'); ApiUtils::validateJwtToken($token, 'secret'); } + + /** + * Test formatLink() with a link using all useful fields. + */ + public function testFormatLinkComplete() + { + $indexUrl = 'https://domain.tld/sub/'; + $link = [ + 'id' => 12, + 'url' => 'http://lol.lol', + 'shorturl' => 'abc', + 'title' => 'Important Title', + 'description' => 'It is very lol' . PHP_EOL . 'new line', + 'tags' => 'blip .blop ', + 'private' => '1', + 'created' => \DateTime::createFromFormat('Ymd_His', '20170107_160102'), + 'updated' => \DateTime::createFromFormat('Ymd_His', '20170107_160612'), + ]; + + $expected = [ + 'id' => 12, + 'url' => 'http://lol.lol', + 'shorturl' => 'abc', + 'title' => 'Important Title', + 'description' => 'It is very lol' . PHP_EOL . 'new line', + 'tags' => ['blip', '.blop'], + 'private' => true, + 'created' => '2017-01-07T16:01:02+00:00', + 'updated' => '2017-01-07T16:06:12+00:00', + ]; + + $this->assertEquals($expected, ApiUtils::formatLink($link, $indexUrl)); + } + + /** + * Test formatLink() with only minimal fields filled, and internal link. + */ + public function testFormatLinkMinimalNote() + { + $indexUrl = 'https://domain.tld/sub/'; + $link = [ + 'id' => 12, + 'url' => '?abc', + 'shorturl' => 'abc', + 'title' => 'Note', + 'description' => '', + 'tags' => '', + 'private' => '', + 'created' => \DateTime::createFromFormat('Ymd_His', '20170107_160102'), + ]; + + $expected = [ + 'id' => 12, + 'url' => 'https://domain.tld/sub/?abc', + 'shorturl' => 'abc', + 'title' => 'Note', + 'description' => '', + 'tags' => [], + 'private' => false, + 'created' => '2017-01-07T16:01:02+00:00', + 'updated' => '', + ]; + + $this->assertEquals($expected, ApiUtils::formatLink($link, $indexUrl)); + } } diff --git a/tests/api/controllers/LinksTest.php b/tests/api/controllers/LinksTest.php new file mode 100644 index 0000000..4ead26b --- /dev/null +++ b/tests/api/controllers/LinksTest.php @@ -0,0 +1,393 @@ +conf = new \ConfigManager('tests/utils/config/configJson.json.php'); + $this->refDB = new \ReferenceLinkDB(); + $this->refDB->write(self::$testDatastore); + + $this->container = new Container(); + $this->container['conf'] = $this->conf; + $this->container['db'] = new \LinkDB(self::$testDatastore, true, false); + + $this->controller = new Links($this->container); + } + + /** + * After every test, remove the test datastore. + */ + public function tearDown() + { + @unlink(self::$testDatastore); + } + + /** + * Test basic getLinks service: returns all links. + */ + public function testGetLinks() + { + // Used by index_url(). + $_SERVER['SERVER_NAME'] = 'domain.tld'; + $_SERVER['SERVER_PORT'] = 80; + $_SERVER['SCRIPT_NAME'] = '/'; + + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + ]); + $request = Request::createFromEnvironment($env); + + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals($this->refDB->countLinks(), count($data)); + + // Check order + $order = [41, 8, 6, 7, 0, 1, 4, 42]; + $cpt = 0; + foreach ($data as $link) { + $this->assertEquals(self::NB_FIELDS_LINK, count($link)); + $this->assertEquals($order[$cpt++], $link['id']); + } + + // Check first element fields\ + $first = $data[0]; + $this->assertEquals('http://domain.tld/?WDWyig', $first['url']); + $this->assertEquals('WDWyig', $first['shorturl']); + $this->assertEquals('Link title: @website', $first['title']); + $this->assertEquals( + 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this. #hashtag', + $first['description'] + ); + $this->assertEquals('sTuff', $first['tags'][0]); + $this->assertEquals(false, $first['private']); + $this->assertEquals( + \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20150310_114651')->format(\DateTime::ATOM), + $first['created'] + ); + $this->assertEmpty($first['updated']); + + // Multi tags + $link = $data[1]; + $this->assertEquals(7, count($link['tags'])); + + // Update date + $this->assertEquals( + \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20160803_093033')->format(\DateTime::ATOM), + $link['updated'] + ); + } + + /** + * Test getLinks service with offset and limit parameter: + * limit=1 and offset=1 should return only the second link, ID=8 (ordered by creation date DESC). + */ + public function testGetLinksOffsetLimit() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'offset=1&limit=1' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(1, count($data)); + $this->assertEquals(8, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } + + /** + * Test getLinks with limit=all (return all link). + */ + public function testGetLinksLimitAll() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'limit=all' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals($this->refDB->countLinks(), count($data)); + // Check order + $order = [41, 8, 6, 7, 0, 1, 4, 42]; + $cpt = 0; + foreach ($data as $link) { + $this->assertEquals(self::NB_FIELDS_LINK, count($link)); + $this->assertEquals($order[$cpt++], $link['id']); + } + } + + /** + * Test getLinks service with offset and limit parameter: + * limit=1 and offset=1 should return only the second link, ID=8 (ordered by creation date DESC). + */ + public function testGetLinksOffsetTooHigh() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'offset=100' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEmpty(count($data)); + } + + /** + * Test getLinks with private attribute to 1 or true. + */ + public function testGetLinksPrivate() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'private=true' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals($this->refDB->countPrivateLinks(), count($data)); + $this->assertEquals(6, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'private=1' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals($this->refDB->countPrivateLinks(), count($data)); + $this->assertEquals(6, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } + + /** + * Test getLinks with private attribute to false or 0 + */ + public function testGetLinksNotPrivate() + { + $env = Environment::mock( + [ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'private=0' + ] + ); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string)$response->getBody(), true); + $this->assertEquals($this->refDB->countLinks(), count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + + $env = Environment::mock( + [ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'private=false' + ] + ); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string)$response->getBody(), true); + $this->assertEquals($this->refDB->countLinks(), count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } + + /** + * Test getLinks service with offset and limit parameter: + * limit=1 and offset=1 should return only the second link, ID=8 (ordered by creation date DESC). + */ + public function testGetLinksSearchTerm() + { + // Only in description - 1 result + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=Tropical' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(1, count($data)); + $this->assertEquals(1, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + + // Only in tags - 1 result + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=tag3' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(1, count($data)); + $this->assertEquals(0, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + + // Multiple results (2) + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=stallman' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(2, count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + $this->assertEquals(8, $data[1]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[1])); + + // Multiword - 2 results + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=stallman+software' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(2, count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + $this->assertEquals(8, $data[1]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[1])); + + // URL encoding + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm='. urlencode('@web') + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(2, count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + $this->assertEquals(8, $data[1]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[1])); + } + + public function testGetLinksSearchTermNoResult() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=nope' + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(0, count($data)); + } + + public function testGetLinksSearchTags() + { + // Single tag + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchtags=dev', + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(2, count($data)); + $this->assertEquals(0, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + $this->assertEquals(4, $data[1]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[1])); + + // Multitag + exclude + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchtags=stuff+-gnu', + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(1, count($data)); + $this->assertEquals(41, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } + + /** + * Test getLinks service with search tags+terms. + */ + public function testGetLinksSearchTermsAndTags() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'searchterm=poke&searchtags=dev', + ]); + $request = Request::createFromEnvironment($env); + $response = $this->controller->getLinks($request, new Response()); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(1, count($data)); + $this->assertEquals(0, $data[0]['id']); + $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } +} From d6327389fc5cbb659e7f32fb61b2f1d5c86b02ee Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 15 Jan 2017 17:46:24 +0100 Subject: [PATCH 458/658] Prevent tag duplicate when renaming Fixes #757 --- index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index beb1cbc..5576756 100644 --- a/index.php +++ b/index.php @@ -1207,15 +1207,15 @@ function renderPage($conf, $pluginManager, $LINKSDB) $needle = trim($_POST['fromtag']); // True for case-sensitive tag search. $linksToAlter = $LINKSDB->filterSearch(array('searchtags' => $needle), true); - foreach($linksToAlter as $key=>$value) - { - $tags = explode(' ',trim($value['tags'])); - $tags[array_search($needle,$tags)] = trim($_POST['totag']); // Replace tags value. - $value['tags']=trim(implode(' ',$tags)); - $LINKSDB[$key]=$value; + foreach($linksToAlter as $key=>$value) { + $tags = preg_split('/\s+/', trim($value['tags'])); + // Replace tags value. + $tags[array_search($needle, $tags)] = trim($_POST['totag']); + $value['tags'] = implode(' ', array_unique($tags)); + $LINKSDB[$key] = $value; } $LINKSDB->save($conf->get('resource.page_cache')); // Save to disk. - echo ''; + echo ''; exit; } } From 053673cb71a45a38a2eb517c4e630656a5626327 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 15 Jan 2017 17:50:16 +0100 Subject: [PATCH 459/658] Remove CSS call for addlink toolbar plugin Fixes #724 --- plugins/addlink_toolbar/addlink_toolbar.php | 16 --------- tests/plugins/PluginAddlinkTest.php | 40 --------------------- 2 files changed, 56 deletions(-) diff --git a/plugins/addlink_toolbar/addlink_toolbar.php b/plugins/addlink_toolbar/addlink_toolbar.php index bf8a198..ddf50aa 100644 --- a/plugins/addlink_toolbar/addlink_toolbar.php +++ b/plugins/addlink_toolbar/addlink_toolbar.php @@ -40,19 +40,3 @@ function hook_addlink_toolbar_render_header($data) return $data; } - -/** - * When link list is displayed, include markdown CSS. - * - * @param array $data - includes data. - * - * @return mixed - includes data with markdown CSS file added. - */ -function hook_addlink_toolbar_render_includes($data) -{ - if ($data['_PAGE_'] == Router::$PAGE_LINKLIST && $data['_LOGGEDIN_'] === true) { - $data['css_files'][] = PluginManager::$PLUGINS_PATH . '/addlink_toolbar/addlink_toolbar.css'; - } - - return $data; -} diff --git a/tests/plugins/PluginAddlinkTest.php b/tests/plugins/PluginAddlinkTest.php index b77fe12..b6239e7 100644 --- a/tests/plugins/PluginAddlinkTest.php +++ b/tests/plugins/PluginAddlinkTest.php @@ -57,44 +57,4 @@ class PluginAddlinkTest extends PHPUnit_Framework_TestCase $this->assertEquals($str, $data[$str]); $this->assertArrayNotHasKey('fields_toolbar', $data); } - - /** - * Test render_includes hook while logged in. - */ - public function testAddlinkIncludesLoggedIn() - { - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = Router::$PAGE_LINKLIST; - $data['_LOGGEDIN_'] = true; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertEquals(1, count($data['css_files'])); - - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = $str; - $data['_LOGGEDIN_'] = true; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertArrayNotHasKey('css_files', $data); - } - - /** - * Test render_includes hook. - * Should not affect css files while logged out. - */ - public function testAddlinkIncludesLoggedOut() - { - $str = 'stuff'; - $data = array($str => $str); - $data['_PAGE_'] = Router::$PAGE_LINKLIST; - $data['_LOGGEDIN_'] = false; - - $data = hook_addlink_toolbar_render_includes($data); - $this->assertEquals($str, $data[$str]); - $this->assertArrayNotHasKey('css_files', $data); - } } From 8bbf02e0dbc60395a3ec4e8482d652011379fb60 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 15 Jan 2017 17:58:19 +0100 Subject: [PATCH 460/658] Prevent warning if HTTP_REFERER isn't set Fixes #723 --- index.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index beb1cbc..f736fcf 100644 --- a/index.php +++ b/index.php @@ -1012,7 +1012,12 @@ function renderPage($conf, $pluginManager, $LINKSDB) $_SESSION['LINKS_PER_PAGE']=abs(intval($_GET['linksperpage'])); } - header('Location: '. generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('linksperpage'))); + if (! empty($_SERVER['HTTP_REFERER'])) { + $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('linksperpage')); + } else { + $location = '?'; + } + header('Location: '. $location); exit; } @@ -1024,7 +1029,12 @@ function renderPage($conf, $pluginManager, $LINKSDB) unset($_SESSION['privateonly']); // See all links } - header('Location: '. generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('privateonly'))); + if (! empty($_SERVER['HTTP_REFERER'])) { + $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('privateonly')); + } else { + $location = '?'; + } + header('Location: '. $location); exit; } @@ -1361,7 +1371,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) ) { if (isset($_POST['returnurl'])) { $location = $_POST['returnurl']; // Handle redirects given by the form - } else { + } else if (isset($_SERVER['HTTP_REFERER'])) { $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('delete_link')); } } From 3947bbb0438beae6ef746c4c946fafe40faa27a8 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 15 Jan 2017 19:27:57 +0100 Subject: [PATCH 461/658] Bump expected minimal PHP version to 5.5 Relates to https://github.com/shaarli/Shaarli/issues/599 Relates to db6b09b69ee265a7d775924fcff9c61aaaabf1cb Signed-off-by: VirtualTam --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index beb1cbc..32f5ca3 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ * * Licence: http://www.opensource.org/licenses/zlib-license.php * - * Requires: PHP 5.3.x + * Requires: PHP 5.5.x */ // Set 'UTC' as the default timezone if it is not defined in php.ini @@ -83,7 +83,7 @@ use \Shaarli\ThemeUtils; // Ensure the PHP version is supported try { - ApplicationUtils::checkPHPVersion('5.3', PHP_VERSION); + ApplicationUtils::checkPHPVersion('5.5', PHP_VERSION); } catch(Exception $exc) { header('Content-Type: text/plain; charset=utf-8'); echo $exc->getMessage(); From 36dcf997e404e2cd4bc31d132875484d6cf4e667 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 15 Jan 2017 19:24:17 +0100 Subject: [PATCH 462/658] Update Changelog Signed-off-by: VirtualTam --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ecc1e..d2d6316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,18 +7,50 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [v0.9.0](https://github.com/shaarli/Shaarli/releases/tag/v0.9.0) - UNPUBLISHED +This release introduces the REST API, and requires updating HTTP server +configuration to enable URL rewriting, see: +- https://shaarli.github.io/api-documentation/ +- https://github.com/shaarli/Shaarli/wiki/Server-configuration + **WARNING**: Shaarli now requires PHP 5.5+. ### Added - -- REST API: see [Shaarli API documentation](http://shaarli.github.io/api-documentation/) -- The theme can now be selected in the administration page. +- REST API v1 + - [Slim](https://www.slimframework.com/) framework + - [JSON Web Token](https://jwt.io/introduction/) (JWT) authentication + - versioned API endpoints: + - `/api/v1/info`: get general information on the Shaarli instance + - `/api/v1/links`: get a list of shaared links +- Allow selecting themes/templates from the configuration page +- Add plugin placeholders to Atom/RSS feed templates +- Add OpenSearch to feed templates +- Add `campaign_` to the URL cleanup pattern list +- Add an AUTHORS file and Makefile target to list authors from Git commit data ### Changed +- Docker: enable nginx URL rewriting for the REST API +- Move `user.css` to the `data` folder +- Move default template files to a subfolder (`default`) +- Move PubSubHub to a dedicated plugin +- Coding style: + - explicit method visibility + - safe boolean comparisons + - remove unused variables +- The updater now keeps custom theme preferences +- Simplify the COPYING information -- Default template files are moved to a subfolder (`default`). + +### Removed +- PHP < 5.5 compatibility ### Fixed +- Ignore generated release tarballs +- Hide default port when behind a reverse proxy +- Fix a typo in the Markdown plugin description +- Fix the presence of empty tags for private tags and in search results +- Fix a fatal error during the install +- Fix permalink image alignment in daily page +- Fix the delete button in `editlink` ## [v0.8.1](https://github.com/shaarli/Shaarli/releases/tag/v0.8.1) - 2016-12-12 From fcb0d86b9021c7310fc46a6720504d28c668afd4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 15 Dec 2016 11:49:41 +0100 Subject: [PATCH 463/658] v0.8.2 Changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2d6316..04aacad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,11 @@ configuration to enable URL rewriting, see: - Fix permalink image alignment in daily page - Fix the delete button in `editlink` +## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15 + +### Fixed + +- Editing a link created before the new ID system would change its permalink. ## [v0.8.1](https://github.com/shaarli/Shaarli/releases/tag/v0.8.1) - 2016-12-12 From ae7f6b9d09c0f3e31d64e6c8a9804d5ab0c62eae Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 15 Dec 2016 11:52:31 +0100 Subject: [PATCH 464/658] Bump version to v0.8.2 --- index.php | 4 ++-- shaarli_version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index b27c83b..145ea3f 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ /shaarli/ define('WEB_PATH', substr($_SERVER['REQUEST_URI'], 0, 1+strrpos($_SERVER['REQUEST_URI'], '/', 0))); diff --git a/shaarli_version.php b/shaarli_version.php index 431387b..e93b0e7 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From 95e5add4be1fb98a1cae5d30f4fd6e0d2b0a56bc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 16 Jan 2017 13:07:53 +0100 Subject: [PATCH 465/658] Fix redirection after link deletion relates to #756 --- index.php | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/index.php b/index.php index 145ea3f..677c196 100644 --- a/index.php +++ b/index.php @@ -1349,31 +1349,15 @@ function renderPage($conf, $pluginManager, $LINKSDB) // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && ($_GET['source']=='bookmarklet' || $_GET['source']=='firefoxsocialapi')) { echo ''; exit; } - // Pick where we're going to redirect - // ============================================================= - // Basically, we can't redirect to where we were previously if it was a permalink - // or an edit_link, because it would 404. - // Cases: - // - / : nothing in $_GET, redirect to self - // - /?page : redirect to self - // - /?searchterm : redirect to self (there might be other links) - // - /?searchtags : redirect to self - // - /permalink : redirect to / (the link does not exist anymore) - // - /?edit_link : redirect to / (the link does not exist anymore) - // PHP treats the permalink as a $_GET variable, so we need to check if every condition for self - // redirect is not satisfied, and only then redirect to / - $location = "?"; - // Self redirection - if (count($_GET) == 0 - || isset($_GET['page']) - || isset($_GET['searchterm']) - || isset($_GET['searchtags']) - ) { - if (isset($_POST['returnurl'])) { - $location = $_POST['returnurl']; // Handle redirects given by the form - } else if (isset($_SERVER['HTTP_REFERER'])) { - $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('delete_link')); - } + + $location = '?'; + if (isset($_SERVER['HTTP_REFERER'])) { + // Don't redirect to where we were previously if it was a permalink or an edit_link, because it would 404. + $location = generateLocation( + $_SERVER['HTTP_REFERER'], + $_SERVER['HTTP_HOST'], + ['delete_link', 'edit_link', $link['shorturl']] + ); } header('Location: ' . $location); // After deleting the link, redirect to appropriate location From b87442f216e6745b8472b85ae8fe5d85ede29094 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 16 Jan 2017 13:16:03 +0100 Subject: [PATCH 466/658] Stay on the changetag page after tag deletion + fix changetag CSS alignement relates to #756 --- index.php | 2 +- tpl/default/css/shaarli.css | 2 +- tpl/default/editlink.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 145ea3f..5cc440b 100644 --- a/index.php +++ b/index.php @@ -1208,7 +1208,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) $LINKSDB[$key]=$value; } $LINKSDB->save($conf->get('resource.page_cache')); - echo ''; + echo ''; exit; } diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 6d73af3..7ca567e 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -55,7 +55,7 @@ strong { cursor: pointer; height: 24px; padding: 0 5px; - margin: 5px 5px 0 0; + margin: 0 5px 0 0; color: #606060; border-style: outset; border-width: 1px; diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index a2d9b78..f855dfb 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -35,7 +35,7 @@  
    {else} -  
    +  

    {/if} From 7f96d9ec21a95cb85d0292b46e18235b20efbcb2 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 16 Jan 2017 13:57:11 +0100 Subject: [PATCH 467/658] Update LinkFilter to be able to filter only public links No update regarding the UI or the API for now Fixes #758 --- application/LinkDB.php | 6 +-- application/LinkFilter.php | 60 +++++++++++++--------- application/api/controllers/Links.php | 3 +- index.php | 4 +- tests/LinkFilterTest.php | 73 +++++++++++++++++++++++---- 5 files changed, 107 insertions(+), 39 deletions(-) diff --git a/application/LinkDB.php b/application/LinkDB.php index 1e13286..4cee2af 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -443,11 +443,11 @@ You use the community supported version of the original Shaarli project, by Seba * - searchtags: list of tags * - searchterm: term search * @param bool $casesensitive Optional: Perform case sensitive filter - * @param bool $privateonly Optional: Returns private links only if true. + * @param string $visibility return only all/private/public links * * @return array filtered links, all links if no suitable filter was provided. */ - public function filterSearch($filterRequest = array(), $casesensitive = false, $privateonly = false) + public function filterSearch($filterRequest = array(), $casesensitive = false, $visibility = 'all') { // Filter link database according to parameters. $searchtags = !empty($filterRequest['searchtags']) ? escape($filterRequest['searchtags']) : ''; @@ -475,7 +475,7 @@ You use the community supported version of the original Shaarli project, by Seba } $linkFilter = new LinkFilter($this); - return $linkFilter->filter($type, $request, $casesensitive, $privateonly); + return $linkFilter->filter($type, $request, $casesensitive, $visibility); } /** diff --git a/application/LinkFilter.php b/application/LinkFilter.php index 57ebfd5..81832a4 100644 --- a/application/LinkFilter.php +++ b/application/LinkFilter.php @@ -51,12 +51,16 @@ class LinkFilter * @param string $type Type of filter (eg. tags, permalink, etc.). * @param mixed $request Filter content. * @param bool $casesensitive Optional: Perform case sensitive filter if true. - * @param bool $privateonly Optional: Only returns private links if true. + * @param string $visibility Optional: return only all/private/public links * * @return array filtered link list. */ - public function filter($type, $request, $casesensitive = false, $privateonly = false) + public function filter($type, $request, $casesensitive = false, $visibility = 'all') { + if (! in_array($visibility, ['all', 'public', 'private'])) { + $visibility = 'all'; + } + switch($type) { case self::$FILTER_HASH: return $this->filterSmallHash($request); @@ -64,42 +68,44 @@ class LinkFilter if (!empty($request)) { $filtered = $this->links; if (isset($request[0])) { - $filtered = $this->filterTags($request[0], $casesensitive, $privateonly); + $filtered = $this->filterTags($request[0], $casesensitive, $visibility); } if (isset($request[1])) { $lf = new LinkFilter($filtered); - $filtered = $lf->filterFulltext($request[1], $privateonly); + $filtered = $lf->filterFulltext($request[1], $visibility); } return $filtered; } - return $this->noFilter($privateonly); + return $this->noFilter($visibility); case self::$FILTER_TEXT: - return $this->filterFulltext($request, $privateonly); + return $this->filterFulltext($request, $visibility); case self::$FILTER_TAG: - return $this->filterTags($request, $casesensitive, $privateonly); + return $this->filterTags($request, $casesensitive, $visibility); case self::$FILTER_DAY: return $this->filterDay($request); default: - return $this->noFilter($privateonly); + return $this->noFilter($visibility); } } /** * Unknown filter, but handle private only. * - * @param bool $privateonly returns private link only if true. + * @param string $visibility Optional: return only all/private/public links * * @return array filtered links. */ - private function noFilter($privateonly = false) + private function noFilter($visibility = 'all') { - if (! $privateonly) { + if ($visibility === 'all') { return $this->links; } $out = array(); foreach ($this->links as $key => $value) { - if ($value['private']) { + if ($value['private'] && $visibility === 'private') { + $out[$key] = $value; + } else if (! $value['private'] && $visibility === 'public') { $out[$key] = $value; } } @@ -151,14 +157,14 @@ class LinkFilter * - see https://github.com/shaarli/Shaarli/issues/75 for examples * * @param string $searchterms search query. - * @param bool $privateonly return only private links if true. + * @param string $visibility Optional: return only all/private/public links. * * @return array search results. */ - private function filterFulltext($searchterms, $privateonly = false) + private function filterFulltext($searchterms, $visibility = 'all') { if (empty($searchterms)) { - return $this->links; + return $this->noFilter($visibility); } $filtered = array(); @@ -189,8 +195,12 @@ class LinkFilter foreach ($this->links as $id => $link) { // ignore non private links when 'privatonly' is on. - if (! $link['private'] && $privateonly === true) { - continue; + if ($visibility !== 'all') { + if (! $link['private'] && $visibility === 'private') { + continue; + } else if ($link['private'] && $visibility === 'public') { + continue; + } } // Concatenate link fields to search across fields. @@ -235,16 +245,16 @@ class LinkFilter * * @param string $tags list of tags separated by commas or blank spaces. * @param bool $casesensitive ignore case if false. - * @param bool $privateonly returns private links only. + * @param string $visibility Optional: return only all/private/public links. * * @return array filtered links. */ - public function filterTags($tags, $casesensitive = false, $privateonly = false) + public function filterTags($tags, $casesensitive = false, $visibility = 'all') { // Implode if array for clean up. $tags = is_array($tags) ? trim(implode(' ', $tags)) : $tags; if (empty($tags)) { - return $this->links; + return $this->noFilter($visibility); } $searchtags = self::tagsStrToArray($tags, $casesensitive); @@ -255,8 +265,12 @@ class LinkFilter foreach ($this->links as $key => $link) { // ignore non private links when 'privatonly' is on. - if (! $link['private'] && $privateonly === true) { - continue; + if ($visibility !== 'all') { + if (! $link['private'] && $visibility === 'private') { + continue; + } else if ($link['private'] && $visibility === 'public') { + continue; + } } $linktags = self::tagsStrToArray($link['tags'], $casesensitive); @@ -341,7 +355,7 @@ class LinkFilter * @param bool $casesensitive will convert everything to lowercase if false. * * @return array filtered tags string. - */ + */ public static function tagsStrToArray($tags, $casesensitive) { // We use UTF-8 conversion to handle various graphemes (i.e. cyrillic, or greek) diff --git a/application/api/controllers/Links.php b/application/api/controllers/Links.php index 1c7b41c..01b7e78 100644 --- a/application/api/controllers/Links.php +++ b/application/api/controllers/Links.php @@ -41,7 +41,8 @@ class Links extends ApiController 'searchterm' => $request->getParam('searchterm', ''), ], false, - $private === 'true' || $private === '1' + // to updated in another PR depending on the API doc + ($private === 'true' || $private === '1') ? 'private' : 'all' ); // Return links from the {offset}th link, starting from 0. diff --git a/index.php b/index.php index 145ea3f..4f07a01 100644 --- a/index.php +++ b/index.php @@ -1630,8 +1630,8 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager) } } else { // Filter links according search parameters. - $privateonly = !empty($_SESSION['privateonly']); - $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $privateonly); + $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all'; + $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $visibility); } // ---- Handle paging. diff --git a/tests/LinkFilterTest.php b/tests/LinkFilterTest.php index 21d680a..37d5ca3 100644 --- a/tests/LinkFilterTest.php +++ b/tests/LinkFilterTest.php @@ -12,13 +12,18 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase */ protected static $linkFilter; + /** + * @var ReferenceLinkDB instance + */ + protected static $refDB; + /** * Instanciate linkFilter with ReferenceLinkDB data. */ public static function setUpBeforeClass() { - $refDB = new ReferenceLinkDB(); - self::$linkFilter = new LinkFilter($refDB->getLinks()); + self::$refDB = new ReferenceLinkDB(); + self::$linkFilter = new LinkFilter(self::$refDB->getLinks()); } /** @@ -27,14 +32,30 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase public function testFilter() { $this->assertEquals( - ReferenceLinkDB::$NB_LINKS_TOTAL, + self::$refDB->countLinks(), count(self::$linkFilter->filter('', '')) ); + $this->assertEquals( + self::$refDB->countLinks(), + count(self::$linkFilter->filter('', '', 'all')) + ); + + $this->assertEquals( + self::$refDB->countLinks(), + count(self::$linkFilter->filter('', '', 'randomstr')) + ); + // Private only. $this->assertEquals( - 2, - count(self::$linkFilter->filter('', '', false, true)) + self::$refDB->countPrivateLinks(), + count(self::$linkFilter->filter('', '', false, 'private')) + ); + + // Public only. + $this->assertEquals( + self::$refDB->countPublicLinks(), + count(self::$linkFilter->filter('', '', false, 'public')) ); $this->assertEquals( @@ -58,10 +79,26 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false)) ); + $this->assertEquals( + 4, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, 'all')) + ); + + $this->assertEquals( + 4, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, 'default-blabla')) + ); + // Private only. $this->assertEquals( 1, - count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, true)) + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, 'private')) + ); + + // Public only. + $this->assertEquals( + 3, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, 'web', false, 'public')) ); } @@ -253,14 +290,30 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase public function testFilterFullTextTags() { $this->assertEquals( - 2, - count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'gnu')) + 6, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web')) + ); + + $this->assertEquals( + 6, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', 'all')) + ); + + $this->assertEquals( + 6, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', 'bla')) ); // Private only. $this->assertEquals( 1, - count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', false, true)) + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', false, 'private')) + ); + + // Public only. + $this->assertEquals( + 5, + count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, 'web', false, 'public')) ); } @@ -409,7 +462,7 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase LinkFilter::$FILTER_TAG, $hashtag, false, - true + 'private' )) ); } From c37a6f820b0a213ee2d5980a96aafac262aeb97a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 17 Jan 2017 18:51:40 +0100 Subject: [PATCH 468/658] REST API - getLinks: support the visibility parameter --- application/api/controllers/Links.php | 5 ++- tests/api/controllers/LinksTest.php | 50 ++++++++++++--------------- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/application/api/controllers/Links.php b/application/api/controllers/Links.php index 01b7e78..0a7968e 100644 --- a/application/api/controllers/Links.php +++ b/application/api/controllers/Links.php @@ -34,15 +34,14 @@ class Links extends ApiController */ public function getLinks($request, $response) { - $private = $request->getParam('private'); + $private = $request->getParam('visibility'); $links = $this->linkDb->filterSearch( [ 'searchtags' => $request->getParam('searchtags', ''), 'searchterm' => $request->getParam('searchterm', ''), ], false, - // to updated in another PR depending on the API doc - ($private === 'true' || $private === '1') ? 'private' : 'all' + $private ); // Return links from the {offset}th link, starting from 0. diff --git a/tests/api/controllers/LinksTest.php b/tests/api/controllers/LinksTest.php index 4ead26b..284c3a9 100644 --- a/tests/api/controllers/LinksTest.php +++ b/tests/api/controllers/LinksTest.php @@ -188,25 +188,33 @@ class LinksTest extends \PHPUnit_Framework_TestCase } /** - * Test getLinks with private attribute to 1 or true. + * Test getLinks with visibility parameter set to all */ - public function testGetLinksPrivate() + public function testGetLinksVisibilityAll() { - $env = Environment::mock([ - 'REQUEST_METHOD' => 'GET', - 'QUERY_STRING' => 'private=true' - ]); + $env = Environment::mock( + [ + 'REQUEST_METHOD' => 'GET', + 'QUERY_STRING' => 'visibility=all' + ] + ); $request = Request::createFromEnvironment($env); $response = $this->controller->getLinks($request, new Response()); $this->assertEquals(200, $response->getStatusCode()); - $data = json_decode((string) $response->getBody(), true); - $this->assertEquals($this->refDB->countPrivateLinks(), count($data)); - $this->assertEquals(6, $data[0]['id']); + $data = json_decode((string)$response->getBody(), true); + $this->assertEquals($this->refDB->countLinks(), count($data)); + $this->assertEquals(41, $data[0]['id']); $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); + } + /** + * Test getLinks with visibility parameter set to private + */ + public function testGetLinksVisibilityPrivate() + { $env = Environment::mock([ 'REQUEST_METHOD' => 'GET', - 'QUERY_STRING' => 'private=1' + 'QUERY_STRING' => 'visibility=private' ]); $request = Request::createFromEnvironment($env); $response = $this->controller->getLinks($request, new Response()); @@ -218,35 +226,21 @@ class LinksTest extends \PHPUnit_Framework_TestCase } /** - * Test getLinks with private attribute to false or 0 + * Test getLinks with visibility parameter set to public */ - public function testGetLinksNotPrivate() + public function testGetLinksVisibilityPublic() { $env = Environment::mock( [ 'REQUEST_METHOD' => 'GET', - 'QUERY_STRING' => 'private=0' + 'QUERY_STRING' => 'visibility=public' ] ); $request = Request::createFromEnvironment($env); $response = $this->controller->getLinks($request, new Response()); $this->assertEquals(200, $response->getStatusCode()); $data = json_decode((string)$response->getBody(), true); - $this->assertEquals($this->refDB->countLinks(), count($data)); - $this->assertEquals(41, $data[0]['id']); - $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); - - $env = Environment::mock( - [ - 'REQUEST_METHOD' => 'GET', - 'QUERY_STRING' => 'private=false' - ] - ); - $request = Request::createFromEnvironment($env); - $response = $this->controller->getLinks($request, new Response()); - $this->assertEquals(200, $response->getStatusCode()); - $data = json_decode((string)$response->getBody(), true); - $this->assertEquals($this->refDB->countLinks(), count($data)); + $this->assertEquals($this->refDB->countPublicLinks(), count($data)); $this->assertEquals(41, $data[0]['id']); $this->assertEquals(self::NB_FIELDS_LINK, count($data[0])); } From 848939b7ba6e34789baa32e467042f481754e2e5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 15 Dec 2016 10:57:11 +0100 Subject: [PATCH 469/658] Fixes can login function call in loginform.html Fixes #711 --- .travis.yml | 1 + tpl/loginform.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9ffb3d0..6ff1b20 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ cache: directories: - $HOME/.composer/cache php: + - 7.1 - 7.0 - 5.6 - 5.5 diff --git a/tpl/loginform.html b/tpl/loginform.html index a49b42d..8417638 100644 --- a/tpl/loginform.html +++ b/tpl/loginform.html @@ -2,7 +2,7 @@ {include="includes"} - {if="!ban_canLogin()"} + {if="!ban_canLogin($conf)"} You have been banned from login after too many failed attempts. Try later. {else}
    From faf8bdda50ed8ed393e8840e341239aa41a139f8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Jan 2017 16:44:52 +0100 Subject: [PATCH 470/658] Changelog v0.8.3 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3157d5..502fdad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +## [v0.8.3](https://github.com/shaarli/Shaarli/releases/tag/v0.8.3) - 2017-01-20 + +### Fixed + +- PHP 7.1 compatibility: add ConfigManager parameter to anti-bruteforce function call in login template. + ## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15 ### Fixed From 63bddaad4b6578d5d9a5728cba9f2f0d552805e5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Jan 2017 16:47:36 +0100 Subject: [PATCH 471/658] Bump version to v0.8.3 Signed-off-by: ArthurHoaro --- index.php | 2 +- shaarli_version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 62bdffd..17fb4a2 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ + From 90d4ed9850fa1d26412052c7b4c9b9b984c21e26 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Jan 2017 16:44:52 +0100 Subject: [PATCH 472/658] Changelog v0.8.3 --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 04aacad..7e98a5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,12 @@ configuration to enable URL rewriting, see: - Fix permalink image alignment in daily page - Fix the delete button in `editlink` +## [v0.8.3](https://github.com/shaarli/Shaarli/releases/tag/v0.8.3) - 2017-01-20 + +### Fixed + +- PHP 7.1 compatibility: add ConfigManager parameter to anti-bruteforce function call in login template. + ## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15 ### Fixed From 03cadbe2208f865af3da8986cb9820cbb5e1fb24 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 20 Jan 2017 16:47:36 +0100 Subject: [PATCH 473/658] Bump version to v0.8.3 Signed-off-by: ArthurHoaro --- index.php | 2 +- shaarli_version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index b62149f..d1eee09 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ + From c03455af1161befa404ed8759ca55b63bbf593a2 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 4 Feb 2017 12:01:48 +0100 Subject: [PATCH 474/658] Fixes #775: LinkDB do not access LinkDB before ID system migration To access LinkDB items with its ArrayAccess implementation, the IDs must be consistent, which isn't the case before `updateMethodDatastoreIds()` execution. v0.6.4 method `updateMethodRenameDashTags()` was accessing it, so an upgrade <0.6.4 to >0.8.x was failing. This just move the minor update `RenameDashTags` after the IDs update. --- application/Updater.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/application/Updater.php b/application/Updater.php index eb03c6d..90aba74 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -132,21 +132,6 @@ class Updater return true; } - /** - * Rename tags starting with a '-' to work with tag exclusion search. - */ - public function updateMethodRenameDashTags() - { - $linklist = $this->linkDB->filterSearch(); - foreach ($linklist as $key => $link) { - $link['tags'] = preg_replace('/(^| )\-/', '$1', $link['tags']); - $link['tags'] = implode(' ', array_unique(LinkFilter::tagsStrToArray($link['tags'], true))); - $this->linkDB[$key] = $link; - } - $this->linkDB->save($this->conf->get('resource.page_cache')); - return true; - } - /** * Move old configuration in PHP to the new config system in JSON format. * @@ -257,6 +242,21 @@ class Updater return true; } + /** + * Rename tags starting with a '-' to work with tag exclusion search. + */ + public function updateMethodRenameDashTags() + { + $linklist = $this->linkDB->filterSearch(); + foreach ($linklist as $key => $link) { + $link['tags'] = preg_replace('/(^| )\-/', '$1', $link['tags']); + $link['tags'] = implode(' ', array_unique(LinkFilter::tagsStrToArray($link['tags'], true))); + $this->linkDB[$key] = $link; + } + $this->linkDB->save($this->conf->get('resource.page_cache')); + return true; + } + /** * Initialize API settings: * - api.enabled: true From 16e3d006e9e9386001881053f610657525feb188 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 24 Dec 2016 10:30:21 +0100 Subject: [PATCH 475/658] REST API: implements getLink by ID service See http://shaarli.github.io/api-documentation/#links-link-get --- application/api/controllers/Links.php | 25 +++- .../exceptions/ApiLinkNotFoundException.php | 32 +++++ index.php | 5 +- tests/api/controllers/GetLinkIdTest.php | 130 ++++++++++++++++++ .../{LinksTest.php => GetLinksTest.php} | 13 +- 5 files changed, 195 insertions(+), 10 deletions(-) create mode 100644 application/api/exceptions/ApiLinkNotFoundException.php create mode 100644 tests/api/controllers/GetLinkIdTest.php rename tests/api/controllers/{LinksTest.php => GetLinksTest.php} (98%) diff --git a/application/api/controllers/Links.php b/application/api/controllers/Links.php index 0a7968e..d4f1a09 100644 --- a/application/api/controllers/Links.php +++ b/application/api/controllers/Links.php @@ -4,6 +4,7 @@ namespace Shaarli\Api\Controllers; use Shaarli\Api\ApiUtils; use Shaarli\Api\Exceptions\ApiBadParametersException; +use Shaarli\Api\Exceptions\ApiLinkNotFoundException; use Slim\Http\Request; use Slim\Http\Response; @@ -58,8 +59,7 @@ class Links extends ApiController $limit = $request->getParam('limit'); if (empty($limit)) { $limit = self::$DEFAULT_LIMIT; - } - else if (ctype_digit($limit)) { + } else if (ctype_digit($limit)) { $limit = intval($limit); } else if ($limit === 'all') { $limit = count($links); @@ -83,4 +83,25 @@ class Links extends ApiController return $response->withJson($out, 200, $this->jsonStyle); } + + /** + * Return a single formatted link by its ID. + * + * @param Request $request Slim request. + * @param Response $response Slim response. + * @param array $args Path parameters. including the ID. + * + * @return Response containing the link array. + * + * @throws ApiLinkNotFoundException generating a 404 error. + */ + public function getLink($request, $response, $args) + { + if (! isset($this->linkDb[$args['id']])) { + throw new ApiLinkNotFoundException(); + } + $index = index_url($this->ci['environment']); + $out = ApiUtils::formatLink($this->linkDb[$args['id']], $index); + return $response->withJson($out, 200, $this->jsonStyle); + } } diff --git a/application/api/exceptions/ApiLinkNotFoundException.php b/application/api/exceptions/ApiLinkNotFoundException.php new file mode 100644 index 0000000..de7e14f --- /dev/null +++ b/application/api/exceptions/ApiLinkNotFoundException.php @@ -0,0 +1,32 @@ +message = 'Link not found'; + } + + /** + * {@inheritdoc} + */ + public function getApiResponse() + { + return $this->buildApiResponse(404); + } +} diff --git a/index.php b/index.php index d1eee09..8eb36d8 100644 --- a/index.php +++ b/index.php @@ -2232,12 +2232,13 @@ $app = new \Slim\App($container); $app->group('/api/v1', function() { $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks'); + $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink'); })->add('\Shaarli\Api\ApiMiddleware'); $response = $app->run(true); // Hack to make Slim and Shaarli router work together: -// If a Slim route isn't found, we call renderPage(). -if ($response->getStatusCode() == 404) { +// If a Slim route isn't found and NOT API call, we call renderPage(). +if ($response->getStatusCode() == 404 && strpos($_SERVER['REQUEST_URI'], '/api/v1') === false) { // We use UTF-8 for proper international characters handling. header('Content-Type: text/html; charset=utf-8'); renderPage($conf, $pluginManager, $linkDb); diff --git a/tests/api/controllers/GetLinkIdTest.php b/tests/api/controllers/GetLinkIdTest.php new file mode 100644 index 0000000..1b02050 --- /dev/null +++ b/tests/api/controllers/GetLinkIdTest.php @@ -0,0 +1,130 @@ +conf = new \ConfigManager('tests/utils/config/configJson'); + $this->refDB = new \ReferenceLinkDB(); + $this->refDB->write(self::$testDatastore); + + $this->container = new Container(); + $this->container['conf'] = $this->conf; + $this->container['db'] = new \LinkDB(self::$testDatastore, true, false); + + $this->controller = new Links($this->container); + } + + /** + * After each test, remove the test datastore. + */ + public function tearDown() + { + @unlink(self::$testDatastore); + } + + /** + * Test basic getLink service: return link ID=41. + */ + public function testGetLinkId() + { + // Used by index_url(). + $_SERVER['SERVER_NAME'] = 'domain.tld'; + $_SERVER['SERVER_PORT'] = 80; + $_SERVER['SCRIPT_NAME'] = '/'; + + $id = 41; + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + ]); + $request = Request::createFromEnvironment($env); + + $response = $this->controller->getLink($request, new Response(), ['id' => $id]); + $this->assertEquals(200, $response->getStatusCode()); + $data = json_decode((string) $response->getBody(), true); + $this->assertEquals(self::NB_FIELDS_LINK, count($data)); + $this->assertEquals($id, $data['id']); + + // Check link elements + $this->assertEquals('http://domain.tld/?WDWyig', $data['url']); + $this->assertEquals('WDWyig', $data['shorturl']); + $this->assertEquals('Link title: @website', $data['title']); + $this->assertEquals( + 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this. #hashtag', + $data['description'] + ); + $this->assertEquals('sTuff', $data['tags'][0]); + $this->assertEquals(false, $data['private']); + $this->assertEquals( + \DateTime::createFromFormat(\LinkDB::LINK_DATE_FORMAT, '20150310_114651')->format(\DateTime::ATOM), + $data['created'] + ); + $this->assertEmpty($data['updated']); + } + + /** + * Test basic getLink service: get non existent link => ApiLinkNotFoundException. + * + * @expectedException Shaarli\Api\Exceptions\ApiLinkNotFoundException + * @expectedExceptionMessage Link not found + */ + public function testGetLink404() + { + $env = Environment::mock([ + 'REQUEST_METHOD' => 'GET', + ]); + $request = Request::createFromEnvironment($env); + + $this->controller->getLink($request, new Response(), ['id' => -1]); + } +} diff --git a/tests/api/controllers/LinksTest.php b/tests/api/controllers/GetLinksTest.php similarity index 98% rename from tests/api/controllers/LinksTest.php rename to tests/api/controllers/GetLinksTest.php index 284c3a9..da54fcf 100644 --- a/tests/api/controllers/LinksTest.php +++ b/tests/api/controllers/GetLinksTest.php @@ -9,14 +9,15 @@ use Slim\Http\Request; use Slim\Http\Response; /** - * Class LinksTest + * Class GetLinksTest * - * Test Links REST API services. - * Note that api call results are tightly related to data contained in ReferenceLinkDB. + * Test get Link list REST API service. + * + * @see http://shaarli.github.io/api-documentation/#links-links-collection-get * * @package Shaarli\Api\Controllers */ -class LinksTest extends \PHPUnit_Framework_TestCase +class GetLinksTest extends \PHPUnit_Framework_TestCase { /** * @var string datastore to test write operations @@ -53,7 +54,7 @@ class LinksTest extends \PHPUnit_Framework_TestCase */ public function setUp() { - $this->conf = new \ConfigManager('tests/utils/config/configJson.json.php'); + $this->conf = new \ConfigManager('tests/utils/config/configJson'); $this->refDB = new \ReferenceLinkDB(); $this->refDB->write(self::$testDatastore); @@ -100,7 +101,7 @@ class LinksTest extends \PHPUnit_Framework_TestCase $this->assertEquals($order[$cpt++], $link['id']); } - // Check first element fields\ + // Check first element fields $first = $data[0]; $this->assertEquals('http://domain.tld/?WDWyig', $first['url']); $this->assertEquals('WDWyig', $first['shorturl']); From b848615c52660f9e3173ab7eedab29af0c49a4fc Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Wed, 22 Feb 2017 14:55:52 +0100 Subject: [PATCH 476/658] Removes spaces before and after bookmarklet's name Carriage returns turns into space in some cases. The name of the bookmarklet, once in the browser bookmarks, is surrounded by spaces. --- tpl/default/tools.html | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tpl/default/tools.html b/tpl/default/tools.html index e06d239..c36aa5b 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -30,9 +30,7 @@ '&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1' ); } - )();"> - ✚Shaare link - + )();">✚Shaare link ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    @@ -41,9 +39,7 @@


    - ✚Add Note - + href="?private=1&post=">✚Add Note ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    @@ -52,9 +48,7 @@


    {if="$sslenabled"} - - ✚Add to Firefox social - + ✚Add to Firefox social ⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.

    From 009ce9358168cc06c76fc2f4162829e552e633a3 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 15:51:30 +0100 Subject: [PATCH 477/658] Move default template to vintage folder --- .gitignore | 1 + tpl/{default => vintage}/404.html | 0 tpl/{default => vintage}/addlink.html | 0 tpl/{default => vintage}/changepassword.html | 0 tpl/{default => vintage}/changetag.html | 0 tpl/{default => vintage}/configure.html | 0 tpl/{default => vintage}/css/reset.css | 0 tpl/{default => vintage}/css/shaarli.css | 0 tpl/{default => vintage}/daily.html | 0 tpl/{default => vintage}/dailyrss.html | 0 tpl/{default => vintage}/editlink.html | 0 tpl/{default => vintage}/export.bookmarks.html | 0 tpl/{default => vintage}/export.html | 0 tpl/{default => vintage}/feed.atom.html | 0 tpl/{default => vintage}/feed.rss.html | 0 .../images/50pc_transparent.png | Bin .../images/Paper_texture_v5_by_bashcorpo_w1000.jpg | Bin tpl/{default => vintage}/images/calendar.png | Bin tpl/{default => vintage}/images/floral_left.png | Bin tpl/{default => vintage}/images/floral_right.png | Bin tpl/{default => vintage}/images/private.png | Bin tpl/{default => vintage}/images/squiggle.png | Bin .../images/squiggle_closing.png | Bin tpl/{default => vintage}/images/tag_blue.png | Bin tpl/{default => vintage}/import.html | 0 tpl/{default => vintage}/includes.html | 0 tpl/{default => vintage}/install.html | 0 tpl/{default => vintage}/linklist.html | 0 tpl/{default => vintage}/linklist.paging.html | 0 tpl/{default => vintage}/loginform.html | 0 tpl/{default => vintage}/opensearch.html | 0 tpl/{default => vintage}/page.footer.html | 0 tpl/{default => vintage}/page.header.html | 0 tpl/{default => vintage}/page.html | 0 tpl/{default => vintage}/picwall.html | 0 tpl/{default => vintage}/pluginsadmin.html | 0 tpl/{default => vintage}/readme.txt | 0 tpl/{default => vintage}/tagcloud.html | 0 tpl/{default => vintage}/tools.html | 0 39 files changed, 1 insertion(+) rename tpl/{default => vintage}/404.html (100%) rename tpl/{default => vintage}/addlink.html (100%) rename tpl/{default => vintage}/changepassword.html (100%) rename tpl/{default => vintage}/changetag.html (100%) rename tpl/{default => vintage}/configure.html (100%) rename tpl/{default => vintage}/css/reset.css (100%) rename tpl/{default => vintage}/css/shaarli.css (100%) rename tpl/{default => vintage}/daily.html (100%) rename tpl/{default => vintage}/dailyrss.html (100%) rename tpl/{default => vintage}/editlink.html (100%) rename tpl/{default => vintage}/export.bookmarks.html (100%) rename tpl/{default => vintage}/export.html (100%) rename tpl/{default => vintage}/feed.atom.html (100%) rename tpl/{default => vintage}/feed.rss.html (100%) rename tpl/{default => vintage}/images/50pc_transparent.png (100%) rename tpl/{default => vintage}/images/Paper_texture_v5_by_bashcorpo_w1000.jpg (100%) rename tpl/{default => vintage}/images/calendar.png (100%) rename tpl/{default => vintage}/images/floral_left.png (100%) rename tpl/{default => vintage}/images/floral_right.png (100%) rename tpl/{default => vintage}/images/private.png (100%) rename tpl/{default => vintage}/images/squiggle.png (100%) rename tpl/{default => vintage}/images/squiggle_closing.png (100%) rename tpl/{default => vintage}/images/tag_blue.png (100%) rename tpl/{default => vintage}/import.html (100%) rename tpl/{default => vintage}/includes.html (100%) rename tpl/{default => vintage}/install.html (100%) rename tpl/{default => vintage}/linklist.html (100%) rename tpl/{default => vintage}/linklist.paging.html (100%) rename tpl/{default => vintage}/loginform.html (100%) rename tpl/{default => vintage}/opensearch.html (100%) rename tpl/{default => vintage}/page.footer.html (100%) rename tpl/{default => vintage}/page.header.html (100%) rename tpl/{default => vintage}/page.html (100%) rename tpl/{default => vintage}/picwall.html (100%) rename tpl/{default => vintage}/pluginsadmin.html (100%) rename tpl/{default => vintage}/readme.txt (100%) rename tpl/{default => vintage}/tagcloud.html (100%) rename tpl/{default => vintage}/tools.html (100%) diff --git a/.gitignore b/.gitignore index 19f3dc8..e64c8a4 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ plugins/*/config.php # 3rd party themes tpl/* !tpl/default +!tpl/vintage diff --git a/tpl/default/404.html b/tpl/vintage/404.html similarity index 100% rename from tpl/default/404.html rename to tpl/vintage/404.html diff --git a/tpl/default/addlink.html b/tpl/vintage/addlink.html similarity index 100% rename from tpl/default/addlink.html rename to tpl/vintage/addlink.html diff --git a/tpl/default/changepassword.html b/tpl/vintage/changepassword.html similarity index 100% rename from tpl/default/changepassword.html rename to tpl/vintage/changepassword.html diff --git a/tpl/default/changetag.html b/tpl/vintage/changetag.html similarity index 100% rename from tpl/default/changetag.html rename to tpl/vintage/changetag.html diff --git a/tpl/default/configure.html b/tpl/vintage/configure.html similarity index 100% rename from tpl/default/configure.html rename to tpl/vintage/configure.html diff --git a/tpl/default/css/reset.css b/tpl/vintage/css/reset.css similarity index 100% rename from tpl/default/css/reset.css rename to tpl/vintage/css/reset.css diff --git a/tpl/default/css/shaarli.css b/tpl/vintage/css/shaarli.css similarity index 100% rename from tpl/default/css/shaarli.css rename to tpl/vintage/css/shaarli.css diff --git a/tpl/default/daily.html b/tpl/vintage/daily.html similarity index 100% rename from tpl/default/daily.html rename to tpl/vintage/daily.html diff --git a/tpl/default/dailyrss.html b/tpl/vintage/dailyrss.html similarity index 100% rename from tpl/default/dailyrss.html rename to tpl/vintage/dailyrss.html diff --git a/tpl/default/editlink.html b/tpl/vintage/editlink.html similarity index 100% rename from tpl/default/editlink.html rename to tpl/vintage/editlink.html diff --git a/tpl/default/export.bookmarks.html b/tpl/vintage/export.bookmarks.html similarity index 100% rename from tpl/default/export.bookmarks.html rename to tpl/vintage/export.bookmarks.html diff --git a/tpl/default/export.html b/tpl/vintage/export.html similarity index 100% rename from tpl/default/export.html rename to tpl/vintage/export.html diff --git a/tpl/default/feed.atom.html b/tpl/vintage/feed.atom.html similarity index 100% rename from tpl/default/feed.atom.html rename to tpl/vintage/feed.atom.html diff --git a/tpl/default/feed.rss.html b/tpl/vintage/feed.rss.html similarity index 100% rename from tpl/default/feed.rss.html rename to tpl/vintage/feed.rss.html diff --git a/tpl/default/images/50pc_transparent.png b/tpl/vintage/images/50pc_transparent.png similarity index 100% rename from tpl/default/images/50pc_transparent.png rename to tpl/vintage/images/50pc_transparent.png diff --git a/tpl/default/images/Paper_texture_v5_by_bashcorpo_w1000.jpg b/tpl/vintage/images/Paper_texture_v5_by_bashcorpo_w1000.jpg similarity index 100% rename from tpl/default/images/Paper_texture_v5_by_bashcorpo_w1000.jpg rename to tpl/vintage/images/Paper_texture_v5_by_bashcorpo_w1000.jpg diff --git a/tpl/default/images/calendar.png b/tpl/vintage/images/calendar.png similarity index 100% rename from tpl/default/images/calendar.png rename to tpl/vintage/images/calendar.png diff --git a/tpl/default/images/floral_left.png b/tpl/vintage/images/floral_left.png similarity index 100% rename from tpl/default/images/floral_left.png rename to tpl/vintage/images/floral_left.png diff --git a/tpl/default/images/floral_right.png b/tpl/vintage/images/floral_right.png similarity index 100% rename from tpl/default/images/floral_right.png rename to tpl/vintage/images/floral_right.png diff --git a/tpl/default/images/private.png b/tpl/vintage/images/private.png similarity index 100% rename from tpl/default/images/private.png rename to tpl/vintage/images/private.png diff --git a/tpl/default/images/squiggle.png b/tpl/vintage/images/squiggle.png similarity index 100% rename from tpl/default/images/squiggle.png rename to tpl/vintage/images/squiggle.png diff --git a/tpl/default/images/squiggle_closing.png b/tpl/vintage/images/squiggle_closing.png similarity index 100% rename from tpl/default/images/squiggle_closing.png rename to tpl/vintage/images/squiggle_closing.png diff --git a/tpl/default/images/tag_blue.png b/tpl/vintage/images/tag_blue.png similarity index 100% rename from tpl/default/images/tag_blue.png rename to tpl/vintage/images/tag_blue.png diff --git a/tpl/default/import.html b/tpl/vintage/import.html similarity index 100% rename from tpl/default/import.html rename to tpl/vintage/import.html diff --git a/tpl/default/includes.html b/tpl/vintage/includes.html similarity index 100% rename from tpl/default/includes.html rename to tpl/vintage/includes.html diff --git a/tpl/default/install.html b/tpl/vintage/install.html similarity index 100% rename from tpl/default/install.html rename to tpl/vintage/install.html diff --git a/tpl/default/linklist.html b/tpl/vintage/linklist.html similarity index 100% rename from tpl/default/linklist.html rename to tpl/vintage/linklist.html diff --git a/tpl/default/linklist.paging.html b/tpl/vintage/linklist.paging.html similarity index 100% rename from tpl/default/linklist.paging.html rename to tpl/vintage/linklist.paging.html diff --git a/tpl/default/loginform.html b/tpl/vintage/loginform.html similarity index 100% rename from tpl/default/loginform.html rename to tpl/vintage/loginform.html diff --git a/tpl/default/opensearch.html b/tpl/vintage/opensearch.html similarity index 100% rename from tpl/default/opensearch.html rename to tpl/vintage/opensearch.html diff --git a/tpl/default/page.footer.html b/tpl/vintage/page.footer.html similarity index 100% rename from tpl/default/page.footer.html rename to tpl/vintage/page.footer.html diff --git a/tpl/default/page.header.html b/tpl/vintage/page.header.html similarity index 100% rename from tpl/default/page.header.html rename to tpl/vintage/page.header.html diff --git a/tpl/default/page.html b/tpl/vintage/page.html similarity index 100% rename from tpl/default/page.html rename to tpl/vintage/page.html diff --git a/tpl/default/picwall.html b/tpl/vintage/picwall.html similarity index 100% rename from tpl/default/picwall.html rename to tpl/vintage/picwall.html diff --git a/tpl/default/pluginsadmin.html b/tpl/vintage/pluginsadmin.html similarity index 100% rename from tpl/default/pluginsadmin.html rename to tpl/vintage/pluginsadmin.html diff --git a/tpl/default/readme.txt b/tpl/vintage/readme.txt similarity index 100% rename from tpl/default/readme.txt rename to tpl/vintage/readme.txt diff --git a/tpl/default/tagcloud.html b/tpl/vintage/tagcloud.html similarity index 100% rename from tpl/default/tagcloud.html rename to tpl/vintage/tagcloud.html diff --git a/tpl/default/tools.html b/tpl/vintage/tools.html similarity index 100% rename from tpl/default/tools.html rename to tpl/vintage/tools.html From 402b03464812aaec76bc841ca7dacb775baf1e03 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 15:52:17 +0100 Subject: [PATCH 478/658] Introduce the new default Shaarli template --- tpl/default/404.html | 16 + tpl/default/addlink.html | 24 + tpl/default/changepassword.html | 28 + tpl/default/changetag.html | 38 + tpl/default/configure.html | 210 ++ tpl/default/css/font-awesome.css | 2086 +++++++++++++++++++ tpl/default/css/font-awesome.min.css | 4 + tpl/default/css/grids-responsive.css | 861 ++++++++ tpl/default/css/grids-responsive.min.css | 7 + tpl/default/css/pure-extras.css | 262 +++ tpl/default/css/pure.css | 1475 +++++++++++++ tpl/default/css/pure.min.css | 11 + tpl/default/css/shaarli.css | 1180 +++++++++++ tpl/default/daily.html | 113 + tpl/default/dailyrss.html | 16 + tpl/default/editlink.html | 98 + tpl/default/export.bookmarks.html | 10 + tpl/default/export.html | 68 + tpl/default/feed.atom.html | 40 + tpl/default/feed.rss.html | 37 + tpl/default/fonts/Fira-Sans-regular.woff | Bin 0 -> 14119 bytes tpl/default/fonts/Fira-Sans-regular.woff2 | Bin 0 -> 11464 bytes tpl/default/fonts/FontAwesome.otf | Bin 0 -> 109687 bytes tpl/default/fonts/fontawesome-webfont.eot | Bin 0 -> 70806 bytes tpl/default/fonts/fontawesome-webfont.svg | 655 ++++++ tpl/default/fonts/fontawesome-webfont.ttf | Bin 0 -> 142049 bytes tpl/default/fonts/fontawesome-webfont.woff | Bin 0 -> 83588 bytes tpl/default/fonts/fontawesome-webfont.woff2 | Bin 0 -> 66623 bytes tpl/default/img/favicon.png | Bin 0 -> 41600 bytes tpl/default/img/icon.png | Bin 0 -> 530 bytes tpl/default/img/sad_star.png | Bin 0 -> 7099 bytes tpl/default/import.html | 85 + tpl/default/includes.html | 20 + tpl/default/install.html | 122 ++ tpl/default/js/shaarli.js | 228 ++ tpl/default/linklist.html | 246 +++ tpl/default/linklist.paging.html | 55 + tpl/default/loginform.html | 59 + tpl/default/opensearch.html | 45 + tpl/default/page.footer.html | 25 + tpl/default/page.header.html | 174 ++ tpl/default/picwall.html | 50 + tpl/default/pluginsadmin.html | 182 ++ tpl/default/tagcloud.html | 42 + tpl/default/tools.html | 179 ++ 45 files changed, 8751 insertions(+) create mode 100644 tpl/default/404.html create mode 100644 tpl/default/addlink.html create mode 100644 tpl/default/changepassword.html create mode 100644 tpl/default/changetag.html create mode 100644 tpl/default/configure.html create mode 100644 tpl/default/css/font-awesome.css create mode 100644 tpl/default/css/font-awesome.min.css create mode 100644 tpl/default/css/grids-responsive.css create mode 100644 tpl/default/css/grids-responsive.min.css create mode 100644 tpl/default/css/pure-extras.css create mode 100644 tpl/default/css/pure.css create mode 100644 tpl/default/css/pure.min.css create mode 100644 tpl/default/css/shaarli.css create mode 100644 tpl/default/daily.html create mode 100644 tpl/default/dailyrss.html create mode 100644 tpl/default/editlink.html create mode 100644 tpl/default/export.bookmarks.html create mode 100644 tpl/default/export.html create mode 100644 tpl/default/feed.atom.html create mode 100644 tpl/default/feed.rss.html create mode 100644 tpl/default/fonts/Fira-Sans-regular.woff create mode 100644 tpl/default/fonts/Fira-Sans-regular.woff2 create mode 100644 tpl/default/fonts/FontAwesome.otf create mode 100644 tpl/default/fonts/fontawesome-webfont.eot create mode 100644 tpl/default/fonts/fontawesome-webfont.svg create mode 100644 tpl/default/fonts/fontawesome-webfont.ttf create mode 100644 tpl/default/fonts/fontawesome-webfont.woff create mode 100644 tpl/default/fonts/fontawesome-webfont.woff2 create mode 100644 tpl/default/img/favicon.png create mode 100644 tpl/default/img/icon.png create mode 100644 tpl/default/img/sad_star.png create mode 100644 tpl/default/import.html create mode 100644 tpl/default/includes.html create mode 100644 tpl/default/install.html create mode 100644 tpl/default/js/shaarli.js create mode 100644 tpl/default/linklist.html create mode 100644 tpl/default/linklist.paging.html create mode 100644 tpl/default/loginform.html create mode 100644 tpl/default/opensearch.html create mode 100644 tpl/default/page.footer.html create mode 100644 tpl/default/page.header.html create mode 100644 tpl/default/picwall.html create mode 100644 tpl/default/pluginsadmin.html create mode 100644 tpl/default/tagcloud.html create mode 100644 tpl/default/tools.html diff --git a/tpl/default/404.html b/tpl/default/404.html new file mode 100644 index 0000000..2de6b6d --- /dev/null +++ b/tpl/default/404.html @@ -0,0 +1,16 @@ + + + + {include="includes"} + + + + +
    +
    + +
    +
    +{loop="$plugins_footer.endofpage"} + {$value} +{/loop} + +{loop="$plugins_footer.js_files"} + +{/loop} + + + + diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html new file mode 100644 index 0000000..c304e5d --- /dev/null +++ b/tpl/default/page.header.html @@ -0,0 +1,174 @@ +
    + +
    + +
    +
    + +
    + + {if="!isLoggedIn()"} +
    +
    + + +
    + + +
    + + + +
    +
    + {/if} +{if="!empty($newVersion) || !empty($versionError)"} +
    +
    + {if="$newVersion"} +
    + Shaarli {$newVersion} + {'is available'|t}. +
    + {/if} + {if="$versionError"} +
    + {'Error'|t}: {$versionError} +
    + {/if} +
    + +
    +
    +{/if} + +{if="!empty($plugin_errors) && isLoggedIn()"} +
    +
    +
    + {loop="plugin_errors"} +

    {$value}

    + {/loop} +
    +
    + +
    +
    +{/if} + +
    diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html new file mode 100644 index 0000000..b9ae2f2 --- /dev/null +++ b/tpl/default/picwall.html @@ -0,0 +1,50 @@ + + + + {include="includes"} + + +{include="page.header"} + +
    +
    +
    + {$countPics=count($linksToDisplay)} +

    {'Picture Wall'|t} - {$countPics} {'pics'|t}

    + +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    + +
    + {loop="$linksToDisplay"} +
    + {$value.thumbnail}{$value.title} + {loop="$value.picwall_plugin"} + {$value} + {/loop} +
    + {/loop} +
    +
    + +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +
    +
    + +{include="page.footer"} + + + + + diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html new file mode 100644 index 0000000..92af2ee --- /dev/null +++ b/tpl/default/pluginsadmin.html @@ -0,0 +1,182 @@ + + + + {include="includes"} + + +{include="page.header"} + + + +
    +
    +
    +
    +

    {'Plugin administration'|t}

    + +
    +

    {'Enabled Plugins'|t}

    + +
    + {if="count($enabledPlugins)==0"} +

    {'No plugin enabled.'|t}

    + {else} + + + + + + + + + + + {loop="$enabledPlugins"} + + + + + + + + + + {/loop} + + + + + + + + + +
    {'Disable'|t}{'Name'|t}
    {'Description'|t}
    {'Order'|t}
    + +
    + {if="count($enabledPlugins)>1"} + + ▲ + + + ▼ + + {/if} + +
    {'Disable'|t}{'Name'|t}
    {'Description'|t}
    {'Order'|t}
    + {/if} +
    +
    + +
    +

    {'Disabled Plugins'|t}

    + +
    + {if="count($disabledPlugins)==0"} +

    {'No plugin disabled.'|t}

    + {else} + + + + + + + + + + {loop="$disabledPlugins"} + + + + + + + + + {/loop} + + + + + + + + +
    {'Enable'|t}{'Name'|t}
    {'Description'|t}
    + +
    + +
    {'Enable'|t}{'Name'|t}
    {'Description'|t}
    + {/if} +
    +
    + +
    + More plugins available + in the documentation. +
    +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    +

    {'Plugin configuration'|t}

    +
    +
    + {if="count($enabledPlugins)==0"} +

    {'No plugin enabled.'|t}

    + {else} + {loop="$enabledPlugins"} + {if="count($value.parameters) > 0"} +
    +

    {function="str_replace('_', ' ', $key)"}

    + {loop="$value.parameters"} +
    +

    + +

    +
    + +
    +
    + {/loop} +
    + {/if} + {/loop} + {/if} +
    + +
    +
    +
    +
    +
    +
    + +{include="page.footer"} + + + + diff --git a/tpl/default/tagcloud.html b/tpl/default/tagcloud.html new file mode 100644 index 0000000..53c3174 --- /dev/null +++ b/tpl/default/tagcloud.html @@ -0,0 +1,42 @@ + + + + {include="includes"} + + +{include="page.header"} + +
    +
    +
    + {$countTags=count($tags)} +

    {'Tag cloud'|t} - {$countTags} {'tags'|t}

    + +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    + +
    + {loop="tags"} + {$key}{$value.count} + {loop="$value.tag_plugin"} + {$value} + {/loop} + {/loop} +
    + +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +
    +
    + +{include="page.footer"} + + + diff --git a/tpl/default/tools.html b/tpl/default/tools.html new file mode 100644 index 0000000..b9df32d --- /dev/null +++ b/tpl/default/tools.html @@ -0,0 +1,179 @@ + + + + {include="includes"} + + +{include="page.header"} + +
    +
    +
    +

    {'Settings'|t}

    + + + {if="!$openshaarli"} + + {/if} + + + + + {loop="$tools_plugin"} +
    + {$value} +
    + {/loop} +
    + + +
    +
    + +
    +
    +
    +

    Bookmarklets

    +

    + {'Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link"'|t}, + {'then click on the bookmarklet in any page you want to share.'|t} +

    + + +
    +
    + +{if="$sslenabled"} +
    +
    +
    +

    Firefox Social API

    +

    {'You need to browse your Shaarli over HTTPS to use this functionality.'|t}

    + + +
    +
    +{/if} + + + +{include="page.footer"} + + + + + From 147f4df8436fcd3d157c48c181d7b0c6a1fd474b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 15:53:39 +0100 Subject: [PATCH 479/658] Improve plugin_admin.js to support multiple ordered rows --- inc/plugin_admin.js | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/inc/plugin_admin.js b/inc/plugin_admin.js index 134ffb3..055ac28 100644 --- a/inc/plugin_admin.js +++ b/inc/plugin_admin.js @@ -22,14 +22,22 @@ function changePos(elem, toPos) function changeOrder(pos, move) { var newpos = parseInt(pos) + move; - var line = document.querySelector('[data-order="'+ pos +'"]'); - var changeline = document.querySelector('[data-order="'+ newpos +'"]'); - var parent = changeline.parentNode; + var lines = document.querySelectorAll('[data-order="'+ pos +'"]'); + var changelines = document.querySelectorAll('[data-order="'+ newpos +'"]'); + + // If we go down reverse lines to preserve the rows order + if (move > 0) { + lines = [].slice.call(lines).reverse(); + } + + for (var i = 0 ; i < lines.length ; i++) { + var parent = changelines[0].parentNode; + changePos(lines[i], newpos); + changePos(changelines[i], parseInt(pos)); + var changeItem = move < 0 ? changelines[0] : changelines[changelines.length - 1].nextSibling; + parent.insertBefore(lines[i], changeItem); + } - changePos(line, newpos); - changePos(changeline, parseInt(pos)); - var changeItem = move < 0 ? changeline : changeline.nextSibling; - parent.insertBefore(line, changeItem); } /** From 246d72e14344c417e37599b9ed4ce2c324e244f4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 15:57:34 +0100 Subject: [PATCH 480/658] Fix markdown plugin color overriding --- plugins/markdown/markdown.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/markdown/markdown.css b/plugins/markdown/markdown.css index 6789ce8..ce19cd2 100644 --- a/plugins/markdown/markdown.css +++ b/plugins/markdown/markdown.css @@ -150,7 +150,7 @@ box-shadow: 0 -1px 0 #e5e5e5,0 0 1px rgba(0,0,0,0.12),0 1px 1px rgba(0,0,0,0.24); } -.md_help { +#pageheader .md_help { color: white; } From 430ff0710265ff281727ef6824cf292d1dfc50f1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 14 Jan 2017 16:13:32 +0100 Subject: [PATCH 481/658] Upgrade awesomplete + fix multiple autocompletion fields --- inc/awesomplete-multiple-tags.js | 21 ++-- inc/awesomplete.js | 184 +++++++++++++++++++++---------- inc/awesomplete.min.js | 11 +- 3 files changed, 137 insertions(+), 79 deletions(-) diff --git a/inc/awesomplete-multiple-tags.js b/inc/awesomplete-multiple-tags.js index 4cc8429..faecb41 100644 --- a/inc/awesomplete-multiple-tags.js +++ b/inc/awesomplete-multiple-tags.js @@ -1,13 +1,16 @@ var awp = Awesomplete.$; -awesomplete = new Awesomplete(awp('input[data-multiple]'), { - filter: function(text, input) { - return Awesomplete.FILTER_CONTAINS(text, input.match(/[^ ]*$/)[0]); - }, - replace: function(text) { - var before = this.input.value.match(/^.+ \s*|/)[0]; - this.input.value = before + text + " "; - }, - minChars: 1 +var autocompleteFields = document.querySelectorAll('input[data-multiple]'); +[].forEach.call(autocompleteFields, function(autocompleteField) { + awesomplete = new Awesomplete(awp(autocompleteField), { + filter: function (text, input) { + return Awesomplete.FILTER_CONTAINS(text, input.match(/[^ ]*$/)[0]); + }, + replace: function (text) { + var before = this.input.value.match(/^.+ \s*|/)[0]; + this.input.value = before + text + " "; + }, + minChars: 1 + }) }); /** diff --git a/inc/awesomplete.js b/inc/awesomplete.js index fae550e..32f49e5 100644 --- a/inc/awesomplete.js +++ b/inc/awesomplete.js @@ -12,26 +12,23 @@ // Setup + this.isOpened = false; + this.input = $(input); + this.input.setAttribute("autocomplete", "off"); this.input.setAttribute("aria-autocomplete", "list"); o = o || {}; - configure.call(this, { + configure(this, { minChars: 2, maxItems: 10, autoFirst: false, + data: _.DATA, filter: _.FILTER_CONTAINS, sort: _.SORT_BYLENGTH, - item: function (text, input) { - return $.create("li", { - innerHTML: text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "$&"), - "aria-selected": "false" - }); - }, - replace: function (text) { - this.input.value = text; - } + item: _.ITEM, + replace: _.REPLACE }, o); this.index = -1; @@ -44,7 +41,7 @@ }); this.ul = $.create("ul", { - hidden: "", + hidden: "hidden", inside: this.container }); @@ -60,7 +57,7 @@ $.bind(this.input, { "input": this.evaluate.bind(this), - "blur": this.close.bind(this), + "blur": this.close.bind(this, { reason: "blur" }), "keydown": function(evt) { var c = evt.keyCode; @@ -72,7 +69,7 @@ me.select(); } else if (c === 27) { // Esc - me.close(); + me.close({ reason: "esc" }); } else if (c === 38 || c === 40) { // Down/Up arrow evt.preventDefault(); @@ -82,7 +79,7 @@ } }); - $.bind(this.input.form, {"submit": this.close.bind(this)}); + $.bind(this.input.form, {"submit": this.close.bind(this, { reason: "submit" })}); $.bind(this.ul, {"mousedown": function(evt) { var li = evt.target; @@ -93,15 +90,16 @@ li = li.parentNode; } - if (li) { - me.select(li); + if (li && evt.button === 0) { // Only select on left click + evt.preventDefault(); + me.select(li, evt.target); } } }}); if (this.input.hasAttribute("list")) { - this.list = "#" + input.getAttribute("list"); - input.removeAttribute("list"); + this.list = "#" + this.input.getAttribute("list"); + this.input.removeAttribute("list"); } else { this.list = this.input.getAttribute("data-list") || o.list || []; @@ -122,9 +120,18 @@ list = $(list); if (list && list.children) { - this._list = slice.apply(list.children).map(function (el) { - return el.innerHTML.trim(); + var items = []; + slice.apply(list.children).forEach(function (el) { + if (!el.disabled) { + var text = el.textContent.trim(); + var value = el.value || text; + var label = el.label || text; + if (value !== "") { + items.push({ label: label, value: value }); + } + } }); + this._list = items; } } @@ -138,18 +145,24 @@ }, get opened() { - return this.ul && this.ul.getAttribute("hidden") == null; + return this.isOpened; }, - close: function () { + close: function (o) { + if (!this.opened) { + return; + } + this.ul.setAttribute("hidden", ""); + this.isOpened = false; this.index = -1; - $.fire(this.input, "awesomplete-close"); + $.fire(this.input, "awesomplete-close", o || {}); }, open: function () { this.ul.removeAttribute("hidden"); + this.isOpened = true; if (this.autoFirst && this.index === -1) { this.goto(0); @@ -160,14 +173,14 @@ next: function () { var count = this.ul.children.length; - - this.goto(this.index < count - 1? this.index + 1 : -1); + this.goto(this.index < count - 1 ? this.index + 1 : (count ? 0 : -1) ); }, previous: function () { var count = this.ul.children.length; + var pos = this.index - 1; - this.goto(this.selected? this.index - 1 : count - 1); + this.goto(this.selected && pos !== -1 ? pos : count - 1); }, // Should not be used, highlights specific item without any checks! @@ -183,28 +196,37 @@ if (i > -1 && lis.length > 0) { lis[i].setAttribute("aria-selected", "true"); this.status.textContent = lis[i].textContent; - } - $.fire(this.input, "awesomplete-highlight"); + // scroll to highlighted element in case parent's height is fixed + this.ul.scrollTop = lis[i].offsetTop - this.ul.clientHeight + lis[i].clientHeight; + + $.fire(this.input, "awesomplete-highlight", { + text: this.suggestions[this.index] + }); + } }, - select: function (selected) { - selected = selected || this.ul.children[this.index]; + select: function (selected, origin) { + if (selected) { + this.index = $.siblingIndex(selected); + } else { + selected = this.ul.children[this.index]; + } if (selected) { - var prevented; + var suggestion = this.suggestions[this.index]; - $.fire(this.input, "awesomplete-select", { - text: selected.textContent, - preventDefault: function () { - prevented = true; - } + var allowed = $.fire(this.input, "awesomplete-select", { + text: suggestion, + origin: origin || selected }); - if (!prevented) { - this.replace(selected.textContent); - this.close(); - $.fire(this.input, "awesomplete-selectcomplete"); + if (allowed) { + this.replace(suggestion); + this.close({ reason: "select" }); + $.fire(this.input, "awesomplete-selectcomplete", { + text: suggestion + }); } } }, @@ -218,25 +240,28 @@ // Populate list with options that match this.ul.innerHTML = ""; - this._list + this.suggestions = this._list + .map(function(item) { + return new Suggestion(me.data(item, value)); + }) .filter(function(item) { return me.filter(item, value); }) .sort(this.sort) - .every(function(text, i) { - me.ul.appendChild(me.item(text, value)); + .slice(0, this.maxItems); - return i < me.maxItems - 1; - }); + this.suggestions.forEach(function(text) { + me.ul.appendChild(me.item(text, value)); + }); if (this.ul.children.length === 0) { - this.close(); + this.close({ reason: "nomatches" }); } else { this.open(); } } else { - this.close(); + this.close({ reason: "nomatches" }); } } }; @@ -261,27 +286,58 @@ return a < b? -1 : 1; }; + _.ITEM = function (text, input) { + var html = input.trim() === '' ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "$&"); + return $.create("li", { + innerHTML: html, + "aria-selected": "false" + }); + }; + + _.REPLACE = function (text) { + this.input.value = text.value; + }; + + _.DATA = function (item/*, input*/) { return item; }; + // Private functions - function configure(properties, o) { + function Suggestion(data) { + var o = Array.isArray(data) + ? { label: data[0], value: data[1] } + : typeof data === "object" && "label" in data && "value" in data ? data : { label: data, value: data }; + + this.label = o.label || o.value; + this.value = o.value; + } + Object.defineProperty(Suggestion.prototype = Object.create(String.prototype), "length", { + get: function() { return this.label.length; } + }); + Suggestion.prototype.toString = Suggestion.prototype.valueOf = function () { + return "" + this.label; + }; + + function configure(instance, properties, o) { for (var i in properties) { var initial = properties[i], - attrValue = this.input.getAttribute("data-" + i.toLowerCase()); + attrValue = instance.input.getAttribute("data-" + i.toLowerCase()); if (typeof initial === "number") { - this[i] = +attrValue; + instance[i] = parseInt(attrValue); } else if (initial === false) { // Boolean options must be false by default anyway - this[i] = attrValue !== null; + instance[i] = attrValue !== null; } else if (initial instanceof Function) { - this[i] = null; + instance[i] = null; } else { - this[i] = attrValue; + instance[i] = attrValue; } - this[i] = this[i] || o[i] || initial; + if (!instance[i] && instance[i] !== 0) { + instance[i] = (i in o)? o[i] : initial; + } } } @@ -343,23 +399,29 @@ evt[j] = properties[j]; } - target.dispatchEvent(evt); + return target.dispatchEvent(evt); }; $.regExpEscape = function (s) { return s.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"); - } + }; + + $.siblingIndex = function (el) { + /* eslint-disable no-cond-assign */ + for (var i = 0; el = el.previousElementSibling; i++); + return i; + }; // Initialization function init() { $$("input.awesomplete").forEach(function (input) { - new Awesomplete(input); + new _(input); }); } // Are we in a browser? Check for Document constructor - if (typeof Document !== 'undefined') { + if (typeof Document !== "undefined") { // DOM already loaded? if (document.readyState !== "loading") { init(); @@ -374,15 +436,15 @@ _.$$ = $$; // Make sure to export Awesomplete on self when in a browser - if (typeof self !== 'undefined') { + if (typeof self !== "undefined") { self.Awesomplete = _; } // Expose Awesomplete as a CJS module - if (typeof exports === 'object') { + if (typeof module === "object" && module.exports) { module.exports = _; } return _; -}()); +}()); \ No newline at end of file diff --git a/inc/awesomplete.min.js b/inc/awesomplete.min.js index 3bfb05e..cd08c94 100644 --- a/inc/awesomplete.min.js +++ b/inc/awesomplete.min.js @@ -1,10 +1,3 @@ // Awesomplete - Lea Verou - MIT license -(function(){function m(a,b){for(var c in a){var f=a[c],e=this.input.getAttribute("data-"+c.toLowerCase());this[c]="number"===typeof f?+e:!1===f?null!==e:f instanceof Function?null:e;this[c]=this[c]||b[c]||f}}function d(a,b){return"string"===typeof a?(b||document).querySelector(a):a||null}function h(a,b){return k.call((b||document).querySelectorAll(a))}function l(){h("input.awesomplete").forEach(function(a){new Awesomplete(a)})}var g=self.Awesomplete=function(a,b){var c=this;this.input=d(a);this.input.setAttribute("aria-autocomplete", - "list");b=b||{};m.call(this,{minChars:2,maxItems:10,autoFirst:!1,filter:g.FILTER_CONTAINS,sort:g.SORT_BYLENGTH,item:function(a,b){return d.create("li",{innerHTML:a.replace(RegExp(d.regExpEscape(b.trim()),"gi"),"$&"),"aria-selected":"false"})},replace:function(a){this.input.value=a}},b);this.index=-1;this.container=d.create("div",{className:"awesomplete",around:a});this.ul=d.create("ul",{hidden:"",inside:this.container});this.status=d.create("span",{className:"visually-hidden",role:"status", - "aria-live":"assertive","aria-relevant":"additions",inside:this.container});d.bind(this.input,{input:this.evaluate.bind(this),blur:this.close.bind(this),keydown:function(a){var b=a.keyCode;if(c.opened)if(13===b&&c.selected)a.preventDefault(),c.select();else if(27===b)c.close();else if(38===b||40===b)a.preventDefault(),c[38===b?"previous":"next"]()}});d.bind(this.input.form,{submit:this.close.bind(this)});d.bind(this.ul,{mousedown:function(a){a=a.target;if(a!==this){for(;a&&!/li/i.test(a.nodeName);)a= - a.parentNode;a&&c.select(a)}}});this.input.hasAttribute("list")?(this.list="#"+a.getAttribute("list"),a.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||b.list||[];g.all.push(this)};g.prototype={set list(a){Array.isArray(a)?this._list=a:"string"===typeof a&&-1=this.minChars&&0-1)this._list=t.split(/\s*,\s*/);else if(t=i(t),t&&t.children){var e=[];o.apply(t.children).forEach(function(t){if(!t.disabled){var i=t.textContent.trim(),n=t.value||i,s=t.label||i;""!==n&&e.push({label:s,value:n})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&this.index===-1&&this.goto(0),i.fire(this.input,"awesomplete-open")},next:function(){var t=this.ul.children.length;this.goto(this.index-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var n=this.suggestions[this.index],s=i.fire(this.input,"awesomplete-select",{text:n,origin:e||t});s&&(this.replace(n),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:n}))}},evaluate:function(){var e=this,i=this.input.value;i.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(n){return new t(e.data(n,i))}).filter(function(t){return e.filter(t,i)}).sort(this.sort).slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,i))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},r.all=[],r.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},r.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},r.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t$&");return i.create("li",{innerHTML:n,"aria-selected":"false"})},r.REPLACE=function(t){this.input.value=t.value},r.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var o=Array.prototype.slice;return i.create=function(t,e){var n=document.createElement(t);for(var s in e){var r=e[s];if("inside"===s)i(r).appendChild(n);else if("around"===s){var o=i(r);o.parentNode.insertBefore(n,o),n.appendChild(o)}else s in n?n[s]=r:n.setAttribute(s,r)}return n},i.bind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.addEventListener(e,n)})}},i.fire=function(t,e,i){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0);for(var s in i)n[s]=i[s];return t.dispatchEvent(n)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)),r.$=i,r.$$=n,"undefined"!=typeof self&&(self.Awesomplete=r),"object"==typeof module&&module.exports&&(module.exports=r),r}(); +//# sourceMappingURL=awesomplete.min.js.map \ No newline at end of file From 7040169069322d72cec4276b7b812291b57a0d40 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 21 Feb 2017 14:16:48 +0100 Subject: [PATCH 482/658] Multiple minor improvements and bugfixes regarding the new templates: * Add API settings in `configure.html` * Fix textarea autoresize * Load user.css from data folder * Move fold/expand all button to the right and fix an issue with already folded items * Reset datetime display to international datetime * Temporarilly remove JS login panel (need improvement and integration with the plugin system) * Body background is slightly lighter * Fix an issue where thumbnails were hidden by description * Fix an issue where private orange bar wasn't displayed with thumbnails * Remove the gradient bar behind titles * Fix empty bookmarklet name in Firefox --- tpl/default/configure.html | 30 ++++++++++++++ tpl/default/css/shaarli.css | 68 +++++++++++++++++++------------- tpl/default/editlink.html | 15 ++----- tpl/default/includes.html | 2 +- tpl/default/js/shaarli.js | 34 ++++++++++++++++ tpl/default/linklist.html | 2 +- tpl/default/linklist.paging.html | 5 ++- tpl/default/page.header.html | 2 +- 8 files changed, 116 insertions(+), 42 deletions(-) diff --git a/tpl/default/configure.html b/tpl/default/configure.html index a242560..2f54a08 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -183,6 +183,36 @@
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    +
    diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 161c36d..b937c59 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -2,7 +2,7 @@ * General */ body { - background: #c5c5c5; + background: #d0d0d0; } .strong { @@ -268,6 +268,12 @@ pre { width: 200px; } +/* because chrome */ +#header-login-form input[type="text"]::-webkit-input-placeholder, +#header-login-form input[type="password"]::-webkit-input-placeholder { + color: #777777; +} + .subheader-form { visibility: hidden; position: fixed; @@ -384,6 +390,10 @@ pre { color: #252525; } +.toolbar-plugin input[type="submit"]:hover { + background: #fff; +} + @media screen and (max-width: 64em) { .toolbar-plugin input[type="text"] { width: 70%; @@ -484,19 +494,6 @@ pre { background: #f5f5f5; } -.linklist-item.private .linklist-item-title::before { - position: absolute; - left: 3px; - top: 0; - display: block; - content:""; - background: #F89406; - height: 95%; - width: 2px; - margin-top: 3px; - z-index: 1; -} - .linklist-item-title h2 { padding: 3px 10px 0 10px; line-height: 30px; @@ -563,14 +560,13 @@ pre { .linklist-item-description { position: relative; padding: 10px; - background: #f5f5f5; font-family: Roboto Slab, Arial, sans-serif; word-wrap: break-word; color: #252525; line-height: 1.3em; } -.linklist-item.private .linklist-item-description::before { + { position: absolute; left: 3px; top: 0; @@ -596,9 +592,29 @@ pre { } .linklist-item-thumbnail { + position: relative; margin-top: 10px; padding: 10px; float: left; + z-index: 50; +} + +.linklist-item.private .linklist-item-title::before, +.linklist-item.private .linklist-item-description::before, +.linklist-item.private .linklist-item-thumbnail::before { + position: absolute; + left: 3px; + top: 0; + display: block; + content:""; + background: #F89406; + height: 95%; + width: 2px; + z-index: 1; +} + +.linklist-item.private .linklist-item-title::before { + margin-top: 3px; } .linklist-item-infos { @@ -702,15 +718,6 @@ pre { text-align: center; } -.page-form .window-title:after { - display: block; - content:""; - background: linear-gradient(to right, #f5f5f5, #1b926c, #f5f5f5); - height: 1px; - width: 80%; - margin: auto; -} - .page-form .window-subtitle { text-align: center; } @@ -740,7 +747,7 @@ pre { } .page-form textarea { - height: 240px; + min-height: 240px; padding: 15px 5px 3px 15px; resize: vertical; overflow-y: auto; @@ -1163,7 +1170,7 @@ div.awesomplete > ul { .daily-entry-thumbnail { float: left; - margin: 15px 5px 5px 5px; + margin: 15px 5px 5px 15px; } .daily-entry-description a { @@ -1178,3 +1185,10 @@ div.awesomplete > ul { .daily-entry-description a:visited { color: #20b988; } + +/* + * Fix empty bookmarklet name in Firefox + */ +.pure-button { + -moz-user-select: auto; +} diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 4f10ffb..d6f81f9 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -33,8 +33,7 @@
    - +
    @@ -46,7 +45,7 @@
      @@ -62,7 +61,7 @@
    {if="!$link_is_new"} - {'Delete'|t} @@ -75,7 +74,7 @@ {/if}
    - {if="$source !== 'firefoxsocialapi'"} + {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} {include="page.footer"} {/if} diff --git a/tpl/default/includes.html b/tpl/default/includes.html index ca5c4f3..91c6ca3 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html @@ -12,7 +12,7 @@ {if="is_file('inc/user.css')"} - + {/if} {loop="$plugins_includes.css_files"} diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index d8464aa..d47c257 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -84,7 +84,13 @@ window.onload = function () { [].forEach.call(foldAllButtons, function (foldAllButton) { foldAllButton.addEventListener('click', function (event) { event.preventDefault(); + var state = foldAllButton.firstElementChild.getAttribute('class').indexOf('down') != -1 ? 'down' : 'up'; [].forEach.call(foldButtons, function (foldButton) { + if (foldButton.firstElementChild.classList.contains('fa-chevron-up') && state == 'down' + || foldButton.firstElementChild.classList.contains('fa-chevron-down') && state == 'up' + ) { + return; + } // Retrieve description var description = null; var thumbnail = null; @@ -225,4 +231,32 @@ window.onload = function () { anchor.style.paddingTop = 0; } } + + /** + * Text area resizer + */ + var description = document.getElementById('lf_description'); + var observe = function (element, event, handler) { + element.addEventListener(event, handler, false); + }; + function init () { + function resize () { + description.style.height = 'auto'; + description.style.height = description.scrollHeight+10+'px'; + } + /* 0-timeout to get the already changed text */ + function delayedResize () { + window.setTimeout(resize, 0); + } + observe(description, 'change', resize); + observe(description, 'cut', delayedResize); + observe(description, 'paste', delayedResize); + observe(description, 'drop', delayedResize); + observe(description, 'keydown', delayedResize); + + resize(); + } + if (description != null) { + init(); + } }; diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 639fbe7..a971270 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -174,7 +174,7 @@ {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} - {function="strftime('%d %B %Y %H:%M', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} + {function="strftime('%c', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} · {/if} diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index bc1591e..d8c1e76 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html @@ -10,7 +10,7 @@ class={if="$privateonly"}"filter-on"{else}"filter-off"{/if} > {/if} - + {loop="$action_plugin"} @@ -50,6 +50,9 @@
    + + +
    \ No newline at end of file diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index c304e5d..b76fc03 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -76,7 +76,7 @@ {if="!isLoggedIn()"}
  • - From 7dcbfde5ffbc057a44f710e3be7e4856d235e90b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 27 Feb 2017 20:20:53 +0100 Subject: [PATCH 483/658] Set the vintage theme by default for the time being --- application/Updater.php | 14 ++++++++++++ tests/Updater/UpdaterTest.php | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/application/Updater.php b/application/Updater.php index 90aba74..3f5d325 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -324,6 +324,20 @@ class Updater return rename('inc/user.css', 'data/user.css'); } + + /** + * While the new default theme is in an unstable state + * continue to use the vintage theme + */ + public function updateMethodDefaultThemeVintage() + { + if ($this->conf->get('resource.theme') !== 'default') { + return true; + } + $this->conf->set('resource.theme', 'vintage'); + $this->conf->write($this->isLoggedIn); + return true; + } } /** diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 1d15cfa..de330ae 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -466,4 +466,44 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; unlink('sandbox/'. $theme .'/linklist.html'); rmdir('sandbox/'. $theme); } + + /** + * Test updateMethodDefaultThemeVintage with the default theme enabled. + */ + public function testSetDefaultThemeToVintage() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $this->conf->set('resource.theme', 'default'); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodDefaultThemeVintage()); + $this->assertEquals('vintage', $this->conf->get('resource.theme')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertEquals('vintage', $this->conf->get('resource.theme')); + } + + /** + * Test updateMethodDefaultThemeVintage with custom theme enabled => nothing to do. + */ + public function testSetDefaultThemeNothingToDo() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $theme = 'myawesometheme'; + $this->conf->set('resource.theme', $theme); + $this->conf->write(true); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodDefaultThemeVintage()); + $this->assertEquals($theme, $this->conf->get('resource.theme')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertEquals($theme, $this->conf->get('resource.theme')); + } } From e03761011521929a375ebb56f21adacb226a3a8d Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 27 Feb 2017 19:45:55 +0100 Subject: [PATCH 484/658] Add markdown_escape setting This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README --- application/Updater.php | 23 ++++++++++ plugins/markdown/README.md | 27 ++++++++--- plugins/markdown/markdown.php | 29 +++++++----- tests/Updater/UpdaterTest.php | 66 +++++++++++++++++++++++++++ tests/plugins/PluginMarkdownTest.php | 57 ++++++++++++++++++++--- tests/plugins/resources/markdown.html | 6 +-- 6 files changed, 181 insertions(+), 27 deletions(-) diff --git a/application/Updater.php b/application/Updater.php index 3f5d325..f5ebf31 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -336,6 +336,29 @@ class Updater } $this->conf->set('resource.theme', 'vintage'); $this->conf->write($this->isLoggedIn); + + return true; + } + + /** + * * `markdown_escape` is a new setting, set to true as default. + * + * If the markdown plugin was already enabled, escaping is disabled to avoid + * breaking existing entries. + */ + public function updateMethodEscapeMarkdown() + { + if ($this->conf->exists('security.markdown_escape')) { + return true; + } + + if (in_array('markdown', $this->conf->get('general.enabled_plugins'))) { + $this->conf->set('security.markdown_escape', false); + } else { + $this->conf->set('security.markdown_escape', true); + } + $this->conf->write($this->isLoggedIn); + return true; } } diff --git a/plugins/markdown/README.md b/plugins/markdown/README.md index aafcf06..bc9427e 100644 --- a/plugins/markdown/README.md +++ b/plugins/markdown/README.md @@ -50,9 +50,20 @@ If the tag `nomarkdown` is set for a shaare, it won't be converted to Markdown s > Note: this is a special tag, so it won't be displayed in link list. -### HTML rendering +### HTML escape -Markdown support HTML tags. For example: +By default, HTML tags are escaped. You can enable HTML tags rendering +by setting `security.markdwon_escape` to `false` in `data/config.json.php`: + +```json +{ + "security": { + "markdown_escape": false + } +} +``` + +With this setting, Markdown support HTML tags. For example: > strongstrike @@ -60,12 +71,14 @@ Will render as: > strongstrike -If you want to shaare HTML code, it is necessary to use inline code or code blocks. - -**If your shaared descriptions containing HTML tags before enabling the markdown plugin, -enabling it might break your page.** -> Note: HTML tags such as script, iframe, etc. are disabled for security reasons. +**Warning:** + + * This setting might present **security risks** (XSS) on shared instances, even though tags + such as script, iframe, etc should be disabled. + * If you want to shaare HTML code, it is necessary to use inline code or code blocks. + * If your shaared descriptions contained HTML tags before enabling the markdown plugin, +enabling it might break your page. ### Known issue diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 0cf6e6e..de7c823 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php @@ -14,18 +14,19 @@ define('NO_MD_TAG', 'nomarkdown'); /** * Parse linklist descriptions. * - * @param array $data linklist data. + * @param array $data linklist data. + * @param ConfigManager $conf instance. * * @return mixed linklist data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_linklist($data) +function hook_markdown_render_linklist($data, $conf) { foreach ($data['links'] as &$value) { if (!empty($value['tags']) && noMarkdownTag($value['tags'])) { $value = stripNoMarkdownTag($value); continue; } - $value['description'] = process_markdown($value['description']); + $value['description'] = process_markdown($value['description'], $conf->get('security.markdown_escape', true)); } return $data; } @@ -34,17 +35,18 @@ function hook_markdown_render_linklist($data) * Parse feed linklist descriptions. * * @param array $data linklist data. + * @param ConfigManager $conf instance. * * @return mixed linklist data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_feed($data) +function hook_markdown_render_feed($data, $conf) { foreach ($data['links'] as &$value) { if (!empty($value['tags']) && noMarkdownTag($value['tags'])) { $value = stripNoMarkdownTag($value); continue; } - $value['description'] = process_markdown($value['description']); + $value['description'] = process_markdown($value['description'], $conf->get('security.markdown_escape', true)); } return $data; @@ -53,11 +55,12 @@ function hook_markdown_render_feed($data) /** * Parse daily descriptions. * - * @param array $data daily data. + * @param array $data daily data. + * @param ConfigManager $conf instance. * * @return mixed daily data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_daily($data) +function hook_markdown_render_daily($data, $conf) { // Manipulate columns data foreach ($data['cols'] as &$value) { @@ -66,7 +69,10 @@ function hook_markdown_render_daily($data) $value2 = stripNoMarkdownTag($value2); continue; } - $value2['formatedDescription'] = process_markdown($value2['formatedDescription']); + $value2['formatedDescription'] = process_markdown( + $value2['formatedDescription'], + $conf->get('security.markdown_escape', true) + ); } } @@ -250,7 +256,7 @@ function sanitize_html($description) $description); } $description = preg_replace( - '#(<[^>]+)on[a-z]*="[^"]*"#is', + '#(<[^>]+)on[a-z]*="?[^ "]*"?#is', '$1', $description); return $description; @@ -265,10 +271,11 @@ function sanitize_html($description) * 5. Wrap description in 'markdown' CSS class. * * @param string $description input description text. + * @param bool $escape escape HTML entities * * @return string HTML processed $description. */ -function process_markdown($description) +function process_markdown($description, $escape = true) { $parsedown = new Parsedown(); @@ -278,7 +285,7 @@ function process_markdown($description) $processedDescription = reverse_text2clickable($processedDescription); $processedDescription = unescape($processedDescription); $processedDescription = $parsedown - ->setMarkupEscaped(false) + ->setMarkupEscaped($escape) ->setBreaksEnabled(true) ->text($processedDescription); $processedDescription = sanitize_html($processedDescription); diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index de330ae..39be88f 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -506,4 +506,70 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; $this->conf = new ConfigManager($sandboxConf); $this->assertEquals($theme, $this->conf->get('resource.theme')); } + + /** + * Test updateMethodEscapeMarkdown with markdown plugin enabled + * => setting markdown_escape set to false. + */ + public function testEscapeMarkdownSettingToFalse() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $this->conf->set('general.enabled_plugins', ['markdown']); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertFalse($this->conf->get('security.markdown_escape')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertFalse($this->conf->get('security.markdown_escape')); + } + + + /** + * Test updateMethodEscapeMarkdown with markdown plugin disabled + * => setting markdown_escape set to true. + */ + public function testEscapeMarkdownSettingToTrue() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $this->conf->set('general.enabled_plugins', []); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertTrue($this->conf->get('security.markdown_escape')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertTrue($this->conf->get('security.markdown_escape')); + } + + /** + * Test updateMethodEscapeMarkdown with nothing to do (setting already enabled) + */ + public function testEscapeMarkdownSettingNothingToDoEnabled() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $this->conf->set('security.markdown_escape', true); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertTrue($this->conf->get('security.markdown_escape')); + } + + /** + * Test updateMethodEscapeMarkdown with nothing to do (setting already disabled) + */ + public function testEscapeMarkdownSettingNothingToDoDisabled() + { + $this->conf->set('security.markdown_escape', false); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertFalse($this->conf->get('security.markdown_escape')); + } } diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php index d359b2a..d4cd1b9 100644 --- a/tests/plugins/PluginMarkdownTest.php +++ b/tests/plugins/PluginMarkdownTest.php @@ -13,12 +13,18 @@ require_once 'plugins/markdown/markdown.php'; */ class PluginMarkdownTest extends PHPUnit_Framework_TestCase { + /** + * @var ConfigManager instance. + */ + protected $conf; + /** * Reset plugin path */ public function setUp() { PluginManager::$PLUGINS_PATH = 'plugins'; + $this->conf = new ConfigManager('tests/utils/config/configJson'); } /** @@ -36,7 +42,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_linklist($data); + $data = hook_markdown_render_linklist($data, $this->conf); $this->assertNotFalse(strpos($data['links'][0]['description'], '

    ')); $this->assertNotFalse(strpos($data['links'][0]['description'], '

    ')); } @@ -61,7 +67,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_daily($data); + $data = hook_markdown_render_daily($data, $this->conf); $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

    ')); $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

    ')); } @@ -110,6 +116,8 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase $output = escape($input); $input .= 'link'; $output .= 'link'; + $input .= 'link'; + $output .= 'link'; $this->assertEquals($output, sanitize_html($input)); // Do not touch escaped HTML. $input = escape($input); @@ -130,10 +138,10 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase )) ); - $processed = hook_markdown_render_linklist($data); + $processed = hook_markdown_render_linklist($data, $this->conf); $this->assertEquals($str, $processed['links'][0]['description']); - $processed = hook_markdown_render_feed($data); + $processed = hook_markdown_render_feed($data, $this->conf); $this->assertEquals($str, $processed['links'][0]['description']); $data = array( @@ -151,7 +159,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_daily($data); + $data = hook_markdown_render_daily($data, $this->conf); $this->assertEquals($str, $data['cols'][0][0]['formatedDescription']); } @@ -169,7 +177,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase )) ); - $data = hook_markdown_render_feed($data); + $data = hook_markdown_render_feed($data, $this->conf); $this->assertContains('', $data['links'][0]['description']); } @@ -185,4 +193,41 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase $data = process_markdown($md); $this->assertEquals($html, $data); } + + /** + * Make sure that the HTML tags are escaped. + */ + public function testMarkdownWithHtmlEscape() + { + $md = '**strong** strong'; + $html = '

    strong <strong>strong</strong>

    '; + $data = array( + 'links' => array( + 0 => array( + 'description' => $md, + ), + ), + ); + $data = hook_markdown_render_linklist($data, $this->conf); + $this->assertEquals($html, $data['links'][0]['description']); + } + + /** + * Make sure that the HTML tags aren't escaped with the setting set to false. + */ + public function testMarkdownWithHtmlNoEscape() + { + $this->conf->set('security.markdown_escape', false); + $md = '**strong** strong'; + $html = '

    strong strong

    '; + $data = array( + 'links' => array( + 0 => array( + 'description' => $md, + ), + ), + ); + $data = hook_markdown_render_linklist($data, $this->conf); + $this->assertEquals($html, $data['links'][0]['description']); + } } diff --git a/tests/plugins/resources/markdown.html b/tests/plugins/resources/markdown.html index c0fbe7f..07a5a32 100644 --- a/tests/plugins/resources/markdown.html +++ b/tests/plugins/resources/markdown.html @@ -12,11 +12,11 @@
  • two
  • three
  • four
  • -
  • foo #foobar
  • +
  • foo <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a>
  • -

    #foobar foo lol #foo #bar

    -

    fsdfs http://link.tld #foobar http://link.tld

    +

    <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> foo lol #foo <a href="?addtag=bar" title="Hashtag bar">#bar</a>

    +

    fsdfs http://link.tld <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> http://link.tld

    http://link.tld #foobar
     next #foo

    Block:

    From 9ff17ae20effa5d54fd8481c19518123590e3bd0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 27 Feb 2017 19:45:55 +0100 Subject: [PATCH 485/658] Add markdown_escape setting This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README --- application/Updater.php | 22 +++++++++ plugins/markdown/README.md | 27 ++++++++--- plugins/markdown/markdown.php | 29 +++++++----- tests/Updater/UpdaterTest.php | 65 +++++++++++++++++++++++++++ tests/plugins/PluginMarkdownTest.php | 57 ++++++++++++++++++++--- tests/plugins/resources/markdown.html | 6 +-- 6 files changed, 179 insertions(+), 27 deletions(-) diff --git a/application/Updater.php b/application/Updater.php index f0d0281..555d4c2 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -256,6 +256,28 @@ class Updater return true; } + + /** + * * `markdown_escape` is a new setting, set to true as default. + * + * If the markdown plugin was already enabled, escaping is disabled to avoid + * breaking existing entries. + */ + public function updateMethodEscapeMarkdown() + { + if ($this->conf->exists('security.markdown_escape')) { + return true; + } + + if (in_array('markdown', $this->conf->get('general.enabled_plugins'))) { + $this->conf->set('security.markdown_escape', false); + } else { + $this->conf->set('security.markdown_escape', true); + } + $this->conf->write($this->isLoggedIn); + + return true; + } } /** diff --git a/plugins/markdown/README.md b/plugins/markdown/README.md index aafcf06..bc9427e 100644 --- a/plugins/markdown/README.md +++ b/plugins/markdown/README.md @@ -50,9 +50,20 @@ If the tag `nomarkdown` is set for a shaare, it won't be converted to Markdown s > Note: this is a special tag, so it won't be displayed in link list. -### HTML rendering +### HTML escape -Markdown support HTML tags. For example: +By default, HTML tags are escaped. You can enable HTML tags rendering +by setting `security.markdwon_escape` to `false` in `data/config.json.php`: + +```json +{ + "security": { + "markdown_escape": false + } +} +``` + +With this setting, Markdown support HTML tags. For example: > strongstrike @@ -60,12 +71,14 @@ Will render as: > strongstrike -If you want to shaare HTML code, it is necessary to use inline code or code blocks. - -**If your shaared descriptions containing HTML tags before enabling the markdown plugin, -enabling it might break your page.** -> Note: HTML tags such as script, iframe, etc. are disabled for security reasons. +**Warning:** + + * This setting might present **security risks** (XSS) on shared instances, even though tags + such as script, iframe, etc should be disabled. + * If you want to shaare HTML code, it is necessary to use inline code or code blocks. + * If your shaared descriptions contained HTML tags before enabling the markdown plugin, +enabling it might break your page. ### Known issue diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 0cf6e6e..de7c823 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php @@ -14,18 +14,19 @@ define('NO_MD_TAG', 'nomarkdown'); /** * Parse linklist descriptions. * - * @param array $data linklist data. + * @param array $data linklist data. + * @param ConfigManager $conf instance. * * @return mixed linklist data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_linklist($data) +function hook_markdown_render_linklist($data, $conf) { foreach ($data['links'] as &$value) { if (!empty($value['tags']) && noMarkdownTag($value['tags'])) { $value = stripNoMarkdownTag($value); continue; } - $value['description'] = process_markdown($value['description']); + $value['description'] = process_markdown($value['description'], $conf->get('security.markdown_escape', true)); } return $data; } @@ -34,17 +35,18 @@ function hook_markdown_render_linklist($data) * Parse feed linklist descriptions. * * @param array $data linklist data. + * @param ConfigManager $conf instance. * * @return mixed linklist data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_feed($data) +function hook_markdown_render_feed($data, $conf) { foreach ($data['links'] as &$value) { if (!empty($value['tags']) && noMarkdownTag($value['tags'])) { $value = stripNoMarkdownTag($value); continue; } - $value['description'] = process_markdown($value['description']); + $value['description'] = process_markdown($value['description'], $conf->get('security.markdown_escape', true)); } return $data; @@ -53,11 +55,12 @@ function hook_markdown_render_feed($data) /** * Parse daily descriptions. * - * @param array $data daily data. + * @param array $data daily data. + * @param ConfigManager $conf instance. * * @return mixed daily data parsed in markdown (and converted to HTML). */ -function hook_markdown_render_daily($data) +function hook_markdown_render_daily($data, $conf) { // Manipulate columns data foreach ($data['cols'] as &$value) { @@ -66,7 +69,10 @@ function hook_markdown_render_daily($data) $value2 = stripNoMarkdownTag($value2); continue; } - $value2['formatedDescription'] = process_markdown($value2['formatedDescription']); + $value2['formatedDescription'] = process_markdown( + $value2['formatedDescription'], + $conf->get('security.markdown_escape', true) + ); } } @@ -250,7 +256,7 @@ function sanitize_html($description) $description); } $description = preg_replace( - '#(<[^>]+)on[a-z]*="[^"]*"#is', + '#(<[^>]+)on[a-z]*="?[^ "]*"?#is', '$1', $description); return $description; @@ -265,10 +271,11 @@ function sanitize_html($description) * 5. Wrap description in 'markdown' CSS class. * * @param string $description input description text. + * @param bool $escape escape HTML entities * * @return string HTML processed $description. */ -function process_markdown($description) +function process_markdown($description, $escape = true) { $parsedown = new Parsedown(); @@ -278,7 +285,7 @@ function process_markdown($description) $processedDescription = reverse_text2clickable($processedDescription); $processedDescription = unescape($processedDescription); $processedDescription = $parsedown - ->setMarkupEscaped(false) + ->setMarkupEscaped($escape) ->setBreaksEnabled(true) ->text($processedDescription); $processedDescription = sanitize_html($processedDescription); diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 4948fe5..17d1ba8 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -385,4 +385,69 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; $this->assertTrue($updater->updateMethodDatastoreIds()); $this->assertEquals($checksum, hash_file('sha1', self::$testDatastore)); } + + /** + * Test updateMethodEscapeMarkdown with markdown plugin enabled + * => setting markdown_escape set to false. + */ + public function testEscapeMarkdownSettingToFalse() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $this->conf->set('general.enabled_plugins', ['markdown']); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertFalse($this->conf->get('security.markdown_escape')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertFalse($this->conf->get('security.markdown_escape')); + } + + /** + * Test updateMethodEscapeMarkdown with markdown plugin disabled + * => setting markdown_escape set to true. + */ + public function testEscapeMarkdownSettingToTrue() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + + $this->conf->set('general.enabled_plugins', []); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertTrue($this->conf->get('security.markdown_escape')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertTrue($this->conf->get('security.markdown_escape')); + } + + /** + * Test updateMethodEscapeMarkdown with nothing to do (setting already enabled) + */ + public function testEscapeMarkdownSettingNothingToDoEnabled() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $this->conf->set('security.markdown_escape', true); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertTrue($this->conf->get('security.markdown_escape')); + } + + /** + * Test updateMethodEscapeMarkdown with nothing to do (setting already disabled) + */ + public function testEscapeMarkdownSettingNothingToDoDisabled() + { + $this->conf->set('security.markdown_escape', false); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodEscapeMarkdown()); + $this->assertFalse($this->conf->get('security.markdown_escape')); + } } diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php index 17ef228..f1e1acf 100644 --- a/tests/plugins/PluginMarkdownTest.php +++ b/tests/plugins/PluginMarkdownTest.php @@ -13,12 +13,18 @@ require_once 'plugins/markdown/markdown.php'; */ class PluginMarkdownTest extends PHPUnit_Framework_TestCase { + /** + * @var ConfigManager instance. + */ + protected $conf; + /** * Reset plugin path */ function setUp() { PluginManager::$PLUGINS_PATH = 'plugins'; + $this->conf = new ConfigManager('tests/utils/config/configJson'); } /** @@ -36,7 +42,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_linklist($data); + $data = hook_markdown_render_linklist($data, $this->conf); $this->assertNotFalse(strpos($data['links'][0]['description'], '

    ')); $this->assertNotFalse(strpos($data['links'][0]['description'], '

    ')); } @@ -61,7 +67,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_daily($data); + $data = hook_markdown_render_daily($data, $this->conf); $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

    ')); $this->assertNotFalse(strpos($data['cols'][0][0]['formatedDescription'], '

    ')); } @@ -110,6 +116,8 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase $output = escape($input); $input .= 'link'; $output .= 'link'; + $input .= 'link'; + $output .= 'link'; $this->assertEquals($output, sanitize_html($input)); // Do not touch escaped HTML. $input = escape($input); @@ -130,10 +138,10 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase )) ); - $processed = hook_markdown_render_linklist($data); + $processed = hook_markdown_render_linklist($data, $this->conf); $this->assertEquals($str, $processed['links'][0]['description']); - $processed = hook_markdown_render_feed($data); + $processed = hook_markdown_render_feed($data, $this->conf); $this->assertEquals($str, $processed['links'][0]['description']); $data = array( @@ -151,7 +159,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase ), ); - $data = hook_markdown_render_daily($data); + $data = hook_markdown_render_daily($data, $this->conf); $this->assertEquals($str, $data['cols'][0][0]['formatedDescription']); } @@ -169,7 +177,7 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase )) ); - $data = hook_markdown_render_feed($data); + $data = hook_markdown_render_feed($data, $this->conf); $this->assertContains('', $data['links'][0]['description']); } @@ -185,4 +193,41 @@ class PluginMarkdownTest extends PHPUnit_Framework_TestCase $data = process_markdown($md); $this->assertEquals($html, $data); } + + /** + * Make sure that the HTML tags are escaped. + */ + public function testMarkdownWithHtmlEscape() + { + $md = '**strong** strong'; + $html = '

    strong <strong>strong</strong>

    '; + $data = array( + 'links' => array( + 0 => array( + 'description' => $md, + ), + ), + ); + $data = hook_markdown_render_linklist($data, $this->conf); + $this->assertEquals($html, $data['links'][0]['description']); + } + + /** + * Make sure that the HTML tags aren't escaped with the setting set to false. + */ + public function testMarkdownWithHtmlNoEscape() + { + $this->conf->set('security.markdown_escape', false); + $md = '**strong** strong'; + $html = '

    strong strong

    '; + $data = array( + 'links' => array( + 0 => array( + 'description' => $md, + ), + ), + ); + $data = hook_markdown_render_linklist($data, $this->conf); + $this->assertEquals($html, $data['links'][0]['description']); + } } diff --git a/tests/plugins/resources/markdown.html b/tests/plugins/resources/markdown.html index c0fbe7f..07a5a32 100644 --- a/tests/plugins/resources/markdown.html +++ b/tests/plugins/resources/markdown.html @@ -12,11 +12,11 @@
  • two
  • three
  • four
  • -
  • foo #foobar
  • +
  • foo <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a>
  • -

    #foobar foo lol #foo #bar

    -

    fsdfs http://link.tld #foobar http://link.tld

    +

    <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> foo lol #foo <a href="?addtag=bar" title="Hashtag bar">#bar</a>

    +

    fsdfs http://link.tld <a href="?addtag=foobar" title="Hashtag foobar">#foobar</a> http://link.tld

    http://link.tld #foobar
     next #foo

    Block:

    From 6b7ddb487126fd8f5be22e729ec8e0a2b639891b Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 4 Mar 2017 09:42:26 +0100 Subject: [PATCH 486/658] Bump version to 0.8.4 Signed-off-by: VirtualTam --- CHANGELOG.md | 5 +++++ index.php | 2 +- shaarli_version.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 502fdad..1340db5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +## [v0.8.4](https://github.com/shaarli/Shaarli/releases/tag/v0.8.4) - 2017-03-04 +### Security +- Markdown plugin: escape HTML entities by default + + ## [v0.8.3](https://github.com/shaarli/Shaarli/releases/tag/v0.8.3) - 2017-01-20 ### Fixed diff --git a/index.php b/index.php index 17fb4a2..b4ccd1b 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ + From 8868f3ca461011a8fb6dd9f90b60ed697ab52fc5 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 4 Mar 2017 09:52:48 +0100 Subject: [PATCH 487/658] UpdaterTest: ensure PHP 5.3 compatibility Signed-off-by: VirtualTam --- tests/Updater/UpdaterTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 17d1ba8..a3e8a4d 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -396,8 +396,8 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); $this->conf = new ConfigManager($sandboxConf); - $this->conf->set('general.enabled_plugins', ['markdown']); - $updater = new Updater([], [], $this->conf, true); + $this->conf->set('general.enabled_plugins', array('markdown')); + $updater = new Updater(array(), array(), $this->conf, true); $this->assertTrue($updater->updateMethodEscapeMarkdown()); $this->assertFalse($this->conf->get('security.markdown_escape')); @@ -416,8 +416,8 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); $this->conf = new ConfigManager($sandboxConf); - $this->conf->set('general.enabled_plugins', []); - $updater = new Updater([], [], $this->conf, true); + $this->conf->set('general.enabled_plugins', array()); + $updater = new Updater(array(), array(), $this->conf, true); $this->assertTrue($updater->updateMethodEscapeMarkdown()); $this->assertTrue($this->conf->get('security.markdown_escape')); @@ -435,7 +435,7 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); $this->conf = new ConfigManager($sandboxConf); $this->conf->set('security.markdown_escape', true); - $updater = new Updater([], [], $this->conf, true); + $updater = new Updater(array(), array(), $this->conf, true); $this->assertTrue($updater->updateMethodEscapeMarkdown()); $this->assertTrue($this->conf->get('security.markdown_escape')); } @@ -446,7 +446,7 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; public function testEscapeMarkdownSettingNothingToDoDisabled() { $this->conf->set('security.markdown_escape', false); - $updater = new Updater([], [], $this->conf, true); + $updater = new Updater(array(), array(), $this->conf, true); $this->assertTrue($updater->updateMethodEscapeMarkdown()); $this->assertFalse($this->conf->get('security.markdown_escape')); } From 94cddf7be4a168b923c254d20e02891dcb702b17 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sat, 4 Mar 2017 11:06:16 +0100 Subject: [PATCH 488/658] Update CHANGELOG.md Signed-off-by: VirtualTam --- CHANGELOG.md | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e98a5a..466c910 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,9 @@ configuration to enable URL rewriting, see: - versioned API endpoints: - `/api/v1/info`: get general information on the Shaarli instance - `/api/v1/links`: get a list of shaared links -- Allow selecting themes/templates from the configuration page +Theming: + - Introduce a new theme + - Allow selecting themes/templates from the configuration page - Add plugin placeholders to Atom/RSS feed templates - Add OpenSearch to feed templates - Add `campaign_` to the URL cleanup pattern list @@ -29,8 +31,10 @@ configuration to enable URL rewriting, see: ### Changed - Docker: enable nginx URL rewriting for the REST API -- Move `user.css` to the `data` folder -- Move default template files to a subfolder (`default`) +- Theming: + - Move `user.css` to the `data` folder + - Move default template files to a subfolder (`default`) + - Rename the legacy theme to `vintage` - Move PubSubHub to a dedicated plugin - Coding style: - explicit method visibility @@ -39,7 +43,6 @@ configuration to enable URL rewriting, see: - The updater now keeps custom theme preferences - Simplify the COPYING information - ### Removed - PHP < 5.5 compatibility @@ -51,15 +54,23 @@ configuration to enable URL rewriting, see: - Fix a fatal error during the install - Fix permalink image alignment in daily page - Fix the delete button in `editlink` +- Fix redirection after link deletion +- Do not access LinkDB links by ID before the Updater applies migrations +- Remove extra spaces in the bookmarklet's name + +### Security +- Markdown plugin: escape HTML entities by default + + +## [v0.8.4](https://github.com/shaarli/Shaarli/releases/tag/v0.8.4) - 2017-03-04 +### Security +- Markdown plugin: escape HTML entities by default ## [v0.8.3](https://github.com/shaarli/Shaarli/releases/tag/v0.8.3) - 2017-01-20 - ### Fixed - - PHP 7.1 compatibility: add ConfigManager parameter to anti-bruteforce function call in login template. ## [v0.8.2](https://github.com/shaarli/Shaarli/releases/tag/v0.8.2) - 2016-12-15 - ### Fixed - Editing a link created before the new ID system would change its permalink. From 3c66e56435359dc678048193e8ee239d06f79b64 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 3 Mar 2017 23:06:12 +0100 Subject: [PATCH 489/658] application: introduce the Shaarli\Config namespace Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam --- application/Updater.php | 2 ++ application/api/ApiMiddleware.php | 2 +- application/config/ConfigIO.php | 1 + application/config/ConfigJson.php | 5 +++-- application/config/ConfigManager.php | 16 ++++++---------- application/config/ConfigPhp.php | 3 ++- application/config/ConfigPlugin.php | 4 +++- composer.json | 3 ++- index.php | 3 +-- tests/ApplicationUtilsTest.php | 3 ++- tests/PluginManagerTest.php | 1 + tests/Updater/UpdaterTest.php | 4 +++- tests/api/ApiMiddlewareTest.php | 5 +++-- tests/api/controllers/GetLinkIdTest.php | 5 +++-- tests/api/controllers/GetLinksTest.php | 6 +++--- tests/api/controllers/InfoTest.php | 9 +++++---- tests/config/ConfigJsonTest.php | 11 +++++------ tests/config/ConfigManagerTest.php | 9 +++++---- tests/config/ConfigPhpTest.php | 5 ++--- tests/config/ConfigPluginTest.php | 6 ++++-- tests/plugins/PluginIssoTest.php | 1 + tests/plugins/PluginMarkdownTest.php | 1 + tests/plugins/PluginPubsubhubbubTest.php | 1 + tests/plugins/PluginQrcodeTest.php | 1 - tests/plugins/PluginReadityourselfTest.php | 1 + tests/plugins/PluginWallabagTest.php | 1 + 26 files changed, 62 insertions(+), 47 deletions(-) diff --git a/application/Updater.php b/application/Updater.php index f5ebf31..27cb2f0 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -1,4 +1,6 @@ conf = new \ConfigManager('tests/utils/config/configJson.json.php'); + $this->conf = new ConfigManager('tests/utils/config/configJson.json.php'); $this->conf->set('api.secret', 'NapoleonWasALizard'); $this->refDB = new \ReferenceLinkDB(); diff --git a/tests/api/controllers/GetLinkIdTest.php b/tests/api/controllers/GetLinkIdTest.php index 1b02050..45b18e6 100644 --- a/tests/api/controllers/GetLinkIdTest.php +++ b/tests/api/controllers/GetLinkIdTest.php @@ -2,6 +2,7 @@ namespace Shaarli\Api\Controllers; +use Shaarli\Config\ConfigManager; use Slim\Container; use Slim\Http\Environment; @@ -25,7 +26,7 @@ class GetLinkIdTest extends \PHPUnit_Framework_TestCase protected static $testDatastore = 'sandbox/datastore.php'; /** - * @var \ConfigManager instance + * @var ConfigManager instance */ protected $conf; @@ -54,7 +55,7 @@ class GetLinkIdTest extends \PHPUnit_Framework_TestCase */ public function setUp() { - $this->conf = new \ConfigManager('tests/utils/config/configJson'); + $this->conf = new ConfigManager('tests/utils/config/configJson'); $this->refDB = new \ReferenceLinkDB(); $this->refDB->write(self::$testDatastore); diff --git a/tests/api/controllers/GetLinksTest.php b/tests/api/controllers/GetLinksTest.php index da54fcf..10330cd 100644 --- a/tests/api/controllers/GetLinksTest.php +++ b/tests/api/controllers/GetLinksTest.php @@ -1,7 +1,7 @@ conf = new \ConfigManager('tests/utils/config/configJson'); + $this->conf = new ConfigManager('tests/utils/config/configJson'); $this->refDB = new \ReferenceLinkDB(); $this->refDB->write(self::$testDatastore); diff --git a/tests/api/controllers/InfoTest.php b/tests/api/controllers/InfoTest.php index 2916eed..4beef3f 100644 --- a/tests/api/controllers/InfoTest.php +++ b/tests/api/controllers/InfoTest.php @@ -1,7 +1,8 @@ conf = new \ConfigManager('tests/utils/config/configJson.json.php'); + $this->conf = new ConfigManager('tests/utils/config/configJson.json.php'); $this->refDB = new \ReferenceLinkDB(); $this->refDB->write(self::$testDatastore); @@ -84,7 +85,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals('Shaarli', $data['settings']['title']); $this->assertEquals('?', $data['settings']['header_link']); $this->assertEquals('UTC', $data['settings']['timezone']); - $this->assertEquals(\ConfigManager::$DEFAULT_PLUGINS, $data['settings']['enabled_plugins']); + $this->assertEquals(ConfigManager::$DEFAULT_PLUGINS, $data['settings']['enabled_plugins']); $this->assertEquals(false, $data['settings']['default_private_links']); $title = 'My links'; diff --git a/tests/config/ConfigJsonTest.php b/tests/config/ConfigJsonTest.php index 07f6ab4..3527f83 100644 --- a/tests/config/ConfigJsonTest.php +++ b/tests/config/ConfigJsonTest.php @@ -1,11 +1,10 @@ empty array. * - * @expectedException Exception + * @expectedException \Exception * @expectedExceptionMessage An error occurred while parsing JSON file: error code #4 */ public function testReadInvalidJson() @@ -112,7 +111,7 @@ class ConfigJsonTest extends PHPUnit_Framework_TestCase /** * Write to invalid path. * - * @expectedException IOException + * @expectedException \IOException */ public function testWriteInvalidArray() { @@ -123,7 +122,7 @@ class ConfigJsonTest extends PHPUnit_Framework_TestCase /** * Write to invalid path. * - * @expectedException IOException + * @expectedException \IOException */ public function testWriteInvalidBlank() { diff --git a/tests/config/ConfigManagerTest.php b/tests/config/ConfigManagerTest.php index 436e3d6..b81be5b 100644 --- a/tests/config/ConfigManagerTest.php +++ b/tests/config/ConfigManagerTest.php @@ -1,4 +1,5 @@ Date: Sat, 7 Jan 2017 14:28:58 +0100 Subject: [PATCH 490/658] Improve autoLocale() detection - Creates arrays_combination function to cover all cases - add the underscore separator in the regex - add `utf8` encoding in addition to `UTF-8` --- application/Utils.php | 51 +++++++++++++++++++++++++++++++++++-------- tests/UtilsTest.php | 20 +++++++++++++++++ 2 files changed, 62 insertions(+), 9 deletions(-) diff --git a/application/Utils.php b/application/Utils.php index 35d6522..19fb711 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -216,22 +216,55 @@ function is_session_id_valid($sessionId) function autoLocale($headerLocale) { // Default if browser does not send HTTP_ACCEPT_LANGUAGE - $attempts = array('en_US'); + $attempts = array('en_US', 'en_US.utf8', 'en_US.UTF-8'); if (isset($headerLocale)) { // (It's a bit crude, but it works very well. Preferred language is always presented first.) - if (preg_match('/([a-z]{2})-?([a-z]{2})?/i', $headerLocale, $matches)) { - $loc = $matches[1] . (!empty($matches[2]) ? '_' . strtoupper($matches[2]) : ''); - $attempts = array( - $loc.'.UTF-8', $loc, str_replace('_', '-', $loc).'.UTF-8', str_replace('_', '-', $loc), - $loc . '_' . strtoupper($loc).'.UTF-8', $loc . '_' . strtoupper($loc), - $loc . '_' . $loc.'.UTF-8', $loc . '_' . $loc, $loc . '-' . strtoupper($loc).'.UTF-8', - $loc . '-' . strtoupper($loc), $loc . '-' . $loc.'.UTF-8', $loc . '-' . $loc - ); + if (preg_match('/([a-z]{2,3})[-_]?([a-z]{2})?/i', $headerLocale, $matches)) { + $first = [strtolower($matches[1]), strtoupper($matches[1])]; + $separators = ['_', '-']; + $encodings = ['utf8', 'UTF-8']; + if (!empty($matches[2])) { + $second = [strtoupper($matches[2]), strtolower($matches[2])]; + $attempts = arrays_combination([$first, $separators, $second, ['.'], $encodings]); + } else { + $attempts = arrays_combination([$first, $separators, $first, ['.'], $encodings]); + } } } setlocale(LC_ALL, $attempts); } +/** + * Combine multiple arrays of string to get all possible strings. + * The order is important because this doesn't shuffle the entries. + * + * Example: + * [['a'], ['b', 'c']] + * will generate: + * - ab + * - ac + * + * TODO PHP 5.6: use the `...` operator instead of an array of array. + * + * @param array $items array of array of string + * + * @return array Combined string from the input array. + */ +function arrays_combination($items) +{ + $out = ['']; + foreach ($items as $item) { + $add = []; + foreach ($item as $element) { + foreach ($out as $key => $existingEntry) { + $add[] = $existingEntry . $element; + } + } + $out = $add; + } + return $out; +} + /** * Generates a default API secret. * diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index c885f55..b8f608b 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -282,4 +282,24 @@ class UtilsTest extends PHPUnit_Framework_TestCase $this->assertEquals('', normalize_spaces('')); $this->assertEquals(null, normalize_spaces(null)); } + + /** + * Test arrays_combine + */ + public function testArraysCombination() + { + $arr = [['ab', 'cd'], ['ef', 'gh'], ['ij', 'kl'], ['m']]; + $expected = [ + 'abefijm', + 'cdefijm', + 'abghijm', + 'cdghijm', + 'abefklm', + 'cdefklm', + 'abghklm', + 'cdghklm', + ]; + $this->assertEquals($expected, arrays_combination($arr)); + } + } From 52b503105d389d1796698114573ff618b2ad34a2 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 7 Jan 2017 14:30:42 +0100 Subject: [PATCH 491/658] Improve datetime display Use php-intl extension to display datetimes a bit more nicely, depending on the locale. What changes: * the day is no longer displayed * day number and month are ordered according to the locale * the timezone is more readable (UTC+1 instead of CET) --- application/Utils.php | 74 +++++++++++++++++++++--------- tests/UtilsTest.php | 46 ++++++++++++++----- tests/languages/bootstrap.php | 7 +++ tests/languages/de/UtilsDeTest.php | 25 ++++++++++ tests/languages/en/UtilsEnTest.php | 25 ++++++++++ tests/languages/fr/UtilsFrTest.php | 25 ++++++++++ tpl/default/linklist.html | 5 +- tpl/vintage/linklist.html | 4 +- 8 files changed, 175 insertions(+), 36 deletions(-) create mode 100644 tests/languages/bootstrap.php create mode 100644 tests/languages/de/UtilsDeTest.php create mode 100644 tests/languages/en/UtilsEnTest.php create mode 100644 tests/languages/fr/UtilsFrTest.php diff --git a/application/Utils.php b/application/Utils.php index 19fb711..a936b09 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -225,44 +225,46 @@ function autoLocale($headerLocale) $encodings = ['utf8', 'UTF-8']; if (!empty($matches[2])) { $second = [strtoupper($matches[2]), strtolower($matches[2])]; - $attempts = arrays_combination([$first, $separators, $second, ['.'], $encodings]); + $attempts = cartesian_product_generator([$first, $separators, $second, ['.'], $encodings]); } else { - $attempts = arrays_combination([$first, $separators, $first, ['.'], $encodings]); + $attempts = cartesian_product_generator([$first, $separators, $first, ['.'], $encodings]); } } } - setlocale(LC_ALL, $attempts); + setlocale(LC_ALL, implode('implode', iterator_to_array($attempts))); } /** - * Combine multiple arrays of string to get all possible strings. - * The order is important because this doesn't shuffle the entries. + * Build a Generator object representing the cartesian product from given $items. * * Example: * [['a'], ['b', 'c']] * will generate: - * - ab - * - ac - * - * TODO PHP 5.6: use the `...` operator instead of an array of array. + * [ + * ['a', 'b'], + * ['a', 'c'], + * ] * * @param array $items array of array of string * - * @return array Combined string from the input array. + * @return Generator representing the cartesian product of given array. + * + * @see https://en.wikipedia.org/wiki/Cartesian_product */ -function arrays_combination($items) +function cartesian_product_generator($items) { - $out = ['']; - foreach ($items as $item) { - $add = []; - foreach ($item as $element) { - foreach ($out as $key => $existingEntry) { - $add[] = $existingEntry . $element; - } - } - $out = $add; + if (empty($items)) { + yield []; + } + $subArray = array_pop($items); + if (empty($subArray)) { + return; + } + foreach (cartesian_product_generator($items) as $item) { + foreach ($subArray as $value) { + yield $item + [count($item) => $value]; + } } - return $out; } /** @@ -303,3 +305,33 @@ function normalize_spaces($string) { return preg_replace('/\s{2,}/', ' ', trim($string)); } + +/** + * Format the date according to the locale. + * + * Requires php-intl to display international datetimes, + * otherwise default format '%c' will be returned. + * + * @param DateTime $date to format. + * @param bool $intl Use international format if true. + * + * @return bool|string Formatted date, or false if the input is invalid. + */ +function format_date($date, $intl = true) +{ + if (! $date instanceof DateTime) { + return false; + } + + if (! $intl || ! class_exists('IntlDateFormatter')) { + return strftime('%c', $date->getTimestamp()); + } + + $formatter = new IntlDateFormatter( + setlocale(LC_TIME, 0), + IntlDateFormatter::LONG, + IntlDateFormatter::LONG + ); + + return $formatter->format($date); +} diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index b8f608b..e70cc1a 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -23,7 +23,12 @@ class UtilsTest extends PHPUnit_Framework_TestCase // Expected log date format protected static $dateFormat = 'Y/m/d H:i:s'; - + + /** + * @var string Save the current timezone. + */ + protected static $defaultTimeZone; + /** * Assign reference data @@ -31,6 +36,17 @@ class UtilsTest extends PHPUnit_Framework_TestCase public static function setUpBeforeClass() { self::$sidHashes = ReferenceSessionIdHashes::getHashes(); + self::$defaultTimeZone = date_default_timezone_get(); + // Timezone without DST for test consistency + date_default_timezone_set('Africa/Nairobi'); + } + + /** + * Reset the timezone + */ + public static function tearDownAfterClass() + { + date_default_timezone_set(self::$defaultTimeZone); } /** @@ -286,20 +302,28 @@ class UtilsTest extends PHPUnit_Framework_TestCase /** * Test arrays_combine */ - public function testArraysCombination() + public function testCartesianProductGenerator() { $arr = [['ab', 'cd'], ['ef', 'gh'], ['ij', 'kl'], ['m']]; $expected = [ - 'abefijm', - 'cdefijm', - 'abghijm', - 'cdghijm', - 'abefklm', - 'cdefklm', - 'abghklm', - 'cdghklm', + ['ab', 'ef', 'ij', 'm'], + ['ab', 'ef', 'kl', 'm'], + ['ab', 'gh', 'ij', 'm'], + ['ab', 'gh', 'kl', 'm'], + ['cd', 'ef', 'ij', 'm'], + ['cd', 'ef', 'kl', 'm'], + ['cd', 'gh', 'ij', 'm'], + ['cd', 'gh', 'kl', 'm'], ]; - $this->assertEquals($expected, arrays_combination($arr)); + $this->assertEquals($expected, iterator_to_array(cartesian_product_generator($arr))); } + /** + * Test date_format() with invalid parameter. + */ + public function testDateFormatInvalid() + { + $this->assertFalse(format_date([])); + $this->assertFalse(format_date(null)); + } } diff --git a/tests/languages/bootstrap.php b/tests/languages/bootstrap.php new file mode 100644 index 0000000..9560921 --- /dev/null +++ b/tests/languages/bootstrap.php @@ -0,0 +1,7 @@ +assertRegExp('/1. Januar 2017 (um )?10:11:12 GMT\+0?3(:00)?/', format_date($date, true)); + } + + /** + * Test date_format() using builtin PHP function strftime. + */ + public function testDateFormatDefault() + { + $date = DateTime::createFromFormat('Ymd_His', '20170101_101112'); + $this->assertEquals('So 01 Jan 2017 10:11:12 EAT', format_date($date, false)); + } +} diff --git a/tests/languages/en/UtilsEnTest.php b/tests/languages/en/UtilsEnTest.php new file mode 100644 index 0000000..60bcb65 --- /dev/null +++ b/tests/languages/en/UtilsEnTest.php @@ -0,0 +1,25 @@ +assertRegExp('/January 1, 2017 (at )?10:11:12 AM GMT\+0?3(:00)?/', format_date($date, true)); + } + + /** + * Test date_format() using builtin PHP function strftime. + */ + public function testDateFormatDefault() + { + $date = DateTime::createFromFormat('Ymd_His', '20170101_101112'); + $this->assertEquals('Sun 01 Jan 2017 10:11:12 AM EAT', format_date($date, false)); + } +} diff --git a/tests/languages/fr/UtilsFrTest.php b/tests/languages/fr/UtilsFrTest.php new file mode 100644 index 0000000..890308d --- /dev/null +++ b/tests/languages/fr/UtilsFrTest.php @@ -0,0 +1,25 @@ +assertRegExp('/1 janvier 2017 (à )?10:11:12 UTC\+0?3(:00)?/', format_date($date)); + } + + /** + * Test date_format() using builtin PHP function strftime. + */ + public function testDateFormatDefault() + { + $date = DateTime::createFromFormat('Ymd_His', '20170101_101112'); + $this->assertEquals('dim. 01 janv. 2017 10:11:12 EAT', format_date($date, false)); + } +} diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index a971270..9bc3ba1 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -171,10 +171,11 @@ - {elseif="!empty($search_term) or !empty($search_tags)"} + {elseif="!empty($search_term) or !empty($search_tags) or !empty($visibility)"}
    @@ -106,6 +106,12 @@ {/loop} {/if} + {if="!empty($visibility)"} + {'with status'|t} + + {$visibility|t} + + {/if}
    {/if} From e6cd773f5a8bd757c9362524cfeb3f7cb7fa81c9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 8 Mar 2017 19:59:00 +0100 Subject: [PATCH 497/658] Fix blocking namespace issue --- application/config/ConfigPlugin.php | 17 ++--------------- .../exception/PluginConfigOrderException.php | 17 +++++++++++++++++ composer.json | 3 ++- index.php | 1 + tests/config/ConfigPluginTest.php | 6 ++---- 5 files changed, 24 insertions(+), 20 deletions(-) create mode 100644 application/config/exception/PluginConfigOrderException.php diff --git a/application/config/ConfigPlugin.php b/application/config/ConfigPlugin.php index 61a594d..b3d9752 100644 --- a/application/config/ConfigPlugin.php +++ b/application/config/ConfigPlugin.php @@ -1,5 +1,6 @@ message = 'An error occurred while trying to save plugins loading order.'; - } -} diff --git a/application/config/exception/PluginConfigOrderException.php b/application/config/exception/PluginConfigOrderException.php new file mode 100644 index 0000000..f9d6875 --- /dev/null +++ b/application/config/exception/PluginConfigOrderException.php @@ -0,0 +1,17 @@ +message = 'An error occurred while trying to save plugins loading order.'; + } +} diff --git a/composer.json b/composer.json index 70b87bb..57851e5 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "Shaarli\\Api\\": "application/api/", "Shaarli\\Api\\Controllers\\": "application/api/controllers", "Shaarli\\Api\\Exceptions\\": "application/api/exceptions", - "Shaarli\\Config\\": "application/config/" + "Shaarli\\Config\\": "application/config/", + "Shaarli\\Config\\Exception\\": "application/config/exception" } } } diff --git a/index.php b/index.php index 064f43c..3c2bb1d 100644 --- a/index.php +++ b/index.php @@ -62,6 +62,7 @@ require_once __DIR__ . '/vendor/autoload.php'; require_once 'application/ApplicationUtils.php'; require_once 'application/Cache.php'; require_once 'application/CachedPage.php'; +require_once 'application/config/ConfigPlugin.php'; require_once 'application/FeedBuilder.php'; require_once 'application/FileUtils.php'; require_once 'application/HttpUtils.php'; diff --git a/tests/config/ConfigPluginTest.php b/tests/config/ConfigPluginTest.php index 22ab927..deb02c9 100644 --- a/tests/config/ConfigPluginTest.php +++ b/tests/config/ConfigPluginTest.php @@ -1,9 +1,7 @@ Date: Wed, 8 Mar 2017 22:58:44 +0100 Subject: [PATCH 498/658] Add v0.7.1 to CHANGELOG.md Signed-off-by: VirtualTam --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 466c910..1a87a8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -160,6 +160,10 @@ Please use our release archives, or follow the - XSRF token now generated each time a page is rendered +## [v0.7.1](https://github.com/shaarli/Shaarli/releases/tag/v0.7.1) - 2017-03-08 +### Security +- Markdown plugin: escape HTML entities by default + ## [v0.7.0](https://github.com/shaarli/Shaarli/releases/tag/v0.7.0) - 2016-05-14 ### Added - Adds an option to encode redirector URL parameter From 5ba55f0cf287c583019bbb731ad98e04a14da972 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 8 Mar 2017 20:28:33 +0100 Subject: [PATCH 499/658] Move config exception to dedicated classes with proper namespace --- application/config/ConfigManager.php | 36 ++----------------- .../exception/MissingFieldConfigException.php | 23 ++++++++++++ .../exception/UnauthorizedConfigException.php | 18 ++++++++++ tests/config/ConfigManagerTest.php | 2 +- 4 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 application/config/exception/MissingFieldConfigException.php create mode 100644 application/config/exception/UnauthorizedConfigException.php diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index 679a75b..f209741 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -1,6 +1,9 @@ configIO = $configIO; } } - -/** - * Exception used if a mandatory field is missing in given configuration. - */ -class MissingFieldConfigException extends \Exception -{ - public $field; - - /** - * Construct exception. - * - * @param string $field field name missing. - */ - public function __construct($field) - { - $this->field = $field; - $this->message = 'Configuration value is required for '. $this->field; - } -} - -/** - * Exception used if an unauthorized attempt to edit configuration has been made. - */ -class UnauthorizedConfigException extends \Exception -{ - /** - * Construct exception. - */ - public function __construct() - { - $this->message = 'You are not authorized to alter config.'; - } -} diff --git a/application/config/exception/MissingFieldConfigException.php b/application/config/exception/MissingFieldConfigException.php new file mode 100644 index 0000000..6346c6a --- /dev/null +++ b/application/config/exception/MissingFieldConfigException.php @@ -0,0 +1,23 @@ +field = $field; + $this->message = 'Configuration value is required for '. $this->field; + } +} diff --git a/application/config/exception/UnauthorizedConfigException.php b/application/config/exception/UnauthorizedConfigException.php new file mode 100644 index 0000000..79672c1 --- /dev/null +++ b/application/config/exception/UnauthorizedConfigException.php @@ -0,0 +1,18 @@ +message = 'You are not authorized to alter config.'; + } +} diff --git a/tests/config/ConfigManagerTest.php b/tests/config/ConfigManagerTest.php index b81be5b..1ec447b 100644 --- a/tests/config/ConfigManagerTest.php +++ b/tests/config/ConfigManagerTest.php @@ -106,7 +106,7 @@ class ConfigManagerTest extends \PHPUnit_Framework_TestCase /** * Try to write the config without mandatory parameter (e.g. 'login'). * - * @expectedException Shaarli\Config\MissingFieldConfigException + * @expectedException Shaarli\Config\Exception\MissingFieldConfigException */ public function testWriteMissingParameter() { From 07b57cfef9e23a033e92cf4a7c3fbe6686229c3b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 9 Mar 2017 19:39:13 +0100 Subject: [PATCH 500/658] Prevent git from messing with font files This should remove font related errors in browser debig consoles --- .gitattributes | 8 +- tpl/default/fonts/Fira-Sans-regular.woff | Bin 14119 -> 17100 bytes tpl/default/fonts/Fira-Sans-regular.woff2 | Bin 11464 -> 13836 bytes tpl/default/fonts/FontAwesome.otf | Bin 109687 -> 134808 bytes tpl/default/fonts/fontawesome-webfont.eot | Bin 70806 -> 165742 bytes tpl/default/fonts/fontawesome-webfont.svg | 3320 +++++++++++++++---- tpl/default/fonts/fontawesome-webfont.ttf | Bin 142049 -> 165548 bytes tpl/default/fonts/fontawesome-webfont.woff | Bin 83588 -> 98024 bytes tpl/default/fonts/fontawesome-webfont.woff2 | Bin 66623 -> 77160 bytes 9 files changed, 2675 insertions(+), 653 deletions(-) diff --git a/.gitattributes b/.gitattributes index 059fbb1..82f3760 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,10 +10,16 @@ *.php text diff=php Dockerfile text -# Do not alter images nor minified scripts +# Do not alter images nor minified scripts nor fonts *.ico binary *.jpg binary *.png binary +*.svg binary +*.otf binary +*.eot binary +*.woff binary +*.woff2 binary +*.ttf binary *.min.css binary *.min.js binary diff --git a/tpl/default/fonts/Fira-Sans-regular.woff b/tpl/default/fonts/Fira-Sans-regular.woff index 3ba3c8abb7daff1588d86173b6eee5ee7b61f87b..014ac3179e646ef000963392e01248856a2b5c1a 100644 GIT binary patch literal 17100 zcmYhi18{G>7cN}8r{<~cp4zr;+qP}n?P+^z+qP}n{nf_T_kX`Tb2C|!y`H_2?Ab}4 z%&e@q$%%>r0R#Oc!AYQB|CRAzKl=ZW|Fr)%i3y8{0s#RF|6tTVLICWv5eVqgpe z#Krw%!}^~ki35UyKZD;gj#}og9 z0e6g#{ryjw70%8PzVryVy@`L^T(F=cU`O#4sS?%qde%j~%`3E2& zKkZR$F1b;-uY>o^A@w2xf!A_(eYy1KYV=y7GeipC07tGIV5p#M$xBOFi_!6GgFOSe zuWx06$K!~lhW1ofXI!5f;K4&rqDz@_>YDzSnDOsvnBvk_oS7#sQrC={#T-(n8A20W z3KwGgUHm>25)>A;KG;)|z$?+b>b9PNwjuXKOV+Ub{WLlW74nZ}X>M>ft+gfHwiut$^I zs|N%#+EnhTH`~MX%oMsK&+LnIMzY<~@dn>FZG{Xx9XPPxVdGS{VTN6d*tgzpuy1~0 z;^cY@qIVDEV~_T`aU3p+aU3G#38CT=gzk&qYBbjVnlE!E!<93OmU^%v%1PBb(l0Hj zPl}(`mvsB5VxZZx@n|er=isT4IB(HbZsZhOk*p+ht+SM`q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La8{6H>oH{}Q@*DQ-`13BG?hh(#LZpWI>I5>D0u|D zrUtgu6*!bVr#>ZB4@OL>F%?yGhIr)xU7lcF4h(sQz9xyzu-4!NR|JiW?zT37jnPr* zmr6&&AO*yWNv-Jwhnh&8=OQ8{!UOgBdLeRIUK6lRYZtgNx=(^jAP;MRjJAy!9UTlF zny7_n5Ko&-&iUjlm%t4J3op*6OCWic;Knpu>4^2smsA?4nGAsywcqG;LI; zTmd*?JkU!;E}|HkfBc1M)kwmyO=IhmTs~=l%x9%u<1SI%9GFN zoZkBCmkIRIA|Lhe9hOX_wKn=|Yk)xp8)$|hRw(dPp(4d5^!V-mP{WNdOnW6d=;*PH zIwh3tcKBbDKRXJYj@^+$XJO!Guf6g1HzbGOLa-F91Z!S+=~Zl4O18^5uB<7{qGHR_ zOiEgA?4*g2B!zi5wRt6*#8_aVjkV1ltF5utI=eZGjkbkZ?2Pe;GV5c%o3{+y&5na- zo>Q~(E0d>yOM}LElT0+$D5<8n>b$8gOLx%~7vh-7Nl0R*1e>HhU`;L?)4F^*w+hni ziAYX#^KWGE&uL{SV-a|h2dcr(&=@-gIY5Y~>82((x`WRQai%}SST z&|xf2^dlW}O@o9miolZi*MhpvH3yhhvdAdGMT4T~XD4?%@p&}v+6antPGlh2GDCk^ i031LAjWU|GBOXuzsvQRDc*(FNP1Smefo0XDJr4l5O&cx% diff --git a/tpl/default/fonts/FontAwesome.otf b/tpl/default/fonts/FontAwesome.otf index e8778ff2f742cc39e5d4c24ba414dd345803484f..401ec0f36e4f73b8efa40bd6f604fe80d286db70 100644 GIT binary patch delta 72678 zcmZ^L2|yFa`uGea8{EZkB#Rib30|lLZ@e!Auc}qlcwf{LFI0@Es05HZ+#5wi1QF|f zVm+$1_+AeyZMAKBS+!bwTW$NEc9KlM|2K*DUBAC8+1n;bwQY}g0h~IruOKa*E@AS-0y+=ghi`g zU5nqVGr_$ZAzyvsl2;e2cK-%_pM^qwzeFeq@a50KeLUQEOk8c=G%m8uHMln;#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VE36DA6h@$c9uQ6 zAB_D6>y-r<@yWD=+ z|4Hp9-B+Tn6kpkPrTgz`e=ojTfA!qwYd^nmO@FQATKlzIUl_g^_r*Kc2VJkczVFNQ zFL!_W@W$4gV(-n0o1I_9e6{{-= z;UDZjTDxnzPyUem!_GU*o#Hzue*E&XvnnSYQ8dQoFlI3P8c`icf$ii=` z!a5m2kP{`5U9PjYz-2-Itucw{2Q;eCd{j$>-Q*nv?&NT0|@HlIi>B=5^Y zPD&ey<|0DRBQTHDzJx#vIUX$~c4nic{N}khmT#Sl2YDwGP8q7`ts$VBOzbC-W737B zRtp+U%9jurXl8)tA+1kFY2@i5*R$rQknFykTy?!I=xc4DHMPC18IKl_cThzvE+jHF z|6Y#Cs!8$&|6Clbdx2m;7!+W%5xs<3$Y+gBXfvNsgAGEmU1&uw^940{Uj)p8*-#D@ zFb6833aVi)$yMe-EzBn?^I0!4S5;ItZ)i@Yyuokme zhpc=_EpFtm){?U$bjkOy7Td8GZ4oW5tx8JDNeVz`QqnV++)q3Ep{pOd`(a8y^z_5j rewfw|2lT_7KIqKvgDHJ5C4aDBPEF||-;M=%ky?yk(wL3p1MvR<-_cKP diff --git a/tpl/default/fonts/fontawesome-webfont.woff b/tpl/default/fonts/fontawesome-webfont.woff index dc35ce3c2cf688c89b0bd0d4a82bc4be82b14c40..400014a4b06eee3d0c0d54402a47ab2601b2862b 100644 GIT binary patch literal 98024 zcmZTubC4&$(_Y)Q?OXfSHg9d)wr$(CZSQ{8wr%e%e)p|<|9eyQq|;BjCzE7qGMTiS zyqFjeFc1(BuRO}xo^G_%I z2O^L=ATW7lM&^H<^*^2eAN0eSJq3(x4DA1L)&F4euaO6sK5joV1E+r+DAqq4sQ>Wu z0|aVj?P25hA?l{GgpFa`oP%>HM?@(=7t5y$lA|Hyyb+&}%lcF7Py zVOq>>oZbI%cmJ;c1Ox&!PmnY&6cmq2?4Nt?RBbj#@*S#u% z($dm;AKJG3Yv)w@yrS19dscW!&dp@T$utcaiktwRu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`Lij4AWMaKo0&AxO5HHEa!A!`84REP$vIKn1AsbI#vi z#Z?u(dv_6#gjBkl4VEkb0000YA|fIp5fKp)kq|ob}c&C1f>Hc&{}J)jWNa;W6FFp>gyQ&qPEGu{H&#c#VZ+I1=Diaiq+k0ZXA$= TR62 Date: Thu, 9 Feb 2017 20:54:56 +0100 Subject: [PATCH 501/658] Link imports are now logged in `data/` folder, and can be debug using `dev.debug=true` setting related to #741 and #681 --- CHANGELOG.md | 1 + application/NetscapeBookmarkUtils.php | 33 +++++++++++---- index.php | 2 +- .../BookmarkImportTest.php | 41 +++++++++++-------- tests/utils/config/configJson.json.php | 2 +- 5 files changed, 51 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a87a8c..44ac06f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ Theming: - Add OpenSearch to feed templates - Add `campaign_` to the URL cleanup pattern list - Add an AUTHORS file and Makefile target to list authors from Git commit data +- Link imports are now logged in `data/` folder, and can be debug using `dev.debug=true` setting. ### Changed - Docker: enable nginx URL rewriting for the REST API diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php index e7148d0..f467a07 100644 --- a/application/NetscapeBookmarkUtils.php +++ b/application/NetscapeBookmarkUtils.php @@ -1,7 +1,12 @@ get('resource.data_dir') // log path, will be overridden ); + $logger = new Logger( + $conf->get('resource.data_dir'), + ! $conf->get('dev.debug') ? LogLevel::INFO : LogLevel::DEBUG, + [ + 'prefix' => 'import.', + 'extension' => 'log', + ] + ); + $parser->setLogger($logger); $bookmarks = $parser->parseString($data); $importCount = 0; @@ -179,7 +194,7 @@ class NetscapeBookmarkUtils $importCount++; } - $linkDb->save($pagecache); + $linkDb->save($conf->get('resource.page_cache')); return self::importStatus( $filename, $filesize, diff --git a/index.php b/index.php index 3c2bb1d..cc7f3ca 100644 --- a/index.php +++ b/index.php @@ -1528,7 +1528,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) $_POST, $_FILES, $LINKSDB, - $conf->get('resource.page_cache') + $conf ); echo ''; diff --git a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php index 0ca07ea..36425d8 100644 --- a/tests/NetscapeBookmarkUtils/BookmarkImportTest.php +++ b/tests/NetscapeBookmarkUtils/BookmarkImportTest.php @@ -42,6 +42,11 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase */ protected $pagecache = 'tests'; + /** + * @var ConfigManager instance. + */ + protected $conf; + /** * @var string Save the current timezone. */ @@ -65,6 +70,8 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase // start with an empty datastore file_put_contents(self::$testDatastore, ''); $this->linkDb = new LinkDB(self::$testDatastore, true, false); + $this->conf = new ConfigManager('tests/utils/config/configJson'); + $this->conf->set('resource.page_cache', $this->pagecache); } public static function tearDownAfterClass() @@ -81,7 +88,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File empty.htm (0 bytes) has an unknown file format.' .' Nothing was imported.', - NetscapeBookmarkUtils::import(NULL, $files, NULL, NULL) + NetscapeBookmarkUtils::import(NULL, $files, NULL, $this->conf) ); $this->assertEquals(0, count($this->linkDb)); } @@ -94,7 +101,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $files = file2array('no_doctype.htm'); $this->assertEquals( 'File no_doctype.htm (350 bytes) has an unknown file format. Nothing was imported.', - NetscapeBookmarkUtils::import(NULL, $files, NULL, NULL) + NetscapeBookmarkUtils::import(NULL, $files, NULL, $this->conf) ); $this->assertEquals(0, count($this->linkDb)); } @@ -108,7 +115,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File internet_explorer_encoding.htm (356 bytes) was successfully processed:' .' 1 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->conf) ); $this->assertEquals(1, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -137,7 +144,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_nested.htm (1337 bytes) was successfully processed:' .' 8 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->conf) ); $this->assertEquals(8, count($this->linkDb)); $this->assertEquals(2, count_private($this->linkDb)); @@ -259,7 +266,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); @@ -304,7 +311,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(1, count_private($this->linkDb)); @@ -348,7 +355,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -372,7 +379,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(2, count_private($this->linkDb)); @@ -398,7 +405,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(2, count_private($this->linkDb)); @@ -418,7 +425,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 2 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -444,7 +451,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -465,7 +472,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 2 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(2, count_private($this->linkDb)); @@ -489,7 +496,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -499,7 +506,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 0 links imported, 0 links overwritten, 2 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -518,7 +525,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -545,7 +552,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File netscape_basic.htm (482 bytes) was successfully processed:' .' 2 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import($post, $files, $this->linkDb, $this->conf) ); $this->assertEquals(2, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); @@ -570,7 +577,7 @@ class BookmarkImportTest extends PHPUnit_Framework_TestCase $this->assertEquals( 'File same_date.htm (453 bytes) was successfully processed:' .' 3 links imported, 0 links overwritten, 0 links skipped.', - NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->pagecache) + NetscapeBookmarkUtils::import(array(), $files, $this->linkDb, $this->conf) ); $this->assertEquals(3, count($this->linkDb)); $this->assertEquals(0, count_private($this->linkDb)); diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index 13d38c6..9c9288f 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -24,7 +24,7 @@ }, "resource": { "datastore": "tests\/utils\/config\/datastore.php", - "data_dir": "tests\/utils\/config", + "data_dir": "sandbox/", "raintpl_tpl": "tpl/" }, "plugins": { From c31f3ce0485f42439433e91e86bf14b8fb7375ab Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 9 Mar 2017 19:54:48 +0100 Subject: [PATCH 502/658] Upgrade netscape-bookmark-parser dependency to v2.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 57851e5..792c43d 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "keywords": ["bookmark", "link", "share", "web"], "require": { "php": ">=5.5", - "shaarli/netscape-bookmark-parser": "1.*", + "shaarli/netscape-bookmark-parser": "^2.0", "erusev/parsedown": "1.6", "slim/slim": "^3.0", "pubsubhubbub/publisher": "dev-master" From 87e9631e4aa7c9f535ee9f97ba3db595117350ab Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 10 Mar 2017 18:49:53 +0100 Subject: [PATCH 503/658] Fix namespace issue --- application/NetscapeBookmarkUtils.php | 1 + tests/NetscapeBookmarkUtils/BookmarkImportTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/application/NetscapeBookmarkUtils.php b/application/NetscapeBookmarkUtils.php index f467a07..ab346f8 100644 --- a/application/NetscapeBookmarkUtils.php +++ b/application/NetscapeBookmarkUtils.php @@ -1,6 +1,7 @@ Date: Thu, 9 Mar 2017 20:51:28 +0100 Subject: [PATCH 504/658] Fix #773: set Piwik URL protocol --- application/Updater.php | 17 +++++++++++++++ plugins/piwik/piwik.html | 15 +++++++++++++ plugins/piwik/piwik.php | 23 ++++++-------------- tests/Updater/UpdaterTest.php | 41 +++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 16 deletions(-) create mode 100644 plugins/piwik/piwik.html diff --git a/application/Updater.php b/application/Updater.php index 27cb2f0..fd7e207 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -1,6 +1,7 @@ conf->exists('plugins.PIWIK_URL') || startsWith($this->conf->get('plugins.PIWIK_URL'), 'http')) { + return true; + } + + $this->conf->set('plugins.PIWIK_URL', 'http://'. $this->conf->get('plugins.PIWIK_URL')); + $this->conf->write($this->isLoggedIn); + return true; + } } /** diff --git a/plugins/piwik/piwik.html b/plugins/piwik/piwik.html new file mode 100644 index 0000000..0881d7c --- /dev/null +++ b/plugins/piwik/piwik.html @@ -0,0 +1,15 @@ + + +

    + \ No newline at end of file diff --git a/plugins/piwik/piwik.php b/plugins/piwik/piwik.php index 7c44909..4a2b48a 100644 --- a/plugins/piwik/piwik.php +++ b/plugins/piwik/piwik.php @@ -50,22 +50,13 @@ function hook_piwik_render_footer($data, $conf) } // Free elements at the end of the page. - $data['endofpage'][] = '' . -'' . -'' . -''; + $data['endofpage'][] = sprintf( + file_get_contents(PluginManager::$PLUGINS_PATH . '/piwik/piwik.html'), + $piwikUrl, + $piwikSiteid, + $piwikUrl, + $piwikSiteid + ); return $data; } - diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index 448405a..b522d61 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -574,4 +574,45 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; $this->assertTrue($updater->updateMethodEscapeMarkdown()); $this->assertFalse($this->conf->get('security.markdown_escape')); } + + /** + * Test updateMethodPiwikUrl with valid data + */ + public function testUpdatePiwikUrlValid() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $url = 'mypiwik.tld'; + $this->conf->set('plugins.PIWIK_URL', $url); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodPiwikUrl()); + $this->assertEquals('http://'. $url, $this->conf->get('plugins.PIWIK_URL')); + + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertEquals('http://'. $url, $this->conf->get('plugins.PIWIK_URL')); + } + + /** + * Test updateMethodPiwikUrl without setting + */ + public function testUpdatePiwikUrlEmpty() + { + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodPiwikUrl()); + $this->assertEmpty($this->conf->get('plugins.PIWIK_URL')); + } + + /** + * Test updateMethodPiwikUrl: valid URL, nothing to do + */ + public function testUpdatePiwikUrlNothingToDo() + { + $url = 'https://mypiwik.tld'; + $this->conf->set('plugins.PIWIK_URL', $url); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodPiwikUrl()); + $this->assertEquals($url, $this->conf->get('plugins.PIWIK_URL')); + } } From 792b26789fe9f6245a155e47aea0273917ac33d7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 13:47:07 +0100 Subject: [PATCH 505/658] Fixes #657: use data-autofirst parameter for awesomeplete data-autofirst automatically selects the first item of the list of choice automatically. You just have to press enter to use it. --- tpl/default/linklist.html | 2 +- tpl/default/page.header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 9437020..57ef456 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -34,7 +34,7 @@ {if="!empty($search_tags)"} value="{$search_tags}" {/if} - autocomplete="off" data-multiple data-minChars="1" + autocomplete="off" data-multiple data-autofirst data-minChars="1" data-list="{loop="$tags"}{$key}, {/loop}" > diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index b76fc03..dcc0d5a 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -114,7 +114,7 @@ {if="!empty($search_tags)"} value="{$search_tags}" {/if} - autocomplete="off" data-multiple data-minChars="1" + autocomplete="off" data-multiple data-autofirst data-minChars="1" data-list="{loop="$tags"}{$key}, {/loop}" > From 2ea89aba4faa5509ca68c7e9b6b9ab71c1929935 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 14:11:06 +0100 Subject: [PATCH 506/658] Fixes #304: use atom feed as default RSS feed is still available with the setting set to false --- application/PageBuilder.php | 3 +- application/Updater.php | 16 ++++++++++ application/config/ConfigManager.php | 2 +- tests/Updater/UpdaterTest.php | 45 ++++++++++++++++++++++++++++ tpl/default/page.header.html | 4 +-- 5 files changed, 66 insertions(+), 4 deletions(-) diff --git a/application/PageBuilder.php b/application/PageBuilder.php index 544aba7..b133dee 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php @@ -75,7 +75,8 @@ class PageBuilder } $this->tpl->assign('shaarlititle', $this->conf->get('general.title', 'Shaarli')); $this->tpl->assign('openshaarli', $this->conf->get('security.open_shaarli', false)); - $this->tpl->assign('showatom', $this->conf->get('feed.show_atom', false)); + $this->tpl->assign('showatom', $this->conf->get('feed.show_atom', true)); + $this->tpl->assign('feed_type', $this->conf->get('feed.show_atom', true) !== false ? 'atom' : 'rss'); $this->tpl->assign('hide_timestamps', $this->conf->get('privacy.hide_timestamps', false)); $this->tpl->assign('token', getToken($this->conf)); // To be removed with a proper theme configuration. diff --git a/application/Updater.php b/application/Updater.php index fd7e207..efbfc83 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -378,6 +378,22 @@ class Updater $this->conf->set('plugins.PIWIK_URL', 'http://'. $this->conf->get('plugins.PIWIK_URL')); $this->conf->write($this->isLoggedIn); + + return true; + } + + /** + * Use ATOM feed as default. + */ + public function updateMethodAtomDefault() + { + if (!$this->conf->exists('feed.show_atom') || $this->conf->get('feed.show_atom') === true) { + return true; + } + + $this->conf->set('feed.show_atom', true); + $this->conf->write($this->isLoggedIn); + return true; } } diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index f209741..c5eeda0 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -317,7 +317,7 @@ class ConfigManager $this->setEmpty('updates.check_updates_interval', 86400); $this->setEmpty('feed.rss_permalinks', true); - $this->setEmpty('feed.show_atom', false); + $this->setEmpty('feed.show_atom', true); $this->setEmpty('privacy.default_private_links', false); $this->setEmpty('privacy.hide_public_links', false); diff --git a/tests/Updater/UpdaterTest.php b/tests/Updater/UpdaterTest.php index b522d61..11b6444 100644 --- a/tests/Updater/UpdaterTest.php +++ b/tests/Updater/UpdaterTest.php @@ -615,4 +615,49 @@ $GLOBALS[\'privateLinkByDefault\'] = true;'; $this->assertTrue($updater->updateMethodPiwikUrl()); $this->assertEquals($url, $this->conf->get('plugins.PIWIK_URL')); } + + /** + * Test updateMethodAtomDefault with show_atom set to false + * => update to true. + */ + public function testUpdateMethodAtomDefault() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $this->conf->set('feed.show_atom', false); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodAtomDefault()); + $this->assertTrue($this->conf->get('feed.show_atom')); + // reload from file + $this->conf = new ConfigManager($sandboxConf); + $this->assertTrue($this->conf->get('feed.show_atom')); + } + /** + * Test updateMethodAtomDefault with show_atom not set. + * => nothing to do + */ + public function testUpdateMethodAtomDefaultNoExist() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodAtomDefault()); + $this->assertTrue($this->conf->get('feed.show_atom')); + } + /** + * Test updateMethodAtomDefault with show_atom set to true. + * => nothing to do + */ + public function testUpdateMethodAtomDefaultAlreadyTrue() + { + $sandboxConf = 'sandbox/config'; + copy(self::$configFile . '.json.php', $sandboxConf . '.json.php'); + $this->conf = new ConfigManager($sandboxConf); + $this->conf->set('feed.show_atom', true); + $updater = new Updater([], [], $this->conf, true); + $this->assertTrue($updater->updateMethodAtomDefault()); + $this->assertTrue($this->conf->get('feed.show_atom')); + } } diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index b76fc03..04f33ea 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -48,7 +48,7 @@ {/loop}
  • - {'RSS Feed'|t} + {'RSS Feed'|t}
  • {if="isLoggedIn()"}
  • @@ -70,7 +70,7 @@
  • - +
  • From 6fcb44378725dcfeac8160b2bcfe37a6da5106c1 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 14:19:04 +0100 Subject: [PATCH 507/658] Fixes #793: display the star logo on mobile instead of home logo --- tpl/default/page.header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index b76fc03..cbef6f7 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -2,7 +2,7 @@
    - + {$shaarlititle} From 3252fbb3ccaf8f6df757d400754a3c0e27e66011 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 11 Mar 2017 20:27:35 +0100 Subject: [PATCH 508/658] Shaarli demo moved to shaarli.org --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 21062b9..db1b901 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ _It is designed to be personal (single-user), fast and handy._ - [Bugs/Feature requests/Discussion](https://github.com/shaarli/Shaarli/issues/) ### Demo -You can use this [public demo instance of Shaarli](http://shaarlidemo.tuxfamily.org/Shaarli). +You can use this [public demo instance of Shaarli](https://demo.shaarli.org). It runs the latest development version of Shaarli and is updated/reset daily. Login: `demo`; Password: `demo` From b9b41d25e319f44f9fb8259a0237a8ee81ad394b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 12 Mar 2017 12:45:32 +0100 Subject: [PATCH 509/658] Remove inline JS and add LibreJS headers in JS files Fixes #33 (wow!) Relates to #395 --- COPYING | 4 + inc/awesomplete-multiple-tags.js | 28 ++++++ inc/plugin_admin.js | 28 ++++++ plugins/piwik/piwik.html | 28 ++++++ plugins/playvideos/youtube_playlist.js | 28 ++++++ plugins/qrcode/shaarli-qrcode.js | 28 ++++++ tpl/default/configure.html | 13 --- tpl/default/editlink.html | 28 ++---- tpl/default/install.html | 13 --- tpl/default/js/shaarli.js | 130 ++++++++++++++++++++++++- tpl/default/loginform.html | 11 +-- tpl/default/picwall.html | 5 - tpl/default/pluginsadmin.html | 10 +- tpl/default/tools.html | 42 ++------ 14 files changed, 286 insertions(+), 110 deletions(-) diff --git a/COPYING b/COPYING index 4bbdf2b..0520215 100644 --- a/COPYING +++ b/COPYING @@ -46,6 +46,10 @@ Files: plugins/wallabag/wallabag.png License: MIT License (http://opensource.org/licenses/MIT) Copyright: (C) 2015 Nicolas Lœuillet - https://github.com/wallabag/wallabag +Files: tpl/default/sad_star.png +License: MIT License (http://opensource.org/licenses/MIT) +Copyright: (C) 2015 kalvn - https://github.com/kalvn/Shaarli-Material + ---------------------------------------------------- ZLIB/LIBPNG LICENSE diff --git a/inc/awesomplete-multiple-tags.js b/inc/awesomplete-multiple-tags.js index faecb41..c38dc38 100644 --- a/inc/awesomplete-multiple-tags.js +++ b/inc/awesomplete-multiple-tags.js @@ -1,3 +1,31 @@ +/** @licstart The following is the entire license notice for the + * JavaScript code in this page. + * + * Copyright: (c) 2011-2015 Sébastien SAUVAGE + * (c) 2011-2017 The Shaarli Community, see AUTHORS + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must + * not be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. + * + * @licend The above is the entire license notice + * for the JavaScript code in this page. + */ + var awp = Awesomplete.$; var autocompleteFields = document.querySelectorAll('input[data-multiple]'); [].forEach.call(autocompleteFields, function(autocompleteField) { diff --git a/inc/plugin_admin.js b/inc/plugin_admin.js index 055ac28..4b55e0f 100644 --- a/inc/plugin_admin.js +++ b/inc/plugin_admin.js @@ -1,3 +1,31 @@ +/** @licstart The following is the entire license notice for the + * JavaScript code in this page. + * + * Copyright: (c) 2011-2015 Sébastien SAUVAGE + * (c) 2011-2017 The Shaarli Community, see AUTHORS + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must + * not be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. + * + * @licend The above is the entire license notice + * for the JavaScript code in this page. + */ + /** * Change the position counter of a row. * diff --git a/plugins/piwik/piwik.html b/plugins/piwik/piwik.html index 0881d7c..f4bc358 100644 --- a/plugins/piwik/piwik.html +++ b/plugins/piwik/piwik.html @@ -1,5 +1,33 @@ diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 2180c08..491f1da 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -4,11 +4,7 @@ {include="includes"} - {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} - {include="page.header"} - {else} -
    Shaare to: {$shaarlititle}
    - {/if} + {include="page.header"}
    @@ -21,25 +17,25 @@
    - +
    - +
    - +
    -
    @@ -74,18 +70,6 @@ {/if}
    - {if="$source !== 'firefoxsocialapi' && $source !== 'bookmarklet'"} - {include="page.footer"} - {/if} - + {include="page.footer"} diff --git a/tpl/default/install.html b/tpl/default/install.html index 0bd8a63..33f8a45 100644 --- a/tpl/default/install.html +++ b/tpl/default/install.html @@ -105,18 +105,5 @@
    {include="page.footer"} - diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index f7de0a4..30d8ed6 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -1,3 +1,31 @@ +/** @licstart The following is the entire license notice for the + * JavaScript code in this page. + * + * Copyright: (c) 2011-2015 Sébastien SAUVAGE + * (c) 2011-2017 The Shaarli Community, see AUTHORS + * + * This software is provided 'as-is', without any express or implied warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would + * be appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must + * not be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. + * + * @licend The above is the entire license notice + * for the JavaScript code in this page. + */ + window.onload = function () { /** @@ -185,9 +213,13 @@ window.onload = function () { /** * Autofocus text fields */ - var autofocusElements = document.querySelector('.autofocus'); - if (autofocusElements != null) { - autofocusElements.focus(); + // ES6 syntax + let autofocusElements = document.querySelectorAll('.autofocus'); + for (let autofocusElement of autofocusElements) { + if (autofocusElement.value == '') { + autofocusElement.focus(); + break; + } } /** @@ -266,4 +298,96 @@ window.onload = function () { } }); } + + /** + * TimeZome select + * FIXME! way too hackish + */ + var toRemove = document.getElementById('timezone-remove'); + if (toRemove != null) { + var firstSelect = toRemove.getElementsByTagName('select')[0]; + var secondSelect = toRemove.getElementsByTagName('select')[1]; + toRemove.parentNode.removeChild(toRemove); + var toAdd = document.getElementById('timezone-add'); + var newTimezone = 'Continent ' + firstSelect.outerHTML + ''; + newTimezone += ' Country ' + secondSelect.outerHTML + ''; + toAdd.innerHTML = newTimezone; + } + + /** + * Awesomplete trigger. + */ + var tags = document.getElementById('lf_tags'); + if (tags != null) { + awesompleteUniqueTag('#lf_tags'); + } + + /** + * bLazy trigger + */ + var picwall = document.getElementById('picwall_container'); + if (picwall != null) { + var bLazy = new Blazy(); + } + + /** + * Bookmarklet alert + */ + var bookmarkletLinks = document.querySelectorAll('.bookmarklet-link'); + var bkmMessage = document.getElementById('bookmarklet-alert'); + [].forEach.call(bookmarkletLinks, function(link) { + link.addEventListener('click', function(event) { + event.preventDefault(); + alert(bkmMessage.value); + }); + }); + + /** + * Firefox Social + */ + var ffButton = document.getElementById('ff-social-button'); + if (ffButton != null) { + ffButton.addEventListener('click', function(event) { + activateFirefoxSocial(event.target); + }); + } + + /** + * Plugin admin order + */ + var orderPA = document.querySelectorAll('.order'); + [].forEach.call(orderPA, function(link) { + link.addEventListener('click', function(event) { + event.preventDefault(); + if (event.target.classList.contains('order-up')) { + return orderUp(event.target.parentNode.parentNode.getAttribute('data-order')); + } else if (event.target.classList.contains('order-down')) { + return orderDown(event.target.parentNode.parentNode.getAttribute('data-order')); + } + }); + }); }; + +function activateFirefoxSocial(node) { + var loc = location.href; + var baseURL = loc.substring(0, loc.lastIndexOf("/")); + + // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. + var data = { + name: "{$shaarlititle}", + description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.", + author: "Shaarli", + version: "1.0.0", + + iconURL: baseURL + "/images/favicon.ico", + icon32URL: baseURL + "/images/favicon.ico", + icon64URL: baseURL + "/images/favicon.ico", + + shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", + homepageURL: baseURL + }; + node.setAttribute("data-service", JSON.stringify(data)); + + var activate = new CustomEvent("ActivateSocialFeature"); + node.dispatchEvent(activate); +} diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html index 2ad3fe9..eb6d837 100644 --- a/tpl/default/loginform.html +++ b/tpl/default/loginform.html @@ -26,7 +26,7 @@ {if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20">
    - +
    - {if="ban_canLogin($conf) && ! empty($username)"} - // Focus password on load if the username is set. - var passwords = document.getElementsByName('password'); - if (passwords.length == 2) { - passwords[1].focus(); - } - {/if} - diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index b9ae2f2..248e56d 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -40,11 +40,6 @@ {include="page.footer"} - diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index 92af2ee..5cc1802 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html @@ -48,14 +48,8 @@
    {if="count($enabledPlugins)>1"} - - ▲ - - - ▼ - + + {/if} diff --git a/tpl/default/tools.html b/tpl/default/tools.html index b9df32d..baa033a 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -67,7 +67,7 @@ @@ -103,7 +103,7 @@ @@ -142,38 +142,8 @@
    {include="page.footer"} - - + From 15162272f46a3ae6e93a9f405173e0c770219fff Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 12 Mar 2017 13:28:37 +0100 Subject: [PATCH 510/658] Fixes #806: display overflow for awesomplete list --- tpl/default/css/shaarli.css | 4 ++++ tpl/default/editlink.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index d33e906..4886dda 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -908,6 +908,10 @@ div.awesomplete > ul { color: black; } +form[name="linkform"].page-form { + overflow: visible; +} + @media screen and (max-width: 64em) { .page-form-complete .form-label { height: inherit; diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 491f1da..354499a 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -36,7 +36,7 @@
    + data-list="{loop="$tags"}{$key}, {/loop}" data-multiple data-autofirst autocomplete="off" >
    From 7cea7c7a9a6ab22bb4aa6e81ed111681779eb264 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 12 Mar 2017 13:41:49 +0100 Subject: [PATCH 511/658] Theme: Vertical align theme select in configure Fixes #807 --- tpl/default/configure.html | 2 +- tpl/default/css/shaarli.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tpl/default/configure.html b/tpl/default/configure.html index f24ac43..d6536d4 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -55,7 +55,7 @@

    Upgrade and migration

    Preparation

    +

    Note your current version

    +

    If anything goes wrong, it's important for us to know which version you're upgrading from.
    +The current version is present in the version.php file.

    Backup your data

    Shaarli stores all user data under the data directory:

    • data/config.php - main configuration file
    • data/datastore.php - bookmarked links
    • data/ipbans.php - banned IP addresses
    • +
    • data/updates.txt - contains all automatic update to the configuration and datastore files already run

    See Shaarli configuration for more information about Shaarli resources.

    It is recommended to backup this repository before starting updating/upgrading Shaarli:

    @@ -125,15 +131,11 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • check or restore the data directory
  • -

    Upgrading from release archives

    +

    All tagged revisions can be downloaded as tarballs or ZIP archives from the releases page.

    -

    We recommend using the releases from the stable branch, which are available as:

    - -

    Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the contents of the data directory!

    -

    After upgrading, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to data/config.php (see Shaarli configuration for more details).

    +

    We recommend that you use the latest release tarball with the -full suffix. It contains the dependencies, please read Download and installation for git complete instructions.

    +

    Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the content of the data directory!

    +

    After upgrading, access your fresh Shaarli installation from a web browser; the configuration and data store will then be automatically updated, and new settings added to data/config.json.php (see Shaarli configuration for more details).

    Upgrading with Git

    Updating a community Shaarli

    If you have installed Shaarli from the community Git repository, simply pull new changes from your local clone:

    @@ -149,7 +151,7 @@ $ git pull tests/Url/UrlTest.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    -
    $ composer update --no-dev
    +
    $ composer install --no-dev
     
     Loading composer repositories with package information
     Updating dependencies
    @@ -214,7 +216,7 @@ $ git branch -vv
       master 029f75f [sebsauvage/master] Update README.md[](.html)
     * stable 890afc3 [origin/stable] Merge pull request #509 from ArthurHoaro/v0.6.5[](.html)

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    -
    $ composer update --no-dev
    +
    $ composer install --no-dev
     
     Loading composer repositories with package information
     Updating dependencies
    @@ -238,5 +240,20 @@ $ git gc
     Total 3317 (delta 2050), reused 3301 (delta 2034)to

    Step 3: configuration

    After migrating, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to data/config.php (see Shaarli configuration for more details).

    +

    Troubleshooting

    +

    If the solutions provided here doesn't work, please open an issue specifying which version you're upgrading from and to.

    +

    You must specify an integer as a key

    +

    In v0.8.1 we changed how link keys are handled (from timestamps to incremental integers).
    +Take a look at data/updates.txt content.

    +

    updates.txt contains updateMethodDatastoreIds

    +

    Try to delete it and refresh your page while being logged in.

    +

    updates.txt doesn't exists or doesn't contain updateMethodDatastoreIds

    +
      +
    1. Create data/updates.txt if it doesn't exist.
    2. +
    3. Paste this string in the update file ;updateMethodRenameDashTags;
    4. +
    5. Login to Shaarli.
    6. +
    7. Delete the update file.
    8. +
    9. Refresh.
    10. +
    diff --git a/doc/Upgrade-and-migration.md b/doc/Upgrade-and-migration.md index 0bc3382..d36eb86 100644 --- a/doc/Upgrade-and-migration.md +++ b/doc/Upgrade-and-migration.md @@ -1,11 +1,17 @@ #Upgrade and migration ## Preparation +### Note your current version + +If anything goes wrong, it's important for us to know which version you're upgrading from. +The current version is present in the `version.php` file. + ### Backup your data Shaarli stores all user data under the `data` directory: - `data/config.php` - main configuration file - `data/datastore.php` - bookmarked links - `data/ipbans.php` - banned IP addresses +- `data/updates.txt` - contains all automatic update to the configuration and datastore files already run See [Shaarli configuration](Shaarli-configuration.html) for more information about Shaarli resources. @@ -22,16 +28,14 @@ As all user data is kept under `data`, this is the only directory you need to wo - update - see the following sections - check or restore the `data` directory -## Upgrading from release archives +## Recommended : Upgrading from release archives All tagged revisions can be downloaded as tarballs or ZIP archives from the [releases](https://github.com/shaarli/Shaarli/releases) page.[](.html) -We _recommend_ using the releases from the `stable` branch, which are available as: -- gzipped tarball - https://github.com/shaarli/Shaarli/archive/stable.tar.gz -- ZIP archive - https://github.com/shaarli/Shaarli/archive/stable.zip +We recommend that you use the latest release tarball with the `-full` suffix. It contains the dependencies, please read [Download and installation](Download-and-installation.html) for `git` complete instructions. -Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the contents of the `data` directory! +Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the content of the `data` directory! -After upgrading, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to `data/config.php` (see [Shaarli configuration](Shaarli-configuration.html) for more details). +After upgrading, access your fresh Shaarli installation from a web browser; the configuration and data store will then be automatically updated, and new settings added to `data/config.json.php` (see [Shaarli configuration](Shaarli-configuration.html) for more details). ## Upgrading with Git ### Updating a community Shaarli @@ -54,7 +58,7 @@ Fast-forward Shaarli >= `v0.8.x`: install/update third-party PHP dependencies using [Composer](https://getcomposer.org/):[](.html) ```bash -$ composer update --no-dev +$ composer install --no-dev Loading composer repositories with package information Updating dependencies @@ -129,7 +133,7 @@ $ git branch -vv Shaarli >= `v0.8.x`: install/update third-party PHP dependencies using [Composer](https://getcomposer.org/):[](.html) ```bash -$ composer update --no-dev +$ composer install --no-dev Loading composer repositories with package information Updating dependencies @@ -159,3 +163,24 @@ Total 3317 (delta 2050), reused 3301 (delta 2034)to #### Step 3: configuration After migrating, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to `data/config.php` (see [Shaarli configuration](Shaarli-configuration.html) for more details). + +## Troubleshooting + +If the solutions provided here doesn't work, please open an issue specifying which version you're upgrading from and to. + +### You must specify an integer as a key + +In `v0.8.1` we changed how link keys are handled (from timestamps to incremental integers). +Take a look at `data/updates.txt` content. + +#### `updates.txt` contains `updateMethodDatastoreIds` + +Try to delete it and refresh your page while being logged in. + +#### `updates.txt` doesn't exists or doesn't contain `updateMethodDatastoreIds` + + 1. Create `data/updates.txt` if it doesn't exist. + 2. Paste this string in the update file `;updateMethodRenameDashTags;` + 3. Login to Shaarli. + 4. Delete the update file. + 5. Refresh. diff --git a/doc/Usage.html b/doc/Usage.html index 63f21d9..b585588 100644 --- a/doc/Usage.html +++ b/doc/Usage.html @@ -32,6 +32,7 @@
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To
      @@ -50,6 +51,7 @@
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • diff --git a/doc/Versioning-and-Branches.html b/doc/Versioning-and-Branches.html new file mode 100644 index 0000000..4dfe4a9 --- /dev/null +++ b/doc/Versioning-and-Branches.html @@ -0,0 +1,156 @@ + + + + + + + Shaarli – Versioning and Branches + + + + + + + +

      Versioning and Branches

      +

      [WORK IN PROGRESS][](.html)

      +

      It's important to understand how Shaarli branches work, especially if you're maintaining a 3rd party tools for Shaarli (theme, plugin, etc.), to be sure stay compatible.

      +

      master branch

      +

      The master branch is the development branch. Any new change MUST go through this branch using Pull Requests.

      +

      Remarks:

      +
        +
      • This branch shouldn't be used for production as it isn't necessary stable.
      • +
      • 3rd party aren't required to be compatible with the latest changes.
      • +
      • Official plugins, themes and libraries (contained within Shaarli organization repos) must be compatible with the master branch.
      • +
      • The version in this branch is always dev.
      • +
      +

      v0.x branch

      +

      This v0.x branch, points to the latest v0.x.y release.

      +

      Explanation:

      +

      When a new version is released, it might contains a major bug which isn't detected right away. For example, a new PHP version is released, containing backward compatibility issue which doesn't work with Shaarli.

      +

      In this case, the issue is fixed in the master branch, and the fix is backported the to the v0.x branch. Then a new release is made from the v0.x branch.

      +

      This workflow allow us to fix any major bug detected, without having to release bleeding edge feature too soon.

      +

      latest branch

      +

      This branch point the latest release. It recommended to use it to get the latest tested changes.

      +

      stable branch

      +

      The stable branch doesn't contain any major bug, and is one major digit version behind the latest release.

      +

      For example, the current latest release is v0.8.3, the stable branch is an alias to the latest v0.7.x release. When the v0.9.0 version will be released, the stable will move to the latest v0.8.x release.

      +

      Remarks:

      +
        +
      • Shaarli release pace isn't fast, and the stable branch might be a few months behind the latest release.
      • +
      +

      Releases

      +

      Releases are always made from the latest v0.x branch.

      +

      Note that for every release, we manually generate a tarball which contains all Shaarli dependencies, making Shaarli's installation only one step.

      +

      Advices on 3rd party git repos workflow

      +

      Versioning

      +

      Any time a new Shaarli release is published, you should publish a new release of your repo if the changes affected you since the latest release (take a look at the changelog (Draft means not released yet) and the commit log (like tpl folder for themes)). You can either:

      +
        +
      • use the Shaarli version number, with your repo version. For example, if Shaarli v0.8.3 is released, publish a v0.8.3-1 release, where v0.8.3 states Shaarli compatibility and -1 is your own version digit for the current Shaarli version.
      • +
      • use your own versioning scheme, and state Shaarli compatibility in the release description.
      • +
      +

      Using this, any user will be able to pick the release matching his own Shaarli version.

      +

      Major bugfix backport releases

      +

      To be able to support backported fixes, it recommended to use our workflow:

      +
      # In master, fix the major bug
      +git commit -m "Katastrophe"
      +git push origin master
      +# Get your commit hash
      +git log --format="%H" -n 1
      +# Create a new branch from your latest release, let's say v0.8.2-1 (the tag name)
      +git checkout -b katastrophe v0.8.2-1
      +# Backport the fix commit to your brand new branch
      +git cherry-pick <fix commit hash>
      +git push origin katastrophe
      +# Then you just have to make a new release from the `katastrophe` branch tagged `v0.8.3-1`
      + + diff --git a/doc/Versioning-and-Branches.md b/doc/Versioning-and-Branches.md new file mode 100644 index 0000000..bbc7719 --- /dev/null +++ b/doc/Versioning-and-Branches.md @@ -0,0 +1,76 @@ +#Versioning and Branches +[**WORK IN PROGRESS**][](.html) + +It's important to understand how Shaarli branches work, especially if you're maintaining a 3rd party tools for Shaarli (theme, plugin, etc.), to be sure stay compatible. + +## `master` branch + +The `master` branch is the development branch. Any new change MUST go through this branch using Pull Requests. + +Remarks: + + * This branch shouldn't be used for production as it isn't necessary stable. + * 3rd party aren't required to be compatible with the latest changes. + * Official plugins, themes and libraries (contained within Shaarli organization repos) must be compatible with the master branch. + * The version in this branch is always `dev`. + +## `v0.x` branch + +This `v0.x` branch, points to the latest `v0.x.y` release. + +Explanation: + +When a new version is released, it might contains a major bug which isn't detected right away. For example, a new PHP version is released, containing backward compatibility issue which doesn't work with Shaarli. + +In this case, the issue is fixed in the `master` branch, and the fix is backported the to the `v0.x` branch. Then a new release is made from the `v0.x` branch. + +This workflow allow us to fix any major bug detected, without having to release bleeding edge feature too soon. + +## `latest` branch + +This branch point the latest release. It recommended to use it to get the latest tested changes. + +## `stable` branch + +The `stable` branch doesn't contain any major bug, and is one major digit version behind the latest release. + +For example, the current latest release is `v0.8.3`, the stable branch is an alias to the latest `v0.7.x` release. When the `v0.9.0` version will be released, the stable will move to the latest `v0.8.x` release. + +Remarks: + + * Shaarli release pace isn't fast, and the stable branch might be a few months behind the latest release. + +## Releases + +Releases are always made from the latest `v0.x` branch. + +Note that for every release, we manually generate a tarball which contains all Shaarli dependencies, making Shaarli's installation only one step. + +## Advices on 3rd party git repos workflow + +### Versioning + +Any time a new Shaarli release is published, you should publish a new release of your repo if the changes affected you since the latest release (take a look at the [changelog](https://github.com/shaarli/Shaarli/releases) (*Draft* means not released yet) and the commit log (like [`tpl` folder](https://github.com/shaarli/Shaarli/commits/master/tpl/default) for themes)). You can either:[](.html) + + - use the Shaarli version number, with your repo version. For example, if Shaarli `v0.8.3` is released, publish a `v0.8.3-1` release, where `v0.8.3` states Shaarli compatibility and `-1` is your own version digit for the current Shaarli version. + - use your own versioning scheme, and state Shaarli compatibility in the release description. + +Using this, any user will be able to pick the release matching his own Shaarli version. + +### Major bugfix backport releases + +To be able to support backported fixes, it recommended to use our workflow: + +```bash +# In master, fix the major bug +git commit -m "Katastrophe" +git push origin master +# Get your commit hash +git log --format="%H" -n 1 +# Create a new branch from your latest release, let's say v0.8.2-1 (the tag name) +git checkout -b katastrophe v0.8.2-1 +# Backport the fix commit to your brand new branch +git cherry-pick +git push origin katastrophe +# Then you just have to make a new release from the `katastrophe` branch tagged `v0.8.3-1` +``` diff --git a/doc/_Footer.html b/doc/_Footer.html index e8a62d2..09473a3 100644 --- a/doc/_Footer.html +++ b/doc/_Footer.html @@ -32,6 +32,7 @@
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
  • How To
  • How To
      @@ -100,6 +103,7 @@
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • diff --git a/doc/_Sidebar.md b/doc/_Sidebar.md index 1778e3a..8df2e56 100644 --- a/doc/_Sidebar.md +++ b/doc/_Sidebar.md @@ -14,6 +14,7 @@ - [Browsing and Searching](Browsing-and-Searching.html) - [Firefox share](Firefox-share.html) - [RSS feeds](RSS-feeds.html) + - [REST API](REST-API.html) - How To - [Backup, restore, import and export](Backup,-restore,-import-and-export.html) - [Copy an existing installation over SSH and serve it locally](Copy-an-existing-installation-over-SSH-and-serve-it-locally.html) @@ -28,6 +29,7 @@ - [3rd party libraries](3rd-party-libraries.html) - [Plugin System](Plugin-System.html) - [Release Shaarli](Release-Shaarli.html) + - [Versioning and Branches](Versioning-and-Branches.html) - [Security](Security.html) - [Static analysis](Static-analysis.html) - [Theming](Theming.html) diff --git a/doc/sidebar.html b/doc/sidebar.html index 4dad016..478840d 100644 --- a/doc/sidebar.html +++ b/doc/sidebar.html @@ -18,6 +18,7 @@
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
      @@ -36,6 +37,7 @@
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • From 54c8e8d2998c5ab5ffd08ae8f1fa11276773c16c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 May 2017 18:48:39 +0200 Subject: [PATCH 554/658] Bump version to v0.9.0 Signed-off-by: ArthurHoaro --- shaarli_version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaarli_version.php b/shaarli_version.php index 9167b43..2b5d355 100644 --- a/shaarli_version.php +++ b/shaarli_version.php @@ -1 +1 @@ - + From bf67ac345f588130e98e784b4ee4740b0dad83fc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 May 2017 19:02:17 +0200 Subject: [PATCH 555/658] Update Github badges Signed-off-by: ArthurHoaro --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d57f520..7633b2c 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ _Do you want to share the links you discover?_ _Shaarli is a minimalist delicious clone that you can install on your own server._ _It is designed to be personal (single-user), fast and handy._ -[![](https://img.shields.io/badge/stable-v0.7.1-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.7.1) +[![](https://img.shields.io/badge/stable-v0.8.4-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.8.4) [![](https://img.shields.io/travis/shaarli/Shaarli/stable.svg?label=stable)](https://travis-ci.org/shaarli/Shaarli) • -[![](https://img.shields.io/badge/latest-v0.8.4-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.8.4) +[![](https://img.shields.io/badge/latest-v0.9.0-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.9.0) [![](https://img.shields.io/travis/shaarli/Shaarli/latest.svg?label=latest)](https://travis-ci.org/shaarli/Shaarli) • [![](https://img.shields.io/badge/master-v0.9.x-blue.svg)](https://github.com/shaarli/Shaarli) From 29a837f347f53f751b723d466a2cd05fd92fd34e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 12 Mar 2017 19:03:50 +0100 Subject: [PATCH 556/658] Bulk deletion * Add a checkboxes in linklist which display a sub-header containing action buttons * Strongly rely on JS * Requires a modern browser (ES6 syntax support) * Checkboxes are hidden if the browser is old or JS disabled --- index.php | 19 ++++++---- tpl/default/css/shaarli.css | 13 +++++++ tpl/default/js/shaarli.js | 73 +++++++++++++++++++++++++++++++++++- tpl/default/linklist.html | 5 ++- tpl/default/page.header.html | 7 ++++ 5 files changed, 106 insertions(+), 11 deletions(-) diff --git a/index.php b/index.php index ab1e30d..5e61cbb 100644 --- a/index.php +++ b/index.php @@ -1329,18 +1329,21 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) // -------- User clicked the "Delete" button when editing a link: Delete link from database. if ($targetPage == Router::$PAGE_DELETELINK) { - // We do not need to ask for confirmation: - // - confirmation is handled by JavaScript - // - we are protected from XSRF by the token. - if (! tokenOk($_GET['token'])) { die('Wrong token.'); } - $id = intval(escape($_GET['lf_linkdate'])); - $link = $LINKSDB[$id]; - $pluginManager->executeHooks('delete_link', $link); - unset($LINKSDB[$id]); + if (strpos($_GET['lf_linkdate'], ' ') !== false) { + $ids = array_values(array_filter(preg_split('/\s+/', escape($_GET['lf_linkdate'])))); + } else { + $ids = [$_GET['lf_linkdate']]; + } + foreach ($ids as $id) { + $id = (int) escape($id); + $link = $LINKSDB[$id]; + $pluginManager->executeHooks('delete_link', $link); + unset($LINKSDB[$id]); + } $LINKSDB->save($conf->get('resource.page_cache')); // save to disk $history->deleteLink($link); diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 73fade5..efdf06d 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -275,6 +275,19 @@ body, .pure-g [class*="pure-u"] { } } +.subheader-form a.button { + color: #f5f5f5; + font-weight: bold; + text-decoration: none; + border: 2px solid #f5f5f5; + border-radius: 5px; + padding: 3px 10px; +} + +.linklist-item-editbuttons .delete-checkbox { + display: none; +} + #header-login-form input[type="text"], #header-login-form input[type="password"] { width: 200px; } diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 4d47fcd..7abd20b 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -357,11 +357,64 @@ window.onload = function () { var continent = document.getElementById('continent'); var city = document.getElementById('city'); if (continent != null && city != null) { - continent.addEventListener('change', function(event) { + continent.addEventListener('change', function (event) { hideTimezoneCities(city, continent.options[continent.selectedIndex].value, true); }); hideTimezoneCities(city, continent.options[continent.selectedIndex].value, false); } + + /** + * Bulk actions + * + * Note: Requires a modern browser. + */ + if (testEs6Compatibility()) { + let linkCheckboxes = document.querySelectorAll('.delete-checkbox'); + for(let checkbox of linkCheckboxes) { + checkbox.style.display = 'block'; + checkbox.addEventListener('click', function(event) { + let count = 0; + for(let checkbox of linkCheckboxes) { + count = checkbox.checked ? count + 1 : count; + } + let bar = document.getElementById('actions'); + if (count == 0 && bar.classList.contains('open')) { + bar.classList.toggle('open'); + } else if (count > 0 && ! bar.classList.contains('open')) { + bar.classList.toggle('open'); + } + }); + } + + let deleteButton = document.getElementById('actions-delete'); + let token = document.querySelector('input[type="hidden"][name="token"]'); + if (deleteButton != null && token != null) { + deleteButton.addEventListener('click', function(event) { + event.preventDefault(); + + let links = []; + for(let checkbox of linkCheckboxes) { + if (checkbox.checked) { + links.push({ + 'id': checkbox.value, + 'title': document.querySelector('.linklist-item[data-id="'+ checkbox.value +'"] .linklist-link').innerHTML + }); + } + } + + let message = 'Are you sure you want to delete '+ links.length +' links?\n'; + message += 'This action is IRREVERSIBLE!\n\nTitles:\n'; + let ids = ''; + for (let item of links) { + message += ' - '+ item['title'] +'\n'; + ids += item['id'] +'+'; + } + if (window.confirm(message)) { + window.location = '?delete_link&lf_linkdate='+ ids +'&token='+ token.value; + } + }); + } + } }; function activateFirefoxSocial(node) { @@ -397,7 +450,7 @@ function activateFirefoxSocial(node) { */ function hideTimezoneCities(cities, currentContinent, reset = false) { var first = true; - [].forEach.call(cities, function(option) { + [].forEach.call(cities, function (option) { if (option.getAttribute('data-continent') != currentContinent) { option.className = 'hidden'; } else { @@ -409,3 +462,19 @@ function hideTimezoneCities(cities, currentContinent, reset = false) { } }); } + +/** + * Check if the browser is compatible with ECMAScript 6 syntax + * + * Source: http://stackoverflow.com/a/29046739/1484919 + * + * @returns {boolean} + */ +function testEs6Compatibility() +{ + "use strict"; + + try { eval("var foo = (x)=>x+1"); } + catch (e) { return false; } + return true; +} diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 57ef456..6a4e14a 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -15,6 +15,8 @@ {/if}
  • + +

    Block:

    lorem ipsum #foobar http://link.tld
    -#foobar http://link.tld
    \ No newline at end of file +#foobar http://link.tld +

    link
    +link
    +link
    +link
    +link
    +link
    +link
    +link
    +link

    \ No newline at end of file diff --git a/tests/plugins/resources/markdown.md b/tests/plugins/resources/markdown.md index 0b8be7c..b8ebd93 100644 --- a/tests/plugins/resources/markdown.md +++ b/tests/plugins/resources/markdown.md @@ -21,4 +21,14 @@ Block: ``` lorem ipsum #foobar http://link.tld #foobar http://link.tld -``` \ No newline at end of file +``` + +[link](?123456) +![link](/img/train.png) +[link](test.tld/path/?query=value#hash) +[link](http://test.tld/path/?query=value#hash) +[link](https://test.tld/path/?query=value#hash) +[link](ftp://test.tld/path/?query=value#hash) +[link](magnet:test.tld/path/?query=value#hash) +[link](javascript:alert('xss')) +[link](other://test.tld/path/?query=value#hash) \ No newline at end of file From 986a52106766e7497322951c2bf3a3cbd0b42bf9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Mar 2017 15:54:18 +0100 Subject: [PATCH 565/658] Add an endpoint to refresh the token Useful for AJAX requests which burns the token --- application/Router.php | 6 ++++++ index.php | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/application/Router.php b/application/Router.php index c9a5191..f6896b1 100644 --- a/application/Router.php +++ b/application/Router.php @@ -45,6 +45,8 @@ class Router public static $PAGE_SAVE_PLUGINSADMIN = 'save_pluginadmin'; + public static $GET_TOKEN = 'token'; + /** * Reproducing renderPage() if hell, to avoid regression. * @@ -142,6 +144,10 @@ class Router return self::$PAGE_SAVE_PLUGINSADMIN; } + if (startsWith($query, 'do='. self::$GET_TOKEN)) { + return self::$GET_TOKEN; + } + return self::$PAGE_LINKLIST; } } diff --git a/index.php b/index.php index 40539a0..9566fb0 100644 --- a/index.php +++ b/index.php @@ -1582,6 +1582,13 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) exit; } + // Get a fresh token + if ($targetPage == Router::$GET_TOKEN) { + header('Content-Type:text/plain'); + echo getToken($conf); + exit; + } + // -------- Otherwise, simply display search form and links: showLinkList($PAGE, $LINKSDB, $conf, $pluginManager); exit; From 5893529cf429f859485bccc88eff47f77fdd770a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Mar 2017 15:57:30 +0100 Subject: [PATCH 566/658] Move tagcloud template file to tag.cloud --- index.php | 2 +- tpl/default/{tagcloud.html => tag.cloud.html} | 4 ++++ tpl/vintage/{tagcloud.html => tag.cloud.html} | 0 3 files changed, 5 insertions(+), 1 deletion(-) rename tpl/default/{tagcloud.html => tag.cloud.html} (97%) rename tpl/vintage/{tagcloud.html => tag.cloud.html} (100%) diff --git a/index.php b/index.php index 9566fb0..de098ab 100644 --- a/index.php +++ b/index.php @@ -835,7 +835,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) $PAGE->assign($key, $value); } - $PAGE->renderPage('tagcloud'); + $PAGE->renderPage('tag.cloud'); exit; } diff --git a/tpl/default/tagcloud.html b/tpl/default/tag.cloud.html similarity index 97% rename from tpl/default/tagcloud.html rename to tpl/default/tag.cloud.html index efe6e93..59aa2ee 100644 --- a/tpl/default/tagcloud.html +++ b/tpl/default/tag.cloud.html @@ -6,6 +6,8 @@ {include="page.header"} +{include="tag.sort"} +
    @@ -54,6 +56,8 @@
    +{include="tag.sort"} + {include="page.footer"} diff --git a/tpl/vintage/tagcloud.html b/tpl/vintage/tag.cloud.html similarity index 100% rename from tpl/vintage/tagcloud.html rename to tpl/vintage/tag.cloud.html From bc988eb0420156219fdeb7af684fff37c8b33f4b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Mar 2017 15:58:30 +0100 Subject: [PATCH 567/658] Add a token available everywhere --- tpl/default/page.footer.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tpl/default/page.footer.html b/tpl/default/page.footer.html index 77fc65d..02fc764 100644 --- a/tpl/default/page.footer.html +++ b/tpl/default/page.footer.html @@ -16,6 +16,9 @@
    + + + {loop="$plugins_footer.endofpage"} {$value} {/loop} From aa4797ba3679b847adc895e2f817ac058779a171 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 Mar 2017 15:59:01 +0100 Subject: [PATCH 568/658] Adds a taglist view with edit/delete buttons * The tag list can be sort alphabetically or by most used tag * Edit/Delete are perform using AJAX, or fallback to 'do=changetag' page * New features aren't backported to vintage theme --- application/Router.php | 6 ++ application/Utils.php | 31 ++++++++ index.php | 40 +++++++---- tests/UtilsTest.php | 112 +++++++++++++++++++++++++++++ tpl/default/changetag.html | 4 +- tpl/default/css/shaarli.css | 50 ++++++++++++- tpl/default/js/shaarli.js | 136 +++++++++++++++++++++++++++++++++++- tpl/default/tag.list.html | 82 ++++++++++++++++++++++ tpl/default/tag.sort.html | 8 +++ 9 files changed, 453 insertions(+), 16 deletions(-) create mode 100644 tpl/default/tag.list.html create mode 100644 tpl/default/tag.sort.html diff --git a/application/Router.php b/application/Router.php index f6896b1..4df0387 100644 --- a/application/Router.php +++ b/application/Router.php @@ -13,6 +13,8 @@ class Router public static $PAGE_TAGCLOUD = 'tagcloud'; + public static $PAGE_TAGLIST = 'taglist'; + public static $PAGE_DAILY = 'daily'; public static $PAGE_FEED_ATOM = 'atom'; @@ -79,6 +81,10 @@ class Router return self::$PAGE_TAGCLOUD; } + if (startsWith($query, 'do='. self::$PAGE_TAGLIST)) { + return self::$PAGE_TAGLIST; + } + if (startsWith($query, 'do='. self::$PAGE_OPENSEARCH)) { return self::$PAGE_OPENSEARCH; } diff --git a/application/Utils.php b/application/Utils.php index ab463af..9d0ebc5 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -435,3 +435,34 @@ function get_max_upload_size($limitPost, $limitUpload, $format = true) $maxsize = min($size1, $size2); return $format ? human_bytes($maxsize) : $maxsize; } + +/** + * Sort the given array alphabetically using php-intl if available. + * Case sensitive. + * + * Note: doesn't support multidimensional arrays + * + * @param array $data Input array, passed by reference + * @param bool $reverse Reverse sort if set to true + * @param bool $byKeys Sort the array by keys if set to true, by value otherwise. + */ +function alphabetical_sort(&$data, $reverse = false, $byKeys = false) +{ + $callback = function($a, $b) use ($reverse) { + // Collator is part of PHP intl. + if (class_exists('Collator')) { + $collator = new Collator(setlocale(LC_COLLATE, 0)); + if (!intl_is_failure(intl_get_error_code())) { + return $collator->compare($a, $b) * ($reverse ? -1 : 1); + } + } + + return strcasecmp($a, $b) * ($reverse ? -1 : 1); + }; + + if ($byKeys) { + uksort($data, $callback); + } else { + usort($data, $callback); + } +} diff --git a/index.php b/index.php index de098ab..61b7112 100644 --- a/index.php +++ b/index.php @@ -791,7 +791,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) if ($targetPage == Router::$PAGE_TAGCLOUD) { $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all'; - $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : array(); + $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : []; $tags = $LINKSDB->linksCountPerTag($filteringTags, $visibility); // We sort tags alphabetically, then choose a font size according to count. @@ -801,17 +801,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) $maxcount = max($maxcount, $value); } - // Sort tags alphabetically: case insensitive, support locale if available. - uksort($tags, function($a, $b) { - // Collator is part of PHP intl. - if (class_exists('Collator')) { - $c = new Collator(setlocale(LC_COLLATE, 0)); - if (!intl_is_failure(intl_get_error_code())) { - return $c->compare($a, $b); - } - } - return strcasecmp($a, $b); - }); + alphabetical_sort($tags, true, true); $tagList = array(); foreach($tags as $key => $value) { @@ -839,6 +829,31 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) exit; } + // -------- Tag cloud + if ($targetPage == Router::$PAGE_TAGLIST) + { + $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all'; + $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : []; + $tags = $LINKSDB->linksCountPerTag($filteringTags, $visibility); + + if (! empty($_GET['sort']) && $_GET['sort'] === 'alpha') { + alphabetical_sort($tags, false, true); + } + + $data = [ + 'search_tags' => implode(' ', $filteringTags), + 'tags' => $tags, + ]; + $pluginManager->executeHooks('render_taglist', $data, ['loggedin' => isLoggedIn()]); + + foreach ($data as $key => $value) { + $PAGE->assign($key, $value); + } + + $PAGE->renderPage('tag.list'); + exit; + } + // Daily page. if ($targetPage == Router::$PAGE_DAILY) { showDaily($PAGE, $LINKSDB, $conf, $pluginManager); @@ -1152,6 +1167,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) if ($targetPage == Router::$PAGE_CHANGETAG) { if (empty($_POST['fromtag']) || (empty($_POST['totag']) && isset($_POST['renametag']))) { + $PAGE->assign('fromtag', ! empty($_GET['fromtag']) ? escape($_GET['fromtag']) : ''); $PAGE->renderPage('changetag'); exit; } diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index d6a0aad..3d1aa65 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -417,4 +417,116 @@ class UtilsTest extends PHPUnit_Framework_TestCase $this->assertEquals('1048576', get_max_upload_size('1m', '2m', false)); $this->assertEquals('100', get_max_upload_size(100, 100, false)); } + + /** + * Test alphabetical_sort by value, not reversed, with php-intl. + */ + public function testAlphabeticalSortByValue() + { + $arr = [ + 'zZz', + 'éee', + 'éae', + 'eee', + 'A', + 'a', + 'zzz', + ]; + $expected = [ + 'a', + 'A', + 'éae', + 'eee', + 'éee', + 'zzz', + 'zZz', + ]; + + alphabetical_sort($arr); + $this->assertEquals($expected, $arr); + } + + /** + * Test alphabetical_sort by value, reversed, with php-intl. + */ + public function testAlphabeticalSortByValueReversed() + { + $arr = [ + 'zZz', + 'éee', + 'éae', + 'eee', + 'A', + 'a', + 'zzz', + ]; + $expected = [ + 'zZz', + 'zzz', + 'éee', + 'eee', + 'éae', + 'A', + 'a', + ]; + + alphabetical_sort($arr, true); + $this->assertEquals($expected, $arr); + } + + /** + * Test alphabetical_sort by keys, not reversed, with php-intl. + */ + public function testAlphabeticalSortByKeys() + { + $arr = [ + 'zZz' => true, + 'éee' => true, + 'éae' => true, + 'eee' => true, + 'A' => true, + 'a' => true, + 'zzz' => true, + ]; + $expected = [ + 'a' => true, + 'A' => true, + 'éae' => true, + 'eee' => true, + 'éee' => true, + 'zzz' => true, + 'zZz' => true, + ]; + + alphabetical_sort($arr, true, true); + $this->assertEquals($expected, $arr); + } + + /** + * Test alphabetical_sort by keys, reversed, with php-intl. + */ + public function testAlphabeticalSortByKeysReversed() + { + $arr = [ + 'zZz' => true, + 'éee' => true, + 'éae' => true, + 'eee' => true, + 'A' => true, + 'a' => true, + 'zzz' => true, + ]; + $expected = [ + 'zZz' => true, + 'zzz' => true, + 'éee' => true, + 'eee' => true, + 'éae' => true, + 'A' => true, + 'a' => true, + ]; + + alphabetical_sort($arr, true, true); + $this->assertEquals($expected, $arr); + } } diff --git a/tpl/default/changetag.html b/tpl/default/changetag.html index 8d263a1..49dd20d 100644 --- a/tpl/default/changetag.html +++ b/tpl/default/changetag.html @@ -11,7 +11,7 @@

    {"Manage tags"|t}

    - {loop="$tags"}{/loop} @@ -31,6 +31,8 @@
    + +

    You can also edit tags in the tag list.

    {include="page.footer"} diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 4415a1b..2eda5df 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -751,10 +751,11 @@ body, .pure-g [class*="pure-u"] { .page-form a { color: #1b926c; font-weight: bold; + text-decoration: none; } .page-form p { - padding: 0 10px; + padding: 5px 10px; margin: 0; } @@ -1070,7 +1071,7 @@ form[name="linkform"].page-form { } #cloudtag, #cloudtag a { - color: #000; + color: #252525; text-decoration: none; } @@ -1078,6 +1079,38 @@ form[name="linkform"].page-form { color: #7f7f7f; } +/** + * TAG LIST + */ +#taglist { + padding: 0 10px; +} + +#taglist a { + color: #252525; + text-decoration: none; +} + +#taglist .count { + display: inline-block; + width: 35px; + text-align: right; + color: #7f7f7f; +} + +#taglist .delete-tag { + color: #ac2925; + display: none; +} + +#taglist .rename-tag { + color: #0b5ea6; +} + +#taglist .validate-rename-tag { + color: #1b926c; +} + /** * Picture wall CSS */ @@ -1227,3 +1260,16 @@ form[name="linkform"].page-form { .pure-button { -moz-user-select: auto; } + +.tag-sort { + margin-top: 30px; + text-align: center; +} + +.tag-sort a { + display: inline-block; + margin: 0 15px; + color: white; + text-decoration: none; + font-weight: bold; +} diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index ceb1d1b..e19e900 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -412,8 +412,139 @@ window.onload = function () { } }); } + + /** + * Tag list operations + * + * TODO: support error code in the backend for AJAX requests + */ + // Display/Hide rename form + var renameTagButtons = document.querySelectorAll('.rename-tag'); + [].forEach.call(renameTagButtons, function(rename) { + rename.addEventListener('click', function(event) { + event.preventDefault(); + var block = findParent(event.target, 'div', {'class': 'tag-list-item'}); + var form = block.querySelector('.rename-tag-form'); + form.style.display = form.style.display == 'none' ? 'block' : 'none'; + }); + }); + + // Rename a tag with an AJAX request + var renameTagSubmits = document.querySelectorAll('.validate-rename-tag'); + [].forEach.call(renameTagSubmits, function(rename) { + rename.addEventListener('click', function(event) { + event.preventDefault(); + var block = findParent(event.target, 'div', {'class': 'tag-list-item'}); + var input = block.querySelector('.rename-tag-input'); + var totag = input.value.replace('/"/g', '\\"'); + if (totag.trim() == '') { + return; + } + var fromtag = block.getAttribute('data-tag'); + var token = document.getElementById('token').value; + + xhr = new XMLHttpRequest(); + xhr.open('POST', '?do=changetag'); + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xhr.onload = function() { + if (xhr.status !== 200) { + alert('An error occurred. Return code: '+ xhr.status); + location.reload(); + } else { + block.setAttribute('data-tag', totag); + input.setAttribute('name', totag); + input.setAttribute('value', totag); + input.parentNode.style.display = 'none'; + block.querySelector('a.tag-link').innerHTML = htmlEntities(totag); + block.querySelector('a.tag-link').setAttribute('href', '?searchtags='+ encodeURIComponent(totag)); + block.querySelector('a.rename-tag').setAttribute('href', '?do=changetag&fromtag='+ encodeURIComponent(totag)); + } + }; + xhr.send('renametag=1&fromtag='+ encodeURIComponent(fromtag) +'&totag='+ encodeURIComponent(totag) +'&token='+ token); + refreshToken(); + }); + }); + + // Validate input with enter key + var renameTagInputs = document.querySelectorAll('.rename-tag-input'); + [].forEach.call(renameTagInputs, function(rename) { + rename.addEventListener('keypress', function(event) { + if (event.keyCode === 13) { // enter + findParent(event.target, 'div', {'class': 'tag-list-item'}).querySelector('.validate-rename-tag').click(); + } + }); + }); + + // Delete a tag with an AJAX query (alert popup confirmation) + var deleteTagButtons = document.querySelectorAll('.delete-tag'); + [].forEach.call(deleteTagButtons, function(rename) { + rename.style.display = 'inline'; + rename.addEventListener('click', function(event) { + event.preventDefault(); + var block = findParent(event.target, 'div', {'class': 'tag-list-item'}); + var tag = block.getAttribute('data-tag'); + var token = document.getElementById('token').value; + + if (confirm('Are you sure you want to delete the tag "'+ tag +'"?')) { + xhr = new XMLHttpRequest(); + xhr.open('POST', '?do=changetag'); + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xhr.onload = function() { + block.remove(); + }; + xhr.send(encodeURI('deletetag=1&fromtag='+ tag +'&token='+ token)); + refreshToken(); + } + }); + }); }; +function findParent(element, tagName, attributes) +{ + while (element) { + if (element.tagName.toLowerCase() == tagName) { + var match = true; + for (var key in attributes) { + if (! element.hasAttribute(key) + || (attributes[key] != '' && element.getAttribute(key).indexOf(attributes[key]) == -1) + ) { + match = false; + break; + } + } + + if (match) { + return element; + } + } + element = element.parentElement; + } + return null; +} + +function refreshToken() +{ + var xhr = new XMLHttpRequest(); + xhr.open('GET', '?do=token'); + xhr.onload = function() { + var token = document.getElementById('token'); + token.setAttribute('value', xhr.responseText); + }; + xhr.send(); +} + +/** + * html_entities in JS + * + * @see http://stackoverflow.com/questions/18749591/encode-html-entities-in-javascript + */ +function htmlEntities(str) +{ + return str.replace(/[\u00A0-\u9999<>\&]/gim, function(i) { + return '&#'+i.charCodeAt(0)+';'; + }); +} + function activateFirefoxSocial(node) { var loc = location.href; var baseURL = loc.substring(0, loc.lastIndexOf("/")); @@ -445,8 +576,11 @@ function activateFirefoxSocial(node) { * @param currentContinent Current selected continent * @param reset Set to true to reset the selected value */ -function hideTimezoneCities(cities, currentContinent, reset = false) { +function hideTimezoneCities(cities, currentContinent) { var first = true; + if (reset == null) { + reset = false; + } [].forEach.call(cities, function (option) { if (option.getAttribute('data-continent') != currentContinent) { option.className = 'hidden'; diff --git a/tpl/default/tag.list.html b/tpl/default/tag.list.html new file mode 100644 index 0000000..9897105 --- /dev/null +++ b/tpl/default/tag.list.html @@ -0,0 +1,82 @@ + + + + {include="includes"} + + +{include="page.header"} + +{include="tag.sort"} + +
    +
    +
    + {$countTags=count($tags)} +

    {'Tag list'|t} - {$countTags} {'tags'|t}

    + +
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    + {loop="$plugin_start_zone"} + {$value} + {/loop} +
    + +
    + {loop="tags"} +
    +
    + {if="isLoggedIn()===true"} +    + + + + {/if} + + {$value} + {$key} + + {loop="$value.tag_plugin"} + {$value} + {/loop} +
    + {if="isLoggedIn()===true"} + + {/if} +
    + {/loop} +
    + +
    + {loop="$plugin_end_zone"} + {$value} + {/loop} +
    +
    +
    + +{include="tag.sort"} + +{include="page.footer"} + + + diff --git a/tpl/default/tag.sort.html b/tpl/default/tag.sort.html new file mode 100644 index 0000000..89acda0 --- /dev/null +++ b/tpl/default/tag.sort.html @@ -0,0 +1,8 @@ +
    +
    + {'Sort by:'|t} + {'Cloud'|t} · + {'Most used'|t} · + {'Alphabetical'|t} +
    +
    \ No newline at end of file From 82e3bb5f06dc531ee1080a0313833791a1c1f3c7 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 28 Mar 2017 20:11:07 +0200 Subject: [PATCH 569/658] Tag list: use awesomplete for tag auto completion --- tpl/default/css/shaarli.css | 4 +++ tpl/default/js/shaarli.js | 62 +++++++++++++++++++++++++++++++++++-- tpl/default/tag.list.html | 6 +++- 3 files changed, 69 insertions(+), 3 deletions(-) diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 2eda5df..2892064 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -1098,6 +1098,10 @@ form[name="linkform"].page-form { color: #7f7f7f; } +#taglist .rename-tag-form { + display: none; +} + #taglist .delete-tag { color: #ac2925; display: none; diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index e19e900..4ebb781 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -418,6 +418,9 @@ window.onload = function () { * * TODO: support error code in the backend for AJAX requests */ + var existingTags = document.querySelector('input[name="taglist"]').value.split(' '); + var awesomepletes = []; + // Display/Hide rename form var renameTagButtons = document.querySelectorAll('.rename-tag'); [].forEach.call(renameTagButtons, function(rename) { @@ -425,7 +428,12 @@ window.onload = function () { event.preventDefault(); var block = findParent(event.target, 'div', {'class': 'tag-list-item'}); var form = block.querySelector('.rename-tag-form'); - form.style.display = form.style.display == 'none' ? 'block' : 'none'; + if (form.style.display == 'none' || form.style.display == '') { + form.style.display = 'block'; + } else { + form.style.display = 'none'; + } + block.querySelector('input').focus(); }); }); @@ -454,10 +462,18 @@ window.onload = function () { block.setAttribute('data-tag', totag); input.setAttribute('name', totag); input.setAttribute('value', totag); - input.parentNode.style.display = 'none'; + findParent(input, 'div', {'class': 'rename-tag-form'}).style.display = 'none'; block.querySelector('a.tag-link').innerHTML = htmlEntities(totag); block.querySelector('a.tag-link').setAttribute('href', '?searchtags='+ encodeURIComponent(totag)); block.querySelector('a.rename-tag').setAttribute('href', '?do=changetag&fromtag='+ encodeURIComponent(totag)); + + // Refresh awesomplete values + for (var key in existingTags) { + if (existingTags[key] == fromtag) { + existingTags[key] = totag; + } + } + awesomepletes = updateAwesompleteList('.rename-tag-input', existingTags, awesomepletes); } }; xhr.send('renametag=1&fromtag='+ encodeURIComponent(fromtag) +'&totag='+ encodeURIComponent(totag) +'&token='+ token); @@ -468,6 +484,7 @@ window.onload = function () { // Validate input with enter key var renameTagInputs = document.querySelectorAll('.rename-tag-input'); [].forEach.call(renameTagInputs, function(rename) { + rename.addEventListener('keypress', function(event) { if (event.keyCode === 13) { // enter findParent(event.target, 'div', {'class': 'tag-list-item'}).querySelector('.validate-rename-tag').click(); @@ -497,8 +514,19 @@ window.onload = function () { } }); }); + + updateAwesompleteList('.rename-tag-input', document.querySelector('input[name="taglist"]').value.split(' '), awesomepletes); }; +/** + * Find a parent element according to its tag and its attributes + * + * @param element Element where to start the search + * @param tagName Expected parent tag name + * @param attributes Associative array of expected attributes (name=>value). + * + * @returns Found element or null. + */ function findParent(element, tagName, attributes) { while (element) { @@ -522,6 +550,9 @@ function findParent(element, tagName, attributes) return null; } +/** + * Ajax request to refresh the CSRF token. + */ function refreshToken() { var xhr = new XMLHttpRequest(); @@ -533,6 +564,33 @@ function refreshToken() xhr.send(); } +/** + * Update awesomplete list of tag for all elements matching the given selector + * + * @param selector CSS selector + * @param tags Array of tags + * @param instances List of existing awesomplete instances + */ +function updateAwesompleteList(selector, tags, instances) +{ + // First load: create Awesomplete instances + if (instances.length == 0) { + var elements = document.querySelectorAll(selector); + [].forEach.call(elements, function (element) { + instances.push(new Awesomplete( + element, + {'list': tags} + )); + }); + } else { + // Update awesomplete tag list + for (var key in instances) { + instances[key].list = tags; + } + } + return instances; +} + /** * html_entities in JS * diff --git a/tpl/default/tag.list.html b/tpl/default/tag.list.html index 9897105..62e2e7c 100644 --- a/tpl/default/tag.list.html +++ b/tpl/default/tag.list.html @@ -57,7 +57,7 @@ {/loop} {if="isLoggedIn()===true"} - +{if="isLoggedIn()===true"} + Date: Mon, 27 Mar 2017 14:01:06 +0200 Subject: [PATCH 570/658] Add Note bookmarklet #580 --- tpl/default/tools.html | 13 ++++++++++--- tpl/vintage/tools.html | 10 +++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/tpl/default/tools.html b/tpl/default/tools.html index baa033a..6951ad2 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -86,8 +86,16 @@ @@ -146,4 +154,3 @@ value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> - diff --git a/tpl/vintage/tools.html b/tpl/vintage/tools.html index c36aa5b..6968980 100644 --- a/tpl/vintage/tools.html +++ b/tpl/vintage/tools.html @@ -39,7 +39,15 @@

    ✚Add Note + href="javascript:( + function(){ + window.open( + '{$pageabsaddr}?private=1&post='+ + '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' + ); + } + )();">✚Add Note ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).
    From 7d86f40bdb2135655b5b4fe8cbcc1ac102114f86 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 1 Apr 2017 12:17:37 +0200 Subject: [PATCH 571/658] Empty tag search will look for not tagged links Fixes #784 From now, searching for tags with an empty value will return only not tagged links, with the search bar showing `x results [not tagged]`. Note that using the api, the searchtags request parameter must be set to `false` to get the same result. - [ ] Update API doc --- application/FeedBuilder.php | 5 +++++ application/LinkDB.php | 27 +++++------------------ application/LinkFilter.php | 30 ++++++++++++++++++++++++++ application/Utils.php | 4 ++++ index.php | 18 +++++++++++++--- tests/LinkDBTest.php | 2 +- tests/LinkFilterTest.php | 19 +++++++++++++--- tests/api/controllers/GetLinksTest.php | 4 ++-- tests/api/controllers/InfoTest.php | 4 ++-- tests/utils/ReferenceLinkDB.php | 26 +++++++++++++++++++++- tpl/default/linklist.html | 6 +++++- tpl/vintage/linklist.html | 6 +++++- 12 files changed, 115 insertions(+), 36 deletions(-) diff --git a/application/FeedBuilder.php b/application/FeedBuilder.php index a1f4da4..7377bce 100644 --- a/application/FeedBuilder.php +++ b/application/FeedBuilder.php @@ -97,6 +97,11 @@ class FeedBuilder */ public function buildData() { + // Search for untagged links + if (isset($this->userInput['searchtags']) && empty($this->userInput['searchtags'])) { + $this->userInput['searchtags'] = false; + } + // Optionally filter the results: $linksToDisplay = $this->linkDB->filterSearch($this->userInput); diff --git a/application/LinkDB.php b/application/LinkDB.php index 4cee2af..a03c2c0 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -450,29 +450,12 @@ You use the community supported version of the original Shaarli project, by Seba public function filterSearch($filterRequest = array(), $casesensitive = false, $visibility = 'all') { // Filter link database according to parameters. - $searchtags = !empty($filterRequest['searchtags']) ? escape($filterRequest['searchtags']) : ''; - $searchterm = !empty($filterRequest['searchterm']) ? escape($filterRequest['searchterm']) : ''; + $searchtags = isset($filterRequest['searchtags']) ? escape($filterRequest['searchtags']) : ''; + $searchterm = isset($filterRequest['searchterm']) ? escape($filterRequest['searchterm']) : ''; - // Search tags + fullsearch. - if (! empty($searchtags) && ! empty($searchterm)) { - $type = LinkFilter::$FILTER_TAG | LinkFilter::$FILTER_TEXT; - $request = array($searchtags, $searchterm); - } - // Search by tags. - elseif (! empty($searchtags)) { - $type = LinkFilter::$FILTER_TAG; - $request = $searchtags; - } - // Fulltext search. - elseif (! empty($searchterm)) { - $type = LinkFilter::$FILTER_TEXT; - $request = $searchterm; - } - // Otherwise, display without filtering. - else { - $type = ''; - $request = ''; - } + // Search tags + fullsearch - blank string parameter will return all links. + $type = LinkFilter::$FILTER_TAG | LinkFilter::$FILTER_TEXT; + $request = [$searchtags, $searchterm]; $linkFilter = new LinkFilter($this); return $linkFilter->filter($type, $request, $casesensitive, $visibility); diff --git a/application/LinkFilter.php b/application/LinkFilter.php index 81832a4..0e887d3 100644 --- a/application/LinkFilter.php +++ b/application/LinkFilter.php @@ -253,6 +253,9 @@ class LinkFilter { // Implode if array for clean up. $tags = is_array($tags) ? trim(implode(' ', $tags)) : $tags; + if ($tags === false) { + return $this->filterUntagged($visibility); + } if (empty($tags)) { return $this->noFilter($visibility); } @@ -295,6 +298,33 @@ class LinkFilter return $filtered; } + /** + * Return only links without any tag. + * + * @param string $visibility return only all/private/public links. + * + * @return array filtered links. + */ + public function filterUntagged($visibility) + { + $filtered = []; + foreach ($this->links as $key => $link) { + if ($visibility !== 'all') { + if (! $link['private'] && $visibility === 'private') { + continue; + } else if ($link['private'] && $visibility === 'public') { + continue; + } + } + + if (empty(trim($link['tags']))) { + $filtered[$key] = $link; + } + } + + return $filtered; + } + /** * Returns the list of articles for a given day, chronologically sorted * diff --git a/application/Utils.php b/application/Utils.php index 5c07745..87e5cc8 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -91,6 +91,10 @@ function endsWith($haystack, $needle, $case = true) */ function escape($input) { + if (is_bool($input)) { + return $input; + } + if (is_array($input)) { $out = array(); foreach($input as $key => $value) { diff --git a/index.php b/index.php index 5c21c2f..c96d013 100644 --- a/index.php +++ b/index.php @@ -1609,7 +1609,15 @@ function renderPage($conf, $pluginManager, $LINKSDB) function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager) { // Used in templates - $searchtags = !empty($_GET['searchtags']) ? escape(normalize_spaces($_GET['searchtags'])) : ''; + if (isset($_GET['searchtags'])) { + if (! empty($_GET['searchtags'])) { + $searchtags = escape(normalize_spaces($_GET['searchtags'])); + } else { + $searchtags = false; + } + } else { + $searchtags = ''; + } $searchterm = !empty($_GET['searchterm']) ? escape(normalize_spaces($_GET['searchterm'])) : ''; // Smallhash filter @@ -1624,7 +1632,11 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager) } else { // Filter links according search parameters. $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all'; - $linksToDisplay = $LINKSDB->filterSearch($_GET, false, $visibility); + $request = [ + 'searchtags' => $searchtags, + 'searchterm' => $searchterm, + ]; + $linksToDisplay = $LINKSDB->filterSearch($request, false, $visibility); } // ---- Handle paging. @@ -1671,7 +1683,7 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager) } // Compute paging navigation - $searchtagsUrl = empty($searchtags) ? '' : '&searchtags=' . urlencode($searchtags); + $searchtagsUrl = $searchtags === '' ? '' : '&searchtags=' . urlencode($searchtags); $searchtermUrl = empty($searchterm) ? '' : '&searchterm=' . urlencode($searchterm); $previous_page_url = ''; if ($i != count($keys)) { diff --git a/tests/LinkDBTest.php b/tests/LinkDBTest.php index 1f62a34..6fbf597 100644 --- a/tests/LinkDBTest.php +++ b/tests/LinkDBTest.php @@ -448,7 +448,7 @@ class LinkDBTest extends PHPUnit_Framework_TestCase public function testReorderLinksDesc() { self::$privateLinkDB->reorder('ASC'); - $linkIds = array(42, 4, 1, 0, 7, 6, 8, 41); + $linkIds = array(42, 4, 9, 1, 0, 7, 6, 8, 41); $cpt = 0; foreach (self::$privateLinkDB as $key => $value) { $this->assertEquals($linkIds[$cpt++], $key); diff --git a/tests/LinkFilterTest.php b/tests/LinkFilterTest.php index 37d5ca3..7416235 100644 --- a/tests/LinkFilterTest.php +++ b/tests/LinkFilterTest.php @@ -63,6 +63,12 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, '')) ); + // Untagged only + $this->assertEquals( + self::$refDB->countUntaggedLinks(), + count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, false)) + ); + $this->assertEquals( ReferenceLinkDB::$NB_LINKS_TOTAL, count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, '')) @@ -146,7 +152,7 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase public function testFilterDay() { $this->assertEquals( - 3, + 4, count(self::$linkFilter->filter(LinkFilter::$FILTER_DAY, '20121206')) ); } @@ -339,7 +345,7 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase ); $this->assertEquals( - 7, + ReferenceLinkDB::$NB_LINKS_TOTAL - 1, count(self::$linkFilter->filter(LinkFilter::$FILTER_TEXT, '-revolution')) ); } @@ -399,7 +405,7 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase ); $this->assertEquals( - 7, + ReferenceLinkDB::$NB_LINKS_TOTAL - 1, count(self::$linkFilter->filter(LinkFilter::$FILTER_TAG, '-free')) ); } @@ -425,6 +431,13 @@ class LinkFilterTest extends PHPUnit_Framework_TestCase array('', $terms) )) ); + $this->assertEquals( + 1, + count(self::$linkFilter->filter( + LinkFilter::$FILTER_TAG | LinkFilter::$FILTER_TEXT, + array(false, 'PSR-2') + )) + ); $this->assertEquals( 1, count(self::$linkFilter->filter( diff --git a/tests/api/controllers/GetLinksTest.php b/tests/api/controllers/GetLinksTest.php index 10330cd..f1b262b 100644 --- a/tests/api/controllers/GetLinksTest.php +++ b/tests/api/controllers/GetLinksTest.php @@ -94,7 +94,7 @@ class GetLinksTest extends \PHPUnit_Framework_TestCase $this->assertEquals($this->refDB->countLinks(), count($data)); // Check order - $order = [41, 8, 6, 7, 0, 1, 4, 42]; + $order = [41, 8, 6, 7, 0, 1, 9, 4, 42]; $cpt = 0; foreach ($data as $link) { $this->assertEquals(self::NB_FIELDS_LINK, count($link)); @@ -163,7 +163,7 @@ class GetLinksTest extends \PHPUnit_Framework_TestCase $data = json_decode((string) $response->getBody(), true); $this->assertEquals($this->refDB->countLinks(), count($data)); // Check order - $order = [41, 8, 6, 7, 0, 1, 4, 42]; + $order = [41, 8, 6, 7, 0, 1, 9, 4, 42]; $cpt = 0; foreach ($data as $link) { $this->assertEquals(self::NB_FIELDS_LINK, count($link)); diff --git a/tests/api/controllers/InfoTest.php b/tests/api/controllers/InfoTest.php index 4beef3f..5d6a232 100644 --- a/tests/api/controllers/InfoTest.php +++ b/tests/api/controllers/InfoTest.php @@ -80,7 +80,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals(200, $response->getStatusCode()); $data = json_decode((string) $response->getBody(), true); - $this->assertEquals(8, $data['global_counter']); + $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); $this->assertEquals(2, $data['private_counter']); $this->assertEquals('Shaarli', $data['settings']['title']); $this->assertEquals('?', $data['settings']['header_link']); @@ -103,7 +103,7 @@ class InfoTest extends \PHPUnit_Framework_TestCase $this->assertEquals(200, $response->getStatusCode()); $data = json_decode((string) $response->getBody(), true); - $this->assertEquals(8, $data['global_counter']); + $this->assertEquals(\ReferenceLinkDB::$NB_LINKS_TOTAL, $data['global_counter']); $this->assertEquals(2, $data['private_counter']); $this->assertEquals($title, $data['settings']['title']); $this->assertEquals($headerLink, $data['settings']['header_link']); diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index 36d58c6..29d63fa 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -4,7 +4,7 @@ */ class ReferenceLinkDB { - public static $NB_LINKS_TOTAL = 8; + public static $NB_LINKS_TOTAL = 9; private $_links = array(); private $_publicCount = 0; @@ -37,6 +37,16 @@ class ReferenceLinkDB 'ut' ); + $this->addLink( + 9, + 'PSR-2: Coding Style Guide', + 'http://www.php-fig.org/psr/psr-2/', + 'This guide extends and expands on PSR-1, the basic coding standard.', + 0, + DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, '20121206_152312'), + '' + ); + $this->addLink( 8, 'Free as in Freedom 2.0 @website', @@ -161,6 +171,20 @@ class ReferenceLinkDB return $this->_privateCount; } + /** + * Returns the number of links without tag + */ + public function countUntaggedLinks() + { + $cpt = 0; + foreach ($this->_links as $link) { + if (empty($link['tags'])) { + ++$cpt; + } + } + return $cpt; + } + public function getLinks() { return $this->_links; diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 57ef456..3d6be52 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -89,7 +89,7 @@
    {'Nothing found.'|t}
    - {elseif="!empty($search_term) or !empty($search_tags) or !empty($visibility)"} + {elseif="!empty($search_term) or $search_tags !== '' or !empty($visibility)"}
    @@ -105,6 +105,10 @@ {$value} {/loop} + {elseif="$search_tags === false"} + + {'untagged'|t} + {/if} {if="!empty($visibility)"} {'with status'|t} diff --git a/tpl/vintage/linklist.html b/tpl/vintage/linklist.html index fc11666..8458caa 100644 --- a/tpl/vintage/linklist.html +++ b/tpl/vintage/linklist.html @@ -55,7 +55,7 @@ {if="count($links)==0"}
    Nothing found.
    - {elseif="!empty($search_term) or !empty($search_tags)"} + {elseif="!empty($search_term) or $search_tags !== ''"}
    {$result_count} results {if="!empty($search_term)"} @@ -69,6 +69,10 @@ {$value} x {/loop} + {elseif="$search_tags === false"} + + untagged x + {/if}
    {/if} From acadb0801fea760c63dffba069be9241bd8e7a6e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 25 May 2017 16:30:37 +0200 Subject: [PATCH 572/658] Display visited links in grey Fixes #244 --- tpl/default/css/shaarli.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 2892064..3391fa0 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -539,8 +539,8 @@ body, .pure-g [class*="pure-u"] { color: #1b926c; } -.linklist-item-title .linklist-link:visited { - color: #1b926c; +.linklist-item-title a:visited .linklist-link { + color: #555555; } .linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ From d6aec9e60b5dad7b6e64b62dc4aa8a9f403634dc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 25 May 2017 16:45:08 +0200 Subject: [PATCH 573/658] Selection is now limited to 2k characters using bookmarklets to avoid having too large URL Fixes #528 --- tpl/default/tools.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/default/tools.html b/tpl/default/tools.html index 6951ad2..bf6b6ca 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -75,7 +75,7 @@ window.open( '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ '&title='%20+%20encodeURIComponent(title)+ - '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } @@ -91,7 +91,7 @@ function(){ window.open( '{$pageabsaddr}?private=1&post='+ - '&description='%20+%20encodeURIComponent(document.getSelection())+ + '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } From e2bcb9d915fdda15253dd730a6d172323a8e8564 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 28 May 2017 13:04:31 +0200 Subject: [PATCH 574/658] Bookmarklet size limit: increase to 4500 chars and add an alert warning --- tpl/default/tools.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tpl/default/tools.html b/tpl/default/tools.html index bf6b6ca..35173d1 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -72,10 +72,15 @@ function(){ var%20url%20=%20location.href; var%20title%20=%20document.title%20||%20url; + var%20desc=document.getSelection().toString(); + if(desc.length>4000){ + desc=desc.substr(0,4000)+'...'; + alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); + } window.open( '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ '&title='%20+%20encodeURIComponent(title)+ - '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ + '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } @@ -89,9 +94,14 @@ class="bookmarklet-link" href="javascript:( function(){ + var%20desc=document.getSelection().toString(); + if(desc.length>4000){ + desc=desc.substr(0,4000)+'...'; + alert("{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}"); + } window.open( '{$pageabsaddr}?private=1&post='+ - '&description='%20+%20encodeURIComponent(document.getSelection().toString().substr(0, 2000))+ + '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } From 807cade64c571929dc19afe3d44787c5abe84f57 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 31 May 2017 17:50:11 +0200 Subject: [PATCH 575/658] Add creation date when editing a link Also, alter the title on edition Fixes #431 --- index.php | 2 +- tpl/default/css/shaarli.css | 8 ++++++++ tpl/default/editlink.html | 9 +++++++-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 92eb443..cb0afbd 100644 --- a/index.php +++ b/index.php @@ -1431,7 +1431,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) 'url' => $url, 'description' => $description, 'tags' => $tags, - 'private' => $private + 'private' => $private, ); } else { $link['linkdate'] = $link['created']->format(LinkDB::LINK_DATE_FORMAT); diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 2892064..8b86bce 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -992,6 +992,14 @@ form[name="linkform"].page-form { color: #3f3f3f; } +/** + * EDIT LINK + */ +#editlinkform .created-date { + color: #767676; + margin-bottom: 10px; +} + /** * LOGIN */ diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 354499a..d03fd72 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -8,11 +8,15 @@
    -

    {'Shaare'|t}

    +

    + {if="!$link_is_new"}{'Edit'|t}{/if} + {'Shaare'|t} +

    {if="isset($link.id)"} {/if} + {if="!$link_is_new"}
    {'Created:'|t} {$link.created|format_date}
    {/if}
    @@ -55,7 +59,8 @@
    - + {if="!$link_is_new"} From 4c970f099f2210ac91cccdca1d0c3564a8f79c1a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 31 May 2017 18:24:21 +0200 Subject: [PATCH 576/658] Make sure that the tag exists before altering/removing it Fixes #886 --- index.php | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/index.php b/index.php index 2ff2505..39230c8 100644 --- a/index.php +++ b/index.php @@ -1176,6 +1176,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) die('Wrong token.'); } + $count = 0; // Delete a tag: if (isset($_POST['deletetag']) && !empty($_POST['fromtag'])) { $needle = trim($_POST['fromtag']); @@ -1184,13 +1185,16 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) foreach($linksToAlter as $key=>$value) { $tags = explode(' ',trim($value['tags'])); - unset($tags[array_search($needle,$tags)]); // Remove tag. - $value['tags']=trim(implode(' ',$tags)); - $LINKSDB[$key]=$value; - $history->updateLink($LINKSDB[$key]); + if (($pos = array_search($needle,$tags)) !== false) { + unset($tags[$pos]); // Remove tag. + $value['tags']=trim(implode(' ',$tags)); + $LINKSDB[$key]=$value; + $history->updateLink($LINKSDB[$key]); + ++$count; + } } $LINKSDB->save($conf->get('resource.page_cache')); - echo ''; + echo ''; exit; } @@ -1202,13 +1206,16 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) foreach($linksToAlter as $key=>$value) { $tags = preg_split('/\s+/', trim($value['tags'])); // Replace tags value. - $tags[array_search($needle, $tags)] = trim($_POST['totag']); - $value['tags'] = implode(' ', array_unique($tags)); - $LINKSDB[$key] = $value; - $history->updateLink($LINKSDB[$key]); + if (($pos = array_search($needle,$tags)) !== false) { + $tags[$pos] = trim($_POST['totag']); + $value['tags'] = implode(' ', array_unique($tags)); + $LINKSDB[$key] = $value; + $history->updateLink($LINKSDB[$key]); + ++$count; + } } $LINKSDB->save($conf->get('resource.page_cache')); // Save to disk. - echo ''; + echo ''; exit; } } From d99aef535fa209c27c46a97dee4187ac21c84d4d Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 31 May 2017 18:36:35 +0200 Subject: [PATCH 577/658] Refactoring of CHANGETAG part to avoid duplicated code --- index.php | 61 ++++++++++++++++++++++++------------------------------- 1 file changed, 27 insertions(+), 34 deletions(-) diff --git a/index.php b/index.php index 39230c8..eb6b17d 100644 --- a/index.php +++ b/index.php @@ -1176,48 +1176,41 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) die('Wrong token.'); } - $count = 0; - // Delete a tag: if (isset($_POST['deletetag']) && !empty($_POST['fromtag'])) { - $needle = trim($_POST['fromtag']); - // True for case-sensitive tag search. - $linksToAlter = $LINKSDB->filterSearch(array('searchtags' => $needle), true); - foreach($linksToAlter as $key=>$value) - { - $tags = explode(' ',trim($value['tags'])); - if (($pos = array_search($needle,$tags)) !== false) { - unset($tags[$pos]); // Remove tag. - $value['tags']=trim(implode(' ',$tags)); - $LINKSDB[$key]=$value; - $history->updateLink($LINKSDB[$key]); - ++$count; - } - } - $LINKSDB->save($conf->get('resource.page_cache')); - echo ''; + $delete = true; + } else if (isset($_POST['renametag']) && !empty($_POST['fromtag']) && !empty($_POST['totag'])) { + $delete = false; + } else { + $PAGE->renderPage('changetag'); exit; } - // Rename a tag: - if (isset($_POST['renametag']) && !empty($_POST['fromtag']) && !empty($_POST['totag'])) { - $needle = trim($_POST['fromtag']); - // True for case-sensitive tag search. - $linksToAlter = $LINKSDB->filterSearch(array('searchtags' => $needle), true); - foreach($linksToAlter as $key=>$value) { - $tags = preg_split('/\s+/', trim($value['tags'])); - // Replace tags value. - if (($pos = array_search($needle,$tags)) !== false) { + $count = 0; + $needle = trim($_POST['fromtag']); + // True for case-sensitive tag search. + $linksToAlter = $LINKSDB->filterSearch(array('searchtags' => $needle), true); + foreach($linksToAlter as $key => $value) + { + $tags = explode(' ',trim($value['tags'])); + if (($pos = array_search($needle,$tags)) !== false) { + if ($delete) { + unset($tags[$pos]); // Remove tag. + } else { $tags[$pos] = trim($_POST['totag']); - $value['tags'] = implode(' ', array_unique($tags)); - $LINKSDB[$key] = $value; - $history->updateLink($LINKSDB[$key]); - ++$count; } + $value['tags'] = trim(implode(' ', array_unique($tags))); + $LINKSDB[$key]=$value; + $history->updateLink($LINKSDB[$key]); + ++$count; } - $LINKSDB->save($conf->get('resource.page_cache')); // Save to disk. - echo ''; - exit; } + $LINKSDB->save($conf->get('resource.page_cache')); + $redirect = $delete ? 'do=changetag' : 'searchtags='. urlencode(escape($_POST['totag'])); + $alert = $delete + ? sprintf(t('The tag was removed from %d links.'), $count) + : sprintf(t('The tag was renamed in %d links.'), $count); + echo ''; + exit; } // -------- User wants to add a link without using the bookmarklet: Show form. From 9bf82f4fa14a871fcda1e14e07767d788540c8e3 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Wed, 7 Jun 2017 16:08:35 +0200 Subject: [PATCH 578/658] Fixing "Uncaught TypeError" in shaarli.js - fix #893 --- tpl/default/js/shaarli.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 4ebb781..b120c91 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -418,7 +418,8 @@ window.onload = function () { * * TODO: support error code in the backend for AJAX requests */ - var existingTags = document.querySelector('input[name="taglist"]').value.split(' '); + var tagList = document.querySelector('input[name="taglist"]'); + var existingTags = tagList ? tagList.value.split(' ') : []; var awesomepletes = []; // Display/Hide rename form @@ -515,7 +516,7 @@ window.onload = function () { }); }); - updateAwesompleteList('.rename-tag-input', document.querySelector('input[name="taglist"]').value.split(' '), awesomepletes); + updateAwesompleteList('.rename-tag-input', existingTags, awesomepletes); }; /** From 49cc8e5d747e6c3504803cf4fa1589fa204e32b5 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Fri, 2 Jun 2017 17:58:26 +0200 Subject: [PATCH 579/658] Tagcloud/list improvments --- index.php | 10 +++++++++- tpl/default/tag.cloud.html | 7 ++++++- tpl/default/tag.list.html | 5 ++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 2ff2505..85486eb 100644 --- a/index.php +++ b/index.php @@ -805,6 +805,9 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) $tagList = array(); foreach($tags as $key => $value) { + if (in_array($key, $filteringTags)) { + continue; + } // Tag font size scaling: // default 15 and 30 logarithm bases affect scaling, // 22 and 6 are arbitrary font sizes for max and min sizes. @@ -829,12 +832,17 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) exit; } - // -------- Tag cloud + // -------- Tag list if ($targetPage == Router::$PAGE_TAGLIST) { $visibility = ! empty($_SESSION['privateonly']) ? 'private' : 'all'; $filteringTags = isset($_GET['searchtags']) ? explode(' ', $_GET['searchtags']) : []; $tags = $LINKSDB->linksCountPerTag($filteringTags, $visibility); + foreach ($filteringTags as $tag) { + if (array_key_exists($tag, $tags)) { + unset($tags[$tag]); + } + } if (! empty($_GET['sort']) && $_GET['sort'] === 'alpha') { alphabetical_sort($tags, false, true); diff --git a/tpl/default/tag.cloud.html b/tpl/default/tag.cloud.html index 59aa2ee..96b357a 100644 --- a/tpl/default/tag.cloud.html +++ b/tpl/default/tag.cloud.html @@ -13,6 +13,11 @@
    {$countTags=count($tags)}

    {'Tag cloud'|t} - {$countTags} {'tags'|t}

    + {if="!empty($search_tags)"} +

    + {'List all links with those tags'|t} +

    + {/if}
    @@ -40,7 +45,7 @@
    {loop="tags"} - {$key}{$key}{$value.count} {loop="$value.tag_plugin"} {$value} diff --git a/tpl/default/tag.list.html b/tpl/default/tag.list.html index 62e2e7c..81d6e5a 100644 --- a/tpl/default/tag.list.html +++ b/tpl/default/tag.list.html @@ -13,6 +13,9 @@
    {$countTags=count($tags)}

    {'Tag list'|t} - {$countTags} {'tags'|t}

    +

    + {'List all links with those tags'|t} +

    @@ -50,7 +53,7 @@ {/if} {$value} - {$key} + {$key} {loop="$value.tag_plugin"} {$value} From 8eb6bac137d31b36ff2da5970f1ac398cf574435 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 11 Jun 2017 14:09:42 +0200 Subject: [PATCH 580/658] Fix Firefox Social button in the default theme is no longer required since the JS function is now in . Also, include the trailing slash in the post URL. Fixes #895 --- tpl/default/js/shaarli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index b120c91..4f49aff 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -606,7 +606,7 @@ function htmlEntities(str) function activateFirefoxSocial(node) { var loc = location.href; - var baseURL = loc.substring(0, loc.lastIndexOf("/")); + var baseURL = loc.substring(0, loc.lastIndexOf("/") + 1); // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. var data = { @@ -619,7 +619,7 @@ function activateFirefoxSocial(node) { icon32URL: baseURL + "/images/favicon.ico", icon64URL: baseURL + "/images/favicon.ico", - shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", + shareURL: baseURL + "?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi", homepageURL: baseURL }; node.setAttribute("data-service", JSON.stringify(data)); From 53ed6d7d1e678d7486337ce67a2f17b30bac21ac Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 26 Jan 2017 18:52:54 +0100 Subject: [PATCH 581/658] Generate HTML documentation using MkDocs (WIP) MkDocs is a static site generator geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML file. * http://www.mkdocs.org/ * http://www.mkdocs.org/user-guide/configuration/ Ref. #312 * remove pandoc-generated HTML documentation * move markdown doc to doc/md/, * mkdocs.yml: * generate HTML doc in doc/html * add pages TOC/ordering * use index.md as index page * Makefile: remove execute permissions from generated files * Makefile: rewrite htmlpages GFM to markdown conversion using sed: awk expression aslo matched '][' which causes invalid output on complex links with images or code blocks * Add mkdocs.yml to .gitattributes, exclude this file from release archives * Makefile: rename: htmldoc -> doc_html target * run make doc: pull latest markdown documentation from wiki * run make htmlpages: update html documentation --- .gitattributes | 1 + Makefile | 50 +- doc/3rd-party-libraries.html | 88 - doc/Backup,-restore,-import-and-export.html | 152 -- doc/Browsing-and-searching.html | 83 - doc/Coding-guidelines.html | 75 - doc/Community-&-Related-software.html | 131 -- ...llation-over-SSH-and-serve-it-locally.html | 165 -- ...te-and-serve-multiple-Shaarlis-(farm).html | 159 -- doc/Datastore-hacks.html | 124 -- doc/Development.html | 112 -- doc/Development.md | 35 - doc/Directory-structure.html | 135 -- doc/Docker.html | 245 --- ...Download-CSS-styles-from-an-OPML-list.html | 257 --- doc/Download-and-Installation.html | 172 -- ...e-patch---add-new-via-field-for-links.html | 254 --- doc/FAQ.html | 107 -- doc/Firefox-share.html | 95 -- doc/GnuPG-signature.html | 175 -- doc/Home.html | 76 - doc/Plugin-System.html | 634 ------- doc/Plugins.html | 155 -- doc/REST-API.html | 169 -- doc/RSS-feeds.html | 99 -- doc/Release-Shaarli.html | 224 --- doc/Security.html | 135 -- doc/Server-configuration.html | 459 ----- doc/Server-requirements.html | 195 --- doc/Server-security.html | 175 -- doc/Shaarli-configuration.html | 298 ---- doc/Sharing-button.html | 94 - doc/Static-analysis.html | 82 - doc/Theming.html | 182 -- doc/Troubleshooting.html | 202 --- doc/Unit-tests.html | 226 --- doc/Upgrade-and-migration.html | 259 --- doc/Usage.html | 95 -- doc/Versioning-and-Branches.html | 156 -- doc/_Footer.html | 70 - doc/_Sidebar.html | 119 -- doc/html/3rd-party-libraries/index.html | 369 ++++ .../index.html | 411 +++++ doc/html/Bookmarklet/index.html | 375 ++++ doc/html/Browsing-and-searching/index.html | 362 ++++ doc/html/Coding-guidelines/index.html | 348 ++++ .../Community-&-Related-software/index.html | 419 +++++ .../Continuous-integration-tools/index.html | 367 ++++ .../index.html | 403 +++++ .../index.html | 396 +++++ doc/html/Datastore-hacks/index.html | 369 ++++ doc/html/Development-guidelines/index.html | 352 ++++ doc/html/Directory-structure/index.html | 371 ++++ doc/html/Docker-101/index.html | 410 +++++ doc/html/Docker-resources/index.html | 370 ++++ .../index.html | 496 ++++++ doc/html/Download-and-Installation/index.html | 444 +++++ doc/html/FAQ/index.html | 388 +++++ doc/html/Features/index.html | 371 ++++ doc/html/Firefox-share/index.html | 368 ++++ doc/html/GnuPG-signature/index.html | 439 +++++ doc/html/Plugin-System/index.html | 968 +++++++++++ doc/html/Plugins/index.html | 414 +++++ doc/html/REST-API/index.html | 431 +++++ doc/html/RSS-feeds/index.html | 367 ++++ doc/html/Release-Shaarli/index.html | 529 ++++++ .../Reverse-proxy-configuration/index.html | 350 ++++ doc/html/Security/index.html | 386 +++++ doc/html/Server-configuration/index.html | 747 ++++++++ doc/html/Server-requirements/index.html | 475 ++++++ doc/html/Server-security/index.html | 429 +++++ doc/html/Shaarli-configuration/index.html | 563 ++++++ doc/html/Shaarli-images/index.html | 425 +++++ doc/html/Static-analysis/index.html | 359 ++++ doc/html/Theming/index.html | 435 +++++ doc/html/Troubleshooting/index.html | 441 +++++ doc/html/Unit-tests/index.html | 492 ++++++ doc/html/Upgrade-and-migration/index.html | 534 ++++++ doc/html/Versioning-and-Branches/index.html | 418 +++++ doc/{ => html}/config.json | 0 doc/html/css/highlight.css | 124 ++ doc/html/css/theme.css | 12 + doc/html/css/theme_extra.css | 193 +++ doc/html/fonts/fontawesome-webfont.eot | Bin 0 -> 37405 bytes doc/html/fonts/fontawesome-webfont.svg | 399 +++++ doc/html/fonts/fontawesome-webfont.ttf | Bin 0 -> 79076 bytes doc/html/fonts/fontawesome-webfont.woff | Bin 0 -> 43572 bytes doc/{ => html}/github-markdown.css | 0 doc/{ => html}/images/bookmarklet.png | Bin doc/{ => html}/images/doc-logo.png | Bin doc/{ => html}/images/doc-logo.svg | 0 doc/{ => html}/images/firefoxshare.png | Bin doc/{ => html}/images/rss-filter-1.png | Bin doc/{ => html}/images/rss-filter-2.png | Bin doc/html/img/favicon.ico | Bin 0 -> 1150 bytes doc/html/index.html | 344 ++++ doc/html/js/highlight.pack.js | 2 + doc/html/js/jquery-2.1.1.min.js | 4 + doc/html/js/modernizr-2.8.3.min.js | 1 + doc/html/js/theme.js | 82 + doc/html/mkdocs/js/lunr.min.js | 7 + doc/html/mkdocs/js/mustache.min.js | 1 + doc/html/mkdocs/js/require.js | 36 + .../js/search-results-template.mustache | 4 + doc/html/mkdocs/js/search.js | 88 + doc/html/mkdocs/js/text.js | 390 +++++ doc/html/mkdocs/search_index.json | 1519 +++++++++++++++++ doc/html/search.html | 324 ++++ doc/html/sitemap.xml | 266 +++ doc/{ => md}/3rd-party-libraries.md | 13 +- .../Backup,-restore,-import-and-export.md | 23 +- doc/{Sharing-button.md => md/Bookmarklet.md} | 7 +- doc/{ => md}/Browsing-and-searching.md | 7 +- doc/{ => md}/Coding-guidelines.md | 6 +- doc/{ => md}/Community-&-Related-software.md | 73 +- doc/md/Continuous-integration-tools.md | 24 + ...tallation-over-SSH-and-serve-it-locally.md | 7 +- ...eate-and-serve-multiple-Shaarlis-(farm).md | 21 +- doc/{ => md}/Datastore-hacks.md | 3 +- doc/md/Development-guidelines.md | 9 + doc/{ => md}/Directory-structure.md | 3 +- doc/md/Docker-101.md | 62 + doc/md/Docker-resources.md | 19 + .../Download-CSS-styles-from-an-OPML-list.md | 13 +- doc/{ => md}/Download-and-Installation.md | 15 +- ...ple-patch---add-new-via-field-for-links.md | 97 +- doc/{ => md}/FAQ.md | 15 +- doc/{Usage.md => md/Features.md} | 3 +- doc/{ => md}/Firefox-share.md | 3 +- doc/{ => md}/GnuPG-signature.md | 25 +- doc/{ => md}/Plugin-System.md | 89 +- doc/{ => md}/Plugins.md | 15 +- doc/md/REST-API.md | 104 ++ doc/{ => md}/RSS-feeds.md | 3 +- doc/{ => md}/Release-Shaarli.md | 77 +- doc/md/Reverse-proxy-configuration.md | 6 + doc/{ => md}/Security.md | 1 - doc/{ => md}/Server-configuration.md | 55 +- doc/{ => md}/Server-requirements.md | 32 +- doc/{ => md}/Server-security.md | 11 +- doc/{ => md}/Shaarli-configuration.md | 29 +- doc/md/Shaarli-images.md | 72 + doc/{ => md}/Static-analysis.md | 11 +- doc/{ => md}/Theming.md | 35 +- doc/{ => md}/Troubleshooting.md | 38 +- doc/{ => md}/Unit-tests.md | 17 +- doc/{ => md}/Upgrade-and-migration.md | 50 +- doc/md/Versioning-and-Branches.md | 75 + doc/{ => md}/_Footer.md | 3 +- doc/md/_Sidebar.md | 45 + doc/md/config.json | 6 + doc/md/github-markdown.css | 287 ++++ doc/md/images/bookmarklet.png | Bin 0 -> 53346 bytes doc/md/images/doc-logo.png | Bin 0 -> 19543 bytes doc/md/images/doc-logo.svg | 522 ++++++ doc/md/images/firefoxshare.png | Bin 0 -> 757 bytes doc/md/images/rss-filter-1.png | Bin 0 -> 18682 bytes doc/md/images/rss-filter-2.png | Bin 0 -> 15604 bytes doc/{Home.md => md/index.md} | 11 +- doc/sidebar.html | 52 - mkdocs.yml | 53 + tpl/default/page.footer.html | 10 + 162 files changed, 22127 insertions(+), 7136 deletions(-) delete mode 100644 doc/3rd-party-libraries.html delete mode 100644 doc/Backup,-restore,-import-and-export.html delete mode 100644 doc/Browsing-and-searching.html delete mode 100644 doc/Coding-guidelines.html delete mode 100644 doc/Community-&-Related-software.html delete mode 100644 doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html delete mode 100644 doc/Create-and-serve-multiple-Shaarlis-(farm).html delete mode 100644 doc/Datastore-hacks.html delete mode 100644 doc/Development.html delete mode 100644 doc/Development.md delete mode 100644 doc/Directory-structure.html delete mode 100644 doc/Docker.html delete mode 100644 doc/Download-CSS-styles-from-an-OPML-list.html delete mode 100644 doc/Download-and-Installation.html delete mode 100644 doc/Example-patch---add-new-via-field-for-links.html delete mode 100644 doc/FAQ.html delete mode 100644 doc/Firefox-share.html delete mode 100644 doc/GnuPG-signature.html delete mode 100644 doc/Home.html delete mode 100644 doc/Plugin-System.html delete mode 100644 doc/Plugins.html delete mode 100644 doc/REST-API.html delete mode 100644 doc/RSS-feeds.html delete mode 100644 doc/Release-Shaarli.html delete mode 100644 doc/Security.html delete mode 100644 doc/Server-configuration.html delete mode 100644 doc/Server-requirements.html delete mode 100644 doc/Server-security.html delete mode 100644 doc/Shaarli-configuration.html delete mode 100644 doc/Sharing-button.html delete mode 100644 doc/Static-analysis.html delete mode 100644 doc/Theming.html delete mode 100644 doc/Troubleshooting.html delete mode 100644 doc/Unit-tests.html delete mode 100644 doc/Upgrade-and-migration.html delete mode 100644 doc/Usage.html delete mode 100644 doc/Versioning-and-Branches.html delete mode 100644 doc/_Footer.html delete mode 100644 doc/_Sidebar.html create mode 100644 doc/html/3rd-party-libraries/index.html create mode 100644 doc/html/Backup,-restore,-import-and-export/index.html create mode 100644 doc/html/Bookmarklet/index.html create mode 100644 doc/html/Browsing-and-searching/index.html create mode 100644 doc/html/Coding-guidelines/index.html create mode 100644 doc/html/Community-&-Related-software/index.html create mode 100644 doc/html/Continuous-integration-tools/index.html create mode 100644 doc/html/Copy-an-existing-installation-over-SSH-and-serve-it-locally/index.html create mode 100644 doc/html/Create-and-serve-multiple-Shaarlis-(farm)/index.html create mode 100644 doc/html/Datastore-hacks/index.html create mode 100644 doc/html/Development-guidelines/index.html create mode 100644 doc/html/Directory-structure/index.html create mode 100644 doc/html/Docker-101/index.html create mode 100644 doc/html/Docker-resources/index.html create mode 100644 doc/html/Download-CSS-styles-from-an-OPML-list/index.html create mode 100644 doc/html/Download-and-Installation/index.html create mode 100644 doc/html/FAQ/index.html create mode 100644 doc/html/Features/index.html create mode 100644 doc/html/Firefox-share/index.html create mode 100644 doc/html/GnuPG-signature/index.html create mode 100644 doc/html/Plugin-System/index.html create mode 100644 doc/html/Plugins/index.html create mode 100644 doc/html/REST-API/index.html create mode 100644 doc/html/RSS-feeds/index.html create mode 100644 doc/html/Release-Shaarli/index.html create mode 100644 doc/html/Reverse-proxy-configuration/index.html create mode 100644 doc/html/Security/index.html create mode 100644 doc/html/Server-configuration/index.html create mode 100644 doc/html/Server-requirements/index.html create mode 100644 doc/html/Server-security/index.html create mode 100644 doc/html/Shaarli-configuration/index.html create mode 100644 doc/html/Shaarli-images/index.html create mode 100644 doc/html/Static-analysis/index.html create mode 100644 doc/html/Theming/index.html create mode 100644 doc/html/Troubleshooting/index.html create mode 100644 doc/html/Unit-tests/index.html create mode 100644 doc/html/Upgrade-and-migration/index.html create mode 100644 doc/html/Versioning-and-Branches/index.html rename doc/{ => html}/config.json (100%) create mode 100644 doc/html/css/highlight.css create mode 100644 doc/html/css/theme.css create mode 100644 doc/html/css/theme_extra.css create mode 100644 doc/html/fonts/fontawesome-webfont.eot create mode 100644 doc/html/fonts/fontawesome-webfont.svg create mode 100644 doc/html/fonts/fontawesome-webfont.ttf create mode 100644 doc/html/fonts/fontawesome-webfont.woff rename doc/{ => html}/github-markdown.css (100%) rename doc/{ => html}/images/bookmarklet.png (100%) rename doc/{ => html}/images/doc-logo.png (100%) rename doc/{ => html}/images/doc-logo.svg (100%) rename doc/{ => html}/images/firefoxshare.png (100%) rename doc/{ => html}/images/rss-filter-1.png (100%) rename doc/{ => html}/images/rss-filter-2.png (100%) create mode 100644 doc/html/img/favicon.ico create mode 100644 doc/html/index.html create mode 100644 doc/html/js/highlight.pack.js create mode 100644 doc/html/js/jquery-2.1.1.min.js create mode 100644 doc/html/js/modernizr-2.8.3.min.js create mode 100644 doc/html/js/theme.js create mode 100644 doc/html/mkdocs/js/lunr.min.js create mode 100644 doc/html/mkdocs/js/mustache.min.js create mode 100644 doc/html/mkdocs/js/require.js create mode 100644 doc/html/mkdocs/js/search-results-template.mustache create mode 100644 doc/html/mkdocs/js/search.js create mode 100644 doc/html/mkdocs/js/text.js create mode 100644 doc/html/mkdocs/search_index.json create mode 100644 doc/html/search.html create mode 100644 doc/html/sitemap.xml rename doc/{ => md}/3rd-party-libraries.md (73%) rename doc/{ => md}/Backup,-restore,-import-and-export.md (87%) rename doc/{Sharing-button.md => md/Bookmarklet.md} (76%) rename doc/{ => md}/Browsing-and-searching.md (83%) rename doc/{ => md}/Coding-guidelines.md (64%) rename doc/{ => md}/Community-&-Related-software.md (64%) create mode 100644 doc/md/Continuous-integration-tools.md rename doc/{ => md}/Copy-an-existing-installation-over-SSH-and-serve-it-locally.md (88%) rename doc/{ => md}/Create-and-serve-multiple-Shaarlis-(farm).md (77%) rename doc/{ => md}/Datastore-hacks.md (98%) create mode 100644 doc/md/Development-guidelines.md rename doc/{ => md}/Directory-structure.md (98%) create mode 100644 doc/md/Docker-101.md create mode 100644 doc/md/Docker-resources.md rename doc/{ => md}/Download-CSS-styles-from-an-OPML-list.md (92%) rename doc/{ => md}/Download-and-Installation.md (88%) rename doc/{ => md}/Example-patch---add-new-via-field-for-links.md (80%) rename doc/{ => md}/FAQ.md (89%) rename doc/{Usage.md => md/Features.md} (96%) rename doc/{ => md}/Firefox-share.md (86%) rename doc/{ => md}/GnuPG-signature.md (87%) rename doc/{ => md}/Plugin-System.md (88%) rename doc/{ => md}/Plugins.md (86%) create mode 100644 doc/md/REST-API.md rename doc/{ => md}/RSS-feeds.md (93%) rename doc/{ => md}/Release-Shaarli.md (74%) create mode 100644 doc/md/Reverse-proxy-configuration.md rename doc/{ => md}/Security.md (99%) rename doc/{ => md}/Server-configuration.md (92%) rename doc/{ => md}/Server-requirements.md (73%) rename doc/{ => md}/Server-security.md (93%) rename doc/{ => md}/Shaarli-configuration.md (90%) create mode 100644 doc/md/Shaarli-images.md rename doc/{ => md}/Static-analysis.md (68%) rename doc/{ => md}/Theming.md (79%) rename doc/{ => md}/Troubleshooting.md (92%) rename doc/{ => md}/Unit-tests.md (96%) rename doc/{ => md}/Upgrade-and-migration.md (83%) create mode 100644 doc/md/Versioning-and-Branches.md rename doc/{ => md}/_Footer.md (69%) create mode 100644 doc/md/_Sidebar.md create mode 100644 doc/md/config.json create mode 100644 doc/md/github-markdown.css create mode 100644 doc/md/images/bookmarklet.png create mode 100644 doc/md/images/doc-logo.png create mode 100644 doc/md/images/doc-logo.svg create mode 100644 doc/md/images/firefoxshare.png create mode 100644 doc/md/images/rss-filter-1.png create mode 100644 doc/md/images/rss-filter-2.png rename doc/{Home.md => md/index.md} (89%) delete mode 100644 doc/sidebar.html create mode 100644 mkdocs.yml diff --git a/.gitattributes b/.gitattributes index 82f3760..dd0e573 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,5 +33,6 @@ doc/**/*.md export-ignore docker/ export-ignore Doxyfile export-ignore Makefile export-ignore +mkdocs.yml export-ignore phpunit.xml export-ignore tests/ export-ignore diff --git a/Makefile b/Makefile index 1d8a73a..1ddd60f 100644 --- a/Makefile +++ b/Makefile @@ -194,42 +194,28 @@ doxygen: clean ### update the local copy of the documentation doc: clean - @rm -rf doc - @git clone https://github.com/shaarli/Shaarli.wiki.git doc - @rm -rf doc/.git - -### Generate a custom sidebar -# -# Sidebar content: -# - convert GitHub-flavoured relative links to standard Markdown -# - trim HTML, only keep the list (
      [...]
    ) part -htmlsidebar: - @echo '
    ' > doc/sidebar.html - @awk 'BEGIN { FS = "[\\[\\]]{2}" }'\ - 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\ - '!m { print $$0 }' doc/_Sidebar.md > doc/tmp.md - @pandoc -f markdown -t html5 -s doc/tmp.md | awk '/(ul>|li>)/' >> doc/sidebar.html - @echo '
    ' >> doc/sidebar.html - @rm doc/tmp.md + @rm -rf doc/md/ + @git clone https://github.com/shaarli/Shaarli.wiki.git doc/md + mv doc/md/Home.md doc/md/index.md + @rm -rf doc/md/.git ### Convert local markdown documentation to HTML # # For all pages: -# - infer title from the file name # - convert GitHub-flavoured relative links to standard Markdown -# - insert the sidebar menu +# - generate html documentation with mkdocs htmlpages: - @for file in `find doc/ -maxdepth 1 -name "*.md"`; do \ - base=`basename $$file .md`; \ - sed -i "1i #$${base//-/ }" $$file; \ - awk 'BEGIN { FS = "[\\[\\]]{2}" }'\ - 'm = /\[/ { t=$$2; gsub(/ /, "-", $$2); print $$1"["t"]("$$2".html)"$$3 }'\ - '!m { print $$0 }' $$file > doc/tmp.md; \ - mv doc/tmp.md $$file; \ - pandoc -f markdown_github -t html5 -s \ - -c "github-markdown.css" \ - -T Shaarli -M pagetitle:"$${base//-/ }" -B doc/sidebar.html \ - -o doc/$$base.html $$file; \ - done; + # Rename local [[links]] to regular links. + @for file in `find doc/md/ -maxdepth 1 -name "*.md"`; do \ + sed -e "s/\[\[\(.*\)\]\]/[\1](\1)/g" "$$file" > doc/md/tmp.md; \ + mv doc/md/tmp.md $$file; \ + done -htmldoc: authors doc htmlsidebar htmlpages + python3 -m venv venv/ + bash -c 'source venv/bin/activate; \ + pip install mkdocs; \ + mkdocs build' + find doc/html/ -type f -exec chmod a-x '{}' \; + rm -r venv + +doc_html: authors doc htmlpages diff --git a/doc/3rd-party-libraries.html b/doc/3rd-party-libraries.html deleted file mode 100644 index 50aba6c..0000000 --- a/doc/3rd-party-libraries.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - Shaarli – 3rd party libraries - - - - - - -

    3rd party libraries

    -

    CSS

    -
      -
    • Yahoo UI CSS Reset -
        -
      • resets default CSS properties for all HTML elements (overriding browsers' default values)
      • -
      • ensures custom CSS stylessheets will provide the same results on all browsers
      • -
    • -
    -

    Javascript

    - -

    PHP

    - - - diff --git a/doc/Backup,-restore,-import-and-export.html b/doc/Backup,-restore,-import-and-export.html deleted file mode 100644 index 3c16882..0000000 --- a/doc/Backup,-restore,-import-and-export.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - Shaarli – Backup, restore, import and export - - - - - - - -

    Backup, restore, import and export

    - -
    -

    Backup and restore the datastore file

    -

    Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.

    -

    Example command:

    -
    rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    - -

    To export links as an HTML file, under Tools > Export, choose:

    -
      -
    • Export all to export both public and private links
    • -
    • Export public to export public links only
    • -
    • Export private to export private links only
    • -
    -

    Restore by using the Import feature.

    - -

    Example command:

    -
    ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    - -

    Diigo

    -

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

    -

    Mister Wong

    -

    See this issue for import tweaks.

    -

    SemanticScuttle

    -

    To correctly import the tags from a SemanticScuttle HTML export, edit the HTML file before importing and replace all occurences of tags= (lowercase) to TAGS= (uppercase).

    -

    Scuttle

    -

    Shaarli cannot import data directly from Scuttle. However, you can use this third party tool: https://github.com/q2apro/scuttle-to-shaarli to export the Scuttle database to the Netscape HTML format compatible with the Shaarli importer.

    - -
      -
    • Export your Shaarli links as described above.
    • -
    • For compatibility reasons, check Prepend note permalinks with this Shaarli instance's URL (useful to import bookmarks in a web browser)
    • -
    • In Firefox, open the bookmark manager (not the sidebar! Bookmarks menu > Show all bookmarks or Ctrl+Shift+B)
    • -
    • Select Import and Backup > Import bookmarks in HTML format
    • -
    -

    Your bookmarks will be imported in Firefox, ready to use, with tags and descriptions retained. "Self" (notes) shaares will still point to the Shaarli instance you exported them from, but the note text can be viewed directly in the bookmark properties inside your browser. Depending on the number of bookmarks, the import can take some time.

    -

    You may be interested in these Firefox addons to manage links imported from Shaarli

    - - - diff --git a/doc/Browsing-and-searching.html b/doc/Browsing-and-searching.html deleted file mode 100644 index ef5b524..0000000 --- a/doc/Browsing-and-searching.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - Shaarli – Browsing and searching - - - - - - -

    Browsing and searching

    -

    Browsing and Searching

    -

    - -

    Use the Search text field to search in any of the fields of all links (Title, URL, Description...)

    -

    Exclude text/tags: Use the - operator before a word or tag (example -uninteresting) to prevent entries containing (or tagged) uninteresting from showing up in the search results.

    -

    Exact text search: Use double-quotes (example "exact search") to search for the exact expression.

    -

    Both exclude patterns and exact searches can be combined with normal searches (example "exact search" term otherterm -notthis "very exact" stuff -notagain)

    - -

    Use the Filter by tags field to restrict displayed links to entries tagged with one or multiple tags (use space to separate tags).

    -

    Hidden tags: Tags starting with a dot . (example .secret) are private. They can only be seen and searched when logged in.

    -

    Alternatively you can use the Tag cloud to discover all tags and click on any of them to display related links.

    -

    To search for links that are not tagged, enter "" in the tag search field.

    -

    Filtering RSS feeds/Picture wall

    -

    RSS feeds can also be restricted to only return items matching a text/tag search: see RSS feeds.

    - - diff --git a/doc/Coding-guidelines.html b/doc/Coding-guidelines.html deleted file mode 100644 index 8df1218..0000000 --- a/doc/Coding-guidelines.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - Shaarli – Coding guidelines - - - - - - -

    Coding guidelines

    -

    WIP

    -

    This topic is currently being discussed here:

    - - - diff --git a/doc/Community-&-Related-software.html b/doc/Community-&-Related-software.html deleted file mode 100644 index 28b9618..0000000 --- a/doc/Community-&-Related-software.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - Shaarli – Community & Related software - - - - - - -

    Community & Related software

    -

    Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork.

    -

    TODO: contact repos owners to see if they'd like to standardize their work with the community fork.

    -

    Community

    - -

    Articles and social media discussions

    - -

    Third party plugins

    - -

    Themes

    -

    See Theming for the list of community-contributed themes, and an installation guide.

    -

    Server apps

    -
      -
    • shaarchiver - Archive your Shaarli bookmarks and their content
    • -
    • shaarli-river - An aggregator for shaarlis with many features
    • -
    • Shaarlo - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: shaarli.fr)
    • -
    • Shaarlimages - An image-oriented aggregator for Shaarlis
    • -
    • mknexen/shaarli-api - A REST API for Shaarli
    • -
    • Self dead link - Detect dead links on shaarli. This version use the database of shaarli. Another version, can be used for other shaarli instances (but is more resource consuming).
    • -
    -

    Mobile Apps

    - -

    Integration with other platforms

    - -

    Alternatives to Shaarli

    - - - diff --git a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html b/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html deleted file mode 100644 index d6b76ad..0000000 --- a/doc/Copy-an-existing-installation-over-SSH-and-serve-it-locally.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - Shaarli – Copy an existing installation over SSH and serve it locally - - - - - - - -

    Copy an existing installation over SSH and serve it locally

    -

    Example bash script:

    -
    #!/bin/bash
    -#Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
    -#Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
    -#Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
    -#Requires: ssh, scp and a working SSH access to the server where your Shaarli is installed
    -#Usage: ./local-shaarli.sh
    -#Author: nodiscc (nodiscc@gmail.com)
    -#License: MIT (http://opensource.org/licenses/MIT)
    -set -o errexit
    -set -o nounset
    -
    -##### CONFIG #################
    -#The port used by php's local server
    -php_local_port=7431
    -
    -#Name of the SSH server and path where Shaarli is installed
    -#TODO: pass these as command-line arguments
    -remotehost="my.ssh.server"
    -remote_shaarli_dir="/var/www/shaarli"
    -
    -
    -###### FUNCTIONS #############
    -_main() {
    -    _CBSyncShaarli
    -    _CBServeShaarli
    -}
    -
    -_CBSyncShaarli() {
    -    remote_temp_dir=$(ssh $remotehost mktemp -d)
    -    remote_ssh_user=$(ssh $remotehost whoami)
    -    ssh -t "$remotehost" sudo cp -r "$remote_shaarli_dir" "$remote_temp_dir"
    -    ssh -t "$remotehost" sudo chown -R "$remote_ssh_user":"$remote_ssh_user" "$remote_temp_dir"
    -    scp -rq "$remotehost":"$remote_temp_dir" local-shaarli
    -    ssh "$remotehost" rm -r "$remote_temp_dir"
    -}
    -
    -_CBServeShaarli() {
    -    #TODO: allow serving a previously downloaded Shaarli
    -    #TODO: ask before overwriting local copy, if it exists
    -    cd local-shaarli/
    -    php -S localhost:${php_local_port}
    -    echo "Please go to http://localhost:${php_local_port}"
    -}
    -
    -
    -##### MAIN #################
    -
    -_main
    -

    This outputs:

    -
    $ ./local-shaarli.sh
    -PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
    -Listening on http://localhost:7431
    -Document root is /home/user/local-shaarli/shaarli
    -Press Ctrl-C to quit.
    -
    -[Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /[](.html)
    -[Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html[](.html)
    -[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...[](.html)
    - - diff --git a/doc/Create-and-serve-multiple-Shaarlis-(farm).html b/doc/Create-and-serve-multiple-Shaarlis-(farm).html deleted file mode 100644 index 0be81d5..0000000 --- a/doc/Create-and-serve-multiple-Shaarlis-(farm).html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - Shaarli – Create and serve multiple Shaarlis (farm) - - - - - - - -

    Create and serve multiple Shaarlis (farm)

    -

    Example bash script (creates multiple shaarli instances and generates an HTML index of them)

    -
    #!/bin/bash
    -set -o errexit
    -set -o nounset
    -
    -#config
    -shaarli_base_dir='/var/www/shaarli'
    -accounts='bob john whatever username'
    -shaarli_repo_url='https://github.com/shaarli/Shaarli'
    -ref="master"
    -
    -#clone multiple shaarli instances
    -if [ ! -d "$shaarli_base_dir" ]; then mkdir "$shaarli_base_dir"; fi[](.html)
    -   
    -for account in $accounts; do
    -    if [ -d "$shaarli_base_dir/$account" ];[](.html)
    -    then echo "[info] account $account already exists, skipping";[](.html)
    -    else echo "[info] creating new account $account ..."; git clone --quiet "$shaarli_repo_url" -b "$ref" "$shaarli_base_dir/$account"; fi[](.html)
    -done
    -
    -#generate html index of shaarlis
    -htmlhead='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    -<!-- Minimal html template thanks to http://www.sitepoint.com/a-minimal-html-document/ -->
    -<html lang="en">
    -    <head>
    -        <meta http-equiv="content-type" content="text/html; charset=utf-8">
    -        <title>My Shaarli farm</title>
    -        <style>body {font-family: "Open Sans"}</style>
    -    </head>
    -    <body>
    -    <div>
    -    <h1>My Shaarli farm</h1>
    -    <ul style="list-style-type: none;">'
    -
    -accountlinks=''
    -    
    -htmlfooter='
    -    </ul>
    -    </div>
    -    </body>
    -</html>'    
    -    
    -
    -
    -for account in $accounts; do accountlinks="$accountlinks\n<li><a href=\"$account\">$account</a></li>"; done
    -if [ -d "$shaarli_base_dir/index.html" ]; then echo "[removing old index.html]"; rm "$shaarli_base_dir/index.html" ]; fi[](.html)
    -echo "[info] generating new index of shaarlis"[](.html)
    -echo -e "$htmlhead $accountlinks $htmlfooter" > "$shaarli_base_dir/index.html"
    -echo '[info] done.'[](.html)
    -echo "[info] list of accounts: $accounts"[](.html)
    -echo "[info] contents of $shaarli_base_dir:"[](.html)
    -tree -a -L 1 "$shaarli_base_dir"
    -

    This script just serves as an example. More precise or complex (applying custom configuration, etc) automation is possible using configuration management software like Ansible

    - - diff --git a/doc/Datastore-hacks.html b/doc/Datastore-hacks.html deleted file mode 100644 index ef3e17b..0000000 --- a/doc/Datastore-hacks.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - Shaarli – Datastore hacks - - - - - - - -

    Datastore hacks

    -

    Decode datastore content

    -

    To display the array representing the data saved in data/datastore.php, use the following snippet:

    -
    $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
    -$out = unserialize(gzinflate(base64_decode($data)));
    -echo "<pre>"; // Pretty printing is love, pretty printing is life
    -print_r($out);
    -echo "</pre>";
    -exit;
    -

    This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation).

    -

    Alternatively, you can transform to JSON format (and pretty-print if you have jq installed):

    -
    php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace("!.*/\* (.+) \*/.*!", "$1", file_get_contents("data/datastore.php")))))));' | jq .
    - -
      -
    • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
    • -
    • Replace type="hidden" with type="text" from this line
    • -
    • A new date/time field becomes available in the edit/new link dialog.
    • -
    • You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
    • -
    - - diff --git a/doc/Development.html b/doc/Development.html deleted file mode 100644 index 8a2be41..0000000 --- a/doc/Development.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - Shaarli – Development - - - - - - -

    Development

    -

    Guidelines

    -

    Please have a look at the following pages:

    - -

    Continuous integration tools

    -

    Local development

    -

    A Makefile is available to perform project-related operations:

    -
      -
    • Documentation - generate a local HTML copy of the GitHub wiki
    • -
    • Static analysis - check that the code is compliant to PHP conventions
    • -
    • Unit tests - ensure there are no regressions introduced by new commits
    • -
    -

    Automatic builds

    -

    Travis CI is a Continuous Integration build server, that runs a build:

    -
      -
    • each time a commit is merged to the mainline (master branch)
    • -
    • each time a Pull Request is submitted or updated
    • -
    -

    A build is composed of several jobs: one for each supported PHP version (see Server requirements).

    -

    Each build job:

    -
      -
    • updates Composer
    • -
    • installs 3rd-party test dependencies with Composer
    • -
    • runs Unit tests
    • -
    -

    After all jobs have finished, Travis returns the results to GitHub:

    -
      -
    • a status icon represents the result for the master branch: (https://api.travis-ci.org/shaarli/Shaarli.svg)
    • -
    • Pull Requests are updated with the Travis result -
        -
      • Green: all tests have passed
      • -
      • Red: some tests failed
      • -
      • Orange: tests are pending
      • -
    • -
    - - diff --git a/doc/Development.md b/doc/Development.md deleted file mode 100644 index 6cfcb68..0000000 --- a/doc/Development.md +++ /dev/null @@ -1,35 +0,0 @@ -#Development -## Guidelines -Please have a look at the following pages: -- [Contributing to Shaarli](https://github.com/shaarli/Shaarli/tree/master/CONTRIBUTING.md)[](.html) -- [Static analysis](Static-analysis.html) - patches should try to stick to the [PHP Standard Recommendations](http://www.php-fig.org/psr/) (PSR), especially: - - [PSR-1](http://www.php-fig.org/psr/psr-1/) - Basic Coding Standard[](.html) - - [PSR-2](http://www.php-fig.org/psr/psr-2/) - Coding Style Guide[](.html) -- [Unit tests](Unit-tests.html) -- [GnuPG signature](GnuPG-signature.html) for tags/releases - -## Continuous integration tools -### Local development -A [`Makefile`](https://github.com/shaarli/Shaarli/blob/master/Makefile) is available to perform project-related operations:[](.html) -- Documentation - generate a local HTML copy of the GitHub wiki -- [Static analysis](Static-analysis.html) - check that the code is compliant to PHP conventions -- [Unit tests](Unit-tests.html) - ensure there are no regressions introduced by new commits - -### Automatic builds -[Travis CI](http://docs.travis-ci.com/) is a Continuous Integration build server, that runs a build:[](.html) -- each time a commit is merged to the mainline (`master` branch) -- each time a Pull Request is submitted or updated - -A build is composed of several jobs: one for each supported PHP version (see [Server requirements](Server-requirements.html)). - -Each build job: -- updates Composer -- installs 3rd-party test dependencies with Composer -- runs [Unit tests](Unit-tests.html) - -After all jobs have finished, Travis returns the results to GitHub: -- a status icon represents the result for the `master` branch: [![(https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli)]((https://api.travis-ci.org/shaarli/Shaarli.svg)](https://travis-ci.org/shaarli/Shaarli).html) -- Pull Requests are updated with the Travis result - - Green: all tests have passed - - Red: some tests failed - - Orange: tests are pending diff --git a/doc/Directory-structure.html b/doc/Directory-structure.html deleted file mode 100644 index 3f75db8..0000000 --- a/doc/Directory-structure.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - Shaarli – Directory structure - - - - - - - -

    Directory structure

    -

    Here is the directory structure of Shaarli and the purpose of the different files:

    -
        index.php        # Main program
    -    application/     # Shaarli classes
    -        ├── LinkDB.php
    -        └── Utils.php
    -    tests/       # Shaarli unitary & functional tests
    -        ├── LinkDBTest.php
    -        ├── utils  # utilities to ease testing
    -        │   └── ReferenceLinkDB.php
    -        └── UtilsTest.php
    -    COPYING          # Shaarli license
    -    inc/             # static assets and 3rd party libraries
    -        ├── awesomplete.*          # tags autocompletion library
    -        ├── blazy.*                # picture wall lazy image loading library
    -        ├── shaarli.css, reset.css # Shaarli stylesheet.
    -        ├── qr.*                   # qr code generation library
    -        └──rain.tpl.class.php      # RainTPL templating library
    -    tpl/             # RainTPL templates for Shaarli. They are used to build the pages.
    -    images/          # Images and icons used in Shaarli
    -    data/            # data storage: bookmark database, configuration, logs, banlist…
    -        ├── config.php             # Shaarli configuration (login, password, timezone, title…)
    -        ├── datastore.php          # Your link database (compressed).
    -        ├── ipban.php              # IP address ban system data
    -        ├── lastupdatecheck.txt    # Update check timestamp file
    -        └──log.txt                 # login/IPban log.
    -    cache/           # thumbnails cache
    -                     # This directory is automatically created. You can erase it anytime you want.
    -    tmp/             # Temporary directory for compiled RainTPL templates.
    -                     # This directory is automatically created. You can erase it anytime you want.
    - - diff --git a/doc/Docker.html b/doc/Docker.html deleted file mode 100644 index fd0dec4..0000000 --- a/doc/Docker.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - Shaarli – Docker - - - - - - - -

    Docker

    - -

    Docker usage

    -

    Basics

    -

    Install Docker, by following the instructions relevant
    -to your OS / distribution, and start the service.

    -

    Search an image on DockerHub

    -
    $ docker search debian
    -
    -NAME            DESCRIPTION                                     STARS   OFFICIAL   AUTOMATED
    -ubuntu          Ubuntu is a Debian-based Linux operating s...   2065    [OK][](.html)
    -debian          Debian is a Linux distribution that's comp...   603     [OK][](.html)
    -google/debian                                                   47                 [OK][](.html)
    -

    Show available tags for a repository

    -
    $ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool
    -
    -% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    -Dload  Upload   Total   Spent    Left  Speed
    -100  1283    0  1283    0     0    433      0 --:--:--  0:00:02 --:--:--   433
    -

    Sample output:

    -
    [[](.html)
    -    {
    -        "layer": "85a02782",
    -        "name": "stretch"
    -    },
    -    {
    -        "layer": "59abecbc",
    -        "name": "testing"
    -    },
    -    {
    -        "layer": "bf0fd686",
    -        "name": "unstable"
    -    },
    -    {
    -        "layer": "60c52dbe",
    -        "name": "wheezy"
    -    },
    -    {
    -        "layer": "c5b806fe",
    -        "name": "wheezy-backports"
    -    }
    -]
    -

    Pull an image from DockerHub

    -
    $ docker pull repository[:tag][](.html)
    -
    -$ docker pull debian:wheezy
    -wheezy: Pulling from debian
    -4c8cbfd2973e: Pull complete
    -60c52dbe9d91: Pull complete
    -Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe
    -Status: Downloaded newer image for debian:wheezy
    -

    Get and run a Shaarli image

    -

    DockerHub repository

    -

    The images can be found in the shaarli/shaarli
    -repository.

    -

    Available image tags

    -
      -
    • latest: master branch (tarball release)
    • -
    • stable: stable branch (tarball release)
    • -
    • dev: master branch (Git clone)
    • -
    -

    All images rely on:

    - -

    Download from DockerHub

    -
    $ docker pull shaarli/shaarli
    -latest: Pulling from shaarli/shaarli
    -32716d9fcddb: Pull complete
    -84899d045435: Pull complete
    -4b6ad7444763: Pull complete
    -e0345ef7a3e0: Pull complete
    -5c1dd344094f: Pull complete
    -6422305a200b: Pull complete
    -7d63f861dbef: Pull complete
    -3eb97210645c: Pull complete
    -869319d746ff: Already exists
    -869319d746ff: Pulling fs layer
    -902b87aaaec9: Already exists
    -Digest: sha256:f836b4627b958b3f83f59c332f22f02fcd495ace3056f2be2c4912bd8704cc98
    -Status: Downloaded newer image for shaarli/shaarli:latest
    -

    Create and start a new container from the image

    -
    # map the host's :8000 port to the container's :80 port
    -$ docker create -p 8000:80 shaarli/shaarli
    -d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    -
    -# launch the container in the background
    -$ docker start d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    -d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    -
    -# list active containers
    -$ docker ps
    -CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    -d40b7af693d6  shaarli/shaarli  /usr/bin/supervisor  15 seconds ago  Up 4 seconds  0.0.0.0:8000->80/tcp  backstabbing_galileo
    -

    Stop and destroy a container

    -
    $ docker stop backstabbing_galileo  # those docker guys are really rude to physicists!
    -backstabbing_galileo
    -
    -# check the container is stopped
    -$ docker ps
    -CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    -
    -# list ALL containers
    -$ docker ps -a
    -CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                      PORTS               NAMES
    -d40b7af693d6        shaarli/shaarli     /usr/bin/supervisor   5 minutes ago       Exited (0) 48 seconds ago                       backstabbing_galileo
    -
    -# destroy the container
    -$ docker rm backstabbing_galileo  # let's put an end to these barbarian practices
    -backstabbing_galileo
    -
    -$ docker ps -a
    -CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    -

    Resources

    -

    Docker

    - -

    DockerHub

    - -

    Service management

    - - - diff --git a/doc/Download-CSS-styles-from-an-OPML-list.html b/doc/Download-CSS-styles-from-an-OPML-list.html deleted file mode 100644 index 18cc5d9..0000000 --- a/doc/Download-CSS-styles-from-an-OPML-list.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - Shaarli – Download CSS styles from an OPML list - - - - - - - -

    Download CSS styles from an OPML list

    -

    Download CSS styles for shaarlis listed in an opml file

    -

    Example php script:

    -
    <!---- ?php -->
    -<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
    -<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
    -
    -/**
    - * Source: https://github.com/Riduidel
    - * Download css styles for shaarlis listed in an opml file
    - */
    -define("SHAARLI_RSS_OPML", "https://www.ecirtam.net/shaarlirss/custom/people.opml");
    -
    -define("THEMES_TEMP_FOLDER", "new_themes");
    -
    -if(!file_exists(THEMES_TEMP_FOLDER)) {
    -    mkdir(THEMES_TEMP_FOLDER);
    -}
    -
    -function siteUrl($pathInSite) {
    -    $indexPos = strpos($pathInSite, "index.php");
    -    if(!$indexPos) {
    -        return $pathInSite;
    -    } else {
    -        return substr($pathInSite, 0, $indexPos);
    -    }
    -}
    -
    -function createShaarliHashFromOPMLL($opmlFile) {
    -    $result = array();
    -    $opml = file_get_contents($opmlFile);
    -    $opmlXml = simplexml_load_string($opml);
    -    $outlineElements = $opmlXml->xpath("body/outline");
    -    foreach($outlineElements as $site) {
    -        $siteUrl = siteUrl((string) $site['htmlUrl']);[](.html)
    -        $result[$siteUrl]=((string) $site['text']);[](.html)
    -    }
    -    return $result;
    -}
    -
    -function getSiteFolder($url) {
    -    $domain = parse_url($url,  PHP_URL_HOST);
    -    return THEMES_TEMP_FOLDER."/".str_replace(".", "_", $domain);
    -}
    -
    -function get_http_response_code($theURL) {
    -     $headers = get_headers($theURL);
    -     return substr($headers[0], 9, 3);[](.html)
    -}
    -
    -/**
    - * This makes the code PHP-5 only (particularly the call to "get_headers")
    - */
    -function copyUserStyleFrom($url, $name, $knownStyles) {
    -    $userStyle = $url."inc/user.css";
    -    if(in_array($url, $knownStyles)) {
    -        // TODO add log message
    -    } else {
    -        $statusCode = get_http_response_code($userStyle);
    -        if(intval($statusCode)<300) {
    -            $styleSheet = file_get_contents($userStyle);
    -            $siteFolder = getSiteFolder($url);
    -            if(!file_exists($siteFolder)) {
    -                mkdir($siteFolder);
    -            }
    -            if(!file_exists($siteFolder.'/user.css')) {
    -                // Copy stylesheet
    -                file_put_contents($siteFolder.'/user.css', $styleSheet);
    -            }
    -            if(!file_exists($siteFolder.'/README.md')) {
    -                // Then write a readme.md file
    -                file_put_contents($siteFolder.'/README.md', 
    -                    "User style from ".$name."\n"
    -                    ."============================="
    -                    ."\n\n"
    -                    ."This stylesheet was downloaded from ".$userStyle." on ".date(DATE_RFC822)
    -                    );
    -            }
    -            if(!file_exists($siteFolder.'/config.ini')) {
    -                // Write a config file containing useful informations
    -                file_put_contents($siteFolder.'/config.ini', 
    -                    "site_url=".$url."\n"
    -                    ."site_name=".$name."\n"
    -                    );
    -            }
    -            if(!file_exists($siteFolder.'/home.png')) {
    -                // And finally copy generated thumbnail
    -                $homeThumb = $siteFolder.'/home.png';
    -                file_put_contents($siteFolder.'/home.png', file_get_contents(getThumbnailUrl($url)));
    -            }
    -            echo 'Theme have been downloaded from  <a href="'.$url.'">'.$url.'</a> into '.$siteFolder
    -                .'. It looks like <img src="'.$homeThumb.'"><br/>';
    -        }
    -    }
    -}
    -
    -function getThumbnailUrl($url) {
    -    return 'http://api.webthumbnail.org/?url='.$url;
    -}
    -
    -function copyUserStylesFrom($urlToNames, $knownStyles) {
    -    foreach($urlToNames as $url => $name) {
    -        copyUserStyleFrom($url, $name, $knownStyles);
    -    }
    -}
    -
    -/**
    - * Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
    - * @param directory the directory we want to list files of
    - * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
    - * are not listed here
    - */
    -function getDirectoryList ($directory)  {
    -    $realPath = realpath($directory);
    -    // create an array to hold directory list
    -    $results = array();
    -    // create a handler for the directory
    -    $handler = opendir($directory);
    -    // open directory and walk through the filenames
    -    while ($file = readdir($handler)) {
    -        // if file isn't this directory or its parent, add it to the results
    -        if ($file != "." && $file != "..") {
    -            $results[ = realpath($realPath . "/" . $file);](-=-realpath($realPath-.-"/"-.-$file);.html)
    -        }
    -    }
    -    // tidy up: close the handler
    -    closedir($handler);
    -    // done!
    -    return $results;
    -}
    -
    -/**
    - * Start in themes folder and look in all subfolders for config.ini files. 
    - * These config.ini files allow us not to download styles again and again
    - */
    -function findKnownStyles() {
    -    $result = array();
    -    $subFolders = getDirectoryList("themes");
    -    foreach($subFolders as $folder) {
    -        $configFile = $folder."/config.ini";
    -        if(file_exists($configFile)) {
    -            $iniParameters = parse_ini_file($configFile);
    -            array_push($result, $iniParameters['site_url']);[](.html)
    -        }
    -    }
    -    return $result;
    -}
    -
    -$knownStyles = findKnownStyles();
    -copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
    -
    -<!--- ? ---->
    - - diff --git a/doc/Download-and-Installation.html b/doc/Download-and-Installation.html deleted file mode 100644 index 2c5b3be..0000000 --- a/doc/Download-and-Installation.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - Shaarli – Download and Installation - - - - - - - -

    Download and Installation

    -

    Get Shaarli!

    -

    To install Shaarli, simply place the files in a directory under your webserver's Document Root (or directly at the document root). Make sure your server is properly configured.

    -

    Several releases are available:

    -
    - -

    Download as an archive

    -

    Get the latest released version from the releases page.

    -

    Download our shaarli-full archive to include dependencies.

    -

    The current latest released version is v0.8.4

    -

    Or in command lines:

    -
    $ wget https://github.com/shaarli/Shaarli/releases/download/v0.8.4/shaarli-v0.8.4-full.zip
    -$ unzip shaarli-v0.8.4-full.zip
    -$ mv Shaarli /path/to/shaarli/
    - ---- - - - - - - - - -
    !In most cases, download Shaarli from the releases page. Cloning using git or downloading Github branches as zip files requires additional steps (see below).
    -

    Using git

    -
    mkdir -p /path/to/shaarli && cd /path/to/shaarli/
    -git clone -b v0.8 https://github.com/shaarli/Shaarli.git .
    -composer install --no-dev
    -
    -

    Stable version

    -

    The stable version has been experienced by Shaarli users, and will receive security updates.

    -

    Download as an archive

    -

    As a .zip archive:

    -
    $ wget https://github.com/shaarli/Shaarli/archive/stable.zip
    -$ unzip stable.zip
    -$ mv Shaarli-stable /path/to/shaarli/
    -

    As a .tar.gz archive :

    -
    $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
    -$ tar xvf stable.tar.gz
    -$ mv Shaarli-stable /path/to/shaarli/
    -

    Clone with Git

    -

    Composer is required to build a functional Shaarli installation when pulling from git.

    -
    $ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/
    -# install/update third-party dependencies
    -$ cd /path/to/shaarli/
    -$ composer install --no-dev
    -
    -

    Development version (mainline)

    -

    Use at your own risk!

    -

    To get the latest changes from the master branch:

    -
    # clone the repository  
    -$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/
    -# install/update third-party dependencies
    -$ cd /path/to/shaarli
    -$ composer install --no-dev
    -
    -

    Finish Installation

    -

    Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser.

    -

    install screenshot

    -

    Setup your Shaarli installation, and it's ready to use!

    -
    -

    Updating Shaarli

    -

    See Upgrade and Migration

    - - diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html deleted file mode 100644 index 49036a7..0000000 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - Shaarli – Example patch add new via field for links - - - - - - -

    Example patch add new via field for links

    -

    Example patch to add a new field ("via") for links, an input field to set the "via" property from the "edit link" dialog, and display the "via" field in the link list display. Untested, use at your own risk

    -

    Thanks to @Knah-Tsaeb in https://github.com/sebsauvage/Shaarli/pull/158

    -
    From e0f363c18e8fe67990ed2bb1a08652e24e70bbcb Mon Sep 17 00:00:00 2001
    -From: Knah Tsaeb <knah-tsaeb@knah-tsaeb.org>
    -Date: Fri, 11 Oct 2013 15:18:37 +0200
    -Subject: [PATCH] Add a "via"/origin property for links, add new input in "edit link" dialog[](.html)
    -Thanks to:
    -* https://github.com/Knah-Tsaeb/Shaarli/commit/040eb18ec8cdabd5ea855e108f81f97fbf0478c4
    -* https://github.com/Knah-Tsaeb/Shaarli/commit/4123658eae44d7564d1128ce52ddd5689efee813
    -* https://github.com/Knah-Tsaeb/Shaarli/commit/f1a8ca9cc8fe49b119d51b2d8382cc1a34542f96
    -
    ----
    - index.php         | 43 ++++++++++++++++++++++++++++++++-----------
    - tpl/editlink.html |  1 +
    - tpl/linklist.html |  1 +
    - 3 files changed, 34 insertions(+), 11 deletions(-)
    -
    -diff --git a/index.php b/index.php
    -index 6fae2f8..53f798e 100644
    ---- a/index.php
    -+++ b/index.php
    -@@ -436,6 +436,12 @@ if (isset($_POST['login']))[](.html)
    - // ------------------------------------------------------------------------------------------
    - // Misc utility functions:
    - 
    -+// Try to get just domain for @via
    -+function getJustDomain($url){
    -+    $parts = parse_url($url);   
    -+    return trim($parts['host']);[](.html)
    -+    }
    -+
    - // Returns the server URL (including port and http/https), without path.
    - // e.g. "http://myserver.com:8080"
    - // You can append $_SERVER['SCRIPT_NAME'] to get the current script URL.[](.html)
    -@@ -799,7 +805,8 @@ class linkdb implements Iterator, Countable, ArrayAccess
    -             $found=   (strpos(strtolower($l['title']),$s)!==false)[](.html)
    -                    || (strpos(strtolower($l['description']),$s)!==false)[](.html)
    -                    || (strpos(strtolower($l['url']),$s)!==false)[](.html)
    --                   || (strpos(strtolower($l['tags']),$s)!==false);[](.html)
    -+                   || (strpos(strtolower($l['tags']),$s)!==false)[](.html)
    -+                   || (!empty($l['via']) && (strpos(strtolower($l['via']),$s)!==false));[](.html)
    -             if ($found) $filtered[$l['linkdate'[ = $l;](-=-$l;.html)
    -         }
    -         krsort($filtered);
    -@@ -814,7 +821,7 @@ class linkdb implements Iterator, Countable, ArrayAccess
    -         $t = str_replace(',',' ',($casesensitive?$tags:strtolower($tags)));
    -         $searchtags=explode(' ',$t);
    -         $filtered=array();
    --        foreach($this->links as $l)
    -+        foreach($this-> links as $l)
    -         {
    -             $linktags = explode(' ',($casesensitive?$l['tags']:strtolower($l['tags'])));[](.html)
    -             if (count(array_intersect($linktags,$searchtags)) == count($searchtags))
    -@@ -905,7 +912,7 @@ function showRSS()
    -     else $linksToDisplay = $LINKSDB;
    -     $nblinksToDisplay = 50;  // Number of links to display.
    -     if (!empty($_GET['nb']))  // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links.[](.html)
    --    { 
    -+    {
    -         $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ;[](.html)
    -     }
    - 
    -@@ -944,7 +951,12 @@ function showRSS()
    -         // If user wants permalinks first, put the final link in description
    -         if ($usepermalinks===true) $descriptionlink = '(<a href="'.$absurl.'">Link</a>)';
    -         if (strlen($link['description'])>0) $descriptionlink = '<br>'.$descriptionlink;[](.html)
    --        echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.'[></description>'."\n</item>\n";](></description>'."\n</item>\n";.html)
    -+        if(!empty($link['via'])){[](.html)
    -+          $via = '<br>Origine => <a href="'.htmlspecialchars($link['via']).'">'.htmlspecialchars(getJustDomain($link['via'])).'</a>';[](.html)
    -+        } else {
    -+         $via = '';
    -+        }
    -+        echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$via.$descriptionlink.'[></description>'."\n</item>\n";](></description>'."\n</item>\n";.html)
    -         $i++;
    -     }
    -     echo '</channel></rss><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->';
    -@@ -980,7 +992,7 @@ function showATOM()
    -     else $linksToDisplay = $LINKSDB;
    -     $nblinksToDisplay = 50;  // Number of links to display.
    -     if (!empty($_GET['nb']))  // In URL, you can specificy the number of links. Example: nb=200 or nb=all for all links.[](.html)
    --    { 
    -+    {
    -         $nblinksToDisplay = $_GET['nb']=='all' ? count($linksToDisplay) : max($_GET['nb']+0,1) ;[](.html)
    -     }
    - 
    -@@ -1006,11 +1018,16 @@ function showATOM()
    - 
    -         // Add permalink in description
    -         $descriptionlink = htmlspecialchars('(<a href="'.$guid.'">Permalink</a>)');
    -+        if(isset($link['via']) && !empty($link['via'])){[](.html)
    -+          $via = htmlspecialchars('</br> Origine => <a href="'.$link['via'].'">'.getJustDomain($link['via']).'</a>');[](.html)
    -+        } else {
    -+          $via = '';
    -+        }
    -         // If user wants permalinks first, put the final link in description
    -         if ($usepermalinks===true) $descriptionlink = htmlspecialchars('(<a href="'.$absurl.'">Link</a>)');
    -         if (strlen($link['description'])>0) $descriptionlink = '&lt;br&gt;'.$descriptionlink;[](.html)
    - 
    --        $entries.='<content type="html">'.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink."</content>\n";[](.html)
    -+        $entries.='<content type="html">'.htmlspecialchars(nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))))).$descriptionlink.$via."</content>\n";[](.html)
    -         if ($link['tags']!='') // Adding tags to each ATOM entry (as mentioned in ATOM specification)[](.html)
    -         {
    -             foreach(explode(' ',$link['tags']) as $tag)[](.html)
    -@@ -1478,7 +1495,7 @@ function renderPage()
    -         if (!startsWith($url,'http:') && !startsWith($url,'https:') && !startsWith($url,'ftp:') && !startsWith($url,'magnet:') && !startsWith($url,'?'))
    -             $url = 'http://'.$url;
    -         $link = array('title'=>trim($_POST['lf_title']),'url'=>$url,'description'=>trim($_POST['lf_description']),'private'=>(isset($_POST['lf_private']) ? 1 : 0),[](.html)
    --                      'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags));
    -+                      'linkdate'=>$linkdate,'tags'=>str_replace(',',' ',$tags), 'via'=>trim($_POST['lf_via']));[](.html)
    -         if ($link['title']=='') $link['title']=$link['url']; // If title is empty, use the URL as title.[](.html)
    -         $LINKSDB[$linkdate] = $link;[](.html)
    -         $LINKSDB->savedb(); // Save to disk.
    -@@ -1556,7 +1573,8 @@ function renderPage()
    -             $title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet).[](.html)
    -             $description = (empty($_GET['description']) ? '' : $_GET['description']); // Get description if it was provided in URL (by the bookmarklet). [Bronco added that][](.html)
    -             $tags = (empty($_GET['tags']) ? '' : $_GET['tags'] ); // Get tags if it was provided in URL[](.html)
    --            $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL [](.html)
    -+            $via = (empty($_GET['via']) ? '' : $_GET['via'] );[](.html)
    -+            $private = (!empty($_GET['private']) && $_GET['private'] === "1" ? 1 : 0); // Get private if it was provided in URL[](.html)
    -             if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url;
    -             // If this is an HTTP link, we try go get the page to extract the title (otherwise we will to straight to the edit form.)
    -             if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http')
    -@@ -1567,7 +1585,7 @@ function renderPage()
    -                     {
    -                         // Look for charset in html header.
    -                        preg_match('#<meta .*charset=.*>#Usi', $data, $meta);
    -- 
    -+
    -                        // If found, extract encoding.
    -                        if (!empty($meta[0]))[](.html)
    -                        {
    -@@ -1577,7 +1595,7 @@ function renderPage()
    -                            $html_charset = (!empty($enc[1])) ? strtolower($enc[1]) : 'utf-8';[](.html)
    -                        }
    -                        else { $html_charset = 'utf-8'; }
    -- 
    -+
    -                        // Extract title
    -                        $title = html_extract_title($data);
    -                        if (!empty($title))
    -@@ -1592,7 +1610,7 @@ function renderPage()
    -                 $url='?'.smallHash($linkdate);
    -                 $title='Note: ';
    -             }
    --            $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'private'=>$private);
    -+            $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'via' => $via,'private'=>$private);
    -         }
    - 
    -         $PAGE = new pageBuilder;
    -@@ -1842,6 +1860,9 @@ function buildLinkList($PAGE,$LINKSDB)
    -         $taglist = explode(' ',$link['tags']);[](.html)
    -         uasort($taglist, 'strcasecmp');
    -         $link['taglist']=$taglist;[](.html)
    -+        if(!empty($link['via'])){[](.html)
    -+          $link['via']=htmlspecialchars($link['via']);[](.html)
    -+        }
    -         $linkDisp[$keys[$i[ = $link;](-=-$link;.html)
    -         $i++;
    -     }
    -diff --git a/tpl/editlink.html b/tpl/editlink.html
    -index 4a2c30c..14d4f9c 100644
    ---- a/tpl/editlink.html
    -+++ b/tpl/editlink.html
    -@@ -16,6 +16,7 @@
    -            <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br>
    -            <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br>
    -            <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br>
    -+           <i>Origine</i><br><input type="text" name="lf_via" value="{$link.via|htmlspecialchars}" style="width:100%"><br>
    -            {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}[](.html)
    -             <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
    -             &nbsp;<label for="lf_private"><i>Private</i></label><br>
    -diff --git a/tpl/linklist.html b/tpl/linklist.html
    -index ddc38cb..0a8475f 100644
    ---- a/tpl/linklist.html
    -+++ b/tpl/linklist.html
    -@@ -43,6 +43,7 @@
    -                 <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
    -                 <br>
    -                 {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
    -+                {if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">Origine => {$value.via|getJustDomain}</a></div>{/if}
    -                 {if="!$GLOBALS['config'['HIDE_TIMESTAMPS'] || isLoggedIn()"}]('HIDE_TIMESTAMPS']-||-isLoggedIn()"}.html)
    -                     <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
    -                 {else}
    --- 
    -2.1.1
    - - diff --git a/doc/FAQ.html b/doc/FAQ.html deleted file mode 100644 index 25584f2..0000000 --- a/doc/FAQ.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - Shaarli – FAQ - - - - - - -

    FAQ

    -

    Why did you create Shaarli ?

    -

    I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… their Firefox addon sends to Diigo every single URL you visit (Don't believe me ? Use Tamper Data and open any page).

    -

    Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server.

    -

    Why use Shaarli and not Delicious/Diigo ?

    -

    With Shaarli:

    -
      -
    • The data is yours: It's hosted on your server.
    • -
    • Never fear of having your data locked-in.
    • -
    • Never fear to have your data sold to third party.
    • -
    • Your private links are not hosted on a third party server.
    • -
    • You are not tracked by browser addons (like Diigo does)
    • -
    • You can change the look and feel of the pages if you want.
    • -
    • You can change the behaviour of the program.
    • -
    • It's magnitude faster than most bookmarking services.
    • -
    -

    What does Shaarli mean?

    -

    Shaarli is for shaaring your links.

    -

    My Shaarli is broken!

    -

    First of all, ensure that both the web server and Shaarli are correctly configured, and that your installation is supported.

    -

    If everything looks right but the issue(s) remain(s), please:

    -
      -
    • take a look at the troubleshooting section
    • -
    • come chat with us on Gitter, we'll be happy to help ;-)
    • -
    • browse active issues and Pull Requests -
        -
      • if you find one that is related to the issue, feel free to comment and provide additional details (host/Shaarli setup)
      • -
      • else, open a new issue, and provide information about the problem: -
          -
        • what happens? - display glitches, invalid data, security flaws...
        • -
        • what is your configuration? - OS, server version, activated extensions, web browser...
        • -
        • is it reproducible?
        • -
      • -
    • -
    -

    Why not use a real database? Files are slow!

    -

    Does browsing this page feel slow? Try browsing older pages, too.

    -

    It's not slow at all, is it? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why?

    -

    The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time.

    - - diff --git a/doc/Firefox-share.html b/doc/Firefox-share.html deleted file mode 100644 index 707119a..0000000 --- a/doc/Firefox-share.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - Shaarli – Firefox share - - - - - - -

    Firefox share

    -

    Add Shaarli as a sharing service to Firefox

    -
      -
    • Open your Shaarli and Login
    • -
    • Click the Tools button in the top bar
    • -
    • Click the ✚Add to Firefox social button and accept the activation.
    • -
    - -
      -
    • Add the sharing service as described above
    • -
    • When you are visiting a webpage you would like to share with Shaarli, click the Firefox Share button images/firefoxshare.png
    • -
    • You can edit your link before and after saving, just like the bookmarklet above.
    • -
    - ---- - - - - - - - - -
    Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections.
    - - diff --git a/doc/GnuPG-signature.html b/doc/GnuPG-signature.html deleted file mode 100644 index 182a71d..0000000 --- a/doc/GnuPG-signature.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - Shaarli – GnuPG signature - - - - - - - -

    GnuPG signature

    -

    Introduction

    -

    PGP and GPG

    -

    Gnu Privacy Guard (GnuPG) is an Open Source implementation of the Pretty Good [](.html)
    -Privacy
    (OpenPGP) specification. Its main purposes are digital authentication,
    -signature and encryption.

    -

    It is often used by the FLOSS community to verify:

    - -

    Trust

    -

    To quote Phil Pennock (the author of the SKS key server - http://sks.spodhuis.org/):

    -
    -

    You MUST understand that presence of data in the keyserver (pools) in no way connotes trust. Anyone can generate a key, with any name or email address, and upload it. All security and trust comes from evaluating security at the “object level”, via PGP Web-Of-Trust signatures. This keyserver makes it possible to retrieve keys, looking them up via various indices, but the collection of keys in this public pool is KNOWN to contain malicious and fraudulent keys. It is the common expectation of server operators that users understand this and use software which, like all known common OpenPGP implementations, evaluates trust accordingly. This expectation is so common that it is not normally explicitly stated.

    -
    -

    Trust can be gained by having your key signed by other people (and signing their key back, too :) ), for instance during key signing parties, see:

    - -

    Generate a GPG key

    - -

    gpg - provide identity information

    -
    $ gpg --gen-key
    -
    -gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.
    -This is free software: you are free to change and redistribute it.
    -There is NO WARRANTY, to the extent permitted by law.
    -
    -Note: Use "gpg2 --full-gen-key" for a full featured key generation dialog.
    -
    -GnuPG needs to construct a user ID to identify your key.
    -
    -Real name: Marvin the Paranoid Android
    -Email address: marvin@h2g2.net
    -You selected this USER-ID:
    -    "Marvin the Paranoid Android <marvin@h2g2.net>"
    -
    -Change (N)ame, (E)mail, or (O)kay/(Q)uit? o
    -We need to generate a lot of random bytes. It is a good idea to perform
    -some other action (type on the keyboard, move the mouse, utilize the
    -disks) during the prime generation; this gives the random number
    -generator a better chance to gain enough entropy.
    -

    gpg - entropy interlude

    -

    At this point, you will:

    -
      -
    • be prompted for a secure password to protect your key (the input method will depend on your Desktop Environment and configuration)
    • -
    • be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step may take some time
    • -
    -

    gpg - key creation confirmation

    -
    gpg: key A9D53A3E marked as ultimately trusted
    -public and secret key created and signed.
    -
    -gpg: checking the trustdb
    -gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
    -gpg: depth: 0  valid:   2  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 2u
    -pub   rsa2048/A9D53A3E 2015-07-31
    -      Key fingerprint = AF2A 5381 E54B 2FD2 14C4  A9A3 0E35 ACA4 A9D5 3A3E
    -uid       [ultimate] Marvin the Paranoid Android <marvin@h2g2.net>[](.html)
    -sub   rsa2048/8C0EACF1 2015-07-31
    -

    gpg - submit your public key to a PGP server (Optional)

    -
    $ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
    -gpg: sending key A9D53A3E to hkp server pgp.mit.edu
    -

    Create and push a GPG-signed tag

    -

    See Release Shaarli.

    - - diff --git a/doc/Home.html b/doc/Home.html deleted file mode 100644 index 7f51b93..0000000 --- a/doc/Home.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - Shaarli – Home - - - - - - -

    Home

    -

    Shaarli wiki

    -

    Welcome to the Shaarli wiki

    -

    Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli.

    -

    For general info, read the README.

    -

    If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion (archive) or read the current issues. If you've found a bug, please create a new issue.

    -

    If you would like a feature added to Shaarli, check the issues labeled feature, enhancement, and plugin.

    -

    Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the doc/ directory of your Shaarli installation.

    - - diff --git a/doc/Plugin-System.html b/doc/Plugin-System.html deleted file mode 100644 index 123bf10..0000000 --- a/doc/Plugin-System.html +++ /dev/null @@ -1,634 +0,0 @@ - - - - - - - Shaarli – Plugin System - - - - - - - -

    Plugin System

    -

    I am a developer. Developer API.

    -

    I am a template designer. Guide for template designer.

    -

    Developer API

    -

    What can I do with plugins?

    -

    The plugin system let you:

    -
      -
    • insert content into specific places across templates.
    • -
    • alter data before templates rendering.
    • -
    • alter data before saving new links.
    • -
    -

    How can I create a plugin for Shaarli?

    -

    First, chose a plugin name, such as demo_plugin.

    -

    Under plugin folder, create a folder named with your plugin name. Then create a .php file in that folder.

    -

    You should have the following tree view:

    -
    | index.php
    -| plugins/
    -|---| demo_plugin/
    -|   |---| demo_plugin.php
    -

    Plugin initialization

    -

    At the beginning of Shaarli execution, all enabled plugins are loaded. At this point, the plugin system looks for an init() function to execute and run it if it exists. This function must be named this way, and takes the ConfigManager as parameter.

    -
    <plugin_name>_init($conf)
    -

    This function can be used to create initial data, load default settings, etc. But also to set plugin errors. If the initialization function returns an array of strings, they will be understand as errors, and displayed in the header to logged in users.

    -

    Understanding hooks

    -

    A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution.

    -

    These functions need to be named with this pattern:

    -
    hook_<plugin_name>_<hook_name>($data, $conf)
    -

    Parameters:

    - -

    For exemple, if my plugin want to add data to the header, this function is needed:

    -
    hook_demo_plugin_render_header
    -

    If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header.

    -

    Plugin's data

    -

    Parameters

    -

    Every hook function has a $data parameter. Its content differs for each hooks.

    -

    This parameter needs to be returned every time, otherwise data is lost.

    -
    return $data;
    -

    Filling templates placeholder

    -

    Template placeholders are displayed in template in specific places.

    -

    RainTPL displays every element contained in the placeholder's array. These element can be added by plugins.

    -

    For example, let's add a value in the placeholder top_placeholder which is displayed at the top of my page:

    -
    $data['top_placeholder'[] = 'My content';](]-=-'My-content';.html)
    -# OR
    -array_push($data['top_placeholder'], 'My', 'content');[](.html)
    -
    -return $data;
    -

    Data manipulation

    -

    When a page is displayed, every variable send to the template engine is passed to plugins before that in $data.

    -

    The data contained by this array can be altered before template rendering.

    -

    For exemple, in linklist, it is possible to alter every title:

    -
    // mind the reference if you want $data to be altered
    -foreach ($data['links'] as &$value) {[](.html)
    -    // String reverse every title.
    -    $value['title'] = strrev($value['title']);[](.html)
    -}
    -
    -return $data;
    -

    Metadata

    -

    Every plugin needs a <plugin_name>.meta file, which is in fact an .ini file (KEY="VALUE"), to be listed in plugin administration.

    -

    Each file contain two keys:

    -
      -
    • description: plugin description
    • -
    • parameters: user parameter names, separated by a ;.
    • -
    • parameter.<PARAMETER_NAME>: add a text description the specified parameter.
    • -
    -
    -

    Note: In PHP, parse_ini_file() seems to want strings to be between by quotes " in the ini file.

    -
    -

    It's not working!

    -

    Use demo_plugin as a functional example. It covers most of the plugin system features.

    -

    If it's still not working, please open an issue.

    -

    Hooks

    - ---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    HooksDescription
    render_headerAllow plugin to add content in page headers.
    render_includesAllow plugin to include their own CSS files.
    render_footerAllow plugin to add content in page footer and include their own JS files.
    render_linklistIt allows to add content at the begining and end of the page, after every link displayed and to alter link data.
    render_editlinkAllow to add fields in the form, or display elements.
    render_toolsAllow to add content at the end of the page.
    render_picwallAllow to add content at the top and bottom of the page.
    render_tagcloudAllow to add content at the top and bottom of the page, and after all tags.
    render_taglistAllow to add content at the top and bottom of the page, and after all tags.
    render_dailyAllow to add content at the top and bottom of the page, the bottom of each link and to alter data.
    render_feedAllow to do add tags in RSS and ATOM feeds.
    save_linkAllow to alter the link being saved in the datastore.
    delete_linkAllow to do an action before a link is deleted from the datastore.
    -

    render_header

    -

    Triggered on every page.

    -

    Allow plugin to add content in page headers.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • buttons_toolbar: after the list of buttons in the header.
    • -
    -

    buttons_toolbar_example

    -
      -
    • fields_toolbar: after search fields in the header.
    • -
    -
    -

    Note: This will only be called in linklist.

    -
    -

    fields_toolbar_example

    -

    render_includes

    -

    Triggered on every page.

    -

    Allow plugin to include their own CSS files.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • css_files: called after loading default CSS.
    • -
    -
    -

    Note: only add the path of the CSS file. E.g: plugins/demo_plugin/custom_demo.css.

    -
    - -

    Triggered on every page.

    -

    Allow plugin to add content in page footer and include their own JS files.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • text: called after the end of the footer text.
    • -
    • endofpage: called at the end of the page.
    • -
    -

    text_example

    -
      -
    • js_files: called at the end of the page, to include custom JS scripts.
    • -
    -
    -

    Note: only add the path of the JS file. E.g: plugins/demo_plugin/custom_demo.js.

    -
    - -

    Triggered when linklist is displayed (list of links, permalink, search, tag filtered, etc.).

    -

    It allows to add content at the begining and end of the page, after every link displayed and to alter link data.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • All templates data, including links.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • action_plugin: next to the button "private only" at the top and bottom of the page.
    • -
    -

    action_plugin_example

    -
      -
    • link_plugin: for every link, between permalink and link URL.
    • -
    -

    link_plugin_example

    -
      -
    • plugin_start_zone: before displaying the template content.
    • -
    -

    plugin_start_zone_example

    -
      -
    • plugin_end_zone: after displaying the template content.
    • -
    -

    plugin_end_zone_example

    - -

    Triggered when the link edition form is displayed.

    -

    Allow to add fields in the form, or display elements.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • All templates data.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • edit_link_plugin: after tags field.
    • -
    -

    edit_link_plugin_example

    -

    render_tools

    -

    Triggered when the "tools" page is displayed.

    -

    Allow to add content at the end of the page.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • All templates data.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • tools_plugin: at the end of the page.
    • -
    -

    tools_plugin_example

    -

    render_picwall

    -

    Triggered when picwall is displayed.

    -

    Allow to add content at the top and bottom of the page.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • All templates data.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • plugin_start_zone: before displaying the template content.

    • -
    • plugin_end_zone: after displaying the template content.

    • -
    -

    plugin_start_end_zone_example

    -

    render_tagcloud

    -

    Triggered when tagcloud is displayed.

    -

    Allow to add content at the top and bottom of the page.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • All templates data.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • plugin_start_zone: before displaying the template content.

    • -
    • plugin_end_zone: after displaying the template content.

    • -
    -

    For each tag, the following placeholder can be used:

    -
      -
    • tag_plugin: after each tag
    • -
    -

    plugin_start_end_zone_example

    -

    render_taglist

    -

    Triggered when taglist is displayed.

    -

    Allow to add content at the top and bottom of the page.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • All templates data.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • plugin_start_zone: before displaying the template content.

    • -
    • plugin_end_zone: after displaying the template content.

    • -
    -

    For each tag, the following placeholder can be used:

    -
      -
    • tag_plugin: after each tag
    • -
    -

    render_daily

    -

    Triggered when tagcloud is displayed.

    -

    Allow to add content at the top and bottom of the page, the bottom of each link and to alter data.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • All templates data, including links.
    • -
    -
    Template placeholders
    -

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • link_plugin: used at bottom of each link.
    • -
    -

    link_plugin_example

    -
      -
    • plugin_start_zone: before displaying the template content.

    • -
    • plugin_end_zone: after displaying the template content.

    • -
    -

    render_feed

    -

    Triggered when the ATOM or RSS feed is displayed.

    -

    Allow to add tags in the feed, either in the header or for each items. Items (links) can also be altered before being rendered.

    -
    Data
    -

    $data is an array containing:

    -
      -
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • -
    • _PAGE_: containing either rss or atom.
    • -
    • All templates data, including links.
    • -
    -
    Template placeholders
    -

    Tags can be added in feeds by adding an entry in $data['<placeholder>'] array.

    -

    List of placeholders:

    -
      -
    • feed_plugins_header: used as a header tag in the feed.
    • -
    -

    For each links:

    -
      -
    • feed_plugins: additional tag for every link entry.
    • -
    - -

    Triggered when a link is save (new link or edit).

    -

    Allow to alter the link being saved in the datastore.

    -
    Data
    -

    $data is an array containing the link being saved:

    -
      -
    • id
    • -
    • title
    • -
    • url
    • -
    • shorturl
    • -
    • description
    • -
    • private
    • -
    • tags
    • -
    • created
    • -
    • updated
    • -
    - -

    Triggered when a link is deleted.

    -

    Allow to execute any action before the link is actually removed from the datastore

    -
    Data
    -

    $data is an array containing the link being saved:

    -
      -
    • id
    • -
    • title
    • -
    • url
    • -
    • shorturl
    • -
    • description
    • -
    • private
    • -
    • tags
    • -
    • created
    • -
    • updated
    • -
    -

    Guide for template designer

    -

    Plugin administration

    -

    Your theme must include a plugin administration page: pluginsadmin.html.

    -
    -

    Note: repo's template link needs to be added when the PR is merged.

    -
    -

    Use the default one as an example.

    -

    Aside from classic RainTPL loops, plugins order is handle by JavaScript. You can just include plugin_admin.js, only if:

    -
      -
    • you're using a table.
    • -
    • you call orderUp() and orderUp() onclick on arrows.
    • -
    • you add data-line and data-order to your rows.
    • -
    -

    Otherwise, you can use your own JS as long as this field is send by the form:

    -

    -

    Placeholder system

    -

    In order to make plugins work with every custom themes, you need to add variable placeholder in your templates.

    -

    It's a RainTPL loop like this:

    -
    {loop="$plugin_variable"}
    -    {$value}
    -{/loop}
    -

    You should enable demo_plugin for testing purpose, since it uses every placeholder available.

    -

    List of placeholders

    -

    page.header.html

    -

    At the end of the menu:

    -
    {loop="$plugins_header.buttons_toolbar"}
    -    {$value}
    -{/loop}
    -

    At the end of file, before clearing floating blocks:

    -
    {if="!empty($plugin_errors) && isLoggedIn()"}
    -    <ul class="errors">
    -        {loop="plugin_errors"}
    -            <li>{$value}</li>
    -        {/loop}
    -    </ul>
    -{/if}
    -

    includes.html

    -

    At the end of the file:

    -
    {loop="$plugins_includes.css_files"}
    -<link type="text/css" rel="stylesheet" href="{$value}#"/>
    -{/loop}
    -

    page.footer.html

    -

    At the end of your footer notes:

    -
    {loop="$plugins_footer.text"}
    -     {$value}
    -{/loop}
    -

    At the end of file:

    -
    {loop="$plugins_footer.js_files"}
    -     <script src="{$value}#"></script>
    -{/loop}
    -

    linklist.html

    -

    After search fields:

    -
    {loop="$plugins_header.fields_toolbar"}
    -     {$value}
    -{/loop}
    -

    Before displaying the link list (after paging):

    -
    {loop="$plugin_start_zone"}
    -     {$value}
    -{/loop}
    -

    For every links (icons):

    -
    {loop="$value.link_plugin"}
    -    <span>{$value}</span>
    -{/loop}
    -

    Before end paging:

    -
    {loop="$plugin_end_zone"}
    -     {$value}
    -{/loop}
    -

    linklist.paging.html

    -

    After the "private only" icon:

    -
    {loop="$action_plugin"}
    -     {$value}
    -{/loop}
    -

    editlink.html

    -

    After tags field:

    -
    {loop="$edit_link_plugin"}
    -     {$value}
    -{/loop}
    -

    tools.html

    -

    After the last tool:

    -
    {loop="$tools_plugin"}
    -     {$value}
    -{/loop}
    -

    picwall.html

    -

    Top:

    -
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    -    {loop="$plugin_start_zone"}
    -        {$value}
    -    {/loop}
    -</div>
    -

    Bottom:

    -
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    -    {loop="$plugin_end_zone"}
    -        {$value}
    -    {/loop}
    -</div>
    -

    tagcloud.html

    -

    Top:

    -
       <div id="plugin_zone_start_tagcloud" class="plugin_zone">
    -        {loop="$plugin_start_zone"}
    -            {$value}
    -        {/loop}
    -    </div>
    -

    Bottom:

    -
        <div id="plugin_zone_end_tagcloud" class="plugin_zone">
    -        {loop="$plugin_end_zone"}
    -            {$value}
    -        {/loop}
    -    </div>
    -

    daily.html

    -

    Top:

    -
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    -     {loop="$plugin_start_zone"}
    -         {$value}
    -     {/loop}
    -</div>
    -

    After every link:

    -
    <div class="dailyEntryFooter">
    -     {loop="$link.link_plugin"}
    -          {$value}
    -     {/loop}
    -</div>
    -

    Bottom:

    -
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    -    {loop="$plugin_end_zone"}
    -        {$value}
    -    {/loop}
    -</div>
    -

    feed.atom.xml and feed.rss.xml:

    -

    In headers tags section:

    -
    {loop="$feed_plugins_header"}
    -  {$value}
    -{/loop}
    -

    After each entry:

    -
    {loop="$value.feed_plugins"}
    -  {$value}
    -{/loop}
    - - diff --git a/doc/Plugins.html b/doc/Plugins.html deleted file mode 100644 index 08ce8a8..0000000 --- a/doc/Plugins.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - Shaarli – Plugins - - - - - - - -

    Plugins

    -

    Plugin installation

    -

    There is a bunch of plugins shipped with Shaarli, where there is nothing to do to install them.

    -

    If you want to install a third party plugin:

    -
      -
    • Download it.
    • -
    • Put it in the plugins directory in Shaarli's installation folder.
    • -
    • Make sure you put it correctly:
    • -
    -
    | index.php
    -| plugins/
    -|---| custom_plugin/
    -|   |---| custom_plugin.php
    -|   |---| ...
    -
    -
      -
    • Make sure your webserver can read and write the files in your plugin folder.
    • -
    -

    Plugin configuration

    -

    In Shaarli's administration page (Tools link), go to Plugin administration.

    -

    Here you can enable and disable all plugins available, and configure them.

    -

    administration screenshot

    -

    Plugin order

    -

    In the plugin administration page, you can move enabled plugins to the top or bottom of the list. The first plugins in the list will be processed first.

    -

    This is important in case plugins are depending on each other. Read plugins README details for more information.

    -

    Use case: The (non existent) plugin shaares_footer adds a footer to every shaare in Markdown syntax. It needs to be processed before (higher in the list) the Markdown plugin. Otherwise its syntax won't be translated in HTML.

    -

    File mode

    -

    Enabled plugin are stored in your config.php parameters file, under the array:

    -
    $GLOBALS['config'['ENABLED_PLUGINS']]('ENABLED_PLUGINS'].html)
    -

    You can edit them manually here.
    -Example:

    -
    $GLOBALS['config'['ENABLED_PLUGINS'] = array(]('ENABLED_PLUGINS']-=-array(.html)
    -    'qrcode', 
    -    'archiveorg',
    -    'wallabag',
    -    'markdown',
    -);
    -

    Plugin usage

    -

    Official plugins

    -

    Usage of each plugin is documented in it's README file:

    -
      -
    • addlink-toolbar: Adds the addlink input on the linklist page
    • -
    • archiveorg: For each link, add an Archive.org icon
    • -
    • markdown: Render shaare description with Markdown syntax.
    • -
    • playvideos: Add a button in the toolbar allowing to watch all videos.
    • -
    • qrcode: For each link, add a QRCode icon.
    • -
    • wallabag: For each link, add a Wallabag icon to save it in your instance.
    • -
    -

    Third party plugins

    -

    See Community & related software

    - - diff --git a/doc/REST-API.html b/doc/REST-API.html deleted file mode 100644 index d14c98c..0000000 --- a/doc/REST-API.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - Shaarli – REST API - - - - - - - -

    REST API

    -

    Usage

    -

    See the REST API documentation.

    -

    Authentication

    -

    All requests to Shaarli's API must include a JWT token to verify their authenticity.

    -

    This token has to be included as an HTTP header called Authentication: Bearer <jwt token>.

    -

    JWT resources :

    - -

    Shaarli JWT Token

    -

    JWT tokens are composed by three parts, separated by a dot . and encoded in base64:

    -
    [header].[payload].[signature][](.html)
    - -

    Shaarli only allow one hash algorithm, so the header will always be the same:

    -
    {
    -    "typ": "JWT",
    -    "alg": "HS512"
    -}
    -

    Encoded in base64, it gives:

    -
    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==
    -

    Payload

    -

    Validity duration

    -

    To avoid infinite token validity, JWT tokens must include their creation date in UNIX timestamp format (timezone independant - UTC) under the key iat (issued at). This token will be accepted during 9 minutes.

    -
    {
    -    "iat": 1468663519
    -}
    -

    See RFC reference.

    -

    Signature

    -

    The signature authenticate the token validity. It contains the base64 of the header and the body, separated by a dot ., hashed in SHA512 with the API secret available in Shaarli administration page.

    -

    Signature example with PHP:

    -
    $content = base64_encode($header) . '.' . base64_encode($payload);
    -$signature = hash_hmac('sha512', $content, $secret);
    -

    Complete example

    -

    PHP

    -
    function generateToken($secret) {
    -    $header = base64_encode('{
    -        "typ": "JWT",
    -        "alg": "HS512"
    -    }');
    -    $payload = base64_encode('{
    -        "iat": '. time() .'
    -    }');
    -    $signature = hash_hmac('sha512', $header .'.'. $payload , $secret);
    -    return $header .'.'. $payload .'.'. $signature;
    -}
    -
    -$secret = 'mysecret';
    -$token = generateToken($secret);
    -echo $token;
    -
    -

    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==.ewogICAgICAgICJpYXQiOiAxNDY4NjY3MDQ3CiAgICB9.1d2c54fa947daf594fdbf7591796195652c8bc63bffad7f6a6db2a41c313f495a542cbfb595acade79e83f3810d709b4251d7b940bbc10b531a6e6134af63a68

    -
    -
    $options = [[](.html)
    -    'http' => [[](.html)
    -        'method' => 'GET',
    -        'jwt' => $token,
    -    ],
    -];
    -$context = stream_context_create($options);
    -file_get_contents($apiEndpoint, false, $context);
    - - diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html deleted file mode 100644 index 0ebfecc..0000000 --- a/doc/RSS-feeds.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - Shaarli – RSS feeds - - - - - - -

    RSS feeds

    -

    Feeds options

    -

    Feeds are available in ATOM with ?do=atom and RSS with do=RSS.

    -

    Options:

    -
      -
    • You can use permalinks in the feed URL to get permalink to Shaares instead of direct link to shaared URL. -
        -
      • E.G. https://my.shaarli.domain/?do=atom&permalinks.
      • -
    • -
    • You can use nb parameter in the feed URL to specify the number of Shaares you want in a feed (default if not specified: 50). The keyword all is available if you want everything. -
        -
      • https://my.shaarli.domain/?do=atom&permalinks&nb=42
      • -
      • https://my.shaarli.domain/?do=atom&permalinks&nb=all
      • -
    • -
    -

    RSS Feeds or Picture Wall for a specific search/tag

    -

    It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag.

    -

    For example, if you want to subscribe only to links tagged photography:

    -
      -
    • Go to the desired Shaarli instance.
    • -
    • Search for the photography tag in the Filter by tag box. Links tagged photography are displayed.
    • -
    • Click on the RSS Feed button.
    • -
    • You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag.
    • -
    • The same method also works for a full-text search (Search box) and for the Picture Wall (want to only see pictures about nature?)
    • -
    • You can also build the URLs manually: -
        -
      • https://my.shaarli.domain/?do=rss&searchtags=nature
      • -
      • https://my.shaarli.domain/links/?do=picwall&searchterm=poney
      • -
    • -
    -

    (images/rss-filter-2.png)

    - - diff --git a/doc/Release-Shaarli.html b/doc/Release-Shaarli.html deleted file mode 100644 index fa690c7..0000000 --- a/doc/Release-Shaarli.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - Shaarli – Release Shaarli - - - - - - - -

    Release Shaarli

    -

    See Git - Maintaining a project - Tagging your [](.html)
    -releases
    .

    -

    Prerequisites

    -

    This guide assumes that you have:

    -
      -
    • a GPG key matching your GitHub authentication credentials -
        -
      • i.e., the email address identified by the GPG key is the same as the one in your ~/.gitconfig
      • -
    • -
    • a GitHub fork of Shaarli
    • -
    • a local clone of your Shaarli fork, with the following remotes: -
        -
      • origin pointing to your GitHub fork
      • -
      • upstream pointing to the main Shaarli repository
      • -
    • -
    • maintainer permissions on the main Shaarli repository, to: -
        -
      • push the signed tag
      • -
      • create a new release
      • -
    • -
    • Composer and Pandoc need to be installed
    • -
    -

    GitHub release draft and CHANGELOG.md

    -

    See http://keepachangelog.com/en/0.3.0/ for changelog formatting.

    -

    GitHub release draft

    -

    GitHub allows drafting the release note for the upcoming release, from the Releases page. This way, the release note can be drafted while contributions are merged to master.

    -

    CHANGELOG.md

    -

    This file should contain the same information as the release note draft for the upcoming version.

    -

    Update it to:

    -
      -
    • add new entries (additions, fixes, etc.)
    • -
    • mark the current version as released by setting its date and link
    • -
    • add a new section for the future unreleased version
    • -
    -
    $ cd /path/to/shaarli
    -
    -$ nano CHANGELOG.md
    -
    -[...][](.html)
    -## vA.B.C - UNRELEASED
    -TBA
    -
    -## [vX.Y.Z](https://github.com/shaarli/Shaarli/releases/tag/vX.Y.Z) - YYYY-MM-DD[](.html)
    -[...][](.html)
    -

    Increment the version code, create and push a signed tag

    -

    Bump Shaarli's version

    -
    $ cd /path/to/shaarli
    -
    -# create a new branch
    -$ git fetch upstream
    -$ git checkout upstream/master -b v0.5.0
    -
    -# bump the version number
    -$ vim index.php shaarli_version.php
    -
    -# rebuild the documentation from the wiki
    -$ make htmldoc
    -
    -# commit the changes
    -$ git add index.php shaarli_version.php doc
    -$ git commit -s -m "Bump version to v0.5.0"
    -
    -# push the commit on your GitHub fork
    -$ git push origin v0.5.0
    -

    Create and merge a Pull Request

    -

    This one is pretty straightforward ;-)

    -

    Create and push a signed tag

    -
    # update your local copy
    -$ git checkout master
    -$ git fetch upstream
    -$ git pull upstream master
    -
    -# create a signed tag
    -$ git tag -s -m "Release v0.5.0" v0.5.0
    -
    -# push it to "upstream"
    -$ git push --tags upstream
    -

    Verify a signed tag

    -

    v0.5.0 is the first GPG-signed tag pushed on the Community Shaarli.

    -

    Let's have a look at its signature!

    -
    $ cd /path/to/shaarli
    -$ git fetch upstream
    -
    -# get the SHA1 reference of the tag
    -$ git show-ref tags/v0.5.0
    -f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
    -
    -# verify the tag signature information
    -$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
    -gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
    -gpg: Good signature from "VirtualTam <virtualtam@flibidi.net>" [ultimate][](.html)
    -

    Publish the GitHub release

    -

    Update release badges

    -

    Update README.md so version badges display and point to the newly released Shaarli version(s).

    -

    Create a GitHub release from a Git tag

    -

    From the previously drafted release:

    -
      -
    • edit the release notes (if needed)
    • -
    • specify the appropriate Git tag
    • -
    • publish the release
    • -
    • profit!
    • -
    -

    Generate and upload all-in-one release archives

    -

    Users with a shared hosting may have:

    -
      -
    • no SSH access
    • -
    • no possibility to install PHP packages or server extensions
    • -
    • no possibility to run scripts
    • -
    -

    To ease Shaarli installations, it is possible to generate and upload additional release archives,
    -that will contain Shaarli code plus all required third-party libraries:

    -
    $ make release_archive
    -

    This will create the following archives:

    -
      -
    • shaarli-vX.Y.Z-full.tar
    • -
    • shaarli-vX.Y.Z-full.zip
    • -
    -

    The archives need to be manually uploaded on the previously created GitHub release.

    - - diff --git a/doc/Security.html b/doc/Security.html deleted file mode 100644 index 12b46fa..0000000 --- a/doc/Security.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - Shaarli – Security - - - - - - - -

    Security

    -

    Client browser

    -
      -
    • Shaarli relies on HTTP_REFERER for some functions (like redirects and clicking on tags). If you have disabled or masqueraded HTTP_REFERER in your browser, some features of Shaarli may not work
    • -
    -

    PHP

    -
      -
    • magic_quotes is an horrible option of PHP which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts.
    • -
    -

    Server and sessions

    -
      -
    • Directories are protected using .htaccess files
    • -
    • Forms are protected against XSRF (Cross-site requests forgery):
    • -
    • Forms which act on data (save,delete…) contain a token generated by the server.
    • -
    • Any posted form which does not contain a valid token is rejected.
    • -
    • Any token can only be used once.
    • -
    • Tokens are attached to the session and cannot be reused in another session.
    • -
    • Sessions automatically expire after 60 minutes.
    • -
    • Sessions are protected against hijacking: the session ID cannot be used from a different IP address.
    • -
    -

    Shaarli datastore and configuration

    -
      -
    • The password is salted, hashed and stored in the data subdirectory, in a PHP file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks.
    • -
    • Links are stored as an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file.
    • -
    • Even if the server does not support .htaccess files, the data file will still not be readable by URL.
    • -
    • The database looks like this:

      -
      <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
      -...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
    • -
    • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg. 20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.

    • -
    - - diff --git a/doc/Server-configuration.html b/doc/Server-configuration.html deleted file mode 100644 index 0e6b220..0000000 --- a/doc/Server-configuration.html +++ /dev/null @@ -1,459 +0,0 @@ - - - - - - - Shaarli – Server configuration - - - - - - - -

    Server configuration

    -

    Example virtual host configurations for popular web servers

    - -

    Prerequisites

    -

    Shaarli

    -
      -
    • Shaarli is installed in a directory readable/writeable by the user
    • -
    • the correct read/write permissions have been granted to the web server user and/or group
    • -
    • for HTTPS / SSL:
    • -
    • a key pair (public, private) and a certificate have been generated
    • -
    • the appropriate server SSL extension is installed and active
    • -
    -

    HTTPS, TLS and self-signed certificates

    -

    Related guides:

    - -

    Proxies

    -

    If Shaarli is served behind a proxy (i.e. there is a proxy server between clients and the web server hosting Shaarli), please refer to the proxy server documentation for proper configuration. In particular, you have to ensure that the following server variables are properly set:

    -
      -
    • X-Forwarded-Proto;
    • -
    • X-Forwarded-Host;
    • -
    • X-Forwarded-For.
    • -
    -

    See also proxy-related issues.

    -

    Apache

    -

    Minimal

    -
    <VirtualHost *:80>
    -    ServerName   shaarli.my-domain.org
    -    DocumentRoot /absolute/path/to/shaarli/
    -</VirtualHost>
    -

    Debug - Log all the things!

    -

    This configuration will log both Apache and PHP errors, which may prove useful to identify server configuration errors.

    -

    See:

    - -
    <VirtualHost *:80>
    -    ServerName   shaarli.my-domain.org
    -    DocumentRoot /absolute/path/to/shaarli/
    -
    -    LogLevel  warn
    -    ErrorLog  /var/log/apache2/shaarli-error.log
    -    CustomLog /var/log/apache2/shaarli-access.log combined
    -
    -    php_flag  log_errors on
    -    php_flag  display_errors on
    -    php_value error_reporting 2147483647
    -    php_value error_log /var/log/apache2/shaarli-php-error.log
    -</VirtualHost>
    -

    Standard - Keep access and error logs

    -
    <VirtualHost *:80>
    -    ServerName   shaarli.my-domain.org
    -    DocumentRoot /absolute/path/to/shaarli/
    -
    -    LogLevel  warn
    -    ErrorLog  /var/log/apache2/shaarli-error.log
    -    CustomLog /var/log/apache2/shaarli-access.log combined
    -</VirtualHost>
    -

    Paranoid - Redirect HTTP (:80) to HTTPS (:443)

    -

    See Server-side TLS (Mozilla).

    -
    <VirtualHost *:443>
    -    ServerName   shaarli.my-domain.org
    -    DocumentRoot /absolute/path/to/shaarli/
    -
    -    SSLEngine             on
    -    SSLCertificateFile    /absolute/path/to/the/website/certificate.pem
    -    SSLCertificateKeyFile /absolute/path/to/the/website/key.key
    -
    -    <Directory /absolute/path/to/shaarli/>
    -        AllowOverride All
    -        Options Indexes FollowSymLinks MultiViews
    -        Order allow,deny
    -        allow from all
    -    </Directory>
    -
    -    LogLevel  warn
    -    ErrorLog  /var/log/apache2/shaarli-error.log
    -    CustomLog /var/log/apache2/shaarli-access.log combined
    -</VirtualHost>
    -<VirtualHost *:80>
    -    ServerName   shaarli.my-domain.org
    -    Redirect 301 / https://shaarli.my-domain.org
    -
    -    LogLevel  warn
    -    ErrorLog  /var/log/apache2/shaarli-error.log
    -    CustomLog /var/log/apache2/shaarli-access.log combined
    -</VirtualHost>
    -

    .htaccess

    -

    Shaarli use .htaccess Apache files to deny access to files that shouldn't be directly accessed (datastore, config, etc.). You need the directive AllowOverride All in your virtual host configuration for them to work.

    -

    Warning: If you use Apache 2.2 or lower, you need mod_version to be installed and enabled.

    -

    Apache module mod_rewrite must be enabled to use the REST API. URL rewriting rules for the Slim microframework are stated in the root .htaccess file.

    -

    LightHttpd

    -

    Nginx

    -

    Foreword

    -

    Nginx does not natively interpret PHP scripts; to this effect, we will run a FastCGI service, to which Nginx's FastCGI module will proxy all requests to PHP resources.

    -

    Required packages:

    - -

    Official documentation:

    - -

    Community resources:

    - -

    Common setup

    -

    Once Nginx and PHP-FPM are installed, we need to ensure:

    -
      -
    • Nginx and PHP-FPM are running using the same user and group
    • -
    • both these user and group have -
        -
      • read permissions for Shaarli resources
      • -
      • execute permissions for Shaarli directories AND their parent directories
      • -
    • -
    -

    On a production server:

    -
      -
    • user:group will likely be http:http, www:www or www-data:www-data
    • -
    • files will be located under /var/www, /var/http or /usr/share/nginx
    • -
    -

    On a development server:

    -
      -
    • files may be located in a user's home directory
    • -
    • in this case, make sure both Nginx and PHP-FPM are running as the local user/group!
    • -
    -

    For all following configuration examples, this user/group pair will be used:

    -
      -
    • user:group = john:users,
    • -
    -

    which corresponds to the following service configuration:

    -
    ; /etc/php/php-fpm.conf
    -user = john
    -group = users
    -
    -[...][](.html)
    -listen.owner = john
    -listen.group = users
    -
    # /etc/nginx/nginx.conf
    -user john users;
    -
    -http {
    -    [...][](.html)
    -}
    -

    (Optional) Increase the maximum file upload size

    -

    Some bookmark dumps generated by web browsers can be huge due to the presence of Base64-encoded images and favicons, as well as extra verbosity when nesting links in (sub-)folders.

    -

    To increase upload size, you will need to modify both nginx and PHP configuration:

    -
    # /etc/nginx/nginx.conf
    -
    -http {
    -    [...][](.html)
    -
    -    client_max_body_size 10m;
    -
    -    [...][](.html)
    -}
    -
    # /etc/php5/fpm/php.ini
    -
    -[...][](.html)
    -post_max_size = 10M
    -[...][](.html)
    -upload_max_filesize = 10M
    -

    Minimal

    -

    WARNING: Use for development only!

    -
    user john users;
    -worker_processes  1;
    -events {
    -    worker_connections  1024;
    -}
    -
    -http {
    -    include            mime.types;
    -    default_type       application/octet-stream;
    -    keepalive_timeout  20;
    -
    -    index index.html index.php;
    -
    -    server {
    -        listen       80;
    -        server_name  localhost;
    -        root         /home/john/web;
    -
    -        access_log  /var/log/nginx/access.log;
    -        error_log   /var/log/nginx/error.log;
    -
    -        location /shaarli/ {
    -            try_files $uri /shaarli/index.php$is_args$args;
    -            access_log  /var/log/nginx/shaarli.access.log;
    -            error_log   /var/log/nginx/shaarli.error.log;
    -        }
    -
    -        location ~ (index)\.php$ {
    -            try_files $uri =404;
    -            fastcgi_split_path_info ^(.+\.php)(/.+)$;
    -            fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    -            fastcgi_index  index.php;
    -            include        fastcgi.conf;
    -        }
    -    }
    -}
    -

    Modular

    -

    The previous setup is sufficient for development purposes, but has several major caveats:

    -
      -
    • every content that does not match the PHP rule will be sent to client browsers: -
        -
      • dotfiles - in our case, .htaccess
      • -
      • temporary files, e.g. Vim or Emacs files: index.php~
      • -
    • -
    • asset / static resource caching is not optimized
    • -
    • if serving several PHP sites, there will be a lot of duplication: location /shaarli/, location /mysite/, etc.
    • -
    -

    To solve this, we will split Nginx configuration in several parts, that will be included when needed:

    -
    # /etc/nginx/deny.conf
    -location ~ /\. {
    -    # deny access to dotfiles
    -    access_log off;
    -    log_not_found off;
    -    deny all;
    -}
    -
    -location ~ ~$ {
    -    # deny access to temp editor files, e.g. "script.php~"
    -    access_log off;
    -    log_not_found off;
    -    deny all;
    -}
    -
    # /etc/nginx/php.conf
    -location ~ (index)\.php$ {
    -    # Slim - split URL path into (script_filename, path_info)
    -    try_files $uri =404;
    -    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    -
    -    # filter and proxy PHP requests to PHP-FPM
    -    fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    -    fastcgi_index  index.php;
    -    include        fastcgi.conf;
    -}
    -
    -location ~ \.php$ {
    -    # deny access to all other PHP scripts
    -    deny all;
    -}
    -
    # /etc/nginx/static_assets.conf
    -location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
    -    expires    max;
    -    add_header Pragma public;
    -    add_header Cache-Control "public, must-revalidate, proxy-revalidate";
    -}
    -
    # /etc/nginx/nginx.conf
    -[...][](.html)
    -
    -http {
    -    [...][](.html)
    -
    -    root        /home/john/web;
    -    access_log  /var/log/nginx/access.log;
    -    error_log   /var/log/nginx/error.log;
    -
    -    server {
    -        # virtual host for a first domain
    -        listen       80;
    -        server_name  my.first.domain.org;
    -
    -        location /shaarli/ {
    -            # Slim - rewrite URLs
    -            try_files $uri /shaarli/index.php$is_args$args;
    -
    -            access_log  /var/log/nginx/shaarli.access.log;
    -            error_log   /var/log/nginx/shaarli.error.log;
    -        }
    -
    -        location = /shaarli/favicon.ico {
    -            # serve the Shaarli favicon from its custom location
    -            alias /var/www/shaarli/images/favicon.ico;
    -        }
    -
    -        include deny.conf;
    -        include static_assets.conf;
    -        include php.conf;
    -    }
    -
    -    server {
    -        # virtual host for a second domain
    -        listen       80;
    -        server_name  second.domain.com;
    -
    -        location /minigal/ {
    -            access_log  /var/log/nginx/minigal.access.log;
    -            error_log   /var/log/nginx/minigal.error.log;
    -        }
    -
    -        include deny.conf;
    -        include static_assets.conf;
    -        include php.conf;
    -    }
    -}
    -

    Redirect HTTP to HTTPS

    -

    Assuming you have generated a (self-signed) key and certificate, and they are located under /home/john/ssl/localhost.{key,crt}, it is pretty straightforward to set an HTTP (:80) to HTTPS (:443) redirection to force SSL/TLS usage.

    -
    # /etc/nginx/nginx.conf
    -[...][](.html)
    -
    -http {
    -    [...][](.html)
    -
    -    index index.html index.php;
    -
    -    root        /home/john/web;
    -    access_log  /var/log/nginx/access.log;
    -    error_log   /var/log/nginx/error.log;
    -
    -    server {
    -        listen       80;
    -        server_name  localhost;
    -
    -        return 301 https://localhost$request_uri;
    -    }
    -
    -    server {
    -        listen       443 ssl;
    -        server_name  localhost;
    -
    -        ssl_certificate      /home/john/ssl/localhost.crt;
    -        ssl_certificate_key  /home/john/ssl/localhost.key;
    -
    -        location /shaarli/ {
    -            # Slim - rewrite URLs
    -            try_files $uri /index.php$is_args$args;
    -
    -            access_log  /var/log/nginx/shaarli.access.log;
    -            error_log   /var/log/nginx/shaarli.error.log;
    -        }
    -
    -        location = /shaarli/favicon.ico {
    -            # serve the Shaarli favicon from its custom location
    -            alias /var/www/shaarli/images/favicon.ico;
    -        }
    -
    -        include deny.conf;
    -        include static_assets.conf;
    -        include php.conf;
    -    }
    -}
    - - diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html deleted file mode 100644 index 79d7411..0000000 --- a/doc/Server-requirements.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - Shaarli – Server requirements - - - - - - -

    Server requirements

    -

    PHP

    -

    Release information

    - -

    Supported versions

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    VersionStatusShaarli compatibility
    7.1Supported (v0.9.x)
    7.0Supported
    5.6Supported
    5.5EOL: 2016-07-10
    5.4EOL: 2015-09-14✅ (up to Shaarli 0.8.x)
    5.3EOL: 2014-08-14✅ (up to Shaarli 0.8.x)
    -

    See also:

    - -

    Dependency management

    -

    Starting with Shaarli v0.8.x, Composer is used to resolve,
    -download and install third-party PHP dependencies.

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    LibraryRequired?Usage
    shaarli/netscape-bookmark-parserAllImport bookmarks from Netscape files
    erusev/parsedownAllParse MarkDown syntax for the MarkDown plugin
    slim/slimAllHandle routes and middleware for the REST API
    -

    Extensions

    - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ExtensionRequired?Usage
    opensslAllOpenSSL, HTTPS
    php-mbstringCentOS, Fedora, RHEL, Windowsmultibyte (Unicode) string support
    php-gdoptionalthumbnail resizing
    php-intloptionallocalized text sorting (e.g. e->è->f)
    php-curloptionalusing cURL for fetching webpages and thumbnails in a more robust way
    - - diff --git a/doc/Server-security.html b/doc/Server-security.html deleted file mode 100644 index 4f7ff46..0000000 --- a/doc/Server-security.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - Shaarli – Server security - - - - - - - -

    Server security

    -

    php.ini

    -

    PHP settings are defined in:

    -
      -
    • a main configuration file, usually found under /etc/php5/php.ini; some distributions provide different configuration environments, e.g. -
        -
      • /etc/php5/php.ini - used when running console scripts
      • -
      • /etc/php5/apache2/php.ini - used when a client requests PHP resources from Apache
      • -
      • /etc/php5/php-fpm.conf - used when PHP requests are proxied to PHP-FPM
      • -
    • -
    • additional configuration files/entries, depending on the installed/enabled extensions: -
        -
      • /etc/php/conf.d/xdebug.ini
      • -
    • -
    -

    Locate .ini files

    -

    Console environment

    -
    $ php --ini
    -Configuration File (php.ini) Path: /etc/php
    -Loaded Configuration File:         /etc/php/php.ini
    -Scan for additional .ini files in: /etc/php/conf.d
    -Additional .ini files parsed:      /etc/php/conf.d/xdebug.ini
    -

    Server environment

    -
      -
    • create a phpinfo.php script located in a path supported by the web server, e.g. -
        -
      • Apache (with user dirs enabled): /home/myself/public_html/phpinfo.php
      • -
      • /var/www/test/phpinfo.php
      • -
    • -
    • make sure the script is readable by the web server user/group (usually, www, www-data or httpd)
    • -
    • access the script from a web browser
    • -
    • look at the Loaded Configuration File and Scan this dir for additional .ini files entries

      -
      <?php phpinfo(); ?>
    • -
    -

    fail2ban

    -

    fail2ban is an intrusion prevention framework that reads server (Apache, SSH, etc.) and uses iptables profiles to block brute-force attempts:

    - -

    Read Shaarli logs to ban IPs

    -

    Example configuration:

    -
      -
    • allow 3 login attempts per IP address
    • -
    • after 3 failures, permanently ban the corresponding IP adddress
    • -
    -

    /etc/fail2ban/jail.local

    -
    [shaarli-auth][](.html)
    -enabled  = true
    -port     = https,http
    -filter   = shaarli-auth
    -logpath  = /var/www/path/to/shaarli/data/log.txt
    -maxretry = 3
    -bantime = -1
    -

    /etc/fail2ban/filter.d/shaarli-auth.conf

    -
    [INCLUDES][](.html)
    -before = common.conf
    -[Definition][](.html)
    -failregex = \s-\s<HOST>\s-\sLogin failed for user.*$
    -ignoreregex = 
    -

    Robots - Restricting search engines and web crawler traffic

    -

    Creating a robots.txt with the following contents at the root of your Shaarli installation will prevent honest web crawlers from indexing each and every link and Daily page from a Shaarli instance, thus getting rid of a certain amount of unsollicited network traffic.

    -
    User-agent: *
    -Disallow: /
    -

    See:

    - - - diff --git a/doc/Shaarli-configuration.html b/doc/Shaarli-configuration.html deleted file mode 100644 index c696c97..0000000 --- a/doc/Shaarli-configuration.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - Shaarli – Shaarli configuration - - - - - - - -

    Shaarli configuration

    -

    Shaarli configuration

    -

    Foreword

    -

    Do not edit configuration options in index.php! Your changes would be lost.

    -

    Once your Shaarli instance is installed, the file data/config.json.php is generated:

    -
      -
    • it contains all settings in JSON format, and can be edited to customize values
    • -
    • it defines which plugins are enabled(.html)
    • -
    • its values override those defined in index.php
    • -
    • it is wrap in a PHP comment to prevent anyone accessing it, regardless of server configuration
    • -
    -

    File and directory permissions

    -

    The server process running Shaarli must have:

    -
      -
    • read access to the following resources: -
        -
      • PHP scripts: index.php, application/*.php, plugins/*.php
      • -
      • 3rd party PHP and Javascript libraries: inc/*.php, inc/*.js
      • -
      • static assets: -
          -
        • CSS stylesheets: inc/*.css
        • -
        • images/*
        • -
      • -
      • RainTPL templates: tpl/*.html
      • -
    • -
    • read, write and execution access to the following directories: -
        -
      • cache - thumbnail cache
      • -
      • data - link data store, configuration options
      • -
      • pagecache - Atom/RSS feed cache
      • -
      • tmp - RainTPL page cache
      • -
    • -
    -

    On a Linux distribution:

    -
      -
    • the web server user will likely be www or http (for Apache2)
    • -
    • it will be a member of a group of the same name: www:www, http:http
    • -
    • to give it access to Shaarli, either: -
        -
      • unzip Shaarli in the default web server location (usually /var/www/) and set the web server user as the owner
      • -
      • put users in the same group as the web server, and set the appropriate access rights
      • -
    • -
    • if you have a domain / subdomain to serve Shaarli, configure the server accordingly(.html)
    • -
    -

    Configuration

    -

    In data/config.json.php.

    -

    See also Plugin System.

    -

    Credentials

    -
    -

    You shouldn't edit those.

    -
    -

    login: Login username.
    -hash: Generated password hash.
    -salt: Password salt.

    -

    General

    -

    title: Shaarli's instance title.
    -header_link: Link to the homepage.
    -links_per_page: Number of shaares displayed per page.
    -timezone: See the list of supported timezones.
    -enabled_plugins: List of enabled plugins.

    -

    Security

    -

    session_protection_disabled: Disable session cookie hijacking protection (not recommended).
    -It might be useful if your IP adress often changes.
    -ban_after: Failed login attempts before being IP banned.
    -ban_duration: IP ban duration in seconds.
    -open_shaarli: Anyone can add a new link while logged out if enabled.
    -trusted_proxies: List of trusted IP which won't be banned after failed login attemps. Useful if Shaarli is behind a reverse proxy.

    -

    Resources

    -

    data_dir: Data directory.
    -datastore: Shaarli's links database file path.
    -history: Shaarli's operation history file path.
    -updates: File path for the ran updates file.
    -log: Log file path.
    -update_check: Last update check file path.
    -raintpl_tpl: Templates directory.
    -raintpl_tmp: Template engine cache directory.
    -thumbnails_cache: Thumbnails cache directory.
    -page_cache: Shaarli's internal cache directory.
    -ban_file: Banned IP file path.

    -

    Updates

    -

    check_updates: Enable or disable update check to the git repository.
    -check_updates_branch: Git branch used to check updates (e.g. stable or master).
    -check_updates_interval: Look for new version every N seconds (default: every day).

    -

    Privacy

    -

    default_private_links: Check the private checkbox by default for every new link.
    -hide_public_links: All links are hidden while logged out.
    -hide_timestamps: Timestamps are hidden.

    -

    Feed

    -

    rss_permalinks: Enable this to redirect RSS links to Shaarli's permalinks instead of shaared URL.
    -show_atom: Display ATOM feed button.

    -

    Thumbnail

    -

    enable_thumbnails: Enable or disable thumbnail display.
    -enable_localcache: Enable or disable local cache.

    -

    Redirector

    -

    url: Redirector URL, such as anonym.to.
    -encode_url: Enable this if the redirector needs encoded URL to work properly.

    -

    Configuration file example

    -
    <?php /*
    -{
    -    "credentials": {
    -        "login": "<login>",
    -        "hash": "<password hash>",
    -        "salt": "<password salt>"
    -    },
    -    "security": {
    -        "ban_after": 4,
    -        "session_protection_disabled": false,
    -        "ban_duration": 1800,
    -        "trusted_proxies": [[](.html)
    -            "1.2.3.4",
    -            "5.6.7.8"
    -        ]
    -    },
    -    "resources": {
    -        "data_dir": "data",
    -        "config": "data\/config.php",
    -        "datastore": "data\/datastore.php",
    -        "ban_file": "data\/ipbans.php",
    -        "updates": "data\/updates.txt",
    -        "log": "data\/log.txt",
    -        "update_check": "data\/lastupdatecheck.txt",
    -        "raintpl_tmp": "tmp\/",
    -        "raintpl_tpl": "tpl\/",
    -        "thumbnails_cache": "cache",
    -        "page_cache": "pagecache"
    -    },
    -    "general": {
    -        "check_updates": true,
    -        "rss_permalinks": true,
    -        "links_per_page": 20,
    -        "default_private_links": true,
    -        "enable_thumbnails": true,
    -        "enable_localcache": true,
    -        "check_updates_branch": "stable",
    -        "check_updates_interval": 86400,
    -        "enabled_plugins": [[](.html)
    -            "markdown",
    -            "wallabag",
    -            "archiveorg"
    -        ],
    -        "timezone": "Europe\/Paris",
    -        "title": "My Shaarli",
    -        "header_link": "?"
    -    },
    -    "extras": {
    -        "show_atom": false,
    -        "hide_public_links": false,
    -        "hide_timestamps": false,
    -        "open_shaarli": false,
    -        "redirector": "http://anonym.to/?",
    -        "redirector_encode_url": false
    -    },
    -    "general": {
    -        "header_link": "?",
    -        "links_per_page": 20,
    -        "enabled_plugins": [[](.html)
    -            "markdown",
    -            "wallabag"
    -        ],
    -        "timezone": "Europe\/Paris",
    -        "title": "My Shaarli"
    -    },
    -    "updates": {
    -        "check_updates": true,
    -        "check_updates_branch": "stable",
    -        "check_updates_interval": 86400
    -    },
    -    "feed": {
    -        "rss_permalinks": true,
    -        "show_atom": false
    -    },
    -    "privacy": {
    -        "default_private_links": true,
    -        "hide_public_links": false,
    -        "hide_timestamps": false
    -    },
    -    "thumbnail": {
    -        "enable_thumbnails": true,
    -        "enable_localcache": true
    -    },
    -    "redirector": {
    -        "url": "http://anonym.to/?",
    -        "encode_url": false
    -    },
    -    "plugins": {
    -        "WALLABAG_URL": "http://demo.wallabag.org",
    -        "WALLABAG_VERSION": "1"
    -    }
    -} ?>
    -

    Additional configuration

    -

    The playvideos plugin may require that you adapt your server's
    -Content Security Policy
    -configuration to work properly.(.html)

    - - diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html deleted file mode 100644 index f3682f8..0000000 --- a/doc/Sharing-button.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - Shaarli – Sharing button - - - - - - -

    Sharing button

    -

    Add the sharing button (bookmarklet) to your browser

    -
      -
    • Open your Shaarli and Login
    • -
    • Click the Tools button in the top bar
    • -
    • Drag the ✚Shaare link button, and drop it to your browser's bookmarks bar.
    • -
    -

    This bookmarklet button is compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar.

    -

    - -
      -
    • When you are visiting a webpage you would like to share with Shaarli, click the bookmarklet you just added.
    • -
    • A window opens.
    • -
    • You can freely edit title, description, tags... to find it later using the text search or tag filtering.
    • -
    • You will be able to edit this link later using the
    • -
    • You can also check the “Private” box so that the link is saved but only visible to you.
    • -
    • Click Save.Voilà! Your link is now shared.
    • -
    -

    Troubleshooting: The bookmarklet doesn't work with a few website (e.g. Github.com)

    -

    Websites which enforce Content Security Policy (CSP), such as github.com, disallow usage of bookmarklets. Unfortunatly, there is nothing Shaarli can do about it.

    -

    See #196.

    -

    There is an open bug for both Firefox and Chromium:

    - - - diff --git a/doc/Static-analysis.html b/doc/Static-analysis.html deleted file mode 100644 index a95d195..0000000 --- a/doc/Static-analysis.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - Shaarli – Static analysis - - - - - - -

    Static analysis

    -

    WIP

    -

    This topic is currently being discussed here:

    - -

    Usage

    -

    Static analysis tools can be installed with Composer, and used through Shaarli's Makefile.

    -

    For an overview of the available features, see:

    - - - diff --git a/doc/Theming.html b/doc/Theming.html deleted file mode 100644 index 6b5dac3..0000000 --- a/doc/Theming.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - - Shaarli – Theming - - - - - - - -

    Theming

    -

    Foreword

    -

    There are two ways of customizing how Shaarli looks:

    -
      -
    1. by using a custom CSS to override Shaarli's CSS
    2. -
    3. by using a full theme that provides its own RainTPL templates, CSS and Javascript resources
    4. -
    -

    Custom CSS

    -

    Shaarli's appearance can be modified by adding CSS rules to:

    -
      -
    • Shaarli < v0.9.0: inc/user.css
    • -
    • Shaarli >= v0.9.0: data/user.css
    • -
    -

    This file allows overriding rules defined in the template CSS files (only add changed rules), or define a whole new theme.

    -

    Note: Do not edit tpl/default/css/shaarli.css! Your changes would be overridden when updating Shaarli.

    -

    See also Download CSS styles from an OPML list

    -

    Themes

    -

    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

    -

    Installation:

    -
      -
    • find a theme you'd like to install
    • -
    • copy or clone the theme folder under tpl/<a_sweet_theme>
    • -
    • enable the theme: -
        -
      • Shaarli < v0.9.0: edit data/config.json.php and set the value of raintpl_tpl to the new theme name:
        -"raintpl_tpl": "tpl\/my-template\/"
      • -
      • Shaarli >= v0.9.0: select the theme through the Tools page
      • -
    • -
    -

    Community CSS & themes

    -

    Custom CSS

    - -

    Themes

    - -

    Shaarli forks

    - -

    Example installation: AlbinoMouse theme

    -

    With the following configuration:

    -
      -
    • Apache 2 / PHP 5.6
    • -
    • user sites are enabled, e.g. /home/user/public_html/somedir is served as http://localhost/~user/somedir
    • -
    • http is the name of the Apache user
    • -
    -
    $ cd ~/public_html
    -
    -# clone repositories
    -$ git clone https://github.com/shaarli/Shaarli.git shaarli
    -$ pushd shaarli/tpl
    -$ git clone https://github.com/alexisju/albinomouse-template.git
    -$ popd
    -
    -# set access rights for Apache
    -$ chgrp -R http shaarli
    -$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
    -

    Get config written:

    -
      -
    • go to the freshly installed site
    • -
    • fill the install form
    • -
    • log in to Shaarli
    • -
    -

    Edit Shaarli's configuration|Shaarli configuration:

    -
    # the file should be owned by Apache, thus not writeable => sudo
    -$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
    - - diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html deleted file mode 100644 index f43e6ed..0000000 --- a/doc/Troubleshooting.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - Shaarli – Troubleshooting - - - - - - - -

    Troubleshooting

    -

    Browser

    -

    Redirection issues (HTTP Referer)

    -

    Depending on its configuration and installed plugins, the browser may remove or alter (spoof) HTTP referers, thus preventing Shaarli from properly redirecting between pages.

    -

    See:

    - -

    Firefox HTTP Referer options

    -

    HTTP settings are available by browsing about:config, here are the available settings and their values.

    -

    network.http.sendRefererHeader - determines when to send the Referer HTTP header

    -
      -
    • 0: Never send the referring URL -
        -
      • not recommended, may break some sites
      • -
    • -
    • 1: Send only on clicked links
    • -
    • 2 (default): Send for links and images
    • -
    -

    network.http.referer.XOriginPolicy - Cross-domain origin policy

    -
      -
    • 0 (default): Always send
    • -
    • 1: Send if base domains match
    • -
    • 2: Send if hosts match
    • -
    -

    network.http.referer.spoofSource - Referer spoofing (~faking)

    -
      -
    • false (default): real referer
    • -
    • true: spoof referer (use target URI as referer)
    • -
    • known to break some functionality in Shaarli
    • -
    -

    network.http.referer.trimmingPolicy - trim the URI not to send a full Referer

    -
      -
    • 0 (default): send full URI
    • -
    • 1: scheme+host+port+path
    • -
    • 2: scheme+host+port
    • -
    -

    Firefox, localhost and redirections

    -

    localhost is not a proper Fully Qualified Domain Name (FQDN); if Firefox has been set up to spoof referers, or only accept requests from the same base domain/host, Shaarli redirections will not work properly.

    -

    To solve this, assign a local domain to your host, e.g.

    -
    127.0.0.1 localhost desktop localhost.lan
    -::1       localhost desktop localhost.lan
    -

    and browse Shaarli at http://localhost.lan/.

    -

    Related threads:

    - -

    Login

    -

    I forgot my password!

    -

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    -

    I'm locked out - Login bruteforce protection

    -

    Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

    -

    To remove the current IP bans, delete the file data/ipbans.php

    -

    List of all login attempts

    -

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
    -Search for failed in this file to look for unauthorized login attempts.

    -

    Hosting problems

    -

    Old PHP versions

    -
      -
    • On free.fr : free.fr now support php 5.6.x(link)and so support now the tag autocompletion but you have to do the following : At the root of your webspace create a sessions directory and a .htaccess file containing:
    • -
    -
    <IfDefine Free>
    -php56 1
    -</IfDefine>
    -
      -
    • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
    • -
    • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
    • -
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    • -
    -
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    -// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    -//if (strpos($status,'200 OK')) $title=html_extract_title($data);
    -
      -
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • -
    • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
    • -
    -

    Dates are not properly formatted

    -

    Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

    -

    Problems on CentOS servers

    -

    On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

    -

    My session expires! I can't stay logged in

    -

    This can be caused by several things:

    -
      -
    • Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a session directory on the root of your website.) You may need to create the session directory of set it up.
    • -
    • Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the sessions subdirectory and add ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');. Make sure this directory is not browsable !)
    • -
    • If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses).
    • -
    • Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those.
    • -
    • You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time.
    • -
    • If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions.
    • -
    -

    Sessions do not seem to work correctly on your server

    -

    Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

    -

    pubsubhubbub support

    -

    Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config'['PUBSUBHUB_URL'] in your config.php]('PUBSUBHUB_URL']-in-your-config.php`.html)

    - - diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html deleted file mode 100644 index 0961146..0000000 --- a/doc/Unit-tests.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - Shaarli – Unit tests - - - - - - - -

    Unit tests

    -

    Setup your environment for tests

    -

    The framework used is PHPUnit; it can be installed with Composer, which is a dependency management tool.

    -

    Regarding Composer, you can either use:

    -
      -
    • a system-wide version, e.g. installed through your distro's package manager
    • -
    • a local version, downloadable here
    • -
    -

    Sample usage

    -
    # system-wide version
    -$ composer install
    -$ composer update
    -
    -# local version
    -$ php composer.phar self-update
    -$ php composer.phar install
    -$ php composer.phar update
    -

    Install Shaarli dev dependencies

    -
    $ cd /path/to/shaarli
    -$ composer update
    -

    Install and enable Xdebug to generate PHPUnit coverage reports

    -

    For Debian-based distros:

    -
    $ aptitude install php5-xdebug
    -

    For ArchLinux:

    -
    $ pacman -S xdebug
    -

    Then add the following line to /etc/php/php.ini:

    -
    zend_extension=xdebug.so
    -

    Run unit tests

    -

    Successful test suite:

    -
    $ make test
    -
    --------
    -PHPUNIT
    --------
    -PHPUnit 4.6.9 by Sebastian Bergmann and contributors.
    -
    -Configuration read from /home/virtualtam/public_html/shaarli/phpunit.xml
    -
    -....................................
    -
    -Time: 759 ms, Memory: 8.25Mb
    -
    -OK (36 tests, 65 assertions)
    -

    Test suite with failures and errors:

    -
    $ make test
    --------
    -PHPUNIT
    --------
    -PHPUnit 4.6.9 by Sebastian Bergmann and contributors.
    -
    -Configuration read from /home/virtualtam/public_html/shaarli/phpunit.xml
    -
    -E..FF...............................
    -
    -Time: 802 ms, Memory: 8.25Mb
    -
    -There was 1 error:
    -
    -1) LinkDBTest::testConstructLoggedIn
    -Missing argument 2 for LinkDB::__construct(), called in /home/virtualtam/public_html/shaarli/tests/Link\
    -DBTest.php on line 79 and defined
    -
    -/home/virtualtam/public_html/shaarli/application/LinkDB.php:58
    -/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:79
    -
    ---
    -
    -There were 2 failures:
    -
    -1) LinkDBTest::testCheckDBNew
    -Failed asserting that two strings are equal.
    ---- Expected
    -+++ Actual
    -@@ @@
    --'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'
    -+'85eab0c610d4f68025f6ed6e6b6b5fabd4b55834'
    -
    -/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:121
    -
    -2) LinkDBTest::testCheckDBLoad
    -Failed asserting that two strings are equal.
    ---- Expected
    -+++ Actual
    -@@ @@
    --'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'
    -+'85eab0c610d4f68025f6ed6e6b6b5fabd4b55834'
    -
    -/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:133
    -
    -FAILURES!
    -Tests: 36, Assertions: 63, Errors: 1, Failures: 2.
    -

    Test results and coverage

    -

    By default, PHPUnit will run all suitable tests found under the tests directory.

    -

    Each test has 3 possible outcomes:

    -
      -
    • . - success
    • -
    • F - failure: the test was run but its results are invalid
    • -
    • the code does not behave as expected
    • -
    • dependencies to external elements: globals, session, cache...
    • -
    • E - error: something went wrong and the tested code has crashed
    • -
    • typos in the code, or in the test code
    • -
    • dependencies to missing external elements
    • -
    -

    If Xdebug has been installed and activated, two coverage reports will be generated:

    -
      -
    • a summary in the console
    • -
    • a detailed HTML report with metrics for tested code
    • -
    • to open it in a web browser: firefox coverage/index.html &
    • -
    -

    Executing specific tests

    -

    Add a @group annotation in a test class or method comment:

    -
    /**
    - * Netscape bookmark import
    - * @group WIP
    - */
    -class BookmarkImportTest extends PHPUnit_Framework_TestCase
    -{
    -   [...][](.html)
    -}
    -

    To run all tests annotated with @group WIP:

    -
    $ vendor/bin/phpunit --group WIP tests/
    - - diff --git a/doc/Upgrade-and-migration.html b/doc/Upgrade-and-migration.html deleted file mode 100644 index 667215a..0000000 --- a/doc/Upgrade-and-migration.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - Shaarli – Upgrade and migration - - - - - - - -

    Upgrade and migration

    -

    Preparation

    -

    Note your current version

    -

    If anything goes wrong, it's important for us to know which version you're upgrading from.
    -The current version is present in the version.php file.

    -

    Backup your data

    -

    Shaarli stores all user data under the data directory:

    -
      -
    • data/config.php - main configuration file
    • -
    • data/datastore.php - bookmarked links
    • -
    • data/ipbans.php - banned IP addresses
    • -
    • data/updates.txt - contains all automatic update to the configuration and datastore files already run
    • -
    -

    See Shaarli configuration for more information about Shaarli resources.

    -

    It is recommended to backup this repository before starting updating/upgrading Shaarli:

    -
      -
    • users with SSH access: copy or archive the directory to a temporary location
    • -
    • users with FTP access: download a local copy of your Shaarli installation using your favourite client
    • -
    -

    Migrating data from a previous installation

    -

    As all user data is kept under data, this is the only directory you need to worry about when migrating to a new installation, which corresponds to the following steps:

    -
      -
    • backup the data directory
    • -
    • install or update Shaarli: -
    • -
    • check or restore the data directory
    • -
    - -

    All tagged revisions can be downloaded as tarballs or ZIP archives from the releases page.

    -

    We recommend that you use the latest release tarball with the -full suffix. It contains the dependencies, please read Download and installation for git complete instructions.

    -

    Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the content of the data directory!

    -

    After upgrading, access your fresh Shaarli installation from a web browser; the configuration and data store will then be automatically updated, and new settings added to data/config.json.php (see Shaarli configuration for more details).

    -

    Upgrading with Git

    -

    Updating a community Shaarli

    -

    If you have installed Shaarli from the community Git repository, simply pull new changes from your local clone:

    -
    $ cd /path/to/shaarli
    -$ git pull
    -
    -From github.com:shaarli/Shaarli
    - * branch            master     -> FETCH_HEAD
    -Updating ebd67c6..521f0e6
    -Fast-forward
    - application/Url.php   | 1 +
    - shaarli_version.php   | 2 +-
    - tests/Url/UrlTest.php | 1 +
    - 3 files changed, 3 insertions(+), 1 deletion(-)
    -

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    -
    $ composer install --no-dev
    -
    -Loading composer repositories with package information
    -Updating dependencies
    -  - Installing shaarli/netscape-bookmark-parser (v1.0.1)
    -    Downloading: 100%
    -

    Migrating and upgrading from Sebsauvage's repository

    -

    If you have installed Shaarli from Sebsauvage's original Git repository, you can use Git remotes to update your working copy.

    -

    The following guide assumes that:

    -
      -
    • you have a basic knowledge of Git branching and remote repositories
    • -
    • the default remote is named origin and points to Sebsauvage's repository
    • -
    • the current branch is master -
        -
      • if you have personal branches containing customizations, you will need to rebase them after the upgrade; beware though, a lot of changes have been made since the community fork has been created, so things are very likely to break
      • -
    • -
    • the working copy is clean: -
        -
      • no versioned file has been locally modified
      • -
      • no untracked files are present
      • -
    • -
    -

    Step 0: show repository information

    -
    $ cd /path/to/shaarli
    -
    -$ git remote -v
    -origin  https://github.com/sebsauvage/Shaarli (fetch)
    -origin  https://github.com/sebsauvage/Shaarli (push)
    -
    -$ git branch -vv
    -* master 029f75f [origin/master] Update README.md[](.html)
    -
    -$ git status
    -On branch master
    -Your branch is up-to-date with 'origin/master'.
    -nothing to commit, working directory clean
    -

    Step 1: update Git remotes

    -
    $ git remote rename origin sebsauvage
    -$ git remote -v
    -sebsauvage  https://github.com/sebsauvage/Shaarli (fetch)
    -sebsauvage  https://github.com/sebsauvage/Shaarli (push)
    -
    -$ git remote add origin https://github.com/shaarli/Shaarli
    -$ git fetch origin
    -
    -remote: Counting objects: 3015, done.
    -remote: Compressing objects: 100% (19/19), done.
    -remote: Total 3015 (delta 446), reused 457 (delta 446), pack-reused 2550
    -Receiving objects: 100% (3015/3015), 2.59 MiB | 918.00 KiB/s, done.
    -Resolving deltas: 100% (1899/1899), completed with 48 local objects.
    -From https://github.com/shaarli/Shaarli
    - * [new branch]      master     -> origin/master[](.html)
    - * [new branch]      stable     -> origin/stable[](.html)
    -[...][](.html)
    - * [new tag]         v0.6.4     -> v0.6.4[](.html)
    - * [new tag]         v0.7.0     -> v0.7.0[](.html)
    -

    Step 2: use the stable community branch

    -
    $ git checkout origin/stable -b stable
    -Branch stable set up to track remote branch stable from origin.
    -Switched to a new branch 'stable'
    -
    -$ git branch -vv
    -  master 029f75f [sebsauvage/master] Update README.md[](.html)
    -* stable 890afc3 [origin/stable] Merge pull request #509 from ArthurHoaro/v0.6.5[](.html)
    -

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    -
    $ composer install --no-dev
    -
    -Loading composer repositories with package information
    -Updating dependencies
    -  - Installing shaarli/netscape-bookmark-parser (v1.0.1)
    -    Downloading: 100%
    -

    Optionally, you can delete information related to the legacy version:

    -
    $ git branch -D master
    -Deleted branch master (was 029f75f).
    -
    -$ git remote remove sebsauvage
    -
    -$ git remote -v
    -origin  https://github.com/shaarli/Shaarli (fetch)
    -origin  https://github.com/shaarli/Shaarli (push)
    -
    -$ git gc
    -Counting objects: 3317, done.
    -Delta compression using up to 8 threads.
    -Compressing objects: 100% (1237/1237), done.
    -Writing objects: 100% (3317/3317), done.
    -Total 3317 (delta 2050), reused 3301 (delta 2034)to
    -

    Step 3: configuration

    -

    After migrating, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to data/config.php (see Shaarli configuration for more details).

    -

    Troubleshooting

    -

    If the solutions provided here doesn't work, please open an issue specifying which version you're upgrading from and to.

    -

    You must specify an integer as a key

    -

    In v0.8.1 we changed how link keys are handled (from timestamps to incremental integers).
    -Take a look at data/updates.txt content.

    -

    updates.txt contains updateMethodDatastoreIds

    -

    Try to delete it and refresh your page while being logged in.

    -

    updates.txt doesn't exists or doesn't contain updateMethodDatastoreIds

    -
      -
    1. Create data/updates.txt if it doesn't exist.
    2. -
    3. Paste this string in the update file ;updateMethodRenameDashTags;
    4. -
    5. Login to Shaarli.
    6. -
    7. Delete the update file.
    8. -
    9. Refresh.
    10. -
    - - diff --git a/doc/Usage.html b/doc/Usage.html deleted file mode 100644 index b585588..0000000 --- a/doc/Usage.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - Shaarli – Usage - - - - - - -

    Usage

    -

    Main features

    -

    Shaarli is intended:

    -
      -
    • to share, comment and save interesting links and news
    • -
    • to bookmark useful/frequent personal links (as private links) and share them between computers
    • -
    • as a minimal blog/microblog/writing platform (no character limit)
    • -
    • as a read-it-later list (for example items tagged readlater)
    • -
    • to draft and save articles/ideas
    • -
    • to keep code snippets
    • -
    • to keep notes and documentation
    • -
    • as a shared clipboard between machines
    • -
    • as a todo list
    • -
    • to store playlists (e.g. with the music or video tags)
    • -
    • to keep extracts/comments from webpages that may disappear
    • -
    • to keep track of ongoing discussions (for example items tagged discussion)
    • -
    • to feed RSS aggregators (planets) with specific tags
    • -
    • to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...)
    • -
    -

    Using Shaarli as a blog, notepad, pastebin...

    -
      -
    • Go to your Shaarli setup and log in
    • -
    • Click the Add Link button
    • -
    • To share text only, do not enter any URL in the corresponding input field and click Add Link
    • -
    • Pick a title and enter your article, or note, in the description field; add a few tags; optionally check Private then click Save
    • -
    • Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink.
    • -
    - - diff --git a/doc/Versioning-and-Branches.html b/doc/Versioning-and-Branches.html deleted file mode 100644 index 4dfe4a9..0000000 --- a/doc/Versioning-and-Branches.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - Shaarli – Versioning and Branches - - - - - - - -

    Versioning and Branches

    -

    [WORK IN PROGRESS][](.html)

    -

    It's important to understand how Shaarli branches work, especially if you're maintaining a 3rd party tools for Shaarli (theme, plugin, etc.), to be sure stay compatible.

    -

    master branch

    -

    The master branch is the development branch. Any new change MUST go through this branch using Pull Requests.

    -

    Remarks:

    -
      -
    • This branch shouldn't be used for production as it isn't necessary stable.
    • -
    • 3rd party aren't required to be compatible with the latest changes.
    • -
    • Official plugins, themes and libraries (contained within Shaarli organization repos) must be compatible with the master branch.
    • -
    • The version in this branch is always dev.
    • -
    -

    v0.x branch

    -

    This v0.x branch, points to the latest v0.x.y release.

    -

    Explanation:

    -

    When a new version is released, it might contains a major bug which isn't detected right away. For example, a new PHP version is released, containing backward compatibility issue which doesn't work with Shaarli.

    -

    In this case, the issue is fixed in the master branch, and the fix is backported the to the v0.x branch. Then a new release is made from the v0.x branch.

    -

    This workflow allow us to fix any major bug detected, without having to release bleeding edge feature too soon.

    -

    latest branch

    -

    This branch point the latest release. It recommended to use it to get the latest tested changes.

    -

    stable branch

    -

    The stable branch doesn't contain any major bug, and is one major digit version behind the latest release.

    -

    For example, the current latest release is v0.8.3, the stable branch is an alias to the latest v0.7.x release. When the v0.9.0 version will be released, the stable will move to the latest v0.8.x release.

    -

    Remarks:

    -
      -
    • Shaarli release pace isn't fast, and the stable branch might be a few months behind the latest release.
    • -
    -

    Releases

    -

    Releases are always made from the latest v0.x branch.

    -

    Note that for every release, we manually generate a tarball which contains all Shaarli dependencies, making Shaarli's installation only one step.

    -

    Advices on 3rd party git repos workflow

    -

    Versioning

    -

    Any time a new Shaarli release is published, you should publish a new release of your repo if the changes affected you since the latest release (take a look at the changelog (Draft means not released yet) and the commit log (like tpl folder for themes)). You can either:

    -
      -
    • use the Shaarli version number, with your repo version. For example, if Shaarli v0.8.3 is released, publish a v0.8.3-1 release, where v0.8.3 states Shaarli compatibility and -1 is your own version digit for the current Shaarli version.
    • -
    • use your own versioning scheme, and state Shaarli compatibility in the release description.
    • -
    -

    Using this, any user will be able to pick the release matching his own Shaarli version.

    -

    Major bugfix backport releases

    -

    To be able to support backported fixes, it recommended to use our workflow:

    -
    # In master, fix the major bug
    -git commit -m "Katastrophe"
    -git push origin master
    -# Get your commit hash
    -git log --format="%H" -n 1
    -# Create a new branch from your latest release, let's say v0.8.2-1 (the tag name)
    -git checkout -b katastrophe v0.8.2-1
    -# Backport the fix commit to your brand new branch
    -git cherry-pick <fix commit hash>
    -git push origin katastrophe
    -# Then you just have to make a new release from the `katastrophe` branch tagged `v0.8.3-1`
    - - diff --git a/doc/_Footer.html b/doc/_Footer.html deleted file mode 100644 index 09473a3..0000000 --- a/doc/_Footer.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - Shaarli – _Footer - - - - - - -

    _Footer
    -Shaarli, the personal, minimalist, super-fast, database-free bookmarking service

    - - diff --git a/doc/_Sidebar.html b/doc/_Sidebar.html deleted file mode 100644 index d3f9456..0000000 --- a/doc/_Sidebar.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - Shaarli – _Sidebar - - - - - - -

    _Sidebar

    - - - diff --git a/doc/html/3rd-party-libraries/index.html b/doc/html/3rd-party-libraries/index.html new file mode 100644 index 0000000..c54c45f --- /dev/null +++ b/doc/html/3rd-party-libraries/index.html @@ -0,0 +1,369 @@ + + + + + + + + + + + 3rd party libraries - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    CSS

    +
      +
    • Yahoo UI CSS Reset
        +
      • resets default CSS properties for all HTML elements (overriding browsers' default values)
      • +
      • ensures custom CSS stylessheets will provide the same results on all browsers
      • +
      +
    • +
    +

    Javascript

    + +

    PHP

    + + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Backup,-restore,-import-and-export/index.html b/doc/html/Backup,-restore,-import-and-export/index.html new file mode 100644 index 0000000..ceb8017 --- /dev/null +++ b/doc/html/Backup,-restore,-import-and-export/index.html @@ -0,0 +1,411 @@ + + + + + + + + + + + Backup, restore, import and export - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    +
      +
    • Docs »
    • + + + +
    • How To »
    • + + + +
    • Backup, restore, import and export
    • +
    • + + Edit on GitHub + +
    • +
    +
    +
    +
    +
    + + +
    +

    Backup and restore the datastore file

    +

    Backup the file data/datastore.php (by FTP or SSH). Restore by putting the file back in place.

    +

    Example command:

    +
    rsync -avzP my.server.com:/var/www/shaarli/data/datastore.php datastore-$(date +%Y-%m-%d_%H%M).php
    +
    + + +

    To export links as an HTML file, under Tools > Export, choose: +- Export all to export both public and private links +- Export public to export public links only +- Export private to export private links only

    +

    Restore by using the Import feature. +* This can be done using the shaarchiver tool.

    +

    Example command:

    +
    ./export-bookmarks.py --url=https://my.server.com/shaarli --username=myusername --password=mysupersecretpassword --download-dir=./ --type=all
    +
    + + +

    Diigo

    +

    If you export your bookmark from Diigo, make sure you use the Delicious export, not the Netscape export. (Their Netscape export is broken, and they don't seem to be interested in fixing it.)

    +

    Mister Wong

    +

    See this issue for import tweaks.

    +

    SemanticScuttle

    +

    To correctly import the tags from a SemanticScuttle HTML export, edit the HTML file before importing and replace all occurences of tags= (lowercase) to TAGS= (uppercase).

    +

    Scuttle

    +

    Shaarli cannot import data directly from Scuttle. However, you can use this third party tool: https://github.com/q2apro/scuttle-to-shaarli to export the Scuttle database to the Netscape HTML format compatible with the Shaarli importer.

    + +
      +
    • Export your Shaarli links as described above.
    • +
    • For compatibility reasons, check Prepend note permalinks with this Shaarli instance's URL (useful to import bookmarks in a web browser)
    • +
    • In Firefox, open the bookmark manager (not the sidebar! Bookmarks menu > Show all bookmarks or Ctrl+Shift+B)
    • +
    • Select Import and Backup > Import bookmarks in HTML format
    • +
    +

    Your bookmarks will be imported in Firefox, ready to use, with tags and descriptions retained. "Self" (notes) shaares will still point to the Shaarli instance you exported them from, but the note text can be viewed directly in the bookmark properties inside your browser. Depending on the number of bookmarks, the import can take some time.

    +

    You may be interested in these Firefox addons to manage links imported from Shaarli

    + + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Bookmarklet/index.html b/doc/html/Bookmarklet/index.html new file mode 100644 index 0000000..e7a370b --- /dev/null +++ b/doc/html/Bookmarklet/index.html @@ -0,0 +1,375 @@ + + + + + + + + + + + Bookmarklet - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Add the sharing button (bookmarklet) to your browser

    +
      +
    • Open your Shaarli and Login
    • +
    • Click the Tools button in the top bar
    • +
    • Drag the ✚Shaare link button, and drop it to your browser's bookmarks bar.
    • +
    +

    This bookmarklet button is compatible with Firefox, Opera, Chrome and Safari. Under Opera, you can't drag'n drop the button: You have to right-click on it and add a bookmark to your personal toolbar.

    +

    + +
      +
    • When you are visiting a webpage you would like to share with Shaarli, click the bookmarklet you just added.
    • +
    • A window opens.
    • +
    • You can freely edit title, description, tags... to find it later using the text search or tag filtering.
    • +
    • You will be able to edit this link later using the edit button.
    • +
    • You can also check the “Private” box so that the link is saved but only visible to you.
    • +
    • Click Save.Voilà! Your link is now shared.
    • +
    +

    Troubleshooting: The bookmarklet doesn't work with a few website (e.g. Github.com)

    +

    Websites which enforce Content Security Policy (CSP), such as github.com, disallow usage of bookmarklets. Unfortunatly, there is nothing Shaarli can do about it.

    +

    See #196.

    +

    There is an open bug for both Firefox and Chromium:

    +
      +
    • https://bugzilla.mozilla.org/show_bug.cgi?id=866522
    • +
    • https://code.google.com/p/chromium/issues/detail?id=233903
    • +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Browsing-and-searching/index.html b/doc/html/Browsing-and-searching/index.html new file mode 100644 index 0000000..459f07c --- /dev/null +++ b/doc/html/Browsing-and-searching/index.html @@ -0,0 +1,362 @@ + + + + + + + + + + + Browsing and searching - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + + +

    Use the Search text field to search in any of the fields of all links (Title, URL, Description...)

    +

    Exclude text/tags: Use the - operator before a word or tag (example -uninteresting) to prevent entries containing (or tagged) uninteresting from showing up in the search results.

    +

    Exact text search: Use double-quotes (example "exact search") to search for the exact expression.

    +

    Both exclude patterns and exact searches can be combined with normal searches (example "exact search" term otherterm -notthis "very exact" stuff -notagain)

    + +

    Use the Filter by tags field to restrict displayed links to entries tagged with one or multiple tags (use space to separate tags).

    +

    Hidden tags: Tags starting with a dot . (example .secret) are private. They can only be seen and searched when logged in.

    +

    Alternatively you can use the Tag cloud to discover all tags and click on any of them to display related links.

    +

    To search for links that are not tagged, enter "" in the tag search field.

    +

    Filtering RSS feeds/Picture wall

    +

    RSS feeds can also be restricted to only return items matching a text/tag search: see RSS feeds.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Coding-guidelines/index.html b/doc/html/Coding-guidelines/index.html new file mode 100644 index 0000000..be2bf7e --- /dev/null +++ b/doc/html/Coding-guidelines/index.html @@ -0,0 +1,348 @@ + + + + + + + + + + + Coding guidelines - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    WIP

    +

    This topic is currently being discussed here: +- Fix coding style (static analysis) (#95) +- Continuous Integration tools & features (#130)

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Community-&-Related-software/index.html b/doc/html/Community-&-Related-software/index.html new file mode 100644 index 0000000..1de704a --- /dev/null +++ b/doc/html/Community-&-Related-software/index.html @@ -0,0 +1,419 @@ + + + + + + + + + + + Community & Related software - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Unofficial but related work on Shaarli. If you maintain one of these, please get in touch with us to help us find a way to adapt your work to our fork.

    +

    TODO: contact repos owners to see if they'd like to standardize their work with the community fork.

    +

    Community

    + +

    Articles and social media discussions

    + +

    Third party plugins

    + +

    Themes

    +

    See Theming for the list of community-contributed themes, and an installation guide.

    +

    Server apps

    +
      +
    • shaarchiver - Archive your Shaarli bookmarks and their content
    • +
    • shaarli-river - An aggregator for shaarlis with many features
    • +
    • Shaarlo - An aggregator for shaarlis with many features (a very popular running instance among french shaarliers: shaarli.fr)
    • +
    • Shaarlimages - An image-oriented aggregator for Shaarlis
    • +
    • mknexen/shaarli-api - A REST API for Shaarli
    • +
    • Self dead link - Detect dead links on shaarli. This version use the database of shaarli. Another version, can be used for other shaarli instances (but is more resource consuming).
    • +
    • Bookmark Archiver - Save an archived copy of all websites starred using browser bookmarks/Shaarli/Delicious/Instapaper/Unmark.it/Pocket/Pinboard. Outputs browseable html.
    • +
    +

    Mobile Apps

    + +

    Integration with other platforms

    + +

    Alternatives to Shaarli

    +

    See the bookmarks & link sharing section on awesome-selfhosted.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + +
    + + + + diff --git a/doc/html/Continuous-integration-tools/index.html b/doc/html/Continuous-integration-tools/index.html new file mode 100644 index 0000000..c889a96 --- /dev/null +++ b/doc/html/Continuous-integration-tools/index.html @@ -0,0 +1,367 @@ + + + + + + + + + + + Continuous integration tools - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    +
      +
    • Docs »
    • + + + +
    • Development »
    • + + + +
    • Continuous integration tools
    • +
    • + + Edit on GitHub + +
    • +
    +
    +
    +
    +
    + +

    Local development

    +

    A Makefile is available to perform project-related operations: +- Documentation - generate a local HTML copy of the GitHub wiki +- Static analysis - check that the code is compliant to PHP conventions +- Unit tests - ensure there are no regressions introduced by new commits

    +

    Automatic builds

    +

    Travis CI is a Continuous Integration build server, that runs a build: +- each time a commit is merged to the mainline (master branch) +- each time a Pull Request is submitted or updated

    +

    A build is composed of several jobs: one for each supported PHP version (see Server requirements).

    +

    Each build job: +- updates Composer +- installs 3rd-party test dependencies with Composer +- runs Unit tests

    +

    After all jobs have finished, Travis returns the results to GitHub: +- a status icon represents the result for the master branch: +- Pull Requests are updated with the Travis result + - Green: all tests have passed + - Red: some tests failed + - Orange: tests are pending

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Copy-an-existing-installation-over-SSH-and-serve-it-locally/index.html b/doc/html/Copy-an-existing-installation-over-SSH-and-serve-it-locally/index.html new file mode 100644 index 0000000..4aea480 --- /dev/null +++ b/doc/html/Copy-an-existing-installation-over-SSH-and-serve-it-locally/index.html @@ -0,0 +1,403 @@ + + + + + + + + + + + Copy an existing installation over SSH and serve it locally - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    +
      +
    • Docs »
    • + + + +
    • How To »
    • + + + +
    • Copy an existing installation over SSH and serve it locally
    • +
    • + + Edit on GitHub + +
    • +
    +
    +
    +
    +
    + +

    Example bash script:

    +
    #!/bin/bash
    +#Description: Copy a Shaarli installation over SSH/SCP, serve it locally with php-cli
    +#Will create a local-shaarli/ directory when you run it, backup your Shaarli there, and serve it locally.
    +#Will NOT download linked pages. It's just a directly usable backup/copy/mirror of your Shaarli
    +#Requires: ssh, scp and a working SSH access to the server where your Shaarli is installed
    +#Usage: ./local-shaarli.sh
    +#Author: nodiscc (nodiscc@gmail.com)
    +#License: MIT (http://opensource.org/licenses/MIT)
    +set -o errexit
    +set -o nounset
    +
    +##### CONFIG #################
    +#The port used by php's local server
    +php_local_port=7431
    +
    +#Name of the SSH server and path where Shaarli is installed
    +#TODO: pass these as command-line arguments
    +remotehost="my.ssh.server"
    +remote_shaarli_dir="/var/www/shaarli"
    +
    +
    +###### FUNCTIONS #############
    +_main() {
    +    _CBSyncShaarli
    +    _CBServeShaarli
    +}
    +
    +_CBSyncShaarli() {
    +    remote_temp_dir=$(ssh $remotehost mktemp -d)
    +    remote_ssh_user=$(ssh $remotehost whoami)
    +    ssh -t "$remotehost" sudo cp -r "$remote_shaarli_dir" "$remote_temp_dir"
    +    ssh -t "$remotehost" sudo chown -R "$remote_ssh_user":"$remote_ssh_user" "$remote_temp_dir"
    +    scp -rq "$remotehost":"$remote_temp_dir" local-shaarli
    +    ssh "$remotehost" rm -r "$remote_temp_dir"
    +}
    +
    +_CBServeShaarli() {
    +    #TODO: allow serving a previously downloaded Shaarli
    +    #TODO: ask before overwriting local copy, if it exists
    +    cd local-shaarli/
    +    php -S localhost:${php_local_port}
    +    echo "Please go to http://localhost:${php_local_port}"
    +}
    +
    +
    +##### MAIN #################
    +
    +_main
    +
    + +

    This outputs:

    +
    $ ./local-shaarli.sh
    +PHP 5.6.0RC4 Development Server started at Mon Sep  1 21:56:19 2014
    +Listening on http://localhost:7431
    +Document root is /home/user/local-shaarli/shaarli
    +Press Ctrl-C to quit.
    +
    +[Mon Sep  1 21:56:27 2014] ::1:57868 [200]: /
    +[Mon Sep  1 21:56:27 2014] ::1:57869 [200]: /index.html
    +[Mon Sep  1 21:56:37 2014] ::1:57881 [200]: /...
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Create-and-serve-multiple-Shaarlis-(farm)/index.html b/doc/html/Create-and-serve-multiple-Shaarlis-(farm)/index.html new file mode 100644 index 0000000..98d8992 --- /dev/null +++ b/doc/html/Create-and-serve-multiple-Shaarlis-(farm)/index.html @@ -0,0 +1,396 @@ + + + + + + + + + + + Create and serve multiple Shaarlis (farm) - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    +
      +
    • Docs »
    • + + + +
    • How To »
    • + + + +
    • Create and serve multiple Shaarlis (farm)
    • +
    • + + Edit on GitHub + +
    • +
    +
    +
    +
    +
    + +

    Example bash script (creates multiple shaarli instances and generates an HTML index of them)

    +
    #!/bin/bash
    +set -o errexit
    +set -o nounset
    +
    +#config
    +shaarli_base_dir='/var/www/shaarli'
    +accounts='bob john whatever username'
    +shaarli_repo_url='https://github.com/shaarli/Shaarli'
    +ref="master"
    +
    +#clone multiple shaarli instances
    +if [ ! -d "$shaarli_base_dir" ]; then mkdir "$shaarli_base_dir"; fi
    +
    +for account in $accounts; do
    +    if [ -d "$shaarli_base_dir/$account" ];
    +    then echo "[info] account $account already exists, skipping";
    +    else echo "[info] creating new account $account ..."; git clone --quiet "$shaarli_repo_url" -b "$ref" "$shaarli_base_dir/$account"; fi
    +done
    +
    +#generate html index of shaarlis
    +htmlhead='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    +<!-- Minimal html template thanks to http://www.sitepoint.com/a-minimal-html-document/ -->
    +<html lang="en">
    +    <head>
    +        <meta http-equiv="content-type" content="text/html; charset=utf-8">
    +        <title>My Shaarli farm</title>
    +        <style>body {font-family: "Open Sans"}</style>
    +    </head>
    +    <body>
    +    <div>
    +    <h1>My Shaarli farm</h1>
    +    <ul style="list-style-type: none;">'
    +
    +accountlinks=''
    +
    +htmlfooter='
    +    </ul>
    +    </div>
    +    </body>
    +</html>'    
    +
    +
    +
    +for account in $accounts; do accountlinks="$accountlinks\n<li><a href=\"$account\">$account</a></li>"; done
    +if [ -d "$shaarli_base_dir/index.html" ]; then echo "[removing old index.html]"; rm "$shaarli_base_dir/index.html" ]; fi
    +echo "[info] generating new index of shaarlis"
    +echo -e "$htmlhead $accountlinks $htmlfooter" > "$shaarli_base_dir/index.html"
    +echo '[info] done.'
    +echo "[info] list of accounts: $accounts"
    +echo "[info] contents of $shaarli_base_dir:"
    +tree -a -L 1 "$shaarli_base_dir"
    +
    + +

    This script just serves as an example. More precise or complex (applying custom configuration, etc) automation is possible using configuration management software like Ansible

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Datastore-hacks/index.html b/doc/html/Datastore-hacks/index.html new file mode 100644 index 0000000..b3d8d97 --- /dev/null +++ b/doc/html/Datastore-hacks/index.html @@ -0,0 +1,369 @@ + + + + + + + + + + + Datastore hacks - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Decode datastore content

    +

    To display the array representing the data saved in data/datastore.php, use the following snippet:

    +
    $data = "tZNdb9MwFIb... <Commented content inside datastore.php>";
    +$out = unserialize(gzinflate(base64_decode($data)));
    +echo "<pre>"; // Pretty printing is love, pretty printing is life
    +print_r($out);
    +echo "</pre>";
    +exit;
    +
    + +

    This will output the internal representation of the datastore, "unobfuscated" (if this can really be considered obfuscation).

    +

    Alternatively, you can transform to JSON format (and pretty-print if you have jq installed):

    +
    php -r 'print(json_encode(unserialize(gzinflate(base64_decode(preg_replace("!.*/\* (.+) \*/.*!", "$1", file_get_contents("data/datastore.php")))))));' | jq .
    +
    + + +
      +
    • Look for <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> in tpl/editlink.tpl (line 14)
    • +
    • Replace type="hidden" with type="text" from this line
    • +
    • A new date/time field becomes available in the edit/new link dialog.
    • +
    • You can set the timestamp manually by entering it in the format YYYMMDD_HHMMS.
    • +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Development-guidelines/index.html b/doc/html/Development-guidelines/index.html new file mode 100644 index 0000000..747d53a --- /dev/null +++ b/doc/html/Development-guidelines/index.html @@ -0,0 +1,352 @@ + + + + + + + + + + + Development guidelines - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Development guidelines

    +

    Please have a look at the following pages: +- Contributing to Shaarli +- Static analysis - patches should try to stick to the PHP Standard Recommendations (PSR), especially: + - PSR-1 - Basic Coding Standard + - PSR-2 - Coding Style Guide +- Unit tests +- GnuPG signature for tags/releases

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Directory-structure/index.html b/doc/html/Directory-structure/index.html new file mode 100644 index 0000000..8297977 --- /dev/null +++ b/doc/html/Directory-structure/index.html @@ -0,0 +1,371 @@ + + + + + + + + + + + Directory structure - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Here is the directory structure of Shaarli and the purpose of the different files:

    +
        index.php        # Main program
    +    application/     # Shaarli classes
    +        ├── LinkDB.php
    +        └── Utils.php
    +    tests/       # Shaarli unitary & functional tests
    +        ├── LinkDBTest.php
    +        ├── utils  # utilities to ease testing
    +        │   └── ReferenceLinkDB.php
    +        └── UtilsTest.php
    +    COPYING          # Shaarli license
    +    inc/             # static assets and 3rd party libraries
    +        ├── awesomplete.*          # tags autocompletion library
    +        ├── blazy.*                # picture wall lazy image loading library
    +        ├── shaarli.css, reset.css # Shaarli stylesheet.
    +        ├── qr.*                   # qr code generation library
    +        └──rain.tpl.class.php      # RainTPL templating library
    +    tpl/             # RainTPL templates for Shaarli. They are used to build the pages.
    +    images/          # Images and icons used in Shaarli
    +    data/            # data storage: bookmark database, configuration, logs, banlist…
    +        ├── config.php             # Shaarli configuration (login, password, timezone, title…)
    +        ├── datastore.php          # Your link database (compressed).
    +        ├── ipban.php              # IP address ban system data
    +        ├── lastupdatecheck.txt    # Update check timestamp file
    +        └──log.txt                 # login/IPban log.
    +    cache/           # thumbnails cache
    +                     # This directory is automatically created. You can erase it anytime you want.
    +    tmp/             # Temporary directory for compiled RainTPL templates.
    +                     # This directory is automatically created. You can erase it anytime you want.
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Docker-101/index.html b/doc/html/Docker-101/index.html new file mode 100644 index 0000000..5b4f645 --- /dev/null +++ b/doc/html/Docker-101/index.html @@ -0,0 +1,410 @@ + + + + + + + + + + + Docker 101 - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Basics

    +

    Install Docker, by following the instructions relevant +to your OS / distribution, and start the service.

    +

    Search an image on DockerHub

    +
    $ docker search debian
    +
    +NAME            DESCRIPTION                                     STARS   OFFICIAL   AUTOMATED
    +ubuntu          Ubuntu is a Debian-based Linux operating s...   2065    [OK]
    +debian          Debian is a Linux distribution that's comp...   603     [OK]
    +google/debian                                                   47                 [OK]
    +
    + +

    Show available tags for a repository

    +
    $ curl https://index.docker.io/v1/repositories/debian/tags | python -m json.tool
    +
    +% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    +Dload  Upload   Total   Spent    Left  Speed
    +100  1283    0  1283    0     0    433      0 --:--:--  0:00:02 --:--:--   433
    +
    + +

    Sample output:

    +
    [
    +    {
    +        "layer": "85a02782",
    +        "name": "stretch"
    +    },
    +    {
    +        "layer": "59abecbc",
    +        "name": "testing"
    +    },
    +    {
    +        "layer": "bf0fd686",
    +        "name": "unstable"
    +    },
    +    {
    +        "layer": "60c52dbe",
    +        "name": "wheezy"
    +    },
    +    {
    +        "layer": "c5b806fe",
    +        "name": "wheezy-backports"
    +    }
    +]
    +
    +
    + +

    Pull an image from DockerHub

    +
    $ docker pull repository[:tag]
    +
    +$ docker pull debian:wheezy
    +wheezy: Pulling from debian
    +4c8cbfd2973e: Pull complete
    +60c52dbe9d91: Pull complete
    +Digest: sha256:c584131da2ac1948aa3e66468a4424b6aea2f33acba7cec0b631bdb56254c4fe
    +Status: Downloaded newer image for debian:wheezy
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Docker-resources/index.html b/doc/html/Docker-resources/index.html new file mode 100644 index 0000000..7bd7067 --- /dev/null +++ b/doc/html/Docker-resources/index.html @@ -0,0 +1,370 @@ + + + + + + + + + + + Docker resources - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    + + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Download-CSS-styles-from-an-OPML-list/index.html b/doc/html/Download-CSS-styles-from-an-OPML-list/index.html new file mode 100644 index 0000000..e697b39 --- /dev/null +++ b/doc/html/Download-CSS-styles-from-an-OPML-list/index.html @@ -0,0 +1,496 @@ + + + + + + + + + + + Download CSS styles from an OPML list - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    +
      +
    • Docs »
    • + + + +
    • How To »
    • + + + +
    • Download CSS styles from an OPML list
    • +
    • + + Edit on GitHub + +
    • +
    +
    +
    +
    +
    + +

    Download CSS styles for shaarlis listed in an opml file

    +

    Example php script:

    +
    <!---- ?php -->
    +<!---- Copyright (c) 2014 Nicolas Delsaux (https://github.com/Riduidel) -->
    +<!---- License: zlib (http://www.gzip.org/zlib/zlib_license.html) -->
    +
    +/**
    + * Source: https://github.com/Riduidel
    + * Download css styles for shaarlis listed in an opml file
    + */
    +define("SHAARLI_RSS_OPML", "https://www.ecirtam.net/shaarlirss/custom/people.opml");
    +
    +define("THEMES_TEMP_FOLDER", "new_themes");
    +
    +if(!file_exists(THEMES_TEMP_FOLDER)) {
    +    mkdir(THEMES_TEMP_FOLDER);
    +}
    +
    +function siteUrl($pathInSite) {
    +    $indexPos = strpos($pathInSite, "index.php");
    +    if(!$indexPos) {
    +        return $pathInSite;
    +    } else {
    +        return substr($pathInSite, 0, $indexPos);
    +    }
    +}
    +
    +function createShaarliHashFromOPMLL($opmlFile) {
    +    $result = array();
    +    $opml = file_get_contents($opmlFile);
    +    $opmlXml = simplexml_load_string($opml);
    +    $outlineElements = $opmlXml->xpath("body/outline");
    +    foreach($outlineElements as $site) {
    +        $siteUrl = siteUrl((string) $site['htmlUrl']);
    +        $result[$siteUrl]=((string) $site['text']);
    +    }
    +    return $result;
    +}
    +
    +function getSiteFolder($url) {
    +    $domain = parse_url($url,  PHP_URL_HOST);
    +    return THEMES_TEMP_FOLDER."/".str_replace(".", "_", $domain);
    +}
    +
    +function get_http_response_code($theURL) {
    +     $headers = get_headers($theURL);
    +     return substr($headers[0], 9, 3);
    +}
    +
    +/**
    + * This makes the code PHP-5 only (particularly the call to "get_headers")
    + */
    +function copyUserStyleFrom($url, $name, $knownStyles) {
    +    $userStyle = $url."inc/user.css";
    +    if(in_array($url, $knownStyles)) {
    +        // TODO add log message
    +    } else {
    +        $statusCode = get_http_response_code($userStyle);
    +        if(intval($statusCode)<300) {
    +            $styleSheet = file_get_contents($userStyle);
    +            $siteFolder = getSiteFolder($url);
    +            if(!file_exists($siteFolder)) {
    +                mkdir($siteFolder);
    +            }
    +            if(!file_exists($siteFolder.'/user.css')) {
    +                // Copy stylesheet
    +                file_put_contents($siteFolder.'/user.css', $styleSheet);
    +            }
    +            if(!file_exists($siteFolder.'/README.md')) {
    +                // Then write a readme.md file
    +                file_put_contents($siteFolder.'/README.md', 
    +                    "User style from ".$name."\n"
    +                    ."============================="
    +                    ."\n\n"
    +                    ."This stylesheet was downloaded from ".$userStyle." on ".date(DATE_RFC822)
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/config.ini')) {
    +                // Write a config file containing useful informations
    +                file_put_contents($siteFolder.'/config.ini', 
    +                    "site_url=".$url."\n"
    +                    ."site_name=".$name."\n"
    +                    );
    +            }
    +            if(!file_exists($siteFolder.'/home.png')) {
    +                // And finally copy generated thumbnail
    +                $homeThumb = $siteFolder.'/home.png';
    +                file_put_contents($siteFolder.'/home.png', file_get_contents(getThumbnailUrl($url)));
    +            }
    +            echo 'Theme have been downloaded from  <a href="'.$url.'">'.$url.'</a> into '.$siteFolder
    +                .'. It looks like <img src="'.$homeThumb.'"><br/>';
    +        }
    +    }
    +}
    +
    +function getThumbnailUrl($url) {
    +    return 'http://api.webthumbnail.org/?url='.$url;
    +}
    +
    +function copyUserStylesFrom($urlToNames, $knownStyles) {
    +    foreach($urlToNames as $url => $name) {
    +        copyUserStyleFrom($url, $name, $knownStyles);
    +    }
    +}
    +
    +/**
    + * Reading directory list, courtesy of http://www.laughing-buddha.net/php/dirlist/
    + * @param directory the directory we want to list files of
    + * @return a simple array containing the list of absolute file paths. Notice that current file (".") and parent one("..")
    + * are not listed here
    + */
    +function getDirectoryList ($directory)  {
    +    $realPath = realpath($directory);
    +    // create an array to hold directory list
    +    $results = array();
    +    // create a handler for the directory
    +    $handler = opendir($directory);
    +    // open directory and walk through the filenames
    +    while ($file = readdir($handler)) {
    +        // if file isn't this directory or its parent, add it to the results
    +        if ($file != "." && $file != "..") {
    +            $results[] = realpath($realPath . "/" . $file);
    +        }
    +    }
    +    // tidy up: close the handler
    +    closedir($handler);
    +    // done!
    +    return $results;
    +}
    +
    +/**
    + * Start in themes folder and look in all subfolders for config.ini files. 
    + * These config.ini files allow us not to download styles again and again
    + */
    +function findKnownStyles() {
    +    $result = array();
    +    $subFolders = getDirectoryList("themes");
    +    foreach($subFolders as $folder) {
    +        $configFile = $folder."/config.ini";
    +        if(file_exists($configFile)) {
    +            $iniParameters = parse_ini_file($configFile);
    +            array_push($result, $iniParameters['site_url']);
    +        }
    +    }
    +    return $result;
    +}
    +
    +$knownStyles = findKnownStyles();
    +copyUserStylesFrom(createShaarliHashFromOPMLL(SHAARLI_RSS_OPML), $knownStyles);
    +
    +<!--- ? ---->
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Download-and-Installation/index.html b/doc/html/Download-and-Installation/index.html new file mode 100644 index 0000000..1ede1d6 --- /dev/null +++ b/doc/html/Download-and-Installation/index.html @@ -0,0 +1,444 @@ + + + + + + + + + + + Download and Installation - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    To install Shaarli, simply place the files in a directory under your webserver's Document Root (or directly at the document root). Make sure your server is properly configured.

    +

    Several releases are available:

    +
    + +

    Download as an archive

    +

    Get the latest released version from the releases page.

    +

    Download our shaarli-full archive to include dependencies.

    +

    The current latest released version is v0.8.4

    +

    Or in command lines:

    +
    $ wget https://github.com/shaarli/Shaarli/releases/download/v0.8.4/shaarli-v0.8.4-full.zip
    +$ unzip shaarli-v0.8.4-full.zip
    +$ mv Shaarli /path/to/shaarli/
    +
    + + + + + + + + + +
    !In most cases, download Shaarli from the releases page. Cloning using git or downloading Github branches as zip files requires additional steps (see below).
    +

    Using git

    +
    mkdir -p /path/to/shaarli && cd /path/to/shaarli/
    +git clone -b v0.8 https://github.com/shaarli/Shaarli.git .
    +composer install --no-dev
    +
    + +
    +

    Stable version

    +

    The stable version has been experienced by Shaarli users, and will receive security updates.

    +

    Download as an archive

    +

    As a .zip archive:

    +
    $ wget https://github.com/shaarli/Shaarli/archive/stable.zip
    +$ unzip stable.zip
    +$ mv Shaarli-stable /path/to/shaarli/
    +
    + +

    As a .tar.gz archive :

    +
    $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
    +$ tar xvf stable.tar.gz
    +$ mv Shaarli-stable /path/to/shaarli/
    +
    + +

    Clone with Git

    +

    Composer is required to build a functional Shaarli installation when pulling from git.

    +
    $ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/
    +# install/update third-party dependencies
    +$ cd /path/to/shaarli/
    +$ composer install --no-dev
    +
    + +
    +

    Development version (mainline)

    +

    Use at your own risk!

    +

    To get the latest changes from the master branch:

    +
    # clone the repository  
    +$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/
    +# install/update third-party dependencies
    +$ cd /path/to/shaarli
    +$ composer install --no-dev
    +
    + +
    +

    Finish Installation

    +

    Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser.

    +

    install screenshot

    +

    Setup your Shaarli installation, and it's ready to use!

    +
    +

    Updating Shaarli

    +

    See Upgrade and Migration

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/FAQ/index.html b/doc/html/FAQ/index.html new file mode 100644 index 0000000..c48e11f --- /dev/null +++ b/doc/html/FAQ/index.html @@ -0,0 +1,388 @@ + + + + + + + + + + + FAQ - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Why did you create Shaarli ?

    +

    I was a StumbleUpon user. Then I got fed up with they big toolbar. I switched to delicious, which was lighter, faster and more beautiful. Until Yahoo bought it. Then the export API broke all the time, delicious became slow and was ditched by Yahoo. I switched to Diigo, which is not bad, but does too much. And Diigo is sslllooooowww and their Firefox extension a bit buggy. And… oh… their Firefox addon sends to Diigo every single URL you visit (Don't believe me ? Use Tamper Data and open any page).

    +

    Enough is enough. Saving simple links should not be a complicated heavy thing. I ditched them all and wrote my own: Shaarli. It's simple, but it does the job and does it well. And my data is not hosted on a foreign server, but on my server.

    +

    Why use Shaarli and not Delicious/Diigo ?

    +

    With Shaarli:

    +
      +
    • The data is yours: It's hosted on your server.
    • +
    • Never fear of having your data locked-in.
    • +
    • Never fear to have your data sold to third party.
    • +
    • Your private links are not hosted on a third party server.
    • +
    • You are not tracked by browser addons (like Diigo does)
    • +
    • You can change the look and feel of the pages if you want.
    • +
    • You can change the behaviour of the program.
    • +
    • It's magnitude faster than most bookmarking services.
    • +
    +

    What does Shaarli mean?

    +

    Shaarli is for shaaring your links.

    +

    My Shaarli is broken!

    +

    First of all, ensure that both the web server and Shaarli are correctly configured, and that your installation is supported.

    +

    If everything looks right but the issue(s) remain(s), please: +- take a look at the troubleshooting section +- come chat with us on Gitter, we'll be happy to help ;-) +- browse active issues and Pull Requests + - if you find one that is related to the issue, feel free to comment and provide additional details (host/Shaarli setup) + - else, open a new issue, and provide information about the problem: + - what happens? - display glitches, invalid data, security flaws... + - what is your configuration? - OS, server version, activated extensions, web browser... + - is it reproducible?

    +

    Why not use a real database? Files are slow!

    +

    Does browsing this page feel slow? Try browsing older pages, too.

    +

    It's not slow at all, is it? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why?

    +

    The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Features/index.html b/doc/html/Features/index.html new file mode 100644 index 0000000..453f189 --- /dev/null +++ b/doc/html/Features/index.html @@ -0,0 +1,371 @@ + + + + + + + + + + + Features - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Main features

    +

    Shaarli is intended: + * to share, comment and save interesting links and news + * to bookmark useful/frequent personal links (as private links) and share them between computers + * as a minimal blog/microblog/writing platform (no character limit) + * as a read-it-later list (for example items tagged readlater) + * to draft and save articles/ideas + * to keep code snippets + * to keep notes and documentation + * as a shared clipboard between machines + * as a todo list + * to store playlists (e.g. with the music or video tags) + * to keep extracts/comments from webpages that may disappear + * to keep track of ongoing discussions (for example items tagged discussion) + * to feed RSS aggregators (planets) with specific tags + * to feed other social networks, blogs... using RSS feeds and external services (dlvr.it, ifttt.com ...)

    +

    Using Shaarli as a blog, notepad, pastebin...

    +
      +
    • Go to your Shaarli setup and log in
    • +
    • Click the Add Link button
    • +
    • To share text only, do not enter any URL in the corresponding input field and click Add Link
    • +
    • Pick a title and enter your article, or note, in the description field; add a few tags; optionally check Private then click Save
    • +
    • Voilà! Your article is now published (privately if you selected that option) and accessible using its permalink.
    • +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Firefox-share/index.html b/doc/html/Firefox-share/index.html new file mode 100644 index 0000000..c0aaf4b --- /dev/null +++ b/doc/html/Firefox-share/index.html @@ -0,0 +1,368 @@ + + + + + + + + + + + Firefox share - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Add Shaarli as a sharing service to Firefox

    +
      +
    • Open your Shaarli and Login
    • +
    • Click the Tools button in the top bar
    • +
    • Click the ✚Add to Firefox social button and accept the activation.
    • +
    + +
      +
    • Add the sharing service as described above
    • +
    • When you are visiting a webpage you would like to share with Shaarli, click the Firefox Share button images/firefoxshare.png
    • +
    • You can edit your link before and after saving, just like the bookmarklet above.
    • +
    + + + + + + + + +
    Your Shaarli instance must be hosted on an HTTPS (SSL/TLS secure connection) enabled server for Firefox Share to work. Firefox Share will not work over plain HTTP connections.
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/GnuPG-signature/index.html b/doc/html/GnuPG-signature/index.html new file mode 100644 index 0000000..781ccd2 --- /dev/null +++ b/doc/html/GnuPG-signature/index.html @@ -0,0 +1,439 @@ + + + + + + + + + + + GnuPG signature - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Introduction

    +

    PGP and GPG

    +

    Gnu Privacy Guard (GnuPG) is an Open Source implementation of the Pretty Good +Privacy (OpenPGP) specification. Its main purposes are digital authentication, +signature and encryption.

    +

    It is often used by the FLOSS community to verify: +- Linux package signatures: Debian SecureApt, ArchLinux Master +Keys +- SCM releases & maintainer identity

    +

    Trust

    +

    To quote Phil Pennock (the author of the SKS key server - http://sks.spodhuis.org/):

    +
    +

    You MUST understand that presence of data in the keyserver (pools) in no way connotes trust. Anyone can generate a key, with any name or email address, and upload it. All security and trust comes from evaluating security at the “object level”, via PGP Web-Of-Trust signatures. This keyserver makes it possible to retrieve keys, looking them up via various indices, but the collection of keys in this public pool is KNOWN to contain malicious and fraudulent keys. It is the common expectation of server operators that users understand this and use software which, like all known common OpenPGP implementations, evaluates trust accordingly. This expectation is so common that it is not normally explicitly stated.

    +
    +

    Trust can be gained by having your key signed by other people (and signing their key back, too :) ), for instance during key signing parties, see: +- The Keysigning party HOWTO +- Web of trust

    +

    Generate a GPG key

    + +

    gpg - provide identity information

    +
    $ gpg --gen-key
    +
    +gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.
    +This is free software: you are free to change and redistribute it.
    +There is NO WARRANTY, to the extent permitted by law.
    +
    +Note: Use "gpg2 --full-gen-key" for a full featured key generation dialog.
    +
    +GnuPG needs to construct a user ID to identify your key.
    +
    +Real name: Marvin the Paranoid Android
    +Email address: marvin@h2g2.net
    +You selected this USER-ID:
    +    "Marvin the Paranoid Android <marvin@h2g2.net>"
    +
    +Change (N)ame, (E)mail, or (O)kay/(Q)uit? o
    +We need to generate a lot of random bytes. It is a good idea to perform
    +some other action (type on the keyboard, move the mouse, utilize the
    +disks) during the prime generation; this gives the random number
    +generator a better chance to gain enough entropy.
    +
    + +

    gpg - entropy interlude

    +

    At this point, you will: +- be prompted for a secure password to protect your key (the input method will depend on your Desktop Environment and configuration) +- be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step may take some time

    +

    gpg - key creation confirmation

    +
    gpg: key A9D53A3E marked as ultimately trusted
    +public and secret key created and signed.
    +
    +gpg: checking the trustdb
    +gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
    +gpg: depth: 0  valid:   2  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 2u
    +pub   rsa2048/A9D53A3E 2015-07-31
    +      Key fingerprint = AF2A 5381 E54B 2FD2 14C4  A9A3 0E35 ACA4 A9D5 3A3E
    +uid       [ultimate] Marvin the Paranoid Android <marvin@h2g2.net>
    +sub   rsa2048/8C0EACF1 2015-07-31
    +
    + +

    gpg - submit your public key to a PGP server (Optional)

    +
    $ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
    +gpg: sending key A9D53A3E to hkp server pgp.mit.edu
    +
    + +

    Create and push a GPG-signed tag

    +

    See Release Shaarli.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Plugin-System/index.html b/doc/html/Plugin-System/index.html new file mode 100644 index 0000000..5ee0f6c --- /dev/null +++ b/doc/html/Plugin-System/index.html @@ -0,0 +1,968 @@ + + + + + + + + + + + Plugin System - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    I am a developer. Developer API.

    +

    I am a template designer. Guide for template designer.

    +

    Developer API

    +

    What can I do with plugins?

    +

    The plugin system let you:

    +
      +
    • insert content into specific places across templates.
    • +
    • alter data before templates rendering.
    • +
    • alter data before saving new links.
    • +
    +

    How can I create a plugin for Shaarli?

    +

    First, chose a plugin name, such as demo_plugin.

    +

    Under plugin folder, create a folder named with your plugin name. Then create a .php file in that folder.

    +

    You should have the following tree view:

    +
    | index.php
    +| plugins/
    +|---| demo_plugin/
    +|   |---| demo_plugin.php
    +
    + +

    Plugin initialization

    +

    At the beginning of Shaarli execution, all enabled plugins are loaded. At this point, the plugin system looks for an init() function to execute and run it if it exists. This function must be named this way, and takes the ConfigManager as parameter.

    +
    <plugin_name>_init($conf)
    +
    +

    This function can be used to create initial data, load default settings, etc. But also to set plugin errors. If the initialization function returns an array of strings, they will be understand as errors, and displayed in the header to logged in users.

    +

    Understanding hooks

    +

    A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution.

    +

    These functions need to be named with this pattern:

    +
    hook_<plugin_name>_<hook_name>($data, $conf)
    +
    + +

    Parameters:

    + +

    For exemple, if my plugin want to add data to the header, this function is needed:

    +
    hook_demo_plugin_render_header
    +
    +

    If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header.

    +

    Plugin's data

    +

    Parameters

    +

    Every hook function has a $data parameter. Its content differs for each hooks.

    +

    This parameter needs to be returned every time, otherwise data is lost.

    +
    return $data;
    +
    +

    Filling templates placeholder

    +

    Template placeholders are displayed in template in specific places.

    +

    RainTPL displays every element contained in the placeholder's array. These element can be added by plugins.

    +

    For example, let's add a value in the placeholder top_placeholder which is displayed at the top of my page:

    +
    $data['top_placeholder'][] = 'My content';
    +# OR
    +array_push($data['top_placeholder'], 'My', 'content');
    +
    +return $data;
    +
    + +

    Data manipulation

    +

    When a page is displayed, every variable send to the template engine is passed to plugins before that in $data.

    +

    The data contained by this array can be altered before template rendering.

    +

    For exemple, in linklist, it is possible to alter every title:

    +
    // mind the reference if you want $data to be altered
    +foreach ($data['links'] as &$value) {
    +    // String reverse every title.
    +    $value['title'] = strrev($value['title']);
    +}
    +
    +return $data;
    +
    + +

    Metadata

    +

    Every plugin needs a <plugin_name>.meta file, which is in fact an .ini file (KEY="VALUE"), to be listed in plugin administration.

    +

    Each file contain two keys:

    +
      +
    • description: plugin description
    • +
    • parameters: user parameter names, separated by a ;.
    • +
    • parameter.<PARAMETER_NAME>: add a text description the specified parameter.
    • +
    +
    +

    Note: In PHP, parse_ini_file() seems to want strings to be between by quotes " in the ini file.

    +
    +

    It's not working!

    +

    Use demo_plugin as a functional example. It covers most of the plugin system features.

    +

    If it's still not working, please open an issue.

    +

    Hooks

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    HooksDescription
    render_headerAllow plugin to add content in page headers.
    render_includesAllow plugin to include their own CSS files.
    render_footerAllow plugin to add content in page footer and include their own JS files.
    render_linklistIt allows to add content at the begining and end of the page, after every link displayed and to alter link data.
    render_editlinkAllow to add fields in the form, or display elements.
    render_toolsAllow to add content at the end of the page.
    render_picwallAllow to add content at the top and bottom of the page.
    render_tagcloudAllow to add content at the top and bottom of the page, and after all tags.
    render_taglistAllow to add content at the top and bottom of the page, and after all tags.
    render_dailyAllow to add content at the top and bottom of the page, the bottom of each link and to alter data.
    render_feedAllow to do add tags in RSS and ATOM feeds.
    save_linkAllow to alter the link being saved in the datastore.
    delete_linkAllow to do an action before a link is deleted from the datastore.
    +

    render_header

    +

    Triggered on every page.

    +

    Allow plugin to add content in page headers.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • buttons_toolbar: after the list of buttons in the header.
    • +
    +

    buttons_toolbar_example

    +
      +
    • fields_toolbar: after search fields in the header.
    • +
    +
    +

    Note: This will only be called in linklist.

    +
    +

    fields_toolbar_example

    +

    render_includes

    +

    Triggered on every page.

    +

    Allow plugin to include their own CSS files.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • css_files: called after loading default CSS.
    • +
    +
    +

    Note: only add the path of the CSS file. E.g: plugins/demo_plugin/custom_demo.css.

    +
    + +

    Triggered on every page.

    +

    Allow plugin to add content in page footer and include their own JS files.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _PAGE_: current target page (eg: linklist, picwall, etc.).
    • +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • text: called after the end of the footer text.
    • +
    • endofpage: called at the end of the page.
    • +
    +

    text_example

    +
      +
    • js_files: called at the end of the page, to include custom JS scripts.
    • +
    +
    +

    Note: only add the path of the JS file. E.g: plugins/demo_plugin/custom_demo.js.

    +
    + +

    Triggered when linklist is displayed (list of links, permalink, search, tag filtered, etc.).

    +

    It allows to add content at the begining and end of the page, after every link displayed and to alter link data.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • action_plugin: next to the button "private only" at the top and bottom of the page.
    • +
    +

    action_plugin_example

    +
      +
    • link_plugin: for every link, between permalink and link URL.
    • +
    +

    link_plugin_example

    +
      +
    • plugin_start_zone: before displaying the template content.
    • +
    +

    plugin_start_zone_example

    +
      +
    • plugin_end_zone: after displaying the template content.
    • +
    +

    plugin_end_zone_example

    + +

    Triggered when the link edition form is displayed.

    +

    Allow to add fields in the form, or display elements.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • edit_link_plugin: after tags field.
    • +
    +

    edit_link_plugin_example

    +

    render_tools

    +

    Triggered when the "tools" page is displayed.

    +

    Allow to add content at the end of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • tools_plugin: at the end of the page.
    • +
    +

    tools_plugin_example

    +

    render_picwall

    +

    Triggered when picwall is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • +

      plugin_start_zone: before displaying the template content.

      +
    • +
    • +

      plugin_end_zone: after displaying the template content.

      +
    • +
    +

    plugin_start_end_zone_example

    +

    render_tagcloud

    +

    Triggered when tagcloud is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • +

      plugin_start_zone: before displaying the template content.

      +
    • +
    • +

      plugin_end_zone: after displaying the template content.

      +
    • +
    +

    For each tag, the following placeholder can be used:

    +
      +
    • tag_plugin: after each tag
    • +
    +

    plugin_start_end_zone_example

    +

    render_taglist

    +

    Triggered when taglist is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • +

      plugin_start_zone: before displaying the template content.

      +
    • +
    • +

      plugin_end_zone: after displaying the template content.

      +
    • +
    +

    For each tag, the following placeholder can be used:

    +
      +
    • tag_plugin: after each tag
    • +
    +

    render_daily

    +

    Triggered when tagcloud is displayed.

    +

    Allow to add content at the top and bottom of the page, the bottom of each link and to alter data.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • link_plugin: used at bottom of each link.
    • +
    +

    link_plugin_example

    +
      +
    • +

      plugin_start_zone: before displaying the template content.

      +
    • +
    • +

      plugin_end_zone: after displaying the template content.

      +
    • +
    +

    render_feed

    +

    Triggered when the ATOM or RSS feed is displayed.

    +

    Allow to add tags in the feed, either in the header or for each items. Items (links) can also be altered before being rendered.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • _PAGE_: containing either rss or atom.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Tags can be added in feeds by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • feed_plugins_header: used as a header tag in the feed.
    • +
    +

    For each links:

    +
      +
    • feed_plugins: additional tag for every link entry.
    • +
    + +

    Triggered when a link is save (new link or edit).

    +

    Allow to alter the link being saved in the datastore.

    +
    Data
    +

    $data is an array containing the link being saved:

    +
      +
    • id
    • +
    • title
    • +
    • url
    • +
    • shorturl
    • +
    • description
    • +
    • private
    • +
    • tags
    • +
    • created
    • +
    • updated
    • +
    + +

    Triggered when a link is deleted.

    +

    Allow to execute any action before the link is actually removed from the datastore

    +
    Data
    +

    $data is an array containing the link being saved:

    +
      +
    • id
    • +
    • title
    • +
    • url
    • +
    • shorturl
    • +
    • description
    • +
    • private
    • +
    • tags
    • +
    • created
    • +
    • updated
    • +
    +

    Guide for template designer

    +

    Plugin administration

    +

    Your theme must include a plugin administration page: pluginsadmin.html.

    +
    +

    Note: repo's template link needs to be added when the PR is merged.

    +
    +

    Use the default one as an example.

    +

    Aside from classic RainTPL loops, plugins order is handle by JavaScript. You can just include plugin_admin.js, only if:

    +
      +
    • you're using a table.
    • +
    • you call orderUp() and orderUp() onclick on arrows.
    • +
    • you add data-line and data-order to your rows.
    • +
    +

    Otherwise, you can use your own JS as long as this field is send by the form:

    +

    +

    Placeholder system

    +

    In order to make plugins work with every custom themes, you need to add variable placeholder in your templates.

    +

    It's a RainTPL loop like this:

    +
    {loop="$plugin_variable"}
    +    {$value}
    +{/loop}
    +
    +

    You should enable demo_plugin for testing purpose, since it uses every placeholder available.

    +

    List of placeholders

    +

    page.header.html

    +

    At the end of the menu:

    +
    {loop="$plugins_header.buttons_toolbar"}
    +    {$value}
    +{/loop}
    +
    +

    At the end of file, before clearing floating blocks:

    +
    {if="!empty($plugin_errors) && isLoggedIn()"}
    +    <ul class="errors">
    +        {loop="plugin_errors"}
    +            <li>{$value}</li>
    +        {/loop}
    +    </ul>
    +{/if}
    +
    +

    includes.html

    +

    At the end of the file:

    +
    {loop="$plugins_includes.css_files"}
    +<link type="text/css" rel="stylesheet" href="{$value}#"/>
    +{/loop}
    +
    + +

    page.footer.html

    +

    At the end of your footer notes:

    +
    {loop="$plugins_footer.text"}
    +     {$value}
    +{/loop}
    +
    + +

    At the end of file:

    +
    {loop="$plugins_footer.js_files"}
    +     <script src="{$value}#"></script>
    +{/loop}
    +
    + +

    linklist.html

    +

    After search fields:

    +
    {loop="$plugins_header.fields_toolbar"}
    +     {$value}
    +{/loop}
    +
    + +

    Before displaying the link list (after paging):

    +
    {loop="$plugin_start_zone"}
    +     {$value}
    +{/loop}
    +
    + +

    For every links (icons):

    +
    {loop="$value.link_plugin"}
    +    <span>{$value}</span>
    +{/loop}
    +
    + +

    Before end paging:

    +
    {loop="$plugin_end_zone"}
    +     {$value}
    +{/loop}
    +
    + +

    linklist.paging.html

    +

    After the "private only" icon:

    +
    {loop="$action_plugin"}
    +     {$value}
    +{/loop}
    +
    + +

    editlink.html

    +

    After tags field:

    +
    {loop="$edit_link_plugin"}
    +     {$value}
    +{/loop}
    +
    + +

    tools.html

    +

    After the last tool:

    +
    {loop="$tools_plugin"}
    +     {$value}
    +{/loop}
    +
    + +

    picwall.html

    +

    Top:

    +
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    +    {loop="$plugin_start_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    +
    + +

    Bottom:

    +
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    +    {loop="$plugin_end_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    +
    + +

    tagcloud.html

    +

    Top:

    +
       <div id="plugin_zone_start_tagcloud" class="plugin_zone">
    +        {loop="$plugin_start_zone"}
    +            {$value}
    +        {/loop}
    +    </div>
    +
    + +

    Bottom:

    +
        <div id="plugin_zone_end_tagcloud" class="plugin_zone">
    +        {loop="$plugin_end_zone"}
    +            {$value}
    +        {/loop}
    +    </div>
    +
    + +

    daily.html

    +

    Top:

    +
    <div id="plugin_zone_start_picwall" class="plugin_zone">
    +     {loop="$plugin_start_zone"}
    +         {$value}
    +     {/loop}
    +</div>
    +
    + +

    After every link:

    +
    <div class="dailyEntryFooter">
    +     {loop="$link.link_plugin"}
    +          {$value}
    +     {/loop}
    +</div>
    +
    + +

    Bottom:

    +
    <div id="plugin_zone_end_picwall" class="plugin_zone">
    +    {loop="$plugin_end_zone"}
    +        {$value}
    +    {/loop}
    +</div>
    +
    + +

    feed.atom.xml and feed.rss.xml:

    +

    In headers tags section:

    +
    {loop="$feed_plugins_header"}
    +  {$value}
    +{/loop}
    +
    + +

    After each entry:

    +
    {loop="$value.feed_plugins"}
    +  {$value}
    +{/loop}
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Plugins/index.html b/doc/html/Plugins/index.html new file mode 100644 index 0000000..3a30e93 --- /dev/null +++ b/doc/html/Plugins/index.html @@ -0,0 +1,414 @@ + + + + + + + + + + + Plugins - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Plugin installation

    +

    There is a bunch of plugins shipped with Shaarli, where there is nothing to do to install them.

    +

    If you want to install a third party plugin:

    +
      +
    • Download it.
    • +
    • Put it in the plugins directory in Shaarli's installation folder.
    • +
    • Make sure you put it correctly:
    • +
    +
    | index.php
    +| plugins/
    +|---| custom_plugin/
    +|   |---| custom_plugin.php
    +|   |---| ...
    +
    +
    + +
      +
    • Make sure your webserver can read and write the files in your plugin folder.
    • +
    +

    Plugin configuration

    +

    In Shaarli's administration page (Tools link), go to Plugin administration.

    +

    Here you can enable and disable all plugins available, and configure them.

    +

    administration screenshot

    +

    Plugin order

    +

    In the plugin administration page, you can move enabled plugins to the top or bottom of the list. The first plugins in the list will be processed first.

    +

    This is important in case plugins are depending on each other. Read plugins README details for more information.

    +

    Use case: The (non existent) plugin shaares_footer adds a footer to every shaare in Markdown syntax. It needs to be processed before (higher in the list) the Markdown plugin. Otherwise its syntax won't be translated in HTML.

    +

    File mode

    +

    Enabled plugin are stored in your config.php parameters file, under the array:

    +
    $GLOBALS['config']['ENABLED_PLUGINS']
    +
    + +

    You can edit them manually here. +Example:

    +
    $GLOBALS['config']['ENABLED_PLUGINS'] = array(
    +    'qrcode', 
    +    'archiveorg',
    +    'wallabag',
    +    'markdown',
    +);
    +
    + +

    Plugin usage

    +

    Official plugins

    +

    Usage of each plugin is documented in it's README file:

    +
      +
    • addlink-toolbar: Adds the addlink input on the linklist page
    • +
    • archiveorg: For each link, add an Archive.org icon
    • +
    • markdown: Render shaare description with Markdown syntax.
    • +
    • playvideos: Add a button in the toolbar allowing to watch all videos.
    • +
    • qrcode: For each link, add a QRCode icon.
    • +
    • wallabag: For each link, add a Wallabag icon to save it in your instance.
    • +
    +

    Third party plugins

    +

    See Community & related software

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/REST-API/index.html b/doc/html/REST-API/index.html new file mode 100644 index 0000000..2c244bc --- /dev/null +++ b/doc/html/REST-API/index.html @@ -0,0 +1,431 @@ + + + + + + + + + + + REST API - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Usage

    +

    See the REST API documentation.

    +

    Authentication

    +

    All requests to Shaarli's API must include a JWT token to verify their authenticity.

    +

    This token has to be included as an HTTP header called Authentication: Bearer <jwt token>.

    +

    JWT resources :

    +
      +
    • jwt.io (including a list of client per language).
    • +
    • RFC : https://tools.ietf.org/html/rfc7519
    • +
    • https://float-middle.com/json-web-tokens-jwt-vs-sessions/
    • +
    • HackerNews thread: https://news.ycombinator.com/item?id=11929267
    • +
    +

    Shaarli JWT Token

    +

    JWT tokens are composed by three parts, separated by a dot . and encoded in base64:

    +
    [header].[payload].[signature]
    +
    + + +

    Shaarli only allow one hash algorithm, so the header will always be the same:

    +
    {
    +    "typ": "JWT",
    +    "alg": "HS512"
    +}
    +
    + +

    Encoded in base64, it gives:

    +
    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==
    +
    + +

    Payload

    +

    Validity duration

    +

    To avoid infinite token validity, JWT tokens must include their creation date in UNIX timestamp format (timezone independant - UTC) under the key iat (issued at). This token will be accepted during 9 minutes.

    +
    {
    +    "iat": 1468663519
    +}
    +
    + +

    See RFC reference.

    +

    Signature

    +

    The signature authenticate the token validity. It contains the base64 of the header and the body, separated by a dot ., hashed in SHA512 with the API secret available in Shaarli administration page.

    +

    Signature example with PHP:

    +
    $content = base64_encode($header) . '.' . base64_encode($payload);
    +$signature = hash_hmac('sha512', $content, $secret);
    +
    + +

    Complete example

    +

    PHP

    +
    function generateToken($secret) {
    +    $header = base64_encode('{
    +        "typ": "JWT",
    +        "alg": "HS512"
    +    }');
    +    $payload = base64_encode('{
    +        "iat": '. time() .'
    +    }');
    +    $signature = hash_hmac('sha512', $header .'.'. $payload , $secret);
    +    return $header .'.'. $payload .'.'. $signature;
    +}
    +
    +$secret = 'mysecret';
    +$token = generateToken($secret);
    +echo $token;
    +
    + +
    +

    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==.ewogICAgICAgICJpYXQiOiAxNDY4NjY3MDQ3CiAgICB9.1d2c54fa947daf594fdbf7591796195652c8bc63bffad7f6a6db2a41c313f495a542cbfb595acade79e83f3810d709b4251d7b940bbc10b531a6e6134af63a68

    +
    +
    $options = [
    +    'http' => [
    +        'method' => 'GET',
    +        'jwt' => $token,
    +    ],
    +];
    +$context = stream_context_create($options);
    +file_get_contents($apiEndpoint, false, $context);
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/RSS-feeds/index.html b/doc/html/RSS-feeds/index.html new file mode 100644 index 0000000..bb6e412 --- /dev/null +++ b/doc/html/RSS-feeds/index.html @@ -0,0 +1,367 @@ + + + + + + + + + + + RSS feeds - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Feeds options

    +

    Feeds are available in ATOM with ?do=atom and RSS with do=RSS.

    +

    Options: +- You can use permalinks in the feed URL to get permalink to Shaares instead of direct link to shaared URL. + - E.G. https://my.shaarli.domain/?do=atom&permalinks. +- You can use nb parameter in the feed URL to specify the number of Shaares you want in a feed (default if not specified: 50). The keyword all is available if you want everything. + - https://my.shaarli.domain/?do=atom&permalinks&nb=42 + - https://my.shaarli.domain/?do=atom&permalinks&nb=all

    +

    RSS Feeds or Picture Wall for a specific search/tag

    +

    It is possible to filter RSS/ATOM feeds and Picture Wall on a Shaarli to only display results of a specific search, or for a specific tag.

    +

    For example, if you want to subscribe only to links tagged photography: +- Go to the desired Shaarli instance. +- Search for the photography tag in the Filter by tag box. Links tagged photography are displayed. +- Click on the RSS Feed button. +- You are presented with an RSS feed showing only these links. Subscribe to it to receive only updates with this tag. +- The same method also works for a full-text search (Search box) and for the Picture Wall (want to only see pictures about nature?) +- You can also build the URLs manually: + - https://my.shaarli.domain/?do=rss&searchtags=nature + - https://my.shaarli.domain/links/?do=picwall&searchterm=poney

    +

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Release-Shaarli/index.html b/doc/html/Release-Shaarli/index.html new file mode 100644 index 0000000..cf5fcee --- /dev/null +++ b/doc/html/Release-Shaarli/index.html @@ -0,0 +1,529 @@ + + + + + + + + + + + Release Shaarli - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    See Git - Maintaining a project - Tagging your +releases.

    +

    Prerequisites

    +

    This guide assumes that you have: +- a GPG key matching your GitHub authentication credentials + - i.e., the email address identified by the GPG key is the same as the one in your ~/.gitconfig +- a GitHub fork of Shaarli +- a local clone of your Shaarli fork, with the following remotes: + - origin pointing to your GitHub fork + - upstream pointing to the main Shaarli repository +- maintainer permissions on the main Shaarli repository, to: + - push the signed tag + - create a new release +- Composer and Pandoc need to be installed

    +

    GitHub release draft and CHANGELOG.md

    +

    See http://keepachangelog.com/en/0.3.0/ for changelog formatting.

    +

    GitHub release draft

    +

    GitHub allows drafting the release note for the upcoming release, from the Releases page. This way, the release note can be drafted while contributions are merged to master.

    +

    CHANGELOG.md

    +

    This file should contain the same information as the release note draft for the upcoming version.

    +

    Update it to: +- add new entries (additions, fixes, etc.) +- mark the current version as released by setting its date and link +- add a new section for the future unreleased version

    +
    $ cd /path/to/shaarli
    +
    +$ nano CHANGELOG.md
    +
    +[...]
    +## vA.B.C - UNRELEASED
    +TBA
    +
    +## [vX.Y.Z](https://github.com/shaarli/Shaarli/releases/tag/vX.Y.Z) - YYYY-MM-DD
    +[...]
    +
    + +

    Increment the version code, updated docs, create and push a signed tag

    +

    Generate documentation

    +
    $ cd /path/to/shaarli
    +
    +# create a new branch
    +$ git fetch upstream
    +$ git checkout upstream/master -b v0.5.0
    +
    +# rebuild the documentation from the wiki
    +$ make htmldoc
    +
    +# commit the changes
    +$ git add doc
    +$ git commit -s -m "Generate documentation for v0.5.0"
    +
    +# push the commit on your GitHub fork
    +$ git push origin v0.5.0
    +
    + +

    Create and merge a Pull Request

    +

    This one is pretty straightforward ;-)

    +

    Bump Shaarli version to v0.x branch

    +
    $ git checkout master
    +$ git fetch upstream
    +$ git pull upstream master
    +
    +# IF the branch doesn't exists
    +$ git checkout -b v0.5
    +# OR if the branch already exists
    +$ git checkout v0.5
    +$ git rebase upstream/master
    +
    +# Bump shaarli version from dev to 0.5.0, **without the `v`**
    +$ vim shaarli_version.php
    +$ git add shaarli_version
    +$ git commit -s -m "Bump Shaarli version to v0.5.0"
    +$ git push upstream v0.5
    +
    + +

    Create and push a signed tag

    +
    # update your local copy
    +$ git checkout v0.5
    +$ git fetch upstream
    +$ git pull upstream v0.5
    +
    +# create a signed tag
    +$ git tag -s -m "Release v0.5.0" v0.5.0
    +
    +# push it to "upstream"
    +$ git push --tags upstream
    +
    + +

    Verify a signed tag

    +

    v0.5.0 is the first GPG-signed tag pushed on the Community Shaarli.

    +

    Let's have a look at its signature!

    +
    $ cd /path/to/shaarli
    +$ git fetch upstream
    +
    +# get the SHA1 reference of the tag
    +$ git show-ref tags/v0.5.0
    +f7762cf803f03f5caf4b8078359a63783d0090c1 refs/tags/v0.5.0
    +
    +# verify the tag signature information
    +$ git verify-tag f7762cf803f03f5caf4b8078359a63783d0090c1
    +gpg: Signature made Thu 30 Jul 2015 11:46:34 CEST using RSA key ID 4100DF6F
    +gpg: Good signature from "VirtualTam <virtualtam@flibidi.net>" [ultimate]
    +
    + +

    Publish the GitHub release

    +

    Update release badges

    +

    Update README.md so version badges display and point to the newly released Shaarli version(s), in the master branch.

    +

    Create a GitHub release from a Git tag

    +

    From the previously drafted release: +- edit the release notes (if needed) +- specify the appropriate Git tag +- publish the release +- profit!

    +

    Generate and upload all-in-one release archives

    +

    Users with a shared hosting may have: +- no SSH access +- no possibility to install PHP packages or server extensions +- no possibility to run scripts

    +

    To ease Shaarli installations, it is possible to generate and upload additional release archives, +that will contain Shaarli code plus all required third-party libraries.

    +

    From the v0.5 branch:

    +
    $ make release_archive
    +
    + +

    This will create the following archives: +- shaarli-vX.Y.Z-full.tar +- shaarli-vX.Y.Z-full.zip

    +

    The archives need to be manually uploaded on the previously created GitHub release.

    +

    Update stable and latest branches

    +
    $ git checkout latest
    +# latest release
    +$ git merge v0.5.0
    +# fix eventual conflicts
    +$ make test
    +$ git push upstream latest
    +$ git checkout stable
    +# latest previous major
    +$ git merge v0.4.5 
    +# fix eventual conflicts
    +$ make test
    +$ git push upstream stable
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Reverse-proxy-configuration/index.html b/doc/html/Reverse-proxy-configuration/index.html new file mode 100644 index 0000000..bebd663 --- /dev/null +++ b/doc/html/Reverse-proxy-configuration/index.html @@ -0,0 +1,350 @@ + + + + + + + + + + + Reverse proxy configuration - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    TODO, see https://github.com/shaarli/Shaarli/issues/888

    +

    HAProxy

    +

    Nginx

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Security/index.html b/doc/html/Security/index.html new file mode 100644 index 0000000..19b569e --- /dev/null +++ b/doc/html/Security/index.html @@ -0,0 +1,386 @@ + + + + + + + + + + + Security - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Client browser

    +
      +
    • Shaarli relies on HTTP_REFERER for some functions (like redirects and clicking on tags). If you have disabled or masqueraded HTTP_REFERER in your browser, some features of Shaarli may not work
    • +
    +

    PHP

    +
      +
    • magic_quotes is an horrible option of PHP which is often activated on servers. No serious developer should rely on this horror to secure their code against SQL injections. You should disable it (and Shaarli expects this option to be disabled). Nevertheless, I have added code to cope with magic_quotes on, so you should not be bothered even on crappy hosts.
    • +
    +

    Server and sessions

    +
      +
    • Directories are protected using .htaccess files
    • +
    • Forms are protected against XSRF (Cross-site requests forgery):
    • +
    • Forms which act on data (save,delete…) contain a token generated by the server.
    • +
    • Any posted form which does not contain a valid token is rejected.
    • +
    • Any token can only be used once.
    • +
    • Tokens are attached to the session and cannot be reused in another session.
    • +
    • Sessions automatically expire after 60 minutes.
    • +
    • Sessions are protected against hijacking: the session ID cannot be used from a different IP address.
    • +
    +

    Shaarli datastore and configuration

    +
      +
    • The password is salted, hashed and stored in the data subdirectory, in a PHP file, and protected by htaccess. Even if the webserver does not support htaccess, the hash is not readable by URL. Even if the .php file is stolen, the password cannot deduced from the hash. The salt prevents rainbow-tables attacks.
    • +
    • Links are stored as an associative array which is serialized, compressed (with deflate), base64-encoded and saved as a comment in a .php file.
    • +
    • Even if the server does not support .htaccess files, the data file will still not be readable by URL.
    • +
    • The database looks like this:
    • +
    +
    <?php /* zP1ZjxxJtiYIvvevEPJ2lDOaLrZv7o...
    +...ka7gaco/Z+TFXM2i7BlfMf8qxpaSSYfKlvqv/x8= */ ?>
    +
    + +
      +
    • Small hashes are used to make a link to an entry in Shaarli. They are unique. In fact, the date of the items (eg. 20110923_150523) is hashed with CRC32, then converted to base64 and some characters are replaced. They are always 6 characters longs and use only A-Z a-z 0-9 - _ and @.
    • +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Server-configuration/index.html b/doc/html/Server-configuration/index.html new file mode 100644 index 0000000..beb8cd0 --- /dev/null +++ b/doc/html/Server-configuration/index.html @@ -0,0 +1,747 @@ + + + + + + + + + + + Server configuration - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Example virtual host configurations for popular web servers

    + +

    Prerequisites

    +

    Shaarli

    +
      +
    • Shaarli is installed in a directory readable/writeable by the user
    • +
    • the correct read/write permissions have been granted to the web server user and/or group
    • +
    • for HTTPS / SSL:
    • +
    • a key pair (public, private) and a certificate have been generated
    • +
    • the appropriate server SSL extension is installed and active
    • +
    +

    HTTPS, TLS and self-signed certificates

    +

    Related guides: + How to Create Self-Signed SSL Certificates with OpenSSL + How do I create my own Certificate Authority? +* Generate a self-signed certificate (will trigger browser warnings) with apache2: make-ssl-cert generate-default-snakeoil --force-overwrite will create /etc/ssl/certs/ssl-cert-snakeoil.pem and /etc/ssl/private/ssl-cert-snakeoil.key

    +

    Proxies

    +

    If Shaarli is served behind a proxy (i.e. there is a proxy server between clients and the web server hosting Shaarli), please refer to the proxy server documentation for proper configuration. In particular, you have to ensure that the following server variables are properly set: +- X-Forwarded-Proto; +- X-Forwarded-Host; +- X-Forwarded-For.

    +

    See also proxy-related issues.

    +

    Apache

    +

    Minimal

    +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +</VirtualHost>
    +
    + +

    Debug - Log all the things!

    +

    This configuration will log both Apache and PHP errors, which may prove useful to identify server configuration errors.

    +

    See: + Apache/PHP - error log per VirtualHost (StackOverflow) + PHP: php_value vs php_admin_value and the use of php_flag explained

    +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +
    +    php_flag  log_errors on
    +    php_flag  display_errors on
    +    php_value error_reporting 2147483647
    +    php_value error_log /var/log/apache2/shaarli-php-error.log
    +</VirtualHost>
    +
    + +

    Standard - Keep access and error logs

    +
    <VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +
    + +

    Paranoid - Redirect HTTP (:80) to HTTPS (:443)

    +

    See Server-side TLS (Mozilla).

    +
    <VirtualHost *:443>
    +    ServerName   shaarli.my-domain.org
    +    DocumentRoot /absolute/path/to/shaarli/
    +
    +    SSLEngine             on
    +    SSLCertificateFile    /absolute/path/to/the/website/certificate.pem
    +    SSLCertificateKeyFile /absolute/path/to/the/website/key.key
    +
    +    <Directory /absolute/path/to/shaarli/>
    +        AllowOverride All
    +        Options Indexes FollowSymLinks MultiViews
    +        Order allow,deny
    +        allow from all
    +    </Directory>
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +<VirtualHost *:80>
    +    ServerName   shaarli.my-domain.org
    +    Redirect 301 / https://shaarli.my-domain.org
    +
    +    LogLevel  warn
    +    ErrorLog  /var/log/apache2/shaarli-error.log
    +    CustomLog /var/log/apache2/shaarli-access.log combined
    +</VirtualHost>
    +
    + +

    .htaccess

    +

    Shaarli use .htaccess Apache files to deny access to files that shouldn't be directly accessed (datastore, config, etc.). You need the directive AllowOverride All in your virtual host configuration for them to work.

    +

    Warning: If you use Apache 2.2 or lower, you need mod_version to be installed and enabled.

    +

    Apache module mod_rewrite must be enabled to use the REST API. URL rewriting rules for the Slim microframework are stated in the root .htaccess file.

    +

    LightHttpd

    +

    Nginx

    +

    Foreword

    +

    Nginx does not natively interpret PHP scripts; to this effect, we will run a FastCGI service, to which Nginx's FastCGI module will proxy all requests to PHP resources.

    +

    Required packages: +- nginx +- php-fpm - PHP FastCGI Process Manager

    +

    Official documentation: +- Beginner's guide +- ngx_http_fastcgi_module +- Pitfalls

    +

    Community resources: +- Server-side TLS (Nginx) (Mozilla) +- PHP configuration examples (Karl Blessing)

    +

    Common setup

    +

    Once Nginx and PHP-FPM are installed, we need to ensure: +- Nginx and PHP-FPM are running using the same user and group +- both these user and group have + - read permissions for Shaarli resources + - execute permissions for Shaarli directories AND their parent directories

    +

    On a production server: +- user:group will likely be http:http, www:www or www-data:www-data +- files will be located under /var/www, /var/http or /usr/share/nginx

    +

    On a development server: +- files may be located in a user's home directory +- in this case, make sure both Nginx and PHP-FPM are running as the local user/group!

    +

    For all following configuration examples, this user/group pair will be used: +- user:group = john:users,

    +

    which corresponds to the following service configuration:

    +
    ; /etc/php/php-fpm.conf
    +user = john
    +group = users
    +
    +[...]
    +listen.owner = john
    +listen.group = users
    +
    + +
    # /etc/nginx/nginx.conf
    +user john users;
    +
    +http {
    +    [...]
    +}
    +
    + +

    (Optional) Increase the maximum file upload size

    +

    Some bookmark dumps generated by web browsers can be huge due to the presence of Base64-encoded images and favicons, as well as extra verbosity when nesting links in (sub-)folders.

    +

    To increase upload size, you will need to modify both nginx and PHP configuration:

    +
    # /etc/nginx/nginx.conf
    +
    +http {
    +    [...]
    +
    +    client_max_body_size 10m;
    +
    +    [...]
    +}
    +
    + +
    # /etc/php5/fpm/php.ini
    +
    +[...]
    +post_max_size = 10M
    +[...]
    +upload_max_filesize = 10M
    +
    + +

    Minimal

    +

    WARNING: Use for development only!

    +
    user john users;
    +worker_processes  1;
    +events {
    +    worker_connections  1024;
    +}
    +
    +http {
    +    include            mime.types;
    +    default_type       application/octet-stream;
    +    keepalive_timeout  20;
    +
    +    index index.html index.php;
    +
    +    server {
    +        listen       80;
    +        server_name  localhost;
    +        root         /home/john/web;
    +
    +        access_log  /var/log/nginx/access.log;
    +        error_log   /var/log/nginx/error.log;
    +
    +        location /shaarli/ {
    +            try_files $uri /shaarli/index.php$is_args$args;
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        location ~ (index)\.php$ {
    +            try_files $uri =404;
    +            fastcgi_split_path_info ^(.+\.php)(/.+)$;
    +            fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    +            fastcgi_index  index.php;
    +            include        fastcgi.conf;
    +        }
    +    }
    +}
    +
    + +

    Modular

    +

    The previous setup is sufficient for development purposes, but has several major caveats: +- every content that does not match the PHP rule will be sent to client browsers: + - dotfiles - in our case, .htaccess + - temporary files, e.g. Vim or Emacs files: index.php~ +- asset / static resource caching is not optimized +- if serving several PHP sites, there will be a lot of duplication: location /shaarli/, location /mysite/, etc.

    +

    To solve this, we will split Nginx configuration in several parts, that will be included when needed:

    +
    # /etc/nginx/deny.conf
    +location ~ /\. {
    +    # deny access to dotfiles
    +    access_log off;
    +    log_not_found off;
    +    deny all;
    +}
    +
    +location ~ ~$ {
    +    # deny access to temp editor files, e.g. "script.php~"
    +    access_log off;
    +    log_not_found off;
    +    deny all;
    +}
    +
    + +
    # /etc/nginx/php.conf
    +location ~ (index)\.php$ {
    +    # Slim - split URL path into (script_filename, path_info)
    +    try_files $uri =404;
    +    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    +
    +    # filter and proxy PHP requests to PHP-FPM
    +    fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
    +    fastcgi_index  index.php;
    +    include        fastcgi.conf;
    +}
    +
    +location ~ \.php$ {
    +    # deny access to all other PHP scripts
    +    deny all;
    +}
    +
    + +
    # /etc/nginx/static_assets.conf
    +location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
    +    expires    max;
    +    add_header Pragma public;
    +    add_header Cache-Control "public, must-revalidate, proxy-revalidate";
    +}
    +
    + +
    # /etc/nginx/nginx.conf
    +[...]
    +
    +http {
    +    [...]
    +
    +    root        /home/john/web;
    +    access_log  /var/log/nginx/access.log;
    +    error_log   /var/log/nginx/error.log;
    +
    +    server {
    +        # virtual host for a first domain
    +        listen       80;
    +        server_name  my.first.domain.org;
    +
    +        location /shaarli/ {
    +            # Slim - rewrite URLs
    +            try_files $uri /shaarli/index.php$is_args$args;
    +
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        location = /shaarli/favicon.ico {
    +            # serve the Shaarli favicon from its custom location
    +            alias /var/www/shaarli/images/favicon.ico;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +
    +    server {
    +        # virtual host for a second domain
    +        listen       80;
    +        server_name  second.domain.com;
    +
    +        location /minigal/ {
    +            access_log  /var/log/nginx/minigal.access.log;
    +            error_log   /var/log/nginx/minigal.error.log;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +}
    +
    + +

    Redirect HTTP to HTTPS

    +

    Assuming you have generated a (self-signed) key and certificate, and they are located under /home/john/ssl/localhost.{key,crt}, it is pretty straightforward to set an HTTP (:80) to HTTPS (:443) redirection to force SSL/TLS usage.

    +
    # /etc/nginx/nginx.conf
    +[...]
    +
    +http {
    +    [...]
    +
    +    index index.html index.php;
    +
    +    root        /home/john/web;
    +    access_log  /var/log/nginx/access.log;
    +    error_log   /var/log/nginx/error.log;
    +
    +    server {
    +        listen       80;
    +        server_name  localhost;
    +
    +        return 301 https://localhost$request_uri;
    +    }
    +
    +    server {
    +        listen       443 ssl;
    +        server_name  localhost;
    +
    +        ssl_certificate      /home/john/ssl/localhost.crt;
    +        ssl_certificate_key  /home/john/ssl/localhost.key;
    +
    +        location /shaarli/ {
    +            # Slim - rewrite URLs
    +            try_files $uri /index.php$is_args$args;
    +
    +            access_log  /var/log/nginx/shaarli.access.log;
    +            error_log   /var/log/nginx/shaarli.error.log;
    +        }
    +
    +        location = /shaarli/favicon.ico {
    +            # serve the Shaarli favicon from its custom location
    +            alias /var/www/shaarli/images/favicon.ico;
    +        }
    +
    +        include deny.conf;
    +        include static_assets.conf;
    +        include php.conf;
    +    }
    +}
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Server-requirements/index.html b/doc/html/Server-requirements/index.html new file mode 100644 index 0000000..ab1b0d3 --- /dev/null +++ b/doc/html/Server-requirements/index.html @@ -0,0 +1,475 @@ + + + + + + + + + + + Server requirements - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    PHP

    +

    Release information

    + +

    Supported versions

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    VersionStatusShaarli compatibility
    7.1Supported (v0.9.x):white_check_mark:
    7.0Supported:white_check_mark:
    5.6Supported:white_check_mark:
    5.5EOL: 2016-07-10:white_check_mark:
    5.4EOL: 2015-09-14:white_check_mark: (up to Shaarli 0.8.x)
    5.3EOL: 2014-08-14:white_check_mark: (up to Shaarli 0.8.x)
    +

    See also: +- Travis configuration

    +

    Dependency management

    +

    Starting with Shaarli v0.8.x, Composer is used to resolve, +download and install third-party PHP dependencies.

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    LibraryRequired?Usage
    shaarli/netscape-bookmark-parserAllImport bookmarks from Netscape files
    erusev/parsedownAllParse MarkDown syntax for the MarkDown plugin
    slim/slimAllHandle routes and middleware for the REST API
    +

    Extensions

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ExtensionRequired?Usage
    opensslAllOpenSSL, HTTPS
    php-mbstringCentOS, Fedora, RHEL, Windowsmultibyte (Unicode) string support
    php-gdoptionalthumbnail resizing
    php-intloptionallocalized text sorting (e.g. e->è->f)
    php-curloptionalusing cURL for fetching webpages and thumbnails in a more robust way
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Server-security/index.html b/doc/html/Server-security/index.html new file mode 100644 index 0000000..dbe9951 --- /dev/null +++ b/doc/html/Server-security/index.html @@ -0,0 +1,429 @@ + + + + + + + + + + + Server security - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    php.ini

    +

    PHP settings are defined in: +- a main configuration file, usually found under /etc/php5/php.ini; some distributions provide different configuration environments, e.g. + - /etc/php5/php.ini - used when running console scripts + - /etc/php5/apache2/php.ini - used when a client requests PHP resources from Apache + - /etc/php5/php-fpm.conf - used when PHP requests are proxied to PHP-FPM +- additional configuration files/entries, depending on the installed/enabled extensions: + - /etc/php/conf.d/xdebug.ini

    +

    Locate .ini files

    +

    Console environment

    +
    $ php --ini
    +Configuration File (php.ini) Path: /etc/php
    +Loaded Configuration File:         /etc/php/php.ini
    +Scan for additional .ini files in: /etc/php/conf.d
    +Additional .ini files parsed:      /etc/php/conf.d/xdebug.ini
    +
    + +

    Server environment

    +
      +
    • create a phpinfo.php script located in a path supported by the web server, e.g.
        +
      • Apache (with user dirs enabled): /home/myself/public_html/phpinfo.php
      • +
      • /var/www/test/phpinfo.php
      • +
      +
    • +
    • make sure the script is readable by the web server user/group (usually, www, www-data or httpd)
    • +
    • access the script from a web browser
    • +
    • look at the Loaded Configuration File and Scan this dir for additional .ini files entries
    • +
    +
    <?php phpinfo(); ?>
    +
    + +

    fail2ban

    +

    fail2ban is an intrusion prevention framework that reads server (Apache, SSH, etc.) and uses iptables profiles to block brute-force attempts: +- Official website +- Source code

    +

    Read Shaarli logs to ban IPs

    +

    Example configuration: +- allow 3 login attempts per IP address +- after 3 failures, permanently ban the corresponding IP adddress

    +

    /etc/fail2ban/jail.local

    +
    [shaarli-auth]
    +enabled  = true
    +port     = https,http
    +filter   = shaarli-auth
    +logpath  = /var/www/path/to/shaarli/data/log.txt
    +maxretry = 3
    +bantime = -1
    +
    + +

    /etc/fail2ban/filter.d/shaarli-auth.conf

    +
    [INCLUDES]
    +before = common.conf
    +[Definition]
    +failregex = \s-\s<HOST>\s-\sLogin failed for user.*$
    +ignoreregex = 
    +
    + +

    Robots - Restricting search engines and web crawler traffic

    +

    Creating a robots.txt with the following contents at the root of your Shaarli installation will prevent honest web crawlers from indexing each and every link and Daily page from a Shaarli instance, thus getting rid of a certain amount of unsollicited network traffic.

    +
    User-agent: *
    +Disallow: /
    +
    + +

    See: +- http://www.robotstxt.org/ +- http://www.robotstxt.org/robotstxt.html +- http://www.robotstxt.org/meta.html

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Shaarli-configuration/index.html b/doc/html/Shaarli-configuration/index.html new file mode 100644 index 0000000..95a487d --- /dev/null +++ b/doc/html/Shaarli-configuration/index.html @@ -0,0 +1,563 @@ + + + + + + + + + + + Shaarli configuration - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Foreword

    +

    Do not edit configuration options in index.php! Your changes would be lost.

    +

    Once your Shaarli instance is installed, the file data/config.json.php is generated: + it contains all settings in JSON format, and can be edited to customize values + it defines which plugins are enabled + its values override those defined in index.php + it is wrap in a PHP comment to prevent anyone accessing it, regardless of server configuration

    +

    File and directory permissions

    +

    The server process running Shaarli must have: +- read access to the following resources: + - PHP scripts: index.php, application/*.php, plugins/*.php + - 3rd party PHP and Javascript libraries: inc/*.php, inc/*.js + - static assets: + - CSS stylesheets: inc/*.css + - images/* + - RainTPL templates: tpl/*.html +- read, write and execution access to the following directories: + - cache - thumbnail cache + - data - link data store, configuration options + - pagecache - Atom/RSS feed cache + - tmp - RainTPL page cache

    +

    On a Linux distribution: +- the web server user will likely be www or http (for Apache2) +- it will be a member of a group of the same name: www:www, http:http +- to give it access to Shaarli, either: + - unzip Shaarli in the default web server location (usually /var/www/) and set the web server user as the owner + - put users in the same group as the web server, and set the appropriate access rights +- if you have a domain / subdomain to serve Shaarli, configure the server accordingly

    +

    Configuration

    +

    In data/config.json.php.

    +

    See also Plugin System.

    +

    Credentials

    +
    +

    You shouldn't edit those.

    +
    +

    login: Login username.
    +hash: Generated password hash.
    +salt: Password salt.

    +

    General

    +

    title: Shaarli's instance title.
    +header_link: Link to the homepage.
    +links_per_page: Number of shaares displayed per page.
    +timezone: See the list of supported timezones.
    +enabled_plugins: List of enabled plugins.

    +

    Security

    +

    session_protection_disabled: Disable session cookie hijacking protection (not recommended). +It might be useful if your IP adress often changes.
    +ban_after: Failed login attempts before being IP banned.
    +ban_duration: IP ban duration in seconds.
    +open_shaarli: Anyone can add a new link while logged out if enabled.
    +trusted_proxies: List of trusted IP which won't be banned after failed login attemps. Useful if Shaarli is behind a reverse proxy.
    +allowed_protocols: List of allowed protocols in shaare URLs or markdown-rendered descriptions. Useful if you want to store javascript: links (bookmarklets) in Shaarli (default: ["ftp", "ftps", "magnet"]).

    +

    Resources

    +

    data_dir: Data directory.
    +datastore: Shaarli's links database file path.
    +history: Shaarli's operation history file path. +updates: File path for the ran updates file.
    +log: Log file path.
    +update_check: Last update check file path.
    +raintpl_tpl: Templates directory.
    +raintpl_tmp: Template engine cache directory.
    +thumbnails_cache: Thumbnails cache directory.
    +page_cache: Shaarli's internal cache directory.
    +ban_file: Banned IP file path.

    +

    Updates

    +

    check_updates: Enable or disable update check to the git repository.
    +check_updates_branch: Git branch used to check updates (e.g. stable or master).
    +check_updates_interval: Look for new version every N seconds (default: every day).

    +

    Privacy

    +

    default_private_links: Check the private checkbox by default for every new link.
    +hide_public_links: All links are hidden while logged out.
    +hide_timestamps: Timestamps are hidden.

    +

    Feed

    +

    rss_permalinks: Enable this to redirect RSS links to Shaarli's permalinks instead of shaared URL.
    +show_atom: Display ATOM feed button.

    +

    Thumbnail

    +

    enable_thumbnails: Enable or disable thumbnail display.
    +enable_localcache: Enable or disable local cache.

    +

    Redirector

    +

    url: Redirector URL, such as anonym.to.
    +encode_url: Enable this if the redirector needs encoded URL to work properly.

    +

    Configuration file example

    +
    <?php /*
    +{
    +    "credentials": {
    +        "login": "<login>",
    +        "hash": "<password hash>",
    +        "salt": "<password salt>"
    +    },
    +    "security": {
    +        "ban_after": 4,
    +        "session_protection_disabled": false,
    +        "ban_duration": 1800,
    +        "trusted_proxies": [
    +            "1.2.3.4",
    +            "5.6.7.8"
    +        ],
    +        "allowed_protocols": [
    +            "ftp",
    +            "ftps",
    +            "magnet"
    +        ]
    +    },
    +    "resources": {
    +        "data_dir": "data",
    +        "config": "data\/config.php",
    +        "datastore": "data\/datastore.php",
    +        "ban_file": "data\/ipbans.php",
    +        "updates": "data\/updates.txt",
    +        "log": "data\/log.txt",
    +        "update_check": "data\/lastupdatecheck.txt",
    +        "raintpl_tmp": "tmp\/",
    +        "raintpl_tpl": "tpl\/",
    +        "thumbnails_cache": "cache",
    +        "page_cache": "pagecache"
    +    },
    +    "general": {
    +        "check_updates": true,
    +        "rss_permalinks": true,
    +        "links_per_page": 20,
    +        "default_private_links": true,
    +        "enable_thumbnails": true,
    +        "enable_localcache": true,
    +        "check_updates_branch": "stable",
    +        "check_updates_interval": 86400,
    +        "enabled_plugins": [
    +            "markdown",
    +            "wallabag",
    +            "archiveorg"
    +        ],
    +        "timezone": "Europe\/Paris",
    +        "title": "My Shaarli",
    +        "header_link": "?"
    +    },
    +    "extras": {
    +        "show_atom": false,
    +        "hide_public_links": false,
    +        "hide_timestamps": false,
    +        "open_shaarli": false,
    +        "redirector": "http://anonym.to/?",
    +        "redirector_encode_url": false
    +    },
    +    "general": {
    +        "header_link": "?",
    +        "links_per_page": 20,
    +        "enabled_plugins": [
    +            "markdown",
    +            "wallabag"
    +        ],
    +        "timezone": "Europe\/Paris",
    +        "title": "My Shaarli"
    +    },
    +    "updates": {
    +        "check_updates": true,
    +        "check_updates_branch": "stable",
    +        "check_updates_interval": 86400
    +    },
    +    "feed": {
    +        "rss_permalinks": true,
    +        "show_atom": false
    +    },
    +    "privacy": {
    +        "default_private_links": true,
    +        "hide_public_links": false,
    +        "hide_timestamps": false
    +    },
    +    "thumbnail": {
    +        "enable_thumbnails": true,
    +        "enable_localcache": true
    +    },
    +    "redirector": {
    +        "url": "http://anonym.to/?",
    +        "encode_url": false
    +    },
    +    "plugins": {
    +        "WALLABAG_URL": "http://demo.wallabag.org",
    +        "WALLABAG_VERSION": "1"
    +    }
    +} ?>
    +
    + +

    Additional configuration

    +

    The playvideos plugin may require that you adapt your server's +Content Security Policy +configuration to work properly.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Shaarli-images/index.html b/doc/html/Shaarli-images/index.html new file mode 100644 index 0000000..0fa93ca --- /dev/null +++ b/doc/html/Shaarli-images/index.html @@ -0,0 +1,425 @@ + + + + + + + + + + + Shaarli images - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Get and run a Shaarli image

    +

    DockerHub repository

    +

    The images can be found in the shaarli/shaarli +repository.

    +

    Available image tags

    +
      +
    • latest: master branch (tarball release)
    • +
    • stable: stable branch (tarball release)
    • +
    • dev: master branch (Git clone)
    • +
    +

    All images rely on: +- Debian 8 Jessie +- PHP5-FPM +- Nginx

    +

    Download from DockerHub

    +
    $ docker pull shaarli/shaarli
    +latest: Pulling from shaarli/shaarli
    +32716d9fcddb: Pull complete
    +84899d045435: Pull complete
    +4b6ad7444763: Pull complete
    +e0345ef7a3e0: Pull complete
    +5c1dd344094f: Pull complete
    +6422305a200b: Pull complete
    +7d63f861dbef: Pull complete
    +3eb97210645c: Pull complete
    +869319d746ff: Already exists
    +869319d746ff: Pulling fs layer
    +902b87aaaec9: Already exists
    +Digest: sha256:f836b4627b958b3f83f59c332f22f02fcd495ace3056f2be2c4912bd8704cc98
    +Status: Downloaded newer image for shaarli/shaarli:latest
    +
    + +

    Create and start a new container from the image

    +
    # map the host's :8000 port to the container's :80 port
    +$ docker create -p 8000:80 shaarli/shaarli
    +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    +
    +# launch the container in the background
    +$ docker start d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    +d40b7af693d678958adedfb88f87d6ea0237186c23de5c4102a55a8fcb499101
    +
    +# list active containers
    +$ docker ps
    +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    +d40b7af693d6  shaarli/shaarli  /usr/bin/supervisor  15 seconds ago  Up 4 seconds  0.0.0.0:8000->80/tcp  backstabbing_galileo
    +
    + +

    Stop and destroy a container

    +
    $ docker stop backstabbing_galileo  # those docker guys are really rude to physicists!
    +backstabbing_galileo
    +
    +# check the container is stopped
    +$ docker ps
    +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    +
    +# list ALL containers
    +$ docker ps -a
    +CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                      PORTS               NAMES
    +d40b7af693d6        shaarli/shaarli     /usr/bin/supervisor   5 minutes ago       Exited (0) 48 seconds ago                       backstabbing_galileo
    +
    +# destroy the container
    +$ docker rm backstabbing_galileo  # let's put an end to these barbarian practices
    +backstabbing_galileo
    +
    +$ docker ps -a
    +CONTAINER ID  IMAGE            COMMAND               CREATED         STATUS        PORTS                 NAMES
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Static-analysis/index.html b/doc/html/Static-analysis/index.html new file mode 100644 index 0000000..0dfb551 --- /dev/null +++ b/doc/html/Static-analysis/index.html @@ -0,0 +1,359 @@ + + + + + + + + + + + Static analysis - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    WIP

    +

    This topic is currently being discussed here: +- Fix coding style (static analysis) (#95) +- Continuous Integration tools & features (#130)

    +

    Usage

    +

    Static analysis tools can be installed with Composer, and used through Shaarli's Makefile.

    +

    For an overview of the available features, see: +- Code quality: Makefile to run static code checkers (#124) +- Run PHPCS against different coding standards (#276)

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Theming/index.html b/doc/html/Theming/index.html new file mode 100644 index 0000000..70a36dd --- /dev/null +++ b/doc/html/Theming/index.html @@ -0,0 +1,435 @@ + + + + + + + + + + + Theming - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Foreword

    +

    There are two ways of customizing how Shaarli looks:

    +
      +
    1. by using a custom CSS to override Shaarli's CSS
    2. +
    3. by using a full theme that provides its own RainTPL templates, CSS and Javascript resources
    4. +
    +

    Custom CSS

    +

    Shaarli's appearance can be modified by adding CSS rules to: +- Shaarli < v0.9.0: inc/user.css +- Shaarli >= v0.9.0: data/user.css

    +

    This file allows overriding rules defined in the template CSS files (only add changed rules), or define a whole new theme.

    +

    Note: Do not edit tpl/default/css/shaarli.css! Your changes would be overridden when updating Shaarli.

    +

    See also Download CSS styles from an OPML list

    +

    Themes

    +

    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

    +

    Installation: +- find a theme you'd like to install +- copy or clone the theme folder under tpl/<a_sweet_theme> +- enable the theme: + - Shaarli < v0.9.0: edit data/config.json.php and set the value of raintpl_tpl to the new theme name: + "raintpl_tpl": "tpl\/my-template\/" + - Shaarli >= v0.9.0: select the theme through the Tools page

    +

    Community CSS & themes

    +

    Custom CSS

    + +

    Themes

    + +

    Shaarli forks

    + +

    Example installation: AlbinoMouse theme

    +

    With the following configuration: +- Apache 2 / PHP 5.6 +- user sites are enabled, e.g. /home/user/public_html/somedir is served as http://localhost/~user/somedir +- http is the name of the Apache user

    +
    $ cd ~/public_html
    +
    +# clone repositories
    +$ git clone https://github.com/shaarli/Shaarli.git shaarli
    +$ pushd shaarli/tpl
    +$ git clone https://github.com/alexisju/albinomouse-template.git
    +$ popd
    +
    +# set access rights for Apache
    +$ chgrp -R http shaarli
    +$ chmod g+rwx shaarli shaarli/cache shaarli/data shaarli/pagecache shaarli/tmp
    +
    + +

    Get config written: +- go to the freshly installed site +- fill the install form +- log in to Shaarli

    +

    Edit Shaarli's configuration|Shaarli configuration:

    +
    # the file should be owned by Apache, thus not writeable => sudo
    +$ sudo sed -i s=tpl=tpl/albinomouse-template=g shaarli/data/config.php
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Troubleshooting/index.html b/doc/html/Troubleshooting/index.html new file mode 100644 index 0000000..ed1c433 --- /dev/null +++ b/doc/html/Troubleshooting/index.html @@ -0,0 +1,441 @@ + + + + + + + + + + + Troubleshooting - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Troubleshooting

    +

    Browser

    +

    Redirection issues (HTTP Referer)

    +

    Depending on its configuration and installed plugins, the browser may remove or alter (spoof) HTTP referers, thus preventing Shaarli from properly redirecting between pages.

    +

    See: +- HTTP referer (Wikipedia) +- Improve online privacy by controlling referrer information +- Better security, privacy and anonymity in Firefox

    +

    Firefox HTTP Referer options

    +

    HTTP settings are available by browsing about:config, here are the available settings and their values.

    +

    network.http.sendRefererHeader - determines when to send the Referer HTTP header +- 0: Never send the referring URL + - not recommended, may break some sites +- 1: Send only on clicked links +- 2 (default): Send for links and images

    +

    network.http.referer.XOriginPolicy - Cross-domain origin policy +- 0 (default): Always send +- 1: Send if base domains match +- 2: Send if hosts match

    +

    network.http.referer.spoofSource - Referer spoofing (~faking) +- false (default): real referer +- true: spoof referer (use target URI as referer) + - known to break some functionality in Shaarli

    +

    network.http.referer.trimmingPolicy - trim the URI not to send a full Referer +- 0 (default): send full URI +- 1: scheme+host+port+path +- 2: scheme+host+port

    +

    Firefox, localhost and redirections

    +

    localhost is not a proper Fully Qualified Domain Name (FQDN); if Firefox has been set up to spoof referers, or only accept requests from the same base domain/host, Shaarli redirections will not work properly.

    +

    To solve this, assign a local domain to your host, e.g.

    +
    127.0.0.1 localhost desktop localhost.lan
    +::1       localhost desktop localhost.lan
    +
    + +

    and browse Shaarli at http://localhost.lan/.

    +

    Related threads: +- What is localhost.localdomain for? +- Stop returning to the first page after editing a bookmark from another page

    +

    Login

    +

    I forgot my password!

    +

    Delete the file data/config.php and display the page again. You will be asked for a new login/password.

    +

    I'm locked out - Login bruteforce protection

    +

    Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

    +

    To remove the current IP bans, delete the file data/ipbans.php

    +

    List of all login attempts

    +

    The file data/log.txt shows all logins (successful or failed) and bans/lifted bans. +Search for failed in this file to look for unauthorized login attempts.

    +

    Hosting problems

    +

    Old PHP versions

    +
      +
    • On free.fr : free.fr now support php 5.6.x(link)and so support now the tag autocompletion but you have to do the following : At the root of your webspace create a sessions directory and a .htaccess file containing:
    • +
    +
    <IfDefine Free>
    +php56 1
    +</IfDefine>
    +
    + +
      +
    • If you have an error such as: Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to .php5
    • +
    • On 1and1 : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP).
    • +
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    • +
    +
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    +// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    +//if (strpos($status,'200 OK')) $title=html_extract_title($data);
    +
    + +
      +
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • +
    • On lost-oasis, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : <? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>. To fix this, remove this message from php-include/prepend.php
    • +
    +

    Dates are not properly formatted

    +

    Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

    +

    Problems on CentOS servers

    +

    On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

    +

    My session expires! I can't stay logged in

    +

    This can be caused by several things:

    +
      +
    • Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a session directory on the root of your website.) You may need to create the session directory of set it up.
    • +
    • Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the sessions subdirectory and add ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');. Make sure this directory is not browsable !)
    • +
    • If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses).
    • +
    • Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those.
    • +
    • You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time.
    • +
    • If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions.
    • +
    +

    Sessions do not seem to work correctly on your server

    +

    Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

    +

    pubsubhubbub support

    +

    Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config']['PUBSUBHUB_URL'] in your config.php

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Unit-tests/index.html b/doc/html/Unit-tests/index.html new file mode 100644 index 0000000..84580db --- /dev/null +++ b/doc/html/Unit-tests/index.html @@ -0,0 +1,492 @@ + + + + + + + + + + + Unit tests - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Setup your environment for tests

    +

    The framework used is PHPUnit; it can be installed with Composer, which is a dependency management tool.

    +

    Regarding Composer, you can either use: + a system-wide version, e.g. installed through your distro's package manager + a local version, downloadable here

    +

    Sample usage

    +
    # system-wide version
    +$ composer install
    +$ composer update
    +
    +# local version
    +$ php composer.phar self-update
    +$ php composer.phar install
    +$ php composer.phar update
    +
    + +

    Install Shaarli dev dependencies

    +
    $ cd /path/to/shaarli
    +$ composer update
    +
    + +

    Install and enable Xdebug to generate PHPUnit coverage reports

    +

    For Debian-based distros:

    +
    $ aptitude install php5-xdebug
    +
    + +

    For ArchLinux:

    +
    $ pacman -S xdebug
    +
    + +

    Then add the following line to /etc/php/php.ini:

    +
    zend_extension=xdebug.so
    +
    + +

    Run unit tests

    +

    Successful test suite:

    +
    $ make test
    +
    +-------
    +PHPUNIT
    +-------
    +PHPUnit 4.6.9 by Sebastian Bergmann and contributors.
    +
    +Configuration read from /home/virtualtam/public_html/shaarli/phpunit.xml
    +
    +....................................
    +
    +Time: 759 ms, Memory: 8.25Mb
    +
    +OK (36 tests, 65 assertions)
    +
    + +

    Test suite with failures and errors:

    +
    $ make test
    +-------
    +PHPUNIT
    +-------
    +PHPUnit 4.6.9 by Sebastian Bergmann and contributors.
    +
    +Configuration read from /home/virtualtam/public_html/shaarli/phpunit.xml
    +
    +E..FF...............................
    +
    +Time: 802 ms, Memory: 8.25Mb
    +
    +There was 1 error:
    +
    +1) LinkDBTest::testConstructLoggedIn
    +Missing argument 2 for LinkDB::__construct(), called in /home/virtualtam/public_html/shaarli/tests/Link\
    +DBTest.php on line 79 and defined
    +
    +/home/virtualtam/public_html/shaarli/application/LinkDB.php:58
    +/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:79
    +
    +--
    +
    +There were 2 failures:
    +
    +1) LinkDBTest::testCheckDBNew
    +Failed asserting that two strings are equal.
    +--- Expected
    ++++ Actual
    +@@ @@
    +-'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'
    ++'85eab0c610d4f68025f6ed6e6b6b5fabd4b55834'
    +
    +/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:121
    +
    +2) LinkDBTest::testCheckDBLoad
    +Failed asserting that two strings are equal.
    +--- Expected
    ++++ Actual
    +@@ @@
    +-'e3edea8ea7bb50be4bcb404df53fbb4546a7156e'
    ++'85eab0c610d4f68025f6ed6e6b6b5fabd4b55834'
    +
    +/home/virtualtam/public_html/shaarli/tests/LinkDBTest.php:133
    +
    +FAILURES!
    +Tests: 36, Assertions: 63, Errors: 1, Failures: 2.
    +
    + +

    Test results and coverage

    +

    By default, PHPUnit will run all suitable tests found under the tests directory.

    +

    Each test has 3 possible outcomes: + . - success + F - failure: the test was run but its results are invalid + * the code does not behave as expected + * dependencies to external elements: globals, session, cache... +* E - error: something went wrong and the tested code has crashed + * typos in the code, or in the test code + * dependencies to missing external elements

    +

    If Xdebug has been installed and activated, two coverage reports will be generated: + a summary in the console + a detailed HTML report with metrics for tested code + * to open it in a web browser: firefox coverage/index.html &

    +

    Executing specific tests

    +

    Add a @group annotation in a test class or method comment:

    +
    /**
    + * Netscape bookmark import
    + * @group WIP
    + */
    +class BookmarkImportTest extends PHPUnit_Framework_TestCase
    +{
    +   [...]
    +}
    +
    + +

    To run all tests annotated with @group WIP:

    +
    $ vendor/bin/phpunit --group WIP tests/
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Upgrade-and-migration/index.html b/doc/html/Upgrade-and-migration/index.html new file mode 100644 index 0000000..642942b --- /dev/null +++ b/doc/html/Upgrade-and-migration/index.html @@ -0,0 +1,534 @@ + + + + + + + + + + + Upgrade and migration - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Preparation

    +

    Note your current version

    +

    If anything goes wrong, it's important for us to know which version you're upgrading from.
    +The current version is present in the version.php file.

    +

    Backup your data

    +

    Shaarli stores all user data under the data directory: +- data/config.php - main configuration file +- data/datastore.php - bookmarked links +- data/ipbans.php - banned IP addresses +- data/updates.txt - contains all automatic update to the configuration and datastore files already run

    +

    See Shaarli configuration for more information about Shaarli resources.

    +

    It is recommended to backup this repository before starting updating/upgrading Shaarli: +- users with SSH access: copy or archive the directory to a temporary location +- users with FTP access: download a local copy of your Shaarli installation using your favourite client

    +

    Migrating data from a previous installation

    +

    As all user data is kept under data, this is the only directory you need to worry about when migrating to a new installation, which corresponds to the following steps:

    +
      +
    • backup the data directory
    • +
    • install or update Shaarli: +
    • +
    • check or restore the data directory
    • +
    + +

    All tagged revisions can be downloaded as tarballs or ZIP archives from the releases page.

    +

    We recommend that you use the latest release tarball with the -full suffix. It contains the dependencies, please read Download and installation for git complete instructions.

    +

    Once downloaded, extract the archive locally and update your remote installation (e.g. via FTP) -be sure you keep the content of the data directory!

    +

    After upgrading, access your fresh Shaarli installation from a web browser; the configuration and data store will then be automatically updated, and new settings added to data/config.json.php (see Shaarli configuration for more details).

    +

    Upgrading with Git

    +

    Updating a community Shaarli

    +

    If you have installed Shaarli from the community Git repository, simply pull new changes from your local clone:

    +
    $ cd /path/to/shaarli
    +$ git pull
    +
    +From github.com:shaarli/Shaarli
    + * branch            master     -> FETCH_HEAD
    +Updating ebd67c6..521f0e6
    +Fast-forward
    + application/Url.php   | 1 +
    + shaarli_version.php   | 2 +-
    + tests/Url/UrlTest.php | 1 +
    + 3 files changed, 3 insertions(+), 1 deletion(-)
    +
    + +

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    +
    $ composer install --no-dev
    +
    +Loading composer repositories with package information
    +Updating dependencies
    +  - Installing shaarli/netscape-bookmark-parser (v1.0.1)
    +    Downloading: 100%
    +
    + +

    Migrating and upgrading from Sebsauvage's repository

    +

    If you have installed Shaarli from Sebsauvage's original Git repository, you can use Git remotes to update your working copy.

    +

    The following guide assumes that: +- you have a basic knowledge of Git branching and remote repositories +- the default remote is named origin and points to Sebsauvage's repository +- the current branch is master + - if you have personal branches containing customizations, you will need to rebase them after the upgrade; beware though, a lot of changes have been made since the community fork has been created, so things are very likely to break! +- the working copy is clean: + - no versioned file has been locally modified + - no untracked files are present

    +

    Step 0: show repository information

    +
    $ cd /path/to/shaarli
    +
    +$ git remote -v
    +origin  https://github.com/sebsauvage/Shaarli (fetch)
    +origin  https://github.com/sebsauvage/Shaarli (push)
    +
    +$ git branch -vv
    +* master 029f75f [origin/master] Update README.md
    +
    +$ git status
    +On branch master
    +Your branch is up-to-date with 'origin/master'.
    +nothing to commit, working directory clean
    +
    + +

    Step 1: update Git remotes

    +
    $ git remote rename origin sebsauvage
    +$ git remote -v
    +sebsauvage  https://github.com/sebsauvage/Shaarli (fetch)
    +sebsauvage  https://github.com/sebsauvage/Shaarli (push)
    +
    +$ git remote add origin https://github.com/shaarli/Shaarli
    +$ git fetch origin
    +
    +remote: Counting objects: 3015, done.
    +remote: Compressing objects: 100% (19/19), done.
    +remote: Total 3015 (delta 446), reused 457 (delta 446), pack-reused 2550
    +Receiving objects: 100% (3015/3015), 2.59 MiB | 918.00 KiB/s, done.
    +Resolving deltas: 100% (1899/1899), completed with 48 local objects.
    +From https://github.com/shaarli/Shaarli
    + * [new branch]      master     -> origin/master
    + * [new branch]      stable     -> origin/stable
    +[...]
    + * [new tag]         v0.6.4     -> v0.6.4
    + * [new tag]         v0.7.0     -> v0.7.0
    +
    + +

    Step 2: use the stable community branch

    +
    $ git checkout origin/stable -b stable
    +Branch stable set up to track remote branch stable from origin.
    +Switched to a new branch 'stable'
    +
    +$ git branch -vv
    +  master 029f75f [sebsauvage/master] Update README.md
    +* stable 890afc3 [origin/stable] Merge pull request #509 from ArthurHoaro/v0.6.5
    +
    + +

    Shaarli >= v0.8.x: install/update third-party PHP dependencies using Composer:

    +
    $ composer install --no-dev
    +
    +Loading composer repositories with package information
    +Updating dependencies
    +  - Installing shaarli/netscape-bookmark-parser (v1.0.1)
    +    Downloading: 100%
    +
    + +

    Optionally, you can delete information related to the legacy version:

    +
    $ git branch -D master
    +Deleted branch master (was 029f75f).
    +
    +$ git remote remove sebsauvage
    +
    +$ git remote -v
    +origin  https://github.com/shaarli/Shaarli (fetch)
    +origin  https://github.com/shaarli/Shaarli (push)
    +
    +$ git gc
    +Counting objects: 3317, done.
    +Delta compression using up to 8 threads.
    +Compressing objects: 100% (1237/1237), done.
    +Writing objects: 100% (3317/3317), done.
    +Total 3317 (delta 2050), reused 3301 (delta 2034)to
    +
    + +

    Step 3: configuration

    +

    After migrating, access your fresh Shaarli installation from a web browser; the configuration will then be automatically updated, and new settings added to data/config.php (see Shaarli configuration for more details).

    +

    Troubleshooting

    +

    If the solutions provided here doesn't work, please open an issue specifying which version you're upgrading from and to.

    +

    You must specify an integer as a key

    +

    In v0.8.1 we changed how link keys are handled (from timestamps to incremental integers). +Take a look at data/updates.txt content.

    +

    updates.txt contains updateMethodDatastoreIds

    +

    Try to delete it and refresh your page while being logged in.

    +

    updates.txt doesn't exists or doesn't contain updateMethodDatastoreIds

    +
      +
    1. Create data/updates.txt if it doesn't exist.
    2. +
    3. Paste this string in the update file ;updateMethodRenameDashTags;
    4. +
    5. Login to Shaarli.
    6. +
    7. Delete the update file.
    8. +
    9. Refresh.
    10. +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/html/Versioning-and-Branches/index.html b/doc/html/Versioning-and-Branches/index.html new file mode 100644 index 0000000..406ad7f --- /dev/null +++ b/doc/html/Versioning-and-Branches/index.html @@ -0,0 +1,418 @@ + + + + + + + + + + + Versioning and Branches - Shaarli Documentation + + + + + + + + + + + + + + + + + +
    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    WORK IN PROGRESS

    +

    It's important to understand how Shaarli branches work, especially if you're maintaining a 3rd party tools for Shaarli (theme, plugin, etc.), to be sure stay compatible.

    +

    master branch

    +

    The master branch is the development branch. Any new change MUST go through this branch using Pull Requests.

    +

    Remarks:

    +
      +
    • This branch shouldn't be used for production as it isn't necessary stable.
    • +
    • 3rd party aren't required to be compatible with the latest changes.
    • +
    • Official plugins, themes and libraries (contained within Shaarli organization repos) must be compatible with the master branch.
    • +
    • The version in this branch is always dev.
    • +
    +

    v0.x branch

    +

    This v0.x branch, points to the latest v0.x.y release.

    +

    Explanation:

    +

    When a new version is released, it might contains a major bug which isn't detected right away. For example, a new PHP version is released, containing backward compatibility issue which doesn't work with Shaarli.

    +

    In this case, the issue is fixed in the master branch, and the fix is backported the to the v0.x branch. Then a new release is made from the v0.x branch.

    +

    This workflow allow us to fix any major bug detected, without having to release bleeding edge feature too soon.

    +

    latest branch

    +

    This branch point the latest release. It recommended to use it to get the latest tested changes.

    +

    stable branch

    +

    The stable branch doesn't contain any major bug, and is one major digit version behind the latest release.

    +

    For example, the current latest release is v0.8.3, the stable branch is an alias to the latest v0.7.x release. When the v0.9.0 version will be released, the stable will move to the latest v0.8.x release.

    +

    Remarks:

    +
      +
    • Shaarli release pace isn't fast, and the stable branch might be a few months behind the latest release.
    • +
    +

    Releases

    +

    Releases are always made from the latest v0.x branch.

    +

    Note that for every release, we manually generate a tarball which contains all Shaarli dependencies, making Shaarli's installation only one step.

    +

    Advices on 3rd party git repos workflow

    +

    Versioning

    +

    Any time a new Shaarli release is published, you should publish a new release of your repo if the changes affected you since the latest release (take a look at the changelog (Draft means not released yet) and the commit log (like tpl folder for themes)). You can either:

    +
      +
    • use the Shaarli version number, with your repo version. For example, if Shaarli v0.8.3 is released, publish a v0.8.3-1 release, where v0.8.3 states Shaarli compatibility and -1 is your own version digit for the current Shaarli version.
    • +
    • use your own versioning scheme, and state Shaarli compatibility in the release description.
    • +
    +

    Using this, any user will be able to pick the release matching his own Shaarli version.

    +

    Major bugfix backport releases

    +

    To be able to support backported fixes, it recommended to use our workflow:

    +
    # In master, fix the major bug
    +git commit -m "Katastrophe"
    +git push origin master
    +# Get your commit hash
    +git log --format="%H" -n 1
    +# Create a new branch from your latest release, let's say v0.8.2-1 (the tag name)
    +git checkout -b katastrophe v0.8.2-1
    +# Backport the fix commit to your brand new branch
    +git cherry-pick <fix commit hash>
    +git push origin katastrophe
    +# Then you just have to make a new release from the `katastrophe` branch tagged `v0.8.3-1`
    +
    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + « Previous + + + Next » + + +
    + + + + diff --git a/doc/config.json b/doc/html/config.json similarity index 100% rename from doc/config.json rename to doc/html/config.json diff --git a/doc/html/css/highlight.css b/doc/html/css/highlight.css new file mode 100644 index 0000000..0ae40a7 --- /dev/null +++ b/doc/html/css/highlight.css @@ -0,0 +1,124 @@ +/* +This is the GitHub theme for highlight.js + +github.com style (c) Vasily Polovnyov + +*/ + +.hljs { + display: block; + overflow-x: auto; + color: #333; + -webkit-text-size-adjust: none; +} + +.hljs-comment, +.diff .hljs-header, +.hljs-javadoc { + color: #998; + font-style: italic; +} + +.hljs-keyword, +.css .rule .hljs-keyword, +.hljs-winutils, +.nginx .hljs-title, +.hljs-subst, +.hljs-request, +.hljs-status { + color: #333; + font-weight: bold; +} + +.hljs-number, +.hljs-hexcolor, +.ruby .hljs-constant { + color: #008080; +} + +.hljs-string, +.hljs-tag .hljs-value, +.hljs-phpdoc, +.hljs-dartdoc, +.tex .hljs-formula { + color: #d14; +} + +.hljs-title, +.hljs-id, +.scss .hljs-preprocessor { + color: #900; + font-weight: bold; +} + +.hljs-list .hljs-keyword, +.hljs-subst { + font-weight: normal; +} + +.hljs-class .hljs-title, +.hljs-type, +.vhdl .hljs-literal, +.tex .hljs-command { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-tag .hljs-title, +.hljs-rule .hljs-property, +.django .hljs-tag .hljs-keyword { + color: #000080; + font-weight: normal; +} + +.hljs-attribute, +.hljs-variable, +.lisp .hljs-body, +.hljs-name { + color: #008080; +} + +.hljs-regexp { + color: #009926; +} + +.hljs-symbol, +.ruby .hljs-symbol .hljs-string, +.lisp .hljs-keyword, +.clojure .hljs-keyword, +.scheme .hljs-keyword, +.tex .hljs-special, +.hljs-prompt { + color: #990073; +} + +.hljs-built_in { + color: #0086b3; +} + +.hljs-preprocessor, +.hljs-pragma, +.hljs-pi, +.hljs-doctype, +.hljs-shebang, +.hljs-cdata { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.diff .hljs-change { + background: #0086b3; +} + +.hljs-chunk { + color: #aaa; +} diff --git a/doc/html/css/theme.css b/doc/html/css/theme.css new file mode 100644 index 0000000..099a2d8 --- /dev/null +++ b/doc/html/css/theme.css @@ -0,0 +1,12 @@ +/* + * This file is copied from the upstream ReadTheDocs Sphinx + * theme. To aid upgradability this file should *not* be edited. + * modifications we need should be included in theme_extra.css. + * + * https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/core/static/core/css/theme.css + */ + +*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}[hidden]{display:none}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:0}dfn{font-style:italic}ins{background:#ff9;color:#000;text-decoration:none}mark{background:#ff0;color:#000;font-style:italic;font-weight:bold}pre,code,.rst-content tt,kbd,samp{font-family:monospace,serif;_font-family:"courier new",monospace;font-size:1em}pre{white-space:pre}q{quotes:none}q:before,q:after{content:"";content:none}small{font-size:85%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}ul,ol,dl{margin:0;padding:0;list-style:none;list-style-image:none}li{list-style:none}dd{margin:0}img{border:0;-ms-interpolation-mode:bicubic;vertical-align:middle;max-width:100%}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{border:0;margin:0;padding:0}label{cursor:pointer}legend{border:0;*margin-left:-7px;padding:0;white-space:normal}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}button[disabled],input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;*width:13px;*height:13px}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top;resize:vertical}table{border-collapse:collapse;border-spacing:0}td{vertical-align:top}.chromeframe{margin:0.2em 0;background:#ccc;color:#000;padding:0.2em 0}.ir{display:block;border:0;text-indent:-999em;overflow:hidden;background-color:transparent;background-repeat:no-repeat;text-align:left;direction:ltr;*line-height:0}.ir br{display:none}.hidden{display:none !important;visibility:hidden}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.invisible{visibility:hidden}.relative{position:relative}big,small{font-size:100%}@media print{html,body,section{background:none !important}*{box-shadow:none !important;text-shadow:none !important;filter:none !important;-ms-filter:none !important}a,a:visited{text-decoration:underline}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}.fa:before,.rst-content .admonition-title:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-alert,.rst-content .note,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .warning,.rst-content .seealso,.rst-content .admonition-todo,.btn,input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"],select,textarea,.wy-menu-vertical li.on a,.wy-menu-vertical li.current>a,.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a,.wy-nav-top a{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}/*! + * Font Awesome 4.1.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:'FontAwesome';src:url("../fonts/fontawesome-webfont.eot?v=4.1.0");src:url("../fonts/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"),url("../fonts/fontawesome-webfont.woff?v=4.1.0") format("woff"),url("../fonts/fontawesome-webfont.ttf?v=4.1.0") format("truetype"),url("../fonts/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg");font-weight:normal;font-style:normal}.fa,.rst-content .admonition-title,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink,.icon{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:0.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:0.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:.2em .25em .15em;border:solid 0.08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left,.rst-content .pull-left.admonition-title,.rst-content h1 .pull-left.headerlink,.rst-content h2 .pull-left.headerlink,.rst-content h3 .pull-left.headerlink,.rst-content h4 .pull-left.headerlink,.rst-content h5 .pull-left.headerlink,.rst-content h6 .pull-left.headerlink,.rst-content dl dt .pull-left.headerlink,.pull-left.icon{margin-right:.3em}.fa.pull-right,.rst-content .pull-right.admonition-title,.rst-content h1 .pull-right.headerlink,.rst-content h2 .pull-right.headerlink,.rst-content h3 .pull-right.headerlink,.rst-content h4 .pull-right.headerlink,.rst-content h5 .pull-right.headerlink,.rst-content h6 .pull-right.headerlink,.rst-content dl dt .pull-right.headerlink,.pull-right.icon{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0);-webkit-transform:scale(-1, 1);-moz-transform:scale(-1, 1);-ms-transform:scale(-1, 1);-o-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:scale(1, -1);-moz-transform:scale(1, -1);-ms-transform:scale(1, -1);-o-transform:scale(1, -1);transform:scale(1, -1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before,.icon-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-gear:before,.fa-cog:before{content:""}.fa-trash-o:before{content:""}.fa-home:before,.icon-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-rotate-right:before,.fa-repeat:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before,.icon-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before{content:""}.fa-check-circle:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.rst-content .admonition-title:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before,.icon-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-warning:before,.fa-exclamation-triangle:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-gears:before,.fa-cogs:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook:before{content:""}.fa-github:before,.icon-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before,.icon-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.icon-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before,.icon-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-save:before,.fa-floppy-o:before{content:""}.fa-square:before{content:""}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before,.wy-dropdown .caret:before,.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-unsorted:before,.fa-sort:before{content:""}.fa-sort-down:before,.fa-sort-desc:before{content:""}.fa-sort-up:before,.fa-sort-asc:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-legal:before,.fa-gavel:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-flash:before,.fa-bolt:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-paste:before,.fa-clipboard:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-unlink:before,.fa-chain-broken:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:""}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:""}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:""}.fa-euro:before,.fa-eur:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-rupee:before,.fa-inr:before{content:""}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:""}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:""}.fa-won:before,.fa-krw:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before,.icon-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-turkish-lira:before,.fa-try:before{content:""}.fa-plus-square-o:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-institution:before,.fa-bank:before,.fa-university:before{content:""}.fa-mortar-board:before,.fa-graduation-cap:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-square:before,.fa-pied-piper:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:""}.fa-file-zip-o:before,.fa-file-archive-o:before{content:""}.fa-file-sound-o:before,.fa-file-audio-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before{content:""}.fa-ge:before,.fa-empire:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-send:before,.fa-paper-plane:before{content:""}.fa-send-o:before,.fa-paper-plane-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa,.rst-content .admonition-title,.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink,.icon,.wy-dropdown .caret,.wy-inline-validate.wy-inline-validate-success .wy-input-context,.wy-inline-validate.wy-inline-validate-danger .wy-input-context,.wy-inline-validate.wy-inline-validate-warning .wy-input-context,.wy-inline-validate.wy-inline-validate-info .wy-input-context{font-family:inherit}.fa:before,.rst-content .admonition-title:before,.rst-content h1 .headerlink:before,.rst-content h2 .headerlink:before,.rst-content h3 .headerlink:before,.rst-content h4 .headerlink:before,.rst-content h5 .headerlink:before,.rst-content h6 .headerlink:before,.rst-content dl dt .headerlink:before,.icon:before,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-success .wy-input-context:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-warning .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before{font-family:"FontAwesome";display:inline-block;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa,a .rst-content .admonition-title,.rst-content a .admonition-title,a .rst-content h1 .headerlink,.rst-content h1 a .headerlink,a .rst-content h2 .headerlink,.rst-content h2 a .headerlink,a .rst-content h3 .headerlink,.rst-content h3 a .headerlink,a .rst-content h4 .headerlink,.rst-content h4 a .headerlink,a .rst-content h5 .headerlink,.rst-content h5 a .headerlink,a .rst-content h6 .headerlink,.rst-content h6 a .headerlink,a .rst-content dl dt .headerlink,.rst-content dl dt a .headerlink,a .icon{display:inline-block;text-decoration:inherit}.btn .fa,.btn .rst-content .admonition-title,.rst-content .btn .admonition-title,.btn .rst-content h1 .headerlink,.rst-content h1 .btn .headerlink,.btn .rst-content h2 .headerlink,.rst-content h2 .btn .headerlink,.btn .rst-content h3 .headerlink,.rst-content h3 .btn .headerlink,.btn .rst-content h4 .headerlink,.rst-content h4 .btn .headerlink,.btn .rst-content h5 .headerlink,.rst-content h5 .btn .headerlink,.btn .rst-content h6 .headerlink,.rst-content h6 .btn .headerlink,.btn .rst-content dl dt .headerlink,.rst-content dl dt .btn .headerlink,.btn .icon,.nav .fa,.nav .rst-content .admonition-title,.rst-content .nav .admonition-title,.nav .rst-content h1 .headerlink,.rst-content h1 .nav .headerlink,.nav .rst-content h2 .headerlink,.rst-content h2 .nav .headerlink,.nav .rst-content h3 .headerlink,.rst-content h3 .nav .headerlink,.nav .rst-content h4 .headerlink,.rst-content h4 .nav .headerlink,.nav .rst-content h5 .headerlink,.rst-content h5 .nav .headerlink,.nav .rst-content h6 .headerlink,.rst-content h6 .nav .headerlink,.nav .rst-content dl dt .headerlink,.rst-content dl dt .nav .headerlink,.nav .icon{display:inline}.btn .fa.fa-large,.btn .rst-content .fa-large.admonition-title,.rst-content .btn .fa-large.admonition-title,.btn .rst-content h1 .fa-large.headerlink,.rst-content h1 .btn .fa-large.headerlink,.btn .rst-content h2 .fa-large.headerlink,.rst-content h2 .btn .fa-large.headerlink,.btn .rst-content h3 .fa-large.headerlink,.rst-content h3 .btn .fa-large.headerlink,.btn .rst-content h4 .fa-large.headerlink,.rst-content h4 .btn .fa-large.headerlink,.btn .rst-content h5 .fa-large.headerlink,.rst-content h5 .btn .fa-large.headerlink,.btn .rst-content h6 .fa-large.headerlink,.rst-content h6 .btn .fa-large.headerlink,.btn .rst-content dl dt .fa-large.headerlink,.rst-content dl dt .btn .fa-large.headerlink,.btn .fa-large.icon,.nav .fa.fa-large,.nav .rst-content .fa-large.admonition-title,.rst-content .nav .fa-large.admonition-title,.nav .rst-content h1 .fa-large.headerlink,.rst-content h1 .nav .fa-large.headerlink,.nav .rst-content h2 .fa-large.headerlink,.rst-content h2 .nav .fa-large.headerlink,.nav .rst-content h3 .fa-large.headerlink,.rst-content h3 .nav .fa-large.headerlink,.nav .rst-content h4 .fa-large.headerlink,.rst-content h4 .nav .fa-large.headerlink,.nav .rst-content h5 .fa-large.headerlink,.rst-content h5 .nav .fa-large.headerlink,.nav .rst-content h6 .fa-large.headerlink,.rst-content h6 .nav .fa-large.headerlink,.nav .rst-content dl dt .fa-large.headerlink,.rst-content dl dt .nav .fa-large.headerlink,.nav .fa-large.icon{line-height:0.9em}.btn .fa.fa-spin,.btn .rst-content .fa-spin.admonition-title,.rst-content .btn .fa-spin.admonition-title,.btn .rst-content h1 .fa-spin.headerlink,.rst-content h1 .btn .fa-spin.headerlink,.btn .rst-content h2 .fa-spin.headerlink,.rst-content h2 .btn .fa-spin.headerlink,.btn .rst-content h3 .fa-spin.headerlink,.rst-content h3 .btn .fa-spin.headerlink,.btn .rst-content h4 .fa-spin.headerlink,.rst-content h4 .btn .fa-spin.headerlink,.btn .rst-content h5 .fa-spin.headerlink,.rst-content h5 .btn .fa-spin.headerlink,.btn .rst-content h6 .fa-spin.headerlink,.rst-content h6 .btn .fa-spin.headerlink,.btn .rst-content dl dt .fa-spin.headerlink,.rst-content dl dt .btn .fa-spin.headerlink,.btn .fa-spin.icon,.nav .fa.fa-spin,.nav .rst-content .fa-spin.admonition-title,.rst-content .nav .fa-spin.admonition-title,.nav .rst-content h1 .fa-spin.headerlink,.rst-content h1 .nav .fa-spin.headerlink,.nav .rst-content h2 .fa-spin.headerlink,.rst-content h2 .nav .fa-spin.headerlink,.nav .rst-content h3 .fa-spin.headerlink,.rst-content h3 .nav .fa-spin.headerlink,.nav .rst-content h4 .fa-spin.headerlink,.rst-content h4 .nav .fa-spin.headerlink,.nav .rst-content h5 .fa-spin.headerlink,.rst-content h5 .nav .fa-spin.headerlink,.nav .rst-content h6 .fa-spin.headerlink,.rst-content h6 .nav .fa-spin.headerlink,.nav .rst-content dl dt .fa-spin.headerlink,.rst-content dl dt .nav .fa-spin.headerlink,.nav .fa-spin.icon{display:inline-block}.btn.fa:before,.rst-content .btn.admonition-title:before,.rst-content h1 .btn.headerlink:before,.rst-content h2 .btn.headerlink:before,.rst-content h3 .btn.headerlink:before,.rst-content h4 .btn.headerlink:before,.rst-content h5 .btn.headerlink:before,.rst-content h6 .btn.headerlink:before,.rst-content dl dt .btn.headerlink:before,.btn.icon:before{opacity:0.5;-webkit-transition:opacity 0.05s ease-in;-moz-transition:opacity 0.05s ease-in;transition:opacity 0.05s ease-in}.btn.fa:hover:before,.rst-content .btn.admonition-title:hover:before,.rst-content h1 .btn.headerlink:hover:before,.rst-content h2 .btn.headerlink:hover:before,.rst-content h3 .btn.headerlink:hover:before,.rst-content h4 .btn.headerlink:hover:before,.rst-content h5 .btn.headerlink:hover:before,.rst-content h6 .btn.headerlink:hover:before,.rst-content dl dt .btn.headerlink:hover:before,.btn.icon:hover:before{opacity:1}.btn-mini .fa:before,.btn-mini .rst-content .admonition-title:before,.rst-content .btn-mini .admonition-title:before,.btn-mini .rst-content h1 .headerlink:before,.rst-content h1 .btn-mini .headerlink:before,.btn-mini .rst-content h2 .headerlink:before,.rst-content h2 .btn-mini .headerlink:before,.btn-mini .rst-content h3 .headerlink:before,.rst-content h3 .btn-mini .headerlink:before,.btn-mini .rst-content h4 .headerlink:before,.rst-content h4 .btn-mini .headerlink:before,.btn-mini .rst-content h5 .headerlink:before,.rst-content h5 .btn-mini .headerlink:before,.btn-mini .rst-content h6 .headerlink:before,.rst-content h6 .btn-mini .headerlink:before,.btn-mini .rst-content dl dt .headerlink:before,.rst-content dl dt .btn-mini .headerlink:before,.btn-mini .icon:before{font-size:14px;vertical-align:-15%}.wy-alert,.rst-content .note,.rst-content .attention,.rst-content .caution,.rst-content .danger,.rst-content .error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .warning,.rst-content .seealso,.rst-content .admonition-todo{padding:12px;line-height:24px;margin-bottom:24px;background:#e7f2fa}.wy-alert-title,.rst-content .admonition-title{color:#fff;font-weight:bold;display:block;color:#fff;background:#6ab0de;margin:-12px;padding:6px 12px;margin-bottom:12px}.wy-alert.wy-alert-danger,.rst-content .wy-alert-danger.note,.rst-content .wy-alert-danger.attention,.rst-content .wy-alert-danger.caution,.rst-content .danger,.rst-content .error,.rst-content .wy-alert-danger.hint,.rst-content .wy-alert-danger.important,.rst-content .wy-alert-danger.tip,.rst-content .wy-alert-danger.warning,.rst-content .wy-alert-danger.seealso,.rst-content .wy-alert-danger.admonition-todo{background:#fdf3f2}.wy-alert.wy-alert-danger .wy-alert-title,.rst-content .wy-alert-danger.note .wy-alert-title,.rst-content .wy-alert-danger.attention .wy-alert-title,.rst-content .wy-alert-danger.caution .wy-alert-title,.rst-content .danger .wy-alert-title,.rst-content .error .wy-alert-title,.rst-content .wy-alert-danger.hint .wy-alert-title,.rst-content .wy-alert-danger.important .wy-alert-title,.rst-content .wy-alert-danger.tip .wy-alert-title,.rst-content .wy-alert-danger.warning .wy-alert-title,.rst-content .wy-alert-danger.seealso .wy-alert-title,.rst-content .wy-alert-danger.admonition-todo .wy-alert-title,.wy-alert.wy-alert-danger .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-danger .admonition-title,.rst-content .wy-alert-danger.note .admonition-title,.rst-content .wy-alert-danger.attention .admonition-title,.rst-content .wy-alert-danger.caution .admonition-title,.rst-content .danger .admonition-title,.rst-content .error .admonition-title,.rst-content .wy-alert-danger.hint .admonition-title,.rst-content .wy-alert-danger.important .admonition-title,.rst-content .wy-alert-danger.tip .admonition-title,.rst-content .wy-alert-danger.warning .admonition-title,.rst-content .wy-alert-danger.seealso .admonition-title,.rst-content .wy-alert-danger.admonition-todo .admonition-title{background:#f29f97}.wy-alert.wy-alert-warning,.rst-content .wy-alert-warning.note,.rst-content .attention,.rst-content .caution,.rst-content .wy-alert-warning.danger,.rst-content .wy-alert-warning.error,.rst-content .wy-alert-warning.hint,.rst-content .wy-alert-warning.important,.rst-content .wy-alert-warning.tip,.rst-content .warning,.rst-content .wy-alert-warning.seealso,.rst-content .admonition-todo{background:#ffedcc}.wy-alert.wy-alert-warning .wy-alert-title,.rst-content .wy-alert-warning.note .wy-alert-title,.rst-content .attention .wy-alert-title,.rst-content .caution .wy-alert-title,.rst-content .wy-alert-warning.danger .wy-alert-title,.rst-content .wy-alert-warning.error .wy-alert-title,.rst-content .wy-alert-warning.hint .wy-alert-title,.rst-content .wy-alert-warning.important .wy-alert-title,.rst-content .wy-alert-warning.tip .wy-alert-title,.rst-content .warning .wy-alert-title,.rst-content .wy-alert-warning.seealso .wy-alert-title,.rst-content .admonition-todo .wy-alert-title,.wy-alert.wy-alert-warning .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-warning .admonition-title,.rst-content .wy-alert-warning.note .admonition-title,.rst-content .attention .admonition-title,.rst-content .caution .admonition-title,.rst-content .wy-alert-warning.danger .admonition-title,.rst-content .wy-alert-warning.error .admonition-title,.rst-content .wy-alert-warning.hint .admonition-title,.rst-content .wy-alert-warning.important .admonition-title,.rst-content .wy-alert-warning.tip .admonition-title,.rst-content .warning .admonition-title,.rst-content .wy-alert-warning.seealso .admonition-title,.rst-content .admonition-todo .admonition-title{background:#f0b37e}.wy-alert.wy-alert-info,.rst-content .note,.rst-content .wy-alert-info.attention,.rst-content .wy-alert-info.caution,.rst-content .wy-alert-info.danger,.rst-content .wy-alert-info.error,.rst-content .wy-alert-info.hint,.rst-content .wy-alert-info.important,.rst-content .wy-alert-info.tip,.rst-content .wy-alert-info.warning,.rst-content .seealso,.rst-content .wy-alert-info.admonition-todo{background:#e7f2fa}.wy-alert.wy-alert-info .wy-alert-title,.rst-content .note .wy-alert-title,.rst-content .wy-alert-info.attention .wy-alert-title,.rst-content .wy-alert-info.caution .wy-alert-title,.rst-content .wy-alert-info.danger .wy-alert-title,.rst-content .wy-alert-info.error .wy-alert-title,.rst-content .wy-alert-info.hint .wy-alert-title,.rst-content .wy-alert-info.important .wy-alert-title,.rst-content .wy-alert-info.tip .wy-alert-title,.rst-content .wy-alert-info.warning .wy-alert-title,.rst-content .seealso .wy-alert-title,.rst-content .wy-alert-info.admonition-todo .wy-alert-title,.wy-alert.wy-alert-info .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-info .admonition-title,.rst-content .note .admonition-title,.rst-content .wy-alert-info.attention .admonition-title,.rst-content .wy-alert-info.caution .admonition-title,.rst-content .wy-alert-info.danger .admonition-title,.rst-content .wy-alert-info.error .admonition-title,.rst-content .wy-alert-info.hint .admonition-title,.rst-content .wy-alert-info.important .admonition-title,.rst-content .wy-alert-info.tip .admonition-title,.rst-content .wy-alert-info.warning .admonition-title,.rst-content .seealso .admonition-title,.rst-content .wy-alert-info.admonition-todo .admonition-title{background:#6ab0de}.wy-alert.wy-alert-success,.rst-content .wy-alert-success.note,.rst-content .wy-alert-success.attention,.rst-content .wy-alert-success.caution,.rst-content .wy-alert-success.danger,.rst-content .wy-alert-success.error,.rst-content .hint,.rst-content .important,.rst-content .tip,.rst-content .wy-alert-success.warning,.rst-content .wy-alert-success.seealso,.rst-content .wy-alert-success.admonition-todo{background:#dbfaf4}.wy-alert.wy-alert-success .wy-alert-title,.rst-content .wy-alert-success.note .wy-alert-title,.rst-content .wy-alert-success.attention .wy-alert-title,.rst-content .wy-alert-success.caution .wy-alert-title,.rst-content .wy-alert-success.danger .wy-alert-title,.rst-content .wy-alert-success.error .wy-alert-title,.rst-content .hint .wy-alert-title,.rst-content .important .wy-alert-title,.rst-content .tip .wy-alert-title,.rst-content .wy-alert-success.warning .wy-alert-title,.rst-content .wy-alert-success.seealso .wy-alert-title,.rst-content .wy-alert-success.admonition-todo .wy-alert-title,.wy-alert.wy-alert-success .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-success .admonition-title,.rst-content .wy-alert-success.note .admonition-title,.rst-content .wy-alert-success.attention .admonition-title,.rst-content .wy-alert-success.caution .admonition-title,.rst-content .wy-alert-success.danger .admonition-title,.rst-content .wy-alert-success.error .admonition-title,.rst-content .hint .admonition-title,.rst-content .important .admonition-title,.rst-content .tip .admonition-title,.rst-content .wy-alert-success.warning .admonition-title,.rst-content .wy-alert-success.seealso .admonition-title,.rst-content .wy-alert-success.admonition-todo .admonition-title{background:#1abc9c}.wy-alert.wy-alert-neutral,.rst-content .wy-alert-neutral.note,.rst-content .wy-alert-neutral.attention,.rst-content .wy-alert-neutral.caution,.rst-content .wy-alert-neutral.danger,.rst-content .wy-alert-neutral.error,.rst-content .wy-alert-neutral.hint,.rst-content .wy-alert-neutral.important,.rst-content .wy-alert-neutral.tip,.rst-content .wy-alert-neutral.warning,.rst-content .wy-alert-neutral.seealso,.rst-content .wy-alert-neutral.admonition-todo{background:#f3f6f6}.wy-alert.wy-alert-neutral .wy-alert-title,.rst-content .wy-alert-neutral.note .wy-alert-title,.rst-content .wy-alert-neutral.attention .wy-alert-title,.rst-content .wy-alert-neutral.caution .wy-alert-title,.rst-content .wy-alert-neutral.danger .wy-alert-title,.rst-content .wy-alert-neutral.error .wy-alert-title,.rst-content .wy-alert-neutral.hint .wy-alert-title,.rst-content .wy-alert-neutral.important .wy-alert-title,.rst-content .wy-alert-neutral.tip .wy-alert-title,.rst-content .wy-alert-neutral.warning .wy-alert-title,.rst-content .wy-alert-neutral.seealso .wy-alert-title,.rst-content .wy-alert-neutral.admonition-todo .wy-alert-title,.wy-alert.wy-alert-neutral .rst-content .admonition-title,.rst-content .wy-alert.wy-alert-neutral .admonition-title,.rst-content .wy-alert-neutral.note .admonition-title,.rst-content .wy-alert-neutral.attention .admonition-title,.rst-content .wy-alert-neutral.caution .admonition-title,.rst-content .wy-alert-neutral.danger .admonition-title,.rst-content .wy-alert-neutral.error .admonition-title,.rst-content .wy-alert-neutral.hint .admonition-title,.rst-content .wy-alert-neutral.important .admonition-title,.rst-content .wy-alert-neutral.tip .admonition-title,.rst-content .wy-alert-neutral.warning .admonition-title,.rst-content .wy-alert-neutral.seealso .admonition-title,.rst-content .wy-alert-neutral.admonition-todo .admonition-title{color:#404040;background:#e1e4e5}.wy-alert.wy-alert-neutral a,.rst-content .wy-alert-neutral.note a,.rst-content .wy-alert-neutral.attention a,.rst-content .wy-alert-neutral.caution a,.rst-content .wy-alert-neutral.danger a,.rst-content .wy-alert-neutral.error a,.rst-content .wy-alert-neutral.hint a,.rst-content .wy-alert-neutral.important a,.rst-content .wy-alert-neutral.tip a,.rst-content .wy-alert-neutral.warning a,.rst-content .wy-alert-neutral.seealso a,.rst-content .wy-alert-neutral.admonition-todo a{color:#2980B9}.wy-alert p:last-child,.rst-content .note p:last-child,.rst-content .attention p:last-child,.rst-content .caution p:last-child,.rst-content .danger p:last-child,.rst-content .error p:last-child,.rst-content .hint p:last-child,.rst-content .important p:last-child,.rst-content .tip p:last-child,.rst-content .warning p:last-child,.rst-content .seealso p:last-child,.rst-content .admonition-todo p:last-child{margin-bottom:0}.wy-tray-container{position:fixed;bottom:0px;left:0;z-index:600}.wy-tray-container li{display:block;width:300px;background:transparent;color:#fff;text-align:center;box-shadow:0 5px 5px 0 rgba(0,0,0,0.1);padding:0 24px;min-width:20%;opacity:0;height:0;line-height:56px;overflow:hidden;-webkit-transition:all 0.3s ease-in;-moz-transition:all 0.3s ease-in;transition:all 0.3s ease-in}.wy-tray-container li.wy-tray-item-success{background:#27AE60}.wy-tray-container li.wy-tray-item-info{background:#2980B9}.wy-tray-container li.wy-tray-item-warning{background:#E67E22}.wy-tray-container li.wy-tray-item-danger{background:#E74C3C}.wy-tray-container li.on{opacity:1;height:56px}@media screen and (max-width: 768px){.wy-tray-container{bottom:auto;top:0;width:100%}.wy-tray-container li{width:100%}}button{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;cursor:pointer;line-height:normal;-webkit-appearance:button;*overflow:visible}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button[disabled]{cursor:default}.btn{display:inline-block;border-radius:2px;line-height:normal;white-space:nowrap;text-align:center;cursor:pointer;font-size:100%;padding:6px 12px 8px 12px;color:#fff;border:1px solid rgba(0,0,0,0.1);background-color:#27AE60;text-decoration:none;font-weight:normal;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;box-shadow:0px 1px 2px -1px rgba(255,255,255,0.5) inset,0px -2px 0px 0px rgba(0,0,0,0.1) inset;outline-none:false;vertical-align:middle;*display:inline;zoom:1;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all 0.1s linear;-moz-transition:all 0.1s linear;transition:all 0.1s linear}.btn-hover{background:#2e8ece;color:#fff}.btn:hover{background:#2cc36b;color:#fff}.btn:focus{background:#2cc36b;outline:0}.btn:active{box-shadow:0px -1px 0px 0px rgba(0,0,0,0.05) inset,0px 2px 0px 0px rgba(0,0,0,0.1) inset;padding:8px 12px 6px 12px}.btn:visited{color:#fff}.btn:disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn-disabled{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn-disabled:hover,.btn-disabled:focus,.btn-disabled:active{background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);filter:alpha(opacity=40);opacity:0.4;cursor:not-allowed;box-shadow:none}.btn::-moz-focus-inner{padding:0;border:0}.btn-small{font-size:80%}.btn-info{background-color:#2980B9 !important}.btn-info:hover{background-color:#2e8ece !important}.btn-neutral{background-color:#f3f6f6 !important;color:#404040 !important}.btn-neutral:hover{background-color:#e5ebeb !important;color:#404040}.btn-neutral:visited{color:#404040 !important}.btn-success{background-color:#27AE60 !important}.btn-success:hover{background-color:#295 !important}.btn-danger{background-color:#E74C3C !important}.btn-danger:hover{background-color:#ea6153 !important}.btn-warning{background-color:#E67E22 !important}.btn-warning:hover{background-color:#e98b39 !important}.btn-invert{background-color:#222}.btn-invert:hover{background-color:#2f2f2f !important}.btn-link{background-color:transparent !important;color:#2980B9;box-shadow:none;border-color:transparent !important}.btn-link:hover{background-color:transparent !important;color:#409ad5 !important;box-shadow:none}.btn-link:active{background-color:transparent !important;color:#409ad5 !important;box-shadow:none}.btn-link:visited{color:#9B59B6}.wy-btn-group .btn,.wy-control .btn{vertical-align:middle}.wy-btn-group{margin-bottom:24px;*zoom:1}.wy-btn-group:before,.wy-btn-group:after{display:table;content:""}.wy-btn-group:after{clear:both}.wy-dropdown{position:relative;display:inline-block}.wy-dropdown-menu{position:absolute;left:0;display:none;float:left;top:100%;min-width:100%;background:#fcfcfc;z-index:100;border:solid 1px #cfd7dd;box-shadow:0 2px 2px 0 rgba(0,0,0,0.1);padding:12px}.wy-dropdown-menu>dd>a{display:block;clear:both;color:#404040;white-space:nowrap;font-size:90%;padding:0 12px;cursor:pointer}.wy-dropdown-menu>dd>a:hover{background:#2980B9;color:#fff}.wy-dropdown-menu>dd.divider{border-top:solid 1px #cfd7dd;margin:6px 0}.wy-dropdown-menu>dd.search{padding-bottom:12px}.wy-dropdown-menu>dd.search input[type="search"]{width:100%}.wy-dropdown-menu>dd.call-to-action{background:#e3e3e3;text-transform:uppercase;font-weight:500;font-size:80%}.wy-dropdown-menu>dd.call-to-action:hover{background:#e3e3e3}.wy-dropdown-menu>dd.call-to-action .btn{color:#fff}.wy-dropdown.wy-dropdown-up .wy-dropdown-menu{bottom:100%;top:auto;left:auto;right:0}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu{background:#fcfcfc;margin-top:2px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a{padding:6px 12px}.wy-dropdown.wy-dropdown-bubble .wy-dropdown-menu a:hover{background:#2980B9;color:#fff}.wy-dropdown.wy-dropdown-left .wy-dropdown-menu{right:0;text-align:right}.wy-dropdown-arrow:before{content:" ";border-bottom:5px solid #f5f5f5;border-left:5px solid transparent;border-right:5px solid transparent;position:absolute;display:block;top:-4px;left:50%;margin-left:-3px}.wy-dropdown-arrow.wy-dropdown-arrow-left:before{left:11px}.wy-form-stacked select{display:block}.wy-form-aligned input,.wy-form-aligned textarea,.wy-form-aligned select,.wy-form-aligned .wy-help-inline,.wy-form-aligned label{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-form-aligned .wy-control-group>label{display:inline-block;vertical-align:middle;width:10em;margin:6px 12px 0 0;float:left}.wy-form-aligned .wy-control{float:left}.wy-form-aligned .wy-control label{display:block}.wy-form-aligned .wy-control select{margin-top:6px}fieldset{border:0;margin:0;padding:0}legend{display:block;width:100%;border:0;padding:0;white-space:normal;margin-bottom:24px;font-size:150%;*margin-left:-7px}label{display:block;margin:0 0 0.3125em 0;color:#999;font-size:90%}input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}.wy-control-group{margin-bottom:24px;*zoom:1;max-width:68em;margin-left:auto;margin-right:auto;*zoom:1}.wy-control-group:before,.wy-control-group:after{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group:before,.wy-control-group:after{display:table;content:""}.wy-control-group:after{clear:both}.wy-control-group.wy-control-group-required>label:after{content:" *";color:#E74C3C}.wy-control-group .wy-form-full,.wy-control-group .wy-form-halves,.wy-control-group .wy-form-thirds{padding-bottom:12px}.wy-control-group .wy-form-full select,.wy-control-group .wy-form-halves select,.wy-control-group .wy-form-thirds select{width:100%}.wy-control-group .wy-form-full input[type="text"],.wy-control-group .wy-form-full input[type="password"],.wy-control-group .wy-form-full input[type="email"],.wy-control-group .wy-form-full input[type="url"],.wy-control-group .wy-form-full input[type="date"],.wy-control-group .wy-form-full input[type="month"],.wy-control-group .wy-form-full input[type="time"],.wy-control-group .wy-form-full input[type="datetime"],.wy-control-group .wy-form-full input[type="datetime-local"],.wy-control-group .wy-form-full input[type="week"],.wy-control-group .wy-form-full input[type="number"],.wy-control-group .wy-form-full input[type="search"],.wy-control-group .wy-form-full input[type="tel"],.wy-control-group .wy-form-full input[type="color"],.wy-control-group .wy-form-halves input[type="text"],.wy-control-group .wy-form-halves input[type="password"],.wy-control-group .wy-form-halves input[type="email"],.wy-control-group .wy-form-halves input[type="url"],.wy-control-group .wy-form-halves input[type="date"],.wy-control-group .wy-form-halves input[type="month"],.wy-control-group .wy-form-halves input[type="time"],.wy-control-group .wy-form-halves input[type="datetime"],.wy-control-group .wy-form-halves input[type="datetime-local"],.wy-control-group .wy-form-halves input[type="week"],.wy-control-group .wy-form-halves input[type="number"],.wy-control-group .wy-form-halves input[type="search"],.wy-control-group .wy-form-halves input[type="tel"],.wy-control-group .wy-form-halves input[type="color"],.wy-control-group .wy-form-thirds input[type="text"],.wy-control-group .wy-form-thirds input[type="password"],.wy-control-group .wy-form-thirds input[type="email"],.wy-control-group .wy-form-thirds input[type="url"],.wy-control-group .wy-form-thirds input[type="date"],.wy-control-group .wy-form-thirds input[type="month"],.wy-control-group .wy-form-thirds input[type="time"],.wy-control-group .wy-form-thirds input[type="datetime"],.wy-control-group .wy-form-thirds input[type="datetime-local"],.wy-control-group .wy-form-thirds input[type="week"],.wy-control-group .wy-form-thirds input[type="number"],.wy-control-group .wy-form-thirds input[type="search"],.wy-control-group .wy-form-thirds input[type="tel"],.wy-control-group .wy-form-thirds input[type="color"]{width:100%}.wy-control-group .wy-form-full{float:left;display:block;margin-right:2.35765%;width:100%;margin-right:0}.wy-control-group .wy-form-full:last-child{margin-right:0}.wy-control-group .wy-form-halves{float:left;display:block;margin-right:2.35765%;width:48.82117%}.wy-control-group .wy-form-halves:last-child{margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(2n){margin-right:0}.wy-control-group .wy-form-halves:nth-of-type(2n+1){clear:left}.wy-control-group .wy-form-thirds{float:left;display:block;margin-right:2.35765%;width:31.76157%}.wy-control-group .wy-form-thirds:last-child{margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n){margin-right:0}.wy-control-group .wy-form-thirds:nth-of-type(3n+1){clear:left}.wy-control-group.wy-control-group-no-input .wy-control{margin:6px 0 0 0;font-size:90%}.wy-control-no-input{display:inline-block;margin:6px 0 0 0;font-size:90%}.wy-control-group.fluid-input input[type="text"],.wy-control-group.fluid-input input[type="password"],.wy-control-group.fluid-input input[type="email"],.wy-control-group.fluid-input input[type="url"],.wy-control-group.fluid-input input[type="date"],.wy-control-group.fluid-input input[type="month"],.wy-control-group.fluid-input input[type="time"],.wy-control-group.fluid-input input[type="datetime"],.wy-control-group.fluid-input input[type="datetime-local"],.wy-control-group.fluid-input input[type="week"],.wy-control-group.fluid-input input[type="number"],.wy-control-group.fluid-input input[type="search"],.wy-control-group.fluid-input input[type="tel"],.wy-control-group.fluid-input input[type="color"]{width:100%}.wy-form-message-inline{display:inline-block;padding-left:0.3em;color:#666;vertical-align:middle;font-size:90%}.wy-form-message{display:block;color:#999;font-size:70%;margin-top:0.3125em;font-style:italic}input{line-height:normal}input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;*overflow:visible}input[type="text"],input[type="password"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="week"],input[type="number"],input[type="search"],input[type="tel"],input[type="color"]{-webkit-appearance:none;padding:6px;display:inline-block;border:1px solid #ccc;font-size:80%;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;box-shadow:inset 0 1px 3px #ddd;border-radius:0;-webkit-transition:border 0.3s linear;-moz-transition:border 0.3s linear;transition:border 0.3s linear}input[type="datetime-local"]{padding:0.34375em 0.625em}input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin-right:0.3125em;*height:13px;*width:13px}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus{outline:0;outline:thin dotted \9;border-color:#333}input.no-focus:focus{border-color:#ccc !important}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:1px auto #129FEA}input[type="text"][disabled],input[type="password"][disabled],input[type="email"][disabled],input[type="url"][disabled],input[type="date"][disabled],input[type="month"][disabled],input[type="time"][disabled],input[type="datetime"][disabled],input[type="datetime-local"][disabled],input[type="week"][disabled],input[type="number"][disabled],input[type="search"][disabled],input[type="tel"][disabled],input[type="color"][disabled]{cursor:not-allowed;background-color:#f3f6f6;color:#cad2d3}input:focus:invalid,textarea:focus:invalid,select:focus:invalid{color:#E74C3C;border:1px solid #E74C3C}input:focus:invalid:focus,textarea:focus:invalid:focus,select:focus:invalid:focus{border-color:#E74C3C}input[type="file"]:focus:invalid:focus,input[type="radio"]:focus:invalid:focus,input[type="checkbox"]:focus:invalid:focus{outline-color:#E74C3C}input.wy-input-large{padding:12px;font-size:100%}textarea{overflow:auto;vertical-align:top;width:100%;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif}select,textarea{padding:0.5em 0.625em;display:inline-block;border:1px solid #ccc;font-size:80%;box-shadow:inset 0 1px 3px #ddd;-webkit-transition:border 0.3s linear;-moz-transition:border 0.3s linear;transition:border 0.3s linear}select{border:1px solid #ccc;background-color:#fff}select[multiple]{height:auto}select:focus,textarea:focus{outline:0}select[disabled],textarea[disabled],input[readonly],select[readonly],textarea[readonly]{cursor:not-allowed;background-color:#fff;color:#cad2d3;border-color:transparent}.wy-checkbox,.wy-radio{margin:6px 0;color:#404040;display:block}.wy-checkbox input,.wy-radio input{vertical-align:baseline}.wy-form-message-inline{display:inline-block;*display:inline;*zoom:1;vertical-align:middle}.wy-input-prefix,.wy-input-suffix{white-space:nowrap}.wy-input-prefix .wy-input-context,.wy-input-suffix .wy-input-context{padding:6px;display:inline-block;font-size:80%;background-color:#f3f6f6;border:solid 1px #ccc;color:#999}.wy-input-suffix .wy-input-context{border-left:0}.wy-input-prefix .wy-input-context{border-right:0}.wy-control-group.wy-control-group-error .wy-form-message,.wy-control-group.wy-control-group-error>label{color:#E74C3C}.wy-control-group.wy-control-group-error input[type="text"],.wy-control-group.wy-control-group-error input[type="password"],.wy-control-group.wy-control-group-error input[type="email"],.wy-control-group.wy-control-group-error input[type="url"],.wy-control-group.wy-control-group-error input[type="date"],.wy-control-group.wy-control-group-error input[type="month"],.wy-control-group.wy-control-group-error input[type="time"],.wy-control-group.wy-control-group-error input[type="datetime"],.wy-control-group.wy-control-group-error input[type="datetime-local"],.wy-control-group.wy-control-group-error input[type="week"],.wy-control-group.wy-control-group-error input[type="number"],.wy-control-group.wy-control-group-error input[type="search"],.wy-control-group.wy-control-group-error input[type="tel"],.wy-control-group.wy-control-group-error input[type="color"]{border:solid 1px #E74C3C}.wy-control-group.wy-control-group-error textarea{border:solid 1px #E74C3C}.wy-inline-validate{white-space:nowrap}.wy-inline-validate .wy-input-context{padding:0.5em 0.625em;display:inline-block;font-size:80%}.wy-inline-validate.wy-inline-validate-success .wy-input-context{color:#27AE60}.wy-inline-validate.wy-inline-validate-danger .wy-input-context{color:#E74C3C}.wy-inline-validate.wy-inline-validate-warning .wy-input-context{color:#E67E22}.wy-inline-validate.wy-inline-validate-info .wy-input-context{color:#2980B9}.rotate-90{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.rotate-180{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.rotate-270{-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.mirror{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.mirror.rotate-90{-webkit-transform:scaleX(-1) rotate(90deg);-moz-transform:scaleX(-1) rotate(90deg);-ms-transform:scaleX(-1) rotate(90deg);-o-transform:scaleX(-1) rotate(90deg);transform:scaleX(-1) rotate(90deg)}.mirror.rotate-180{-webkit-transform:scaleX(-1) rotate(180deg);-moz-transform:scaleX(-1) rotate(180deg);-ms-transform:scaleX(-1) rotate(180deg);-o-transform:scaleX(-1) rotate(180deg);transform:scaleX(-1) rotate(180deg)}.mirror.rotate-270{-webkit-transform:scaleX(-1) rotate(270deg);-moz-transform:scaleX(-1) rotate(270deg);-ms-transform:scaleX(-1) rotate(270deg);-o-transform:scaleX(-1) rotate(270deg);transform:scaleX(-1) rotate(270deg)}@media only screen and (max-width: 480px){.wy-form button[type="submit"]{margin:0.7em 0 0}.wy-form input[type="text"],.wy-form input[type="password"],.wy-form input[type="email"],.wy-form input[type="url"],.wy-form input[type="date"],.wy-form input[type="month"],.wy-form input[type="time"],.wy-form input[type="datetime"],.wy-form input[type="datetime-local"],.wy-form input[type="week"],.wy-form input[type="number"],.wy-form input[type="search"],.wy-form input[type="tel"],.wy-form input[type="color"]{margin-bottom:0.3em;display:block}.wy-form label{margin-bottom:0.3em;display:block}.wy-form input[type="password"],.wy-form input[type="email"],.wy-form input[type="url"],.wy-form input[type="date"],.wy-form input[type="month"],.wy-form input[type="time"],.wy-form input[type="datetime"],.wy-form input[type="datetime-local"],.wy-form input[type="week"],.wy-form input[type="number"],.wy-form input[type="search"],.wy-form input[type="tel"],.wy-form input[type="color"]{margin-bottom:0}.wy-form-aligned .wy-control-group label{margin-bottom:0.3em;text-align:left;display:block;width:100%}.wy-form-aligned .wy-control{margin:1.5em 0 0 0}.wy-form .wy-help-inline,.wy-form-message-inline,.wy-form-message{display:block;font-size:80%;padding:6px 0}}@media screen and (max-width: 768px){.tablet-hide{display:none}}@media screen and (max-width: 480px){.mobile-hide{display:none}}.float-left{float:left}.float-right{float:right}.full-width{width:100%}.wy-table,.rst-content table.docutils,.rst-content table.field-list{border-collapse:collapse;border-spacing:0;empty-cells:show;margin-bottom:24px}.wy-table caption,.rst-content table.docutils caption,.rst-content table.field-list caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.wy-table td,.rst-content table.docutils td,.rst-content table.field-list td,.wy-table th,.rst-content table.docutils th,.rst-content table.field-list th{font-size:90%;margin:0;overflow:visible;padding:8px 16px}.wy-table td:first-child,.rst-content table.docutils td:first-child,.rst-content table.field-list td:first-child,.wy-table th:first-child,.rst-content table.docutils th:first-child,.rst-content table.field-list th:first-child{border-left-width:0}.wy-table thead,.rst-content table.docutils thead,.rst-content table.field-list thead{color:#000;text-align:left;vertical-align:bottom;white-space:nowrap}.wy-table thead th,.rst-content table.docutils thead th,.rst-content table.field-list thead th{font-weight:bold;border-bottom:solid 2px #e1e4e5}.wy-table td,.rst-content table.docutils td,.rst-content table.field-list td{background-color:transparent;vertical-align:middle}.wy-table td p,.rst-content table.docutils td p,.rst-content table.field-list td p{line-height:18px}.wy-table td p:last-child,.rst-content table.docutils td p:last-child,.rst-content table.field-list td p:last-child{margin-bottom:0}.wy-table .wy-table-cell-min,.rst-content table.docutils .wy-table-cell-min,.rst-content table.field-list .wy-table-cell-min{width:1%;padding-right:0}.wy-table .wy-table-cell-min input[type=checkbox],.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox],.wy-table .wy-table-cell-min input[type=checkbox],.rst-content table.docutils .wy-table-cell-min input[type=checkbox],.rst-content table.field-list .wy-table-cell-min input[type=checkbox]{margin:0}.wy-table-secondary{color:gray;font-size:90%}.wy-table-tertiary{color:gray;font-size:80%}.wy-table-odd td,.wy-table-striped tr:nth-child(2n-1) td,.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td{background-color:#f3f6f6}.wy-table-backed{background-color:#f3f6f6}.wy-table-bordered-all,.rst-content table.docutils{border:1px solid #e1e4e5}.wy-table-bordered-all td,.rst-content table.docutils td{border-bottom:1px solid #e1e4e5;border-left:1px solid #e1e4e5}.wy-table-bordered-all tbody>tr:last-child td,.rst-content table.docutils tbody>tr:last-child td{border-bottom-width:0}.wy-table-bordered{border:1px solid #e1e4e5}.wy-table-bordered-rows td{border-bottom:1px solid #e1e4e5}.wy-table-bordered-rows tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-horizontal td,.wy-table-horizontal th{border-width:0 0 1px 0;border-bottom:1px solid #e1e4e5}.wy-table-horizontal tbody>tr:last-child td{border-bottom-width:0}.wy-table-responsive{margin-bottom:24px;max-width:100%;overflow:auto}.wy-table-responsive table{margin-bottom:0 !important}.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}a{color:#2980B9;text-decoration:none}a:hover{color:#3091d1}a:visited{color:#9B59B6}html{height:100%;overflow-x:hidden}body{font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;font-weight:normal;color:#404040;min-height:100%;overflow-x:hidden;background:#edf0f2}.wy-text-left{text-align:left}.wy-text-center{text-align:center}.wy-text-right{text-align:right}.wy-text-large{font-size:120%}.wy-text-normal{font-size:100%}.wy-text-small,small{font-size:80%}.wy-text-strike{text-decoration:line-through}.wy-text-warning{color:#E67E22 !important}a.wy-text-warning:hover{color:#eb9950 !important}.wy-text-info{color:#2980B9 !important}a.wy-text-info:hover{color:#409ad5 !important}.wy-text-success{color:#27AE60 !important}a.wy-text-success:hover{color:#36d278 !important}.wy-text-danger{color:#E74C3C !important}a.wy-text-danger:hover{color:#ed7669 !important}.wy-text-neutral{color:#404040 !important}a.wy-text-neutral:hover{color:#595959 !important}h1,h2,h3,h4,h5,h6,legend{margin-top:0;font-weight:700;font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif}p{line-height:24px;margin:0;font-size:16px;margin-bottom:24px}h1{font-size:175%}h2{font-size:150%}h3{font-size:125%}h4{font-size:115%}h5{font-size:110%}h6{font-size:100%}hr{display:block;height:1px;border:0;border-top:1px solid #e1e4e5;margin:24px 0;padding:0}code,.rst-content tt{white-space:nowrap;max-width:100%;background:#fff;border:solid 1px #e1e4e5;font-size:75%;padding:0 5px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;color:#E74C3C;overflow-x:auto}code.code-large,.rst-content tt.code-large{font-size:90%}.wy-plain-list-disc,.rst-content .section ul,.rst-content .toctree-wrapper ul,article ul{list-style:disc;line-height:24px;margin-bottom:24px}.wy-plain-list-disc li,.rst-content .section ul li,.rst-content .toctree-wrapper ul li,article ul li{list-style:disc;margin-left:24px}.wy-plain-list-disc li p:last-child,.rst-content .section ul li p:last-child,.rst-content .toctree-wrapper ul li p:last-child,article ul li p:last-child{margin-bottom:0}.wy-plain-list-disc li ul,.rst-content .section ul li ul,.rst-content .toctree-wrapper ul li ul,article ul li ul{margin-bottom:0}.wy-plain-list-disc li li,.rst-content .section ul li li,.rst-content .toctree-wrapper ul li li,article ul li li{list-style:circle}.wy-plain-list-disc li li li,.rst-content .section ul li li li,.rst-content .toctree-wrapper ul li li li,article ul li li li{list-style:square}.wy-plain-list-disc li ol li,.rst-content .section ul li ol li,.rst-content .toctree-wrapper ul li ol li,article ul li ol li{list-style:decimal}.wy-plain-list-decimal,.rst-content .section ol,.rst-content ol.arabic,article ol{list-style:decimal;line-height:24px;margin-bottom:24px}.wy-plain-list-decimal li,.rst-content .section ol li,.rst-content ol.arabic li,article ol li{list-style:decimal;margin-left:24px}.wy-plain-list-decimal li p:last-child,.rst-content .section ol li p:last-child,.rst-content ol.arabic li p:last-child,article ol li p:last-child{margin-bottom:0}.wy-plain-list-decimal li ul,.rst-content .section ol li ul,.rst-content ol.arabic li ul,article ol li ul{margin-bottom:0}.wy-plain-list-decimal li ul li,.rst-content .section ol li ul li,.rst-content ol.arabic li ul li,article ol li ul li{list-style:disc}.codeblock-example{border:1px solid #e1e4e5;border-bottom:none;padding:24px;padding-top:48px;font-weight:500;background:#fff;position:relative}.codeblock-example:after{content:"Example";position:absolute;top:0px;left:0px;background:#9B59B6;color:#fff;padding:6px 12px}.codeblock-example.prettyprint-example-only{border:1px solid #e1e4e5;margin-bottom:24px}.codeblock,pre.literal-block,.rst-content .literal-block,.rst-content pre.literal-block,div[class^='highlight']{border:1px solid #e1e4e5;padding:0px;overflow-x:auto;background:#fff;margin:1px 0 24px 0}.codeblock div[class^='highlight'],pre.literal-block div[class^='highlight'],.rst-content .literal-block div[class^='highlight'],div[class^='highlight'] div[class^='highlight']{border:none;background:none;margin:0}div[class^='highlight'] td.code{width:100%}.linenodiv pre{border-right:solid 1px #e6e9ea;margin:0;padding:12px 12px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;line-height:1.5;color:#d9d9d9}div[class^='highlight'] pre{white-space:pre;margin:0;padding:12px 12px;font-family:Consolas,"Andale Mono WT","Andale Mono","Lucida Console","Lucida Sans Typewriter","DejaVu Sans Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L",Monaco,"Courier New",Courier,monospace;font-size:12px;line-height:1.5;display:block;overflow:auto;color:#404040}@media print{.codeblock,pre.literal-block,.rst-content .literal-block,.rst-content pre.literal-block,div[class^='highlight'],div[class^='highlight'] pre{white-space:pre-wrap}}.hll{background-color:#ffc;margin:0 -12px;padding:0 12px;display:block}.c{color:#998;font-style:italic}.err{color:#a61717;background-color:#e3d2d2}.k{font-weight:bold}.o{font-weight:bold}.cm{color:#998;font-style:italic}.cp{color:#999;font-weight:bold}.c1{color:#998;font-style:italic}.cs{color:#999;font-weight:bold;font-style:italic}.gd{color:#000;background-color:#fdd}.gd .x{color:#000;background-color:#faa}.ge{font-style:italic}.gr{color:#a00}.gh{color:#999}.gi{color:#000;background-color:#dfd}.gi .x{color:#000;background-color:#afa}.go{color:#888}.gp{color:#555}.gs{font-weight:bold}.gu{color:purple;font-weight:bold}.gt{color:#a00}.kc{font-weight:bold}.kd{font-weight:bold}.kn{font-weight:bold}.kp{font-weight:bold}.kr{font-weight:bold}.kt{color:#458;font-weight:bold}.m{color:#099}.s{color:#d14}.n{color:#333}.na{color:teal}.nb{color:#0086b3}.nc{color:#458;font-weight:bold}.no{color:teal}.ni{color:purple}.ne{color:#900;font-weight:bold}.nf{color:#900;font-weight:bold}.nn{color:#555}.nt{color:navy}.nv{color:teal}.ow{font-weight:bold}.w{color:#bbb}.mf{color:#099}.mh{color:#099}.mi{color:#099}.mo{color:#099}.sb{color:#d14}.sc{color:#d14}.sd{color:#d14}.s2{color:#d14}.se{color:#d14}.sh{color:#d14}.si{color:#d14}.sx{color:#d14}.sr{color:#009926}.s1{color:#d14}.ss{color:#990073}.bp{color:#999}.vc{color:teal}.vg{color:teal}.vi{color:teal}.il{color:#099}.gc{color:#999;background-color:#EAF2F5}.wy-breadcrumbs li{display:inline-block}.wy-breadcrumbs li.wy-breadcrumbs-aside{float:right}.wy-breadcrumbs li a{display:inline-block;padding:5px}.wy-breadcrumbs li a:first-child{padding-left:0}.wy-breadcrumbs-extra{margin-bottom:0;color:#b3b3b3;font-size:80%;display:inline-block}@media screen and (max-width: 480px){.wy-breadcrumbs-extra{display:none}.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}@media print{.wy-breadcrumbs li.wy-breadcrumbs-aside{display:none}}.wy-affix{position:fixed;top:1.618em}.wy-menu a:hover{text-decoration:none}.wy-menu-horiz{*zoom:1}.wy-menu-horiz:before,.wy-menu-horiz:after{display:table;content:""}.wy-menu-horiz:after{clear:both}.wy-menu-horiz ul,.wy-menu-horiz li{display:inline-block}.wy-menu-horiz li:hover{background:rgba(255,255,255,0.1)}.wy-menu-horiz li.divide-left{border-left:solid 1px #404040}.wy-menu-horiz li.divide-right{border-right:solid 1px #404040}.wy-menu-horiz a{height:32px;display:inline-block;line-height:32px;padding:0 16px}.wy-menu-vertical header{height:32px;display:inline-block;line-height:32px;padding:0 1.618em;display:block;font-weight:bold;text-transform:uppercase;font-size:80%;color:#2980B9;white-space:nowrap}.wy-menu-vertical ul{margin-bottom:0}.wy-menu-vertical li.divide-top{border-top:solid 1px #404040}.wy-menu-vertical li.divide-bottom{border-bottom:solid 1px #404040}.wy-menu-vertical li.current{background:#e3e3e3}.wy-menu-vertical li.current a{color:gray;border-right:solid 1px #c9c9c9;padding:0.4045em 2.427em}.wy-menu-vertical li.current a:hover{background:#d6d6d6}.wy-menu-vertical li.on a,.wy-menu-vertical li.current>a{color:#404040;padding:0.4045em 1.618em;font-weight:bold;position:relative;background:#fcfcfc;border:none;border-bottom:solid 1px #c9c9c9;border-top:solid 1px #c9c9c9;padding-left:1.618em -4px}.wy-menu-vertical li.on a:hover,.wy-menu-vertical li.current>a:hover{background:#fcfcfc}.wy-menu-vertical li.toctree-l2.current>a{background:#c9c9c9;padding:0.4045em 2.427em}.wy-menu-vertical li.current ul{display:block}.wy-menu-vertical li ul{margin-bottom:0;display:none}.wy-menu-vertical .local-toc li ul{display:block}.wy-menu-vertical li ul li a{margin-bottom:0;color:#b3b3b3;font-weight:normal}.wy-menu-vertical a{display:inline-block;line-height:18px;padding:0.4045em 1.618em;display:block;position:relative;font-size:90%;color:#b3b3b3}.wy-menu-vertical a:hover{background-color:#4e4a4a;cursor:pointer}.wy-menu-vertical a:active{background-color:#2980B9;cursor:pointer;color:#fff}.wy-side-nav-search{z-index:200;background-color:#2980B9;text-align:center;padding:0.809em;display:block;color:#fcfcfc;margin-bottom:0.809em}.wy-side-nav-search input[type=text]{width:100%;border-radius:50px;padding:6px 12px;border-color:#2472a4}.wy-side-nav-search img{display:block;margin:auto auto 0.809em auto;height:45px;width:45px;background-color:#2980B9;padding:5px;border-radius:100%}.wy-side-nav-search>a,.wy-side-nav-search .wy-dropdown>a{color:#fcfcfc;font-size:100%;font-weight:bold;display:inline-block;padding:4px 6px;margin-bottom:0.809em}.wy-side-nav-search>a:hover,.wy-side-nav-search .wy-dropdown>a:hover{background:rgba(255,255,255,0.1)}.wy-nav .wy-menu-vertical header{color:#2980B9}.wy-nav .wy-menu-vertical a{color:#b3b3b3}.wy-nav .wy-menu-vertical a:hover{background-color:#2980B9;color:#fff}[data-menu-wrap]{-webkit-transition:all 0.2s ease-in;-moz-transition:all 0.2s ease-in;transition:all 0.2s ease-in;position:absolute;opacity:1;width:100%;opacity:0}[data-menu-wrap].move-center{left:0;right:auto;opacity:1}[data-menu-wrap].move-left{right:auto;left:-100%;opacity:0}[data-menu-wrap].move-right{right:-100%;left:auto;opacity:0}.wy-body-for-nav{background:left repeat-y #fcfcfc;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOERBMTRGRDBFMUUxMUUzODUwMkJCOThDMEVFNURFMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxOERBMTRGRTBFMUUxMUUzODUwMkJCOThDMEVFNURFMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE4REExNEZCMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjE4REExNEZDMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+EwrlwAAAAA5JREFUeNpiMDU0BAgwAAE2AJgB9BnaAAAAAElFTkSuQmCC);background-size:300px 1px}.wy-grid-for-nav{position:absolute;width:100%;height:100%}.wy-nav-side{position:absolute;top:0;left:0;width:300px;overflow:hidden;min-height:100%;background:#343131;z-index:200}.wy-nav-top{display:none;background:#2980B9;color:#fff;padding:0.4045em 0.809em;position:relative;line-height:50px;text-align:center;font-size:100%;*zoom:1}.wy-nav-top:before,.wy-nav-top:after{display:table;content:""}.wy-nav-top:after{clear:both}.wy-nav-top a{color:#fff;font-weight:bold}.wy-nav-top img{margin-right:12px;height:45px;width:45px;background-color:#2980B9;padding:5px;border-radius:100%}.wy-nav-top i{font-size:30px;float:left;cursor:pointer}.wy-nav-content-wrap{margin-left:300px;background:#fcfcfc;min-height:100%}.wy-nav-content{padding:1.618em 3.236em;height:100%;max-width:800px;margin:auto}.wy-body-mask{position:fixed;width:100%;height:100%;background:rgba(0,0,0,0.2);display:none;z-index:499}.wy-body-mask.on{display:block}footer{color:#999}footer p{margin-bottom:12px}.rst-footer-buttons{*zoom:1}.rst-footer-buttons:before,.rst-footer-buttons:after{display:table;content:""}.rst-footer-buttons:after{clear:both}#search-results .search li{margin-bottom:24px;border-bottom:solid 1px #e1e4e5;padding-bottom:24px}#search-results .search li:first-child{border-top:solid 1px #e1e4e5;padding-top:24px}#search-results .search li a{font-size:120%;margin-bottom:12px;display:inline-block}#search-results .context{color:gray;font-size:90%}@media screen and (max-width: 768px){.wy-body-for-nav{background:#fcfcfc}.wy-nav-top{display:block}.wy-nav-side{left:-300px}.wy-nav-side.shift{width:85%;left:0}.wy-nav-content-wrap{margin-left:0}.wy-nav-content-wrap .wy-nav-content{padding:1.618em}.wy-nav-content-wrap.shift{position:fixed;min-width:100%;left:85%;top:0;height:100%;overflow:hidden}}@media screen and (min-width: 1400px){.wy-nav-content-wrap{background:rgba(0,0,0,0.05)}.wy-nav-content{margin:0;background:#fcfcfc}}@media print{.rst-versions,footer,.wy-nav-side{display:none}.wy-nav-content-wrap{margin-left:0}}nav.stickynav{position:fixed;top:0}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa,.rst-versions .rst-current-version .rst-content .admonition-title,.rst-content .rst-versions .rst-current-version .admonition-title,.rst-versions .rst-current-version .rst-content h1 .headerlink,.rst-content h1 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h2 .headerlink,.rst-content h2 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h3 .headerlink,.rst-content h3 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h4 .headerlink,.rst-content h4 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h5 .headerlink,.rst-content h5 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content h6 .headerlink,.rst-content h6 .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .rst-content dl dt .headerlink,.rst-content dl dt .rst-versions .rst-current-version .headerlink,.rst-versions .rst-current-version .icon{color:#fcfcfc}.rst-versions .rst-current-version .fa-book,.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book,.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book,.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}}.rst-content img{max-width:100%;height:auto !important}.rst-content div.figure{margin-bottom:24px}.rst-content div.figure.align-center{text-align:center}.rst-content .section>img{margin-bottom:24px}.rst-content blockquote{margin-left:24px;line-height:24px;margin-bottom:24px}.rst-content .note .last,.rst-content .attention .last,.rst-content .caution .last,.rst-content .danger .last,.rst-content .error .last,.rst-content .hint .last,.rst-content .important .last,.rst-content .tip .last,.rst-content .warning .last,.rst-content .seealso .last,.rst-content .admonition-todo .last{margin-bottom:0}.rst-content .admonition-title:before{margin-right:4px}.rst-content .admonition table{border-color:rgba(0,0,0,0.1)}.rst-content .admonition table td,.rst-content .admonition table th{background:transparent !important;border-color:rgba(0,0,0,0.1) !important}.rst-content .section ol.loweralpha,.rst-content .section ol.loweralpha li{list-style:lower-alpha}.rst-content .section ol.upperalpha,.rst-content .section ol.upperalpha li{list-style:upper-alpha}.rst-content .section ol p,.rst-content .section ul p{margin-bottom:12px}.rst-content .line-block{margin-left:24px}.rst-content .topic-title{font-weight:bold;margin-bottom:12px}.rst-content .toc-backref{color:#404040}.rst-content .align-right{float:right;margin:0px 0px 24px 24px}.rst-content .align-left{float:left;margin:0px 24px 24px 0px}.rst-content .align-center{margin:auto;display:block}.rst-content h1 .headerlink,.rst-content h2 .headerlink,.rst-content h3 .headerlink,.rst-content h4 .headerlink,.rst-content h5 .headerlink,.rst-content h6 .headerlink,.rst-content dl dt .headerlink{display:none;visibility:hidden;font-size:14px}.rst-content h1 .headerlink:after,.rst-content h2 .headerlink:after,.rst-content h3 .headerlink:after,.rst-content h4 .headerlink:after,.rst-content h5 .headerlink:after,.rst-content h6 .headerlink:after,.rst-content dl dt .headerlink:after{visibility:visible;content:"";font-family:FontAwesome;display:inline-block}.rst-content h1:hover .headerlink,.rst-content h2:hover .headerlink,.rst-content h3:hover .headerlink,.rst-content h4:hover .headerlink,.rst-content h5:hover .headerlink,.rst-content h6:hover .headerlink,.rst-content dl dt:hover .headerlink{display:inline-block}.rst-content .sidebar{float:right;width:40%;display:block;margin:0 0 24px 24px;padding:24px;background:#f3f6f6;border:solid 1px #e1e4e5}.rst-content .sidebar p,.rst-content .sidebar ul,.rst-content .sidebar dl{font-size:90%}.rst-content .sidebar .last{margin-bottom:0}.rst-content .sidebar .sidebar-title{display:block;font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif;font-weight:bold;background:#e1e4e5;padding:6px 12px;margin:-24px;margin-bottom:24px;font-size:100%}.rst-content .highlighted{background:#F1C40F;display:inline-block;font-weight:bold;padding:0 6px}.rst-content .footnote-reference,.rst-content .citation-reference{vertical-align:super;font-size:90%}.rst-content table.docutils.citation,.rst-content table.docutils.footnote{background:none;border:none;color:#999}.rst-content table.docutils.citation td,.rst-content table.docutils.citation tr,.rst-content table.docutils.footnote td,.rst-content table.docutils.footnote tr{border:none;background-color:transparent !important;white-space:normal}.rst-content table.docutils.citation td.label,.rst-content table.docutils.footnote td.label{padding-left:0;padding-right:0;vertical-align:top}.rst-content table.field-list{border:none}.rst-content table.field-list td{border:none;padding-top:5px}.rst-content table.field-list td>strong{display:inline-block;margin-top:3px}.rst-content table.field-list .field-name{padding-right:10px;text-align:left;white-space:nowrap}.rst-content table.field-list .field-body{text-align:left;padding-left:0}.rst-content tt{color:#000}.rst-content tt big,.rst-content tt em{font-size:100% !important;line-height:normal}.rst-content tt .xref,a .rst-content tt{font-weight:bold}.rst-content a tt{color:#2980B9}.rst-content dl{margin-bottom:24px}.rst-content dl dt{font-weight:bold}.rst-content dl p,.rst-content dl table,.rst-content dl ul,.rst-content dl ol{margin-bottom:12px !important}.rst-content dl dd{margin:0 0 12px 24px}.rst-content dl:not(.docutils){margin-bottom:24px}.rst-content dl:not(.docutils) dt{display:inline-block;margin:6px 0;font-size:90%;line-height:normal;background:#e7f2fa;color:#2980B9;border-top:solid 3px #6ab0de;padding:6px;position:relative}.rst-content dl:not(.docutils) dt:before{color:#6ab0de}.rst-content dl:not(.docutils) dt .headerlink{color:#404040;font-size:100% !important}.rst-content dl:not(.docutils) dl dt{margin-bottom:6px;border:none;border-left:solid 3px #ccc;background:#f0f0f0;color:gray}.rst-content dl:not(.docutils) dl dt .headerlink{color:#404040;font-size:100% !important}.rst-content dl:not(.docutils) dt:first-child{margin-top:0}.rst-content dl:not(.docutils) tt{font-weight:bold}.rst-content dl:not(.docutils) tt.descname,.rst-content dl:not(.docutils) tt.descclassname{background-color:transparent;border:none;padding:0;font-size:100% !important}.rst-content dl:not(.docutils) tt.descname{font-weight:bold}.rst-content dl:not(.docutils) .optional{display:inline-block;padding:0 4px;color:#000;font-weight:bold}.rst-content dl:not(.docutils) .property{display:inline-block;padding-right:8px}.rst-content .viewcode-link,.rst-content .viewcode-back{display:inline-block;color:#27AE60;font-size:80%;padding-left:24px}.rst-content .viewcode-back{display:block;float:right}.rst-content p.rubric{margin-bottom:12px;font-weight:bold}@media screen and (max-width: 480px){.rst-content .sidebar{width:100%}}span[id*='MathJax-Span']{color:#404040}.math{text-align:center} diff --git a/doc/html/css/theme_extra.css b/doc/html/css/theme_extra.css new file mode 100644 index 0000000..e53d320 --- /dev/null +++ b/doc/html/css/theme_extra.css @@ -0,0 +1,193 @@ +/* + * Sphinx doesn't have support for section dividers like we do in + * MkDocs, this styles the section titles in the nav + * + * https://github.com/mkdocs/mkdocs/issues/175 + */ +.wy-menu-vertical span { + line-height: 18px; + padding: 0.4045em 1.618em; + display: block; + position: relative; + font-size: 90%; + color: #838383; +} + +.wy-menu-vertical .subnav a { + padding: 0.4045em 2.427em; +} + +/* + * Long navigations run off the bottom of the screen as the nav + * area doesn't scroll. + * + * https://github.com/mkdocs/mkdocs/pull/202 + * + * Builds upon pull 202 https://github.com/mkdocs/mkdocs/pull/202 + * to make toc scrollbar end before navigations buttons to not be overlapping. + */ +.wy-nav-side { + height: calc(100% - 45px); + overflow-y: auto; + min-height: 0; +} + +.rst-versions{ + border-top: 0; + height: 45px; +} + +@media screen and (max-width: 768px) { + .wy-nav-side { + height: 100%; + } +} + +/* + * readthedocs theme hides nav items when the window height is + * too small to contain them. + * + * https://github.com/mkdocs/mkdocs/issues/#348 + */ +.wy-menu-vertical ul { + margin-bottom: 2em; +} + +/* + * Wrap inline code samples otherwise they shoot of the side and + * can't be read at all. + * + * https://github.com/mkdocs/mkdocs/issues/313 + * https://github.com/mkdocs/mkdocs/issues/233 + * https://github.com/mkdocs/mkdocs/issues/834 + */ +code { + white-space: pre-wrap; + word-wrap: break-word; + padding: 2px 5px; +} + +/** + * Make code blocks display as blocks and give them the appropriate + * font size and padding. + * + * https://github.com/mkdocs/mkdocs/issues/855 + * https://github.com/mkdocs/mkdocs/issues/834 + * https://github.com/mkdocs/mkdocs/issues/233 + */ +pre code { + white-space: pre; + word-wrap: normal; + display: block; + padding: 12px; + font-size: 12px; +} + +/* + * Fix link colors when the link text is inline code. + * + * https://github.com/mkdocs/mkdocs/issues/718 + */ +a code { + color: #2980B9; +} +a:hover code { + color: #3091d1; +} +a:visited code { + color: #9B59B6; +} + +/* + * The CSS classes from highlight.js seem to clash with the + * ReadTheDocs theme causing some code to be incorrectly made + * bold and italic. + * + * https://github.com/mkdocs/mkdocs/issues/411 + */ +pre .cs, pre .c { + font-weight: inherit; + font-style: inherit; +} + +/* + * Fix some issues with the theme and non-highlighted code + * samples. Without and highlighting styles attached the + * formatting is broken. + * + * https://github.com/mkdocs/mkdocs/issues/319 + */ +.no-highlight { + display: block; + padding: 0.5em; + color: #333; +} + + +/* + * Additions specific to the search functionality provided by MkDocs + */ + +.search-results article { + margin-top: 23px; + border-top: 1px solid #E1E4E5; + padding-top: 24px; +} + +.search-results article:first-child { + border-top: none; +} + +form .search-query { + width: 100%; + border-radius: 50px; + padding: 6px 12px; /* csslint allow: box-model */ + border-color: #D1D4D5; +} + +.wy-menu-vertical li ul { + display: inherit; +} + +.wy-menu-vertical li ul.subnav ul.subnav{ + padding-left: 1em; +} + +.wy-menu-vertical .subnav li.current > a { + padding-left: 2.42em; +} +.wy-menu-vertical .subnav li.current > ul li a { + padding-left: 3.23em; +} + +/* + * Improve inline code blocks within admonitions. + * + * https://github.com/mkdocs/mkdocs/issues/656 + */ + .admonition code { + color: #404040; + border: 1px solid #c7c9cb; + border: 1px solid rgba(0, 0, 0, 0.2); + background: #f8fbfd; + background: rgba(255, 255, 255, 0.7); +} + +/* + * Account for wide tables which go off the side. + * Override borders to avoid wierdness on narrow tables. + * + * https://github.com/mkdocs/mkdocs/issues/834 + * https://github.com/mkdocs/mkdocs/pull/1034 + */ +.rst-content .section .docutils { + width: 100%; + overflow: auto; + display: block; + border: none; +} + +td, th { + border: 1px solid #e1e4e5 !important; /* csslint allow: important */ + border-collapse: collapse; +} diff --git a/doc/html/fonts/fontawesome-webfont.eot b/doc/html/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000000000000000000000000000000000000..0662cb96bfb78cb2603df4bc9995314bd6806312 GIT binary patch literal 37405 zcmZ^pWl$VU@a7j-+}&YucXwahCAho06I>Q|cXxMpcMa|Y2qZwTkO24I)qVI^U0rug zJw3mg>FTdj^N^+j0DLI`0Q7$e1pLo{0whBL{$omN|C9dj`ak@CLXyXN`Tv&xL+}7# zfD6DG;0cfb_yDW`9{=r}{!;(|4WRL#+5o%&jsP=&`+tNQpz|Mb|L=_5|G5JKZ~<5W zoc}F$0O&tu2XOpH007$mPfyVQ(-8oW)Rg^yCWe8+UI(PG0aCaC0oOPSSMf`$n0jT> zNXqA6GJtPRak*%7-a)|uJ_cYiiNSybhhwHgZsoQT!Xm){KHAvM=U7}|U1LMC#O~E5 zr29c@hQt;YTG-}+NpnmSA-uodhzL6v(y*sW`M!ORS+=>yZEu#TCj! zUy+<2^w9t}gp+uZf4of?Wu~aMPFG3*SSQZCNj%`3Bj@JX#iTZn)$zBBxIh!mQkTH^ z$w|djT}ESOe63Tg_77=Kz*-Hv z>{BQjmd06dHK(UTXP4msH0^JEhbcuu1K6tPKEA0hD-``i-8n+4m3HNWmvab<;8NlS zDAsXXE>0tAwn8zMiXDesTOk`z05XDaMEI9&(8~|Nl;&D%6C@bNj6Gu2vaDayhS`Zv z)W46=-5L8j*NC+e7!=_YpV7bPQMRXH``qc@*(&=}Hv2!d+a@yGe{WuVftGFtJwqZ$ zXlZnjCV5(O>mF@@5tL!3w)g9~xQ?h}eEhYFbmRT_ZQt*qoF)PNYv44JmY81?P^}^P z8=vEU0?Y%~chU3Paw=H3G37{0tnbte`sP+RLWzaPDi}WL*t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|#WNR4!o?9ol2D^bT=QZzv~FU`+cO7_cyo6tF*-B9(0X$$K(_hC9wV;*Vy>2r z#_N>>39Gb=Rgu>P$O90ZFe=!Y#wj2I*u&Zi(xD7&B1y_^FvGOQaohd9L~`^Mo7E*O z(^m&#XXzn?aOegfMiW8<-JWTNzzHh-5jMHzA~?rY$rva<4B=zQueYsaHrei2BrxZg z4i8vtK$-^EW$BqqK7y>qfo;eLl9c1vu@p*H%CMA3<52BjMjT}oy(FZ1<=&)6qtEK! z3krmBvkinW9no9%jm(COJr3!&k?&%isIuQ|vqSdAbdf8YWC)n6f&i6!%z`N(ypVl( z=_HO2*Qc`$y(Y4`g)gsZ?lyU->NU7hr$vfJM$=rgGh=N%aRT};VOkj&QktT<^<^a; z3=7Qt7k59h$_A_AH+#*YYzJ|&W{icQry9t%!9h=NuZE&?s`Y?s5-`d;7^C5%`SShk71;Q?rYt_Sg)ud8qM#>V~8*!b63$@BW6PK^K zk$}5S08e70{XeP*tv6NB%l#o`YLLm7Qe^zln36!XQBDryvgDR9G@9!iVovu*;*y{Pv@9SC+oo~TuctqL!}W=lw1eo k3oQ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/html/fonts/fontawesome-webfont.ttf b/doc/html/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000000000000000000000000000000000000..d3659246915cacb0c9204271f1f9fc5f77049eac GIT binary patch literal 79076 zcmd4434B!5y$62Jx!dgfl1wJaOp=*N2qchXlCUL1*hxS(6#+4z2!bdGh~hR1qKGS6 zYHii1)k;^p*w+o;)K!q$t7haS?ZrNXZgbQTi5;wSKh*ZbndL#bJ&+8MUt2W`Pezjnp+O= z-9F^&k?+5F%i68~oqpyWh9y zdnHv;lslDH&^fAw_pG7f1dcyuf`&t3QxpS<_UX3o}ee-@q2t8 zugBw&J>0`QlKYg~aOd4a?vw5l?)Th(cmK^nqyK;W!vF)tN*T>6{g?jWCQZTrAAWQ# zY*EXt1%NzLiwHFTr60gHX5Nk7W4+2A42mr2lGG9R#$|8ZJIHcIW-A}qs>V)i)ua>R z9mQc2nMpK^7oL)|C)BJ|iA+Fe-grwWpw-4}l5Op+aW6}z+qzh5yrqh1Pc-IlXPHPc z85zpbk!A9?H`djM)oi%FPMuSW+j%M3mc*Yd@oO4u!xa`wg_tV5L&7^6k?{sxyrzk_ zb@A4guvZfarld`-D8|Qa^;mrn98b{dgRLM+4%{M0!%jx8`-wLBs=f= zkrG!PF;3p|+82$(2?3I)vN{&O6p^M&3neMx)pSL7@kR^?OC=M@ls6EZqBbz5LDg3$tr_PGox4tm#p6J!@jJR9AI$Z{x&C zlO{IqJz7uf?YNoloz0@JV%2B;oTVB9qi7A8fp@|0JGU)1y!w<{VSs zvcPkaf+1~E(r95z6%TjGm{1y1`Jpyn{$5*c-?V09up5nYy~n{Kmh(_MdO$pEm3M4CZc7szC-7`B5FsTSCPV0NUXvFzrbA z+grkZ6=M=HK6D-n2K+&z+vvuG2Kjl$1Ld9U-Piro{I9cjJLPLb5#tfVp*w?>jl5lmR;v+p!C7?bB)X^jxvnD4d{^jcZMj>(r3YOx(>Z-%mswHPap95Gh1 zmicTqyOw=Nw5#Fl&Ef&p(8X>vZs{_9ZmjywcVt_!nJw?rN@^n@8)IKBr2th02x;q5 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-Vzjd}cS9^7SXU)Xsct(45Xu}ohkjq9r zuwo@NP_k|)ZFMf4jolL88gK2Lxy;I?3$?gsK5Z27VT!ReuKvNOT~YxDW@;@3Y8qNY zgUW7;rC4QQal3qhaWSrzhU`eKtvL*X?B%yqHlHksx$E}H5sp+-(gw+oGjZJq1J`SP-goi7~01yn7l!Z@+2n)>18`66&9#)YQvW?GdflhMQ&%Kg;i zh$c*SLKU7R$7O;lt4%t7v}{<{QxeqLE=5plZB0;K76zLQCr#(-j7_G@cEPG8h?$wV zI_|=F_v6%0*A%4bmA-M&GR(P|xt4zVsrBpJ$^K5Pz8rM9E+}7jHUq&)uV7dx8nMN9 z{fyAGu2aIC+c?`UO1`cLoc5g7sW+9+b)r#q zm@HQ9%u&x|(OSvbDa}K+0!HjvHfN+cH@j`aN^iz=YUi0qcmLlmb*$dFTXXRAI!kkt zIXAaSHJiI5uBN$N9;7skCBEj?()j7IGDZcn;WAkGQO%UjFTF8&@f(ZnL1KmVKEG*) zN!4=d%TedXR wKR5n@sM`5}7KXJ&;oFk`aftYr2h7i^W==Jm{tIe%siXh^0003|xQtN%02oC%ivR!s literal 0 HcmV?d00001 diff --git a/doc/github-markdown.css b/doc/html/github-markdown.css similarity index 100% rename from doc/github-markdown.css rename to doc/html/github-markdown.css diff --git a/doc/images/bookmarklet.png b/doc/html/images/bookmarklet.png similarity index 100% rename from doc/images/bookmarklet.png rename to doc/html/images/bookmarklet.png diff --git a/doc/images/doc-logo.png b/doc/html/images/doc-logo.png similarity index 100% rename from doc/images/doc-logo.png rename to doc/html/images/doc-logo.png diff --git a/doc/images/doc-logo.svg b/doc/html/images/doc-logo.svg similarity index 100% rename from doc/images/doc-logo.svg rename to doc/html/images/doc-logo.svg diff --git a/doc/images/firefoxshare.png b/doc/html/images/firefoxshare.png similarity index 100% rename from doc/images/firefoxshare.png rename to doc/html/images/firefoxshare.png diff --git a/doc/images/rss-filter-1.png b/doc/html/images/rss-filter-1.png similarity index 100% rename from doc/images/rss-filter-1.png rename to doc/html/images/rss-filter-1.png diff --git a/doc/images/rss-filter-2.png b/doc/html/images/rss-filter-2.png similarity index 100% rename from doc/images/rss-filter-2.png rename to doc/html/images/rss-filter-2.png diff --git a/doc/html/img/favicon.ico b/doc/html/img/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..e85006a3ce1c6fd81faa6d5a13095519c4a6fc96 GIT binary patch literal 1150 zcmd6lF-yZh9L1kl>(HSEK`2y^4yB6->f+$wD)=oNY!UheIt03Q=;qj=;8*Bap_4*& za8yAl;wmmx5Yyi^7dXN-WYdJ-{qNqpcez|5t#Fr0qTSYcPTG`I2PBk8r$~4kg^0zN zCJe(rhix3do!L$bZ+IuZ{i08x=JR3=e+M4pv0KsKA??{u_*EFfo|`p&t`Vf=jn{)F z1fKk9hWsmYwqWAP^JO*5u*R;*L&dX3H$%S7oB$f0{ISh{QVXuncnzN67WQH2`lip7 zhX+VI$6x$1+$8gMjh4+1l0N#8_0Fh=N#EwpKk{SeE!)SHFB@xQFX3y+8sF#_@!bDW eIdI-IC`$c%>bk?KbPeN9RHtL<1^)v~#xMt8oB^@` literal 0 HcmV?d00001 diff --git a/doc/html/index.html b/doc/html/index.html new file mode 100644 index 0000000..a9b0c7b --- /dev/null +++ b/doc/html/index.html @@ -0,0 +1,344 @@ + + + + + + + + + + + Home - Shaarli Documentation + + + + + + + + + + + + + + + + + +

    + + + + +
    + + + + + +
    +
    +
    + +
    +
    +
    +
    + +

    Welcome to the Shaarli wiki!

    +

    Here you can find some info on how to use, configure, tweak and solve problems with your Shaarli.

    +

    For general info, read the README.

    +

    If you have any questions or ideas, please join the chat (also reachable via IRC), post them in our general discussion (archive) or read the current issues. If you've found a bug, please create a new issue.

    +

    If you would like a feature added to Shaarli, check the issues labeled feature, enhancement, and plugin.

    +

    Note: This documentation is available online at https://github.com/shaarli/Shaarli/wiki, and locally in the doc/ directory of your Shaarli installation.

    + +
    +
    + + +
    +
    + +
    + +
    + +
    + + + GitHub + + + + Next » + + +
    + + + + + + diff --git a/doc/html/js/highlight.pack.js b/doc/html/js/highlight.pack.js new file mode 100644 index 0000000..a5818df --- /dev/null +++ b/doc/html/js/highlight.pack.js @@ -0,0 +1,2 @@ +!function(e){"undefined"!=typeof exports?e(exports):(window.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return window.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){var n=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/);return n=n.map(function(e){return e.replace(/^lang(uage)?-/,"")}),n.filter(function(e){return N(e)||/no(-?)highlight|plain|text/.test(e)})[0]}function i(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function o(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function u(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset"}function u(e){l+=""}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g==e&&g.length&&g[0].offset==s);f.reverse().forEach(o)}else"start"==g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function c(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,o){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\b\w+\b/,!0),o&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&o.tE&&(a.tE+=(a.e?"|":"")+o.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(i(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,o);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function s(e,t,a,i){function o(e,n){for(var t=0;t";return i+=e+'">',i+n+o}function d(){if(!L.k)return n(y);var e="",t=0;L.lR.lastIndex=0;for(var r=L.lR.exec(y);r;){e+=n(y.substr(t,r.index-t));var a=g(L,r);a?(B+=a[1],e+=p(a[0],n(r[0]))):e+=n(r[0]),t=L.lR.lastIndex,r=L.lR.exec(y)}return e+n(y.substr(t))}function h(){if(L.sL&&!w[L.sL])return n(y);var e=L.sL?s(L.sL,y,!0,M[L.sL]):l(y);return L.r>0&&(B+=e.r),"continuous"==L.subLanguageMode&&(M[L.sL]=e.top),p(e.language,e.value,!1,!0)}function b(){return void 0!==L.sL?h():d()}function v(e,t){var r=e.cN?p(e.cN,"",!0):"";e.rB?(k+=r,y=""):e.eB?(k+=n(t)+r,y=""):(k+=r,y=t),L=Object.create(e,{parent:{value:L}})}function m(e,t){if(y+=e,void 0===t)return k+=b(),0;var r=o(t,L);if(r)return k+=b(),v(r,t),r.rB?0:t.length;var a=u(L,t);if(a){var i=L;i.rE||i.eE||(y+=t),k+=b();do L.cN&&(k+=""),B+=L.r,L=L.parent;while(L!=a.parent);return i.eE&&(k+=n(t)),y="",a.starts&&v(a.starts,""),i.rE?0:t.length}if(f(t,L))throw new Error('Illegal lexeme "'+t+'" for mode "'+(L.cN||"")+'"');return y+=t,t.length||1}var E=N(e);if(!E)throw new Error('Unknown language: "'+e+'"');c(E);var R,L=i||E,M={},k="";for(R=L;R!=E;R=R.parent)R.cN&&(k=p(R.cN,"",!0)+k);var y="",B=0;try{for(var C,j,I=0;;){if(L.t.lastIndex=I,C=L.t.exec(t),!C)break;j=m(t.substr(I,C.index-I),C[0]),I=C.index+j}for(m(t.substr(I)),R=L;R.parent;R=R.parent)R.cN&&(k+="");return{r:B,value:k,language:e,top:L}}catch(S){if(-1!=S.message.indexOf("Illegal"))return{r:0,value:n(t)};throw S}}function l(e,t){t=t||x.languages||Object.keys(w);var r={r:0,value:n(e)},a=r;return t.forEach(function(n){if(N(n)){var t=s(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}}),a.language&&(r.second_best=a),r}function f(e){return x.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,x.tabReplace)})),x.useBR&&(e=e.replace(/\n/g,"
    ")),e}function g(e,n,t){var r=n?E[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n=a(e);if(!/no(-?)highlight|plain|text/.test(n)){var t;x.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e;var r=t.textContent,i=n?s(n,r,!0):l(r),c=o(t);if(c.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=i.value,i.value=u(c,o(p),r)}i.value=f(i.value),e.innerHTML=i.value,e.className=g(e.className,n,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r})}}function d(e){x=i(x,e)}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function b(){addEventListener("DOMContentLoaded",h,!1),addEventListener("load",h,!1)}function v(n,t){var r=w[n]=t(e);r.aliases&&r.aliases.forEach(function(e){E[e]=n})}function m(){return Object.keys(w)}function N(e){return w[e]||w[E[e]]}var x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},w={},E={};return e.highlight=s,e.highlightAuto=l,e.fixMarkup=f,e.highlightBlock=p,e.configure=d,e.initHighlighting=h,e.initHighlightingOnLoad=b,e.registerLanguage=v,e.listLanguages=m,e.getLanguage=N,e.inherit=i,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="\\b(0[xX][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e});hljs.registerLanguage("objectivec",function(e){var t={cN:"built_in",b:"(AV|CA|CF|CG|CI|MK|MP|NS|UI)\\w+"},i={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["m","mm","objc","obj-c"],k:i,l:o,i:""}]}]},{cN:"class",b:"("+n.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:n,l:o,c:[e.UTM]},{cN:"variable",b:"\\."+e.UIR,r:0}]}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"pi",r:10,v:[{b:/^\s*('|")use strict('|")/},{b:/^\s*('|")use asm('|")/}]},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",b:"\\b(0[xXbBoO][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/\s*[);\]]/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{bK:"import",e:"[;$]",k:"import from as",c:[e.ASM,e.QSM]},{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]}]}});hljs.registerLanguage("scss",function(e){{var t="[a-zA-Z-][a-zA-Z0-9_-]*",i={cN:"variable",b:"(\\$"+t+")\\b"},r={cN:"function",b:t+"\\(",rB:!0,eE:!0,e:"\\("},o={cN:"hexcolor",b:"#[0-9A-Fa-f]+"};({cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[r,o,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"important",b:"!important"}]}})}return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,r,{cN:"id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{cN:"pseudo",b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{cN:"pseudo",b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},i,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{cN:"value",b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{cN:"value",b:":",e:";",c:[r,i,o,e.CSSNM,e.QSM,e.ASM,{cN:"important",b:"!important"}]},{cN:"at_rule",b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[r,i,e.QSM,e.ASM,o,e.CSSNM,{cN:"preprocessor",b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}});hljs.registerLanguage("mel",function(e){return{k:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",i:"",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(r)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:r.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+s,e:"[-=]>",rB:!0,c:[i,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:s,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:n+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("tex",function(c){var e={cN:"command",b:"\\\\[a-zA-Zа-яА-я]+[\\*]?"},m={cN:"command",b:"\\\\[^a-zA-Zа-яА-я0-9]"},r={cN:"special",b:"[{}\\[\\]\\&#~]",r:0};return{c:[{b:"\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",rB:!0,c:[e,m,{cN:"number",b:" *=",e:"-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",eB:!0}],r:10},e,m,r,{cN:"formula",b:"\\$\\$",e:"\\$\\$",c:[e,m,r],r:0},{cN:"formula",b:"\\$",e:"\\$",c:[e,m,r],r:0},c.C("%","$",{r:0})]}});hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer",constant:"true false iota nil",typename:"bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"",sL:"vbscript"}]}});hljs.registerLanguage("haskell",function(e){var c=[e.C("--","$"),e.C("{-","-}",{c:["self"]})],a={cN:"pragma",b:"{-#",e:"#-}"},i={cN:"preprocessor",b:"^#",e:"$"},n={cN:"type",b:"\\b[A-Z][\\w']*",r:0},t={cN:"container",b:"\\(",e:"\\)",i:'"',c:[a,i,{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TM,{b:"[_a-z][\\w']*"})].concat(c)},l={cN:"container",b:"{",e:"}",c:t.c};return{aliases:["hs"],k:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",c:[{cN:"module",b:"\\bmodule\\b",e:"where",k:"module where",c:[t].concat(c),i:"\\W\\.|;"},{cN:"import",b:"\\bimport\\b",e:"$",k:"import|0 qualified as hiding",c:[t].concat(c),i:"\\W\\.|;"},{cN:"class",b:"^(\\s*)?(class|instance)\\b",e:"where",k:"class family instance where",c:[n,t].concat(c)},{cN:"typedef",b:"\\b(data|(new)?type)\\b",e:"$",k:"data family type newtype deriving",c:[a,n,t,l].concat(c)},{cN:"default",bK:"default",e:"$",c:[n,t].concat(c)},{cN:"infix",bK:"infix infixl infixr",e:"$",c:[e.CNM].concat(c)},{cN:"foreign",b:"\\bforeign\\b",e:"$",k:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",c:[n,e.QSM].concat(c)},{cN:"shebang",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},a,i,e.QSM,e.CNM,n,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),{b:"->|<-"}].concat(c)}});hljs.registerLanguage("scilab",function(e){var n=[e.CNM,{cN:"string",b:"'|\"",e:"'|\"",c:[e.BE,{b:"''"}]}];return{aliases:["sci"],k:{keyword:"abort break case clear catch continue do elseif else endfunction end for functionglobal if pause return resume select try then while%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp errorexec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isemptyisinfisnan isvector lasterror length load linspace list listfiles log10 log2 logmax min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand realround sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tantype typename warning zeros matrix"},i:'("|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function endfunction",e:"$",k:"function endfunction|10",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"}]},{cN:"transposed_variable",b:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",e:"",r:0},{cN:"matrix",b:"\\[",e:"\\]'*[\\.']*",r:0,c:n},e.C("//","$")].concat(n)}});hljs.registerLanguage("profile",function(e){return{c:[e.CNM,{cN:"built_in",b:"{",e:"}$",eB:!0,eE:!0,c:[e.ASM,e.QSM],r:0},{cN:"filename",b:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",e:":",eE:!0},{cN:"header",b:"(ncalls|tottime|cumtime)",e:"$",k:"ncalls tottime|10 cumtime|10 filename",r:10},{cN:"summary",b:"function calls",e:"$",c:[e.CNM],r:10},e.ASM,e.QSM,{cN:"function",b:"\\(",e:"\\)$",c:[e.UTM],r:0}]}});hljs.registerLanguage("thrift",function(e){var t="bool byte i16 i32 i64 double string binary";return{k:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},c:[e.QSM,e.NM,e.CLCM,e.CBCM,{cN:"class",bK:"struct enum service exception",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{b:"\\b(set|list|map)\\s*<",e:">",k:t,c:["self"]}]}});hljs.registerLanguage("matlab",function(e){var a=[e.CNM,{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]}],s={r:0,c:[{cN:"operator",b:/'['\.]*/}]};return{k:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},i:'(//|"|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function",e:"$",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"},{cN:"params",b:"\\[",e:"\\]"}]},{b:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,rB:!0,r:0,c:[{b:/[a-zA-Z_][a-zA-Z_0-9]*/,r:0},s.c[0]]},{cN:"matrix",b:"\\[",e:"\\]",c:a,r:0,starts:s},{cN:"cell",b:"\\{",e:/}/,c:a,r:0,starts:s},{b:/\)/,r:0,starts:s},e.C("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.C("\\%","$")].concat(a)}});hljs.registerLanguage("vbscript",function(e){return{aliases:["vbs"],cI:!0,k:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},i:"//",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C(/'/,/$/,{r:0}),e.CNM]}});hljs.registerLanguage("capnproto",function(t){return{aliases:["capnp"],k:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},c:[t.QSM,t.NM,t.HCM,{cN:"shebang",b:/@0x[\w\d]{16};/,i:/\n/},{cN:"number",b:/@\d+\b/},{cN:"class",bK:"struct enum",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]},{cN:"class",bK:"interface",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]}]}});hljs.registerLanguage("xl",function(e){var t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",o={keyword:"if then else do while until for loop import with is as where when by data constant",literal:"true false nil",type:"integer real text name boolean symbol infix prefix postfix block tree",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at",module:t,id:"text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons"},a={cN:"constant",b:"[A-Z][A-Z_0-9]+",r:0},r={cN:"variable",b:"([A-Z][a-z_0-9]+)+",r:0},i={cN:"id",b:"[a-z][a-z_0-9]+",r:0},l={cN:"string",b:'"',e:'"',i:"\\n"},n={cN:"string",b:"'",e:"'",i:"\\n"},s={cN:"string",b:"<<",e:">>"},c={cN:"number",b:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?",r:10},_={cN:"import",bK:"import",e:"$",k:{keyword:"import",module:t},r:0,c:[l]},d={cN:"function",b:"[a-z].*->"};return{aliases:["tao"],l:/[a-zA-Z][a-zA-Z0-9_?]*/,k:o,c:[e.CLCM,e.CBCM,l,n,s,d,_,a,r,i,c,e.NM]}});hljs.registerLanguage("scala",function(e){var t={cN:"annotation",b:"@[A-Za-z]+"},a={cN:"string",b:'u?r?"""',e:'"""',r:10},r={cN:"symbol",b:"'\\w[\\w\\d_]*(?!')"},c={cN:"type",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},i={cN:"title",b:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,r:0},l={cN:"class",bK:"class object trait type",e:/[:={\[(\n;]/,c:[{cN:"keyword",bK:"extends with",r:10},i]},n={cN:"function",bK:"def val",e:/[:={\[(\n;]/,c:[i]};return{k:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},c:[e.CLCM,e.CBCM,a,e.QSM,r,c,n,l,e.CNM,t]}});hljs.registerLanguage("elixir",function(e){var n="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",c={cN:"subst",b:"#\\{",e:"}",l:n,k:b},a={cN:"string",c:[e.BE,c],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},i={cN:"function",bK:"def defp defmacro",e:/\B\b/,c:[e.inherit(e.TM,{b:n,endsParent:!0})]},s=e.inherit(i,{cN:"class",bK:"defmodule defrecord",e:/\bdo\b|$|;/}),l=[a,e.HCM,s,i,{cN:"constant",b:"(\\b[A-Z_]\\w*(.)?)+",r:0},{cN:"symbol",b:":",c:[a,{b:r}],r:0},{cN:"symbol",b:n+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"->"},{b:"("+e.RSR+")\\s*",c:[e.HCM,{cN:"regexp",i:"\\n",c:[e.BE,c],v:[{b:"/",e:"/[a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];return c.c=l,{l:n,k:b,c:l}});hljs.registerLanguage("sml",function(e){return{aliases:["ml"],k:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("apache",function(e){var r={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"tag",b:""},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",r]},r,e.QSM]}}],i:/\S/}});hljs.registerLanguage("dockerfile",function(n){return{aliases:["docker"],cI:!0,k:{built_ins:"from maintainer cmd expose add copy entrypoint volume user workdir onbuild run env"},c:[n.HCM,{k:{built_in:"run cmd entrypoint volume add copy workdir onbuild"},b:/^ *(onbuild +)?(run|cmd|entrypoint|volume|add|copy|workdir) +/,starts:{e:/[^\\]\n/,sL:"bash",subLanguageMode:"continuous"}},{k:{built_in:"from maintainer expose env user onbuild"},b:/^ *(onbuild +)?(from|maintainer|expose|env|user|onbuild) +/,e:/[^\\]\n/,c:[n.ASM,n.QSM,n.NM,n.HCM]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"link_reference",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link_url",e:"$"}}]}]}});hljs.registerLanguage("haml",function(s){return{cI:!0,c:[{cN:"doctype",b:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",r:10},s.C("^\\s*(!=#|=#|-#|/).*$",!1,{r:0}),{b:"^\\s*(-|=|!=)(?!#)",starts:{e:"\\n",sL:"ruby"}},{cN:"tag",b:"^\\s*%",c:[{cN:"title",b:"\\w+"},{cN:"value",b:"[#\\.]\\w+"},{b:"{\\s*",e:"\\s*}",eE:!0,c:[{b:":\\w+\\s*=>",e:",\\s+",rB:!0,eW:!0,c:[{cN:"symbol",b:":\\w+"},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]},{b:"\\(\\s*",e:"\\s*\\)",eE:!0,c:[{b:"\\w+\\s*=",e:"\\s+",rB:!0,eW:!0,c:[{cN:"attribute",b:"\\w+",r:0},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]}]},{cN:"bullet",b:"^\\s*[=~]\\s*",r:0},{b:"#{",starts:{e:"}",sL:"ruby"}}]}});hljs.registerLanguage("fortran",function(e){var t={cN:"params",b:"\\(",e:"\\)"},n={constant:".False. .True.",type:"integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{cI:!0,aliases:["f90","f95"],k:n,c:[e.inherit(e.ASM,{cN:"string",r:0}),e.inherit(e.QSM,{cN:"string",r:0}),{cN:"function",bK:"subroutine function program",i:"[${=\\n]",c:[e.UTM,t]},e.C("!","$",{r:0}),{cN:"number",b:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",r:0}]}});hljs.registerLanguage("smali",function(r){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],c:[{cN:"string",b:'"',e:'"',r:0},r.C("#","$",{r:0}),{cN:"keyword",b:"\\s*\\.end\\s[a-zA-Z0-9]*",r:1},{cN:"keyword",b:"^[ ]*\\.[a-zA-Z]*",r:0},{cN:"keyword",b:"\\s:[a-zA-Z_0-9]*",r:0},{cN:"keyword",b:"\\s("+s.join("|")+")",r:1},{cN:"keyword",b:"\\[",r:0},{cN:"instruction",b:"\\s("+t.join("|")+")\\s",r:1},{cN:"instruction",b:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",r:10},{cN:"instruction",b:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",r:10},{cN:"class",b:"L[^(;:\n]*;",r:0},{cN:"function",b:'( |->)[^(\n ;"]*\\(',r:0},{cN:"function",b:"\\)",r:0},{cN:"variable",b:"[vp][0-9]+",r:0}]}});hljs.registerLanguage("julia",function(r){var e={keyword:"in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export finally for function global if immutable import importall let local macro module quote return try type typealias using while",literal:"true false ANY ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e eu eulergamma golden im nothing pi γ π φ",built_in:"ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip"},t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={l:t,k:e},n={cN:"type-annotation",b:/::/},a={cN:"subtype",b:/<:/},i={cN:"number",b:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,r:0},l={cN:"char",b:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={cN:"subst",b:/\$\(/,e:/\)/,k:e},u={cN:"variable",b:"\\$"+t},d={cN:"string",c:[r.BE,c,u],v:[{b:/\w*"/,e:/"\w*/},{b:/\w*"""/,e:/"""\w*/}]},g={cN:"string",c:[r.BE,c,u],b:"`",e:"`"},s={cN:"macrocall",b:"@"+t},S={cN:"comment",v:[{b:"#=",e:"=#",r:10},{b:"#",e:"$"}]};return o.c=[i,l,n,a,d,g,s,S,r.HCM],c.c=o.c,o});hljs.registerLanguage("delphi",function(e){var r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure",t=[e.CLCM,e.C(/\{/,/\}/,{r:0}),e.C(/\(\*/,/\*\)/,{r:10})],i={cN:"string",b:/'/,e:/'/,c:[{b:/''/}]},c={cN:"string",b:/(#\d+)+/},o={b:e.IR+"\\s*=\\s*class\\s*\\(",rB:!0,c:[e.TM]},n={cN:"function",bK:"function constructor destructor procedure",e:/[:;]/,k:"function constructor|10 destructor|10 procedure|10",c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:r,c:[i,c]}].concat(t)};return{cI:!0,k:r,i:/"|\$[G-Zg-z]|\/\*|<\/|\|/,c:[i,c,e.NM,o,n].concat(t)}});hljs.registerLanguage("brainfuck",function(r){var n={cN:"literal",b:"[\\+\\-]",r:0};return{aliases:["bf"],c:[r.C("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{rE:!0,r:0}),{cN:"title",b:"[\\[\\]]",r:0},{cN:"string",b:"[\\.,]",r:0},{b:/\+\+|\-\-/,rB:!0,c:[n]},n]}});hljs.registerLanguage("ini",function(e){return{cI:!0,i:/\S/,c:[e.C(";","$"),{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:!0,k:"on off true false yes no",c:[e.QSM,e.NM],r:0}]}]}});hljs.registerLanguage("json",function(e){var t={literal:"true false null"},i=[e.QSM,e.CNM],l={cN:"value",e:",",eW:!0,eE:!0,c:i,k:t},c={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:l}],i:"\\S"},n={b:"\\[",e:"\\]",c:[e.inherit(l,{cN:null})],i:"\\S"};return i.splice(i.length,0,c,n),{c:i,k:t,i:"\\S"}});hljs.registerLanguage("powershell",function(e){var t={b:"`[\\s\\S]",r:0},r={cN:"variable",v:[{b:/\$[\w\d][\w\d_:]*/}]},o={cN:"string",b:/"/,e:/"/,c:[t,r,{cN:"variable",b:/\$[A-z]/,e:/[^A-z]/}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["ps"],l:/-?[A-z\.\-]+/,cI:!0,k:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",literal:"$null $true $false",built_in:"Add-Content Add-History Add-Member Add-PSSnapin Clear-Content Clear-Item Clear-Item Property Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ConvertTo-Html ConvertTo-SecureString Copy-Item Copy-ItemProperty Export-Alias Export-Clixml Export-Console Export-Csv ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item Join-Path Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug Set-Service Set-TraceSource Set-Variable Sort-Object Split-Path Start-Service Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where-Object Write-Debug Write-Error Write-Host Write-Output Write-Progress Write-Verbose Write-Warning",operator:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[e.HCM,e.NM,o,a,r]}});hljs.registerLanguage("gradle",function(e){return{cI:!0,k:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.NM,e.RM]}});hljs.registerLanguage("erb",function(e){return{sL:"xml",subLanguageMode:"continuous",c:[e.C("<%#","%>"),{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0}]}});hljs.registerLanguage("swift",function(e){var i={keyword:"class deinit enum extension func import init let protocol static struct subscript typealias var break case continue default do else fallthrough if in for return switch where while as dynamicType is new super self Self Type __COLUMN__ __FILE__ __FUNCTION__ __LINE__ associativity didSet get infix inout left mutating none nonmutating operator override postfix precedence prefix right set unowned unowned safe unsafe weak willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue assert bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal false filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced join lexicographicalCompare map max maxElement min minElement nil numericCast partition posix print println quickSort reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith strideof strideofValue swap swift toString transcode true underestimateCount unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafePointers withVaList"},t={cN:"type",b:"\\b[A-Z][\\w']*",r:0},n=e.C("/\\*","\\*/",{c:["self"]}),r={cN:"subst",b:/\\\(/,e:"\\)",k:i,c:[]},s={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",r:0},o=e.inherit(e.QSM,{c:[r,e.BE]});return r.c=[s],{k:i,c:[o,e.CLCM,n,t,s,{cN:"func",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/,i:/\(/}),{cN:"generics",b://,i:/>/},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:i,c:["self",s,o,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:i,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/})]},{cN:"preprocessor",b:"(@assignment|@class_protocol|@exported|@final|@lazy|@noreturn|@NSCopying|@NSManaged|@objc|@optional|@required|@auto_closure|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix)"}]}});hljs.registerLanguage("lisp",function(b){var e="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",c="\\|[^]*?\\|",r="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",a={cN:"shebang",b:"^#!",e:"$"},i={cN:"literal",b:"\\b(t{1}|nil)\\b"},l={cN:"number",v:[{b:r,r:0},{b:"#(b|B)[0-1]+(/[0-1]+)?"},{b:"#(o|O)[0-7]+(/[0-7]+)?"},{b:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{b:"#(c|C)\\("+r+" +"+r,e:"\\)"}]},t=b.inherit(b.QSM,{i:null}),d=b.C(";","$",{r:0}),n={cN:"variable",b:"\\*",e:"\\*"},u={cN:"keyword",b:"[:&]"+e},N={b:e,r:0},o={b:c},s={b:"\\(",e:"\\)",c:["self",i,t,l,N]},v={cN:"quoted",c:[l,t,n,u,s,N],v:[{b:"['`]\\(",e:"\\)"},{b:"\\(quote ",e:"\\)",k:"quote"},{b:"'"+c}]},f={cN:"quoted",v:[{b:"'"+e},{b:"#'"+e+"(::"+e+")*"}]},g={cN:"list",b:"\\(\\s*",e:"\\)"},q={eW:!0,r:0};return g.c=[{cN:"keyword",v:[{b:e},{b:c}]},q],q.c=[v,f,g,i,l,t,d,n,u,o,N],{i:/\S/,c:[l,a,i,t,d,v,f,g,N]}});hljs.registerLanguage("rsl",function(e){return{k:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},i:" > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},n={cN:"shebang",b:"^#!",e:"$"},c={cN:"literal",b:"(#t|#f|#\\\\"+t+"|#\\\\.)"},l={cN:"number",v:[{b:r,r:0},{b:i,r:0},{b:"#b[0-1]+(/[0-1]+)?"},{b:"#o[0-7]+(/[0-7]+)?"},{b:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QSM,o=[e.C(";","$",{r:0}),e.C("#\\|","\\|#")],u={b:t,r:0},p={cN:"variable",b:"'"+t},d={eW:!0,r:0},g={cN:"list",v:[{b:"\\(",e:"\\)"},{b:"\\[",e:"\\]"}],c:[{cN:"keyword",b:t,l:t,k:a},d]};return d.c=[c,l,s,u,p,g].concat(o),{i:/\S/,c:[n,l,s,p,g].concat(o)}});hljs.registerLanguage("stata",function(e){return{aliases:["do","ado"],cI:!0,k:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",c:[{cN:"label",v:[{b:"\\$\\{?[a-zA-Z0-9_]+\\}?"},{b:"`[a-zA-Z0-9_]+'"}]},{cN:"string",v:[{b:'`"[^\r\n]*?"\''},{b:'"[^\r\n"]*"'}]},{cN:"literal",v:[{b:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.C("^[ ]*\\*.*$",!1),e.CLCM,e.CBCM]}});hljs.registerLanguage("asciidoc",function(e){return{aliases:["adoc"],c:[e.C("^/{4,}\\n","\\n/{4,}$",{r:10}),e.C("^//","$",{r:0}),{cN:"title",b:"^\\.\\w.*$"},{b:"^[=\\*]{4,}\\n",e:"\\n^[=\\*]{4,}$",r:10},{cN:"header",b:"^(={1,5}) .+?( \\1)?$",r:10},{cN:"header",b:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$",r:10},{cN:"attribute",b:"^:.+?:",e:"\\s",eE:!0,r:10},{cN:"attribute",b:"^\\[.+?\\]$",r:0},{cN:"blockquote",b:"^_{4,}\\n",e:"\\n_{4,}$",r:10},{cN:"code",b:"^[\\-\\.]{4,}\\n",e:"\\n[\\-\\.]{4,}$",r:10},{b:"^\\+{4,}\\n",e:"\\n\\+{4,}$",c:[{b:"<",e:">",sL:"xml",r:0}],r:10},{cN:"bullet",b:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{cN:"label",b:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",r:10},{cN:"strong",b:"\\B\\*(?![\\*\\s])",e:"(\\n{2}|\\*)",c:[{b:"\\\\*\\w",r:0}]},{cN:"emphasis",b:"\\B'(?!['\\s])",e:"(\\n{2}|')",c:[{b:"\\\\'\\w",r:0}],r:0},{cN:"emphasis",b:"_(?![_\\s])",e:"(\\n{2}|_)",r:0},{cN:"smartquote",v:[{b:"``.+?''"},{b:"`.+?'"}]},{cN:"code",b:"(`.+?`|\\+.+?\\+)",r:0},{cN:"code",b:"^[ \\t]",e:"$",r:0},{cN:"horizontal_rule",b:"^'{3,}[ \\t]*$",r:10},{b:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",rB:!0,c:[{b:"(link|image:?):",r:0},{cN:"link_url",b:"\\w",e:"[^\\[]+",r:0},{cN:"link_label",b:"\\[",e:"\\]",eB:!0,eE:!0,r:0}],r:10}]}});hljs.registerLanguage("php",function(e){var c={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={cN:"preprocessor",b:/<\?(php)?|\?>/},a={cN:"string",c:[e.BE,i],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},n={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,e.C("/\\*","\\*/",{c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},i]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},i,c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,a,n]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},a,n]}});hljs.registerLanguage("java",function(e){var a=e.UIR+"(<"+e.UIR+">)?",t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",c="(\\b(0b[01_]+)|\\b0[xX][a-fA-F0-9_]+|(\\b[\\d_]+(\\.[\\d_]*)?|\\.[\\d_]+)([eE][-+]?\\d+)?)[lLfF]?",r={cN:"number",b:c,r:0};return{aliases:["jsp"],k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return",r:0},{cN:"function",b:"("+a+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},r,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("glsl",function(e){return{k:{keyword:"atomic_uint attribute bool break bvec2 bvec3 bvec4 case centroid coherent const continue default discard dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 do double dvec2 dvec3 dvec4 else flat float for highp if iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray in inout int invariant isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 layout lowp mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 mediump noperspective out patch precision readonly restrict return sample sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow smooth struct subroutine switch uimage1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint uniform usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D usamplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 varying vec2 vec3 vec4 void volatile while writeonly",built_in:"gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffsetgl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_PerVertex gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicCounter atomicCounterDecrement atomicCounterIncrement barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow gl_TextureMatrix gl_TextureMatrixInverse",literal:"true false"},i:'"',c:[e.CLCM,e.CBCM,e.CNM,{cN:"preprocessor",b:"#",e:"$"}]}});hljs.registerLanguage("lua",function(e){var t="\\[=*\\[",a="\\]=*\\]",r={b:t,e:a,c:["self"]},n=[e.C("--(?!"+t+")","$"),e.C("--"+t,a,{c:[r],r:10})];return{l:e.UIR,k:{keyword:"and break do else elseif end false for if in local nil not or repeat return then true until while",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},c:n.concat([{cN:"function",bK:"function",e:"\\)",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{cN:"params",b:"\\(",eW:!0,c:n}].concat(n)},e.CNM,e.ASM,e.QSM,{cN:"string",b:t,e:a,c:[r],r:5}])}});hljs.registerLanguage("protobuf",function(e){return{k:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},c:[e.QSM,e.NM,e.CLCM,{cN:"class",bK:"message enum service",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{cN:"function",bK:"rpc",e:/;/,eE:!0,k:"rpc returns"},{cN:"constant",b:/^\s*[A-Z_]+/,e:/\s*=/,eE:!0}]}});hljs.registerLanguage("gcode",function(e){var N="[A-Z_][A-Z0-9_.]*",i="\\%",c={literal:"",built_in:"",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={cN:"preprocessor",b:"([O])([0-9]+)"},l=[e.CLCM,e.CBCM,e.C(/\(/,/\)/),e.inherit(e.CNM,{b:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.CNR}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"keyword",b:"([G])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"([M])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"(VC|VS|#)",e:"(\\d+)"},{cN:"title",b:"(VZOFX|VZOFY|VZOFZ)"},{cN:"built_in",b:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",e:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{cN:"label",v:[{b:"N",e:"\\d+",i:"\\W"}]}];return{aliases:["nc"],cI:!0,l:N,k:c,c:[{cN:"preprocessor",b:i},r].concat(l)}});hljs.registerLanguage("vim",function(e){return{l:/[!#@\w]+/,k:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw d|0 delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu g|0 go gr grepa gu gv ha h|0 helpf helpg helpt hi hid his i|0 ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs n|0 new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf q|0 quita qa r|0 rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv s|0 sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync t|0 tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up v|0 ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"abs acos add and append argc argidx argv asin atan atan2 browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call ceil changenr char2nr cindent clearmatches col complete complete_add complete_check confirm copy cos cosh count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty escape eval eventhandler executable exists exp expand extend feedkeys filereadable filewritable filter finddir findfile float2nr floor fmod fnameescape fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function garbagecollect get getbufline getbufvar getchar getcharmod getcmdline getcmdpos getcmdtype getcwd getfontname getfperm getfsize getftime getftype getline getloclist getmatches getpid getpos getqflist getreg getregtype gettabvar gettabwinvar getwinposx getwinposy getwinvar glob globpath has has_key haslocaldir hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputlist inputrestore inputsave inputsecret insert invert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime log log10 luaeval map maparg mapcheck match matchadd matcharg matchdelete matchend matchlist matchstr max min mkdir mode mzeval nextnonblank nr2char or pathshorten pow prevnonblank printf pumvisible py3eval pyeval range readfile reltime reltimestr remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse round screenattr screenchar screencol screenrow search searchdecl searchpair searchpairpos searchpos server2client serverlist setbufvar setcmdpos setline setloclist setmatches setpos setqflist setreg settabvar settabwinvar setwinvar sha256 shellescape shiftwidth simplify sin sinh sort soundfold spellbadword spellsuggest split sqrt str2float str2nr strchars strdisplaywidth strftime stridx string strlen strpart strridx strtrans strwidth submatch substitute synconcealed synID synIDattr synIDtrans synstack system tabpagebuflist tabpagenr tabpagewinnr tagfiles taglist tan tanh tempname tolower toupper tr trunc type undofile undotree values virtcol visualmode wildmenumode winbufnr wincol winheight winline winnr winrestcmd winrestview winsaveview winwidth writefile xor"},i:/[{:]/,c:[e.NM,e.ASM,{cN:"string",b:/"((\\")|[^"\n])*("|\n)/},{cN:"variable",b:/[bwtglsav]:[\w\d_]*/},{cN:"function",bK:"function function!",e:"$",r:0,c:[e.TM,{cN:"params",b:"\\(",e:"\\)"}]}]}});hljs.registerLanguage("processing",function(e){return{k:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",constant:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",variable:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width",title:"setup draw",built_in:"size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM]}});hljs.registerLanguage("mizar",function(e){return{k:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",c:[e.C("::","$")]}});hljs.registerLanguage("vbnet",function(e){return{aliases:["vb"],cI:!0,k:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},i:"//|{|}|endif|gosub|variant|wend",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C("'","$",{rB:!0,c:[{cN:"xmlDocTag",b:"'''|",c:[e.PWM]},{cN:"xmlDocTag",b:"",c:[e.PWM]}]}),e.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end region externalsource"}]}});hljs.registerLanguage("q",function(e){var s={keyword:"do while select delete by update from",constant:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",typename:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],k:s,l:/\b(`?)[A-Za-z0-9_]+\b/,c:[e.CLCM,e.QSM,e.CNM]}});hljs.registerLanguage("livescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},s="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",i=e.inherit(e.TM,{b:s}),n={cN:"subst",b:/#\{/,e:/}/,k:t},r={cN:"subst",b:/#[A-Za-z$_]/,e:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,k:t},c=[e.BNM,{cN:"number",b:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",r:0,starts:{e:"(\\s*/)?",r:0}},{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,n,r]},{b:/"/,e:/"/,c:[e.BE,n,r]},{b:/\\/,e:/(\s|$)/,eE:!0}]},{cN:"pi",v:[{b:"//",e:"//[gim]*",c:[n,e.HCM]},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+s},{b:"``",e:"``",eB:!0,eE:!0,sL:"javascript"}];n.c=c;var a={cN:"params",b:"\\(",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(c)}]};return{aliases:["ls"],k:t,i:/\/\*/,c:c.concat([e.C("\\/\\*","\\*\\/"),e.HCM,{cN:"function",c:[i,a],rB:!0,v:[{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",e:"\\->\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",e:"[-~]{1,2}>\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",e:"!?[-~]{1,2}>\\*?"}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:s+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("haxe",function(e){var r="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";return{aliases:["hx"],k:{keyword:"break callback case cast catch class continue default do dynamic else enum extends extern for function here if implements import in inline interface never new override package private public return static super switch this throw trace try typedef untyped using var while",literal:"true false null"},c:[e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.TM]},{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end error"},{cN:"function",bK:"function",e:"[{;]",eE:!0,i:"\\S",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",c:[e.ASM,e.QSM,e.CLCM,e.CBCM]},{cN:"type",b:":",e:r,r:10}]}]}});hljs.registerLanguage("monkey",function(e){var n={cN:"number",r:0,v:[{b:"[$][a-fA-F0-9]+"},e.NM]};return{cI:!0,k:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},c:[e.C("#rem","#end"),e.C("'","$",{r:0}),{cN:"function",bK:"function method",e:"[(=:]|$",i:/\n/,c:[e.UTM]},{cN:"class",bK:"class interface",e:"$",c:[{bK:"extends implements"},e.UTM]},{cN:"variable",b:"\\b(self|super)\\b"},{cN:"preprocessor",bK:"import",e:"$"},{cN:"preprocessor",b:"\\s*#",e:"$",k:"if else elseif endif end then"},{cN:"pi",b:"^\\s*strict\\b"},{bK:"alias",e:"=",c:[e.UTM]},e.QSM,n]}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,e.NM,s,a,t]}});hljs.registerLanguage("erlang",function(e){var r="[a-z'][a-zA-Z0-9_']*",c="("+r+":"+r+"|"+r+")",a={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},n=e.C("%","$"),i={cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},b={b:"fun\\s+"+r+"/\\d+"},d={b:c+"\\(",e:"\\)",rB:!0,r:0,c:[{cN:"function_name",b:c,r:0},{b:"\\(",e:"\\)",eW:!0,rE:!0,r:0}]},o={cN:"tuple",b:"{",e:"}",r:0},t={cN:"variable",b:"\\b_([A-Z][A-Za-z0-9_]*)?",r:0},l={cN:"variable",b:"[A-Z][a-zA-Z0-9_]*",r:0},f={b:"#"+e.UIR,r:0,rB:!0,c:[{cN:"record_name",b:"#"+e.UIR,r:0},{b:"{",e:"}",r:0}]},s={bK:"fun receive if try case",e:"end",k:a};s.c=[n,b,e.inherit(e.ASM,{cN:""}),s,d,e.QSM,i,o,t,l,f];var u=[n,b,s,d,e.QSM,i,o,t,l,f];d.c[1].c=u,o.c=u,f.c[1].c=u;var v={cN:"params",b:"\\(",e:"\\)",c:u};return{aliases:["erl"],k:a,i:"(",rB:!0,i:"\\(|#|//|/\\*|\\\\|:|;",c:[v,e.inherit(e.TM,{b:r})],starts:{e:";|\\.",k:a,c:u}},n,{cN:"pp",b:"^-",e:"\\.",r:0,eE:!0,rB:!0,l:"-"+e.IR,k:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",c:[v]},i,e.QSM,f,t,l,o,{b:/\.$/}]}});hljs.registerLanguage("kotlin",function(e){var a="val var get set class trait object public open private protected final enum if else do while for when break continue throw try catch finally import package is as in return fun override default companion reified inline volatile transient native";return{k:{typename:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null",keyword:a},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"type",b://,rB:!0,eE:!1,r:0},{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:a,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,r:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"type",b://,k:"reified",r:0},{cN:"params",b:/\(/,e:/\)/,k:a,r:0,i:/\([^\(,\s:]+,/,c:[{cN:"typename",b:/:\s*/,e:/\s*[=\)]/,eB:!0,rE:!0,r:0}]},e.CLCM,e.CBCM]},{cN:"class",bK:"class trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[e.UTM,{cN:"type",b://,eB:!0,eE:!0,r:0},{cN:"typename",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0}]},{cN:"variable",bK:"var val",e:/\s*[=:$]/,eE:!0},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.CNM]}});hljs.registerLanguage("stylus",function(t){var e={cN:"variable",b:"\\$"+t.IR},o={cN:"hexcolor",b:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})",r:10},i=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],r=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a="[\\.\\s\\n\\[\\:,]",l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],d=["\\{","\\}","\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"];return{aliases:["styl"],cI:!1,i:"("+d.join("|")+")",k:"if else for in",c:[t.QSM,t.ASM,t.CLCM,t.CBCM,o,{b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"class",b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"id",b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\b("+n.join("|")+")"+a,rB:!0,c:[{cN:"tag",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{cN:"pseudo",b:"&?:?:\\b("+r.join("|")+")"+a},{cN:"at_rule",b:"@("+i.join("|")+")\\b"},e,t.CSSNM,t.NM,{cN:"function",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",i:"[\\n]",rB:!0,c:[{cN:"title",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{cN:"params",b:/\(/,e:/\)/,c:[o,e,t.ASM,t.CSSNM,t.NM,t.QSM]}]},{cN:"attribute",b:"\\b("+l.reverse().join("|")+")\\b"}]}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",a={cN:"function",b:c+"\\(",rB:!0,eE:!0,e:"\\("},r={cN:"rule",b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{cN:"value",eW:!0,eE:!0,c:[a,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]};return{cI:!0,i:/[=\/|']/,c:[e.CBCM,r,{cN:"id",b:/\#[A-Za-z0-9_-]+/},{cN:"class",b:/\.[A-Za-z0-9_-]+/,r:0},{cN:"attr_selector",b:/\[/,e:/\]/,i:"$"},{cN:"pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"']+/},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[a,e.ASM,e.QSM,e.CSSNM]}]},{cN:"tag",b:c,r:0},{cN:"rules",b:"{",e:"}",i:/\S/,r:0,c:[e.CBCM,r]}]}});hljs.registerLanguage("puppet",function(e){var s="augeas computer cron exec file filebucket host interface k5login macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service firewall nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod notify package resources router schedule scheduled_task selboolean selmodule service ssh_authorized_key sshkey stage tidy user vlan yumrepo zfs zone zpool",r="alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",a={keyword:"and case class default define else elsif false if in import enherits node or true undef unless main settings $string "+s,literal:r,built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=e.C("#","$"),o={cN:"string",c:[e.BE],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},n=[o,i,{cN:"keyword",bK:"class",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"(::)?[A-Za-z_]\\w*(::\\w+)*"}),i,o]},{cN:"keyword",b:"([a-zA-Z_(::)]+ *\\{)",c:[o,i],r:0},{cN:"keyword",b:"(\\}|\\{)",r:0},{cN:"function",b:"[a-zA-Z_]+\\s*=>"},{cN:"constant",b:"(::)?(\\b[A-Z][a-z_]*(::)?)+",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0}];return{aliases:["pp"],k:a,c:n}});hljs.registerLanguage("nimrod",function(t){return{aliases:["nim"],k:{keyword:"addr and as asm bind block break|0 case|0 cast const|0 continue|0 converter discard distinct|10 div do elif else|0 end|0 enum|0 except export finally for from generic if|0 import|0 in include|0 interface is isnot|10 iterator|10 let|0 macro method|10 mixin mod nil not notin|10 object|0 of or out proc|10 ptr raise ref|10 return shl shr static template|10 try|0 tuple type|0 using|0 var|0 when while|0 with without xor yield",literal:"shared guarded stdin stdout stderr result|10 true false"},c:[{cN:"decorator",b:/{\./,e:/\.}/,r:10},{cN:"string",b:/[a-zA-Z]\w*"/,e:/"/,c:[{b:/""/}]},{cN:"string",b:/([a-zA-Z]\w*)?"""/,e:/"""/},t.QSM,{cN:"type",b:/\b[A-Z]\w+\b/,r:0},{cN:"type",b:/\b(int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|char|string|cstring|pointer|expr|stmt|void|auto|any|range|array|openarray|varargs|seq|set|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringarray|semistatic)\b/},{cN:"number",b:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/,r:0},t.HCM]}});hljs.registerLanguage("smalltalk",function(a){var r="[a-z][a-zA-Z0-9_]*",s={cN:"char",b:"\\$.{1}"},c={cN:"symbol",b:"#"+a.UIR};return{aliases:["st"],k:"self super nil true false thisContext",c:[a.C('"','"'),a.ASM,{cN:"class",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},{cN:"method",b:r+":",r:0},a.CNM,c,s,{cN:"localvars",b:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",rB:!0,e:/\|/,i:/\S/,c:[{b:"(\\|[ ]*)?"+r}]},{cN:"array",b:"\\#\\(",e:"\\)",c:[a.ASM,s,a.CNM,c]}]}});hljs.registerLanguage("x86asm",function(s){return{cI:!0,l:"\\.?"+s.IR,k:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",literal:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l",pseudo:"db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times",preprocessor:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public ",built_in:"bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},c:[s.C(";","$",{r:0}),{cN:"number",b:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",r:0},{cN:"number",b:"\\$[0-9][0-9A-Fa-f]*",r:0},{cN:"number",b:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[HhXx]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{cN:"number",b:"\\b(?:0[HhXx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"},s.QSM,{cN:"string",b:"'",e:"[^\\\\]'",r:0},{cN:"string",b:"`",e:"[^\\\\]`",r:0},{cN:"string",b:"\\.[A-Za-z0-9]+",r:0},{cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0},{cN:"label",b:"^\\s*%%[A-Za-z0-9_$#@~.?]*:",r:0},{cN:"argument",b:"%[0-9]+",r:0},{cN:"built_in",b:"%!S+",r:0}]}});hljs.registerLanguage("roboconf",function(e){var n="[a-zA-Z-_][^\n{\r\n]+\\{";return{aliases:["graph","instances"],cI:!0,k:"import",c:[{cN:"facet",b:"^facet "+n,e:"}",k:"facet installer exports children extends",c:[e.HCM]},{cN:"instance-of",b:"^instance of "+n,e:"}",k:"name count channels instance-data instance-state instance of",c:[{cN:"keyword",b:"[a-zA-Z-_]+( | )*:"},e.HCM]},{cN:"component",b:"^"+n,e:"}",l:"\\(?[a-zA-Z]+\\)?",k:"installer exports children extends imports facets alias (optional)",c:[{cN:"string",b:"\\.[a-zA-Z-_]+",e:"\\s|,|;",eE:!0},e.HCM]},e.HCM]}});hljs.registerLanguage("ruby",function(e){var c="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",b={cN:"yardoctag",b:"@[A-Za-z]+"},a={cN:"value",b:"#<",e:">"},n=[e.C("#","$",{c:[b]}),e.C("^\\=begin","^\\=end",{c:[b],r:10}),e.C("^__END__","\\n$")],s={cN:"subst",b:"#\\{",e:"}",k:r},t={cN:"string",c:[e.BE,s],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},i={cN:"params",b:"\\(",e:"\\)",k:r},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(n)},{cN:"function",bK:"def",e:" |$|;",r:0,c:[e.inherit(e.TM,{b:c}),i].concat(n)},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[t,{b:c}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[a,{cN:"regexp",c:[e.BE,s],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(n),r:0}].concat(n);s.c=d,i.c=d;var o="[>?]>",l="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",N=[{b:/^\s*=>/,cN:"status",starts:{e:"$",c:d}},{cN:"prompt",b:"^("+o+"|"+l+"|"+u+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,c:n.concat(N).concat(d)}});hljs.registerLanguage("typescript",function(e){return{aliases:["ts"],k:{keyword:"in if for while finally var new function|0 do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private get set super interface extendsstatic constructor implements enum export import declare type protected",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:0},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/,r:0},{cN:"constructor",bK:"constructor",e:/\{/,eE:!0,r:10},{cN:"module",bK:"module",e:/\{/,eE:!0},{cN:"interface",bK:"interface",e:/\{/,eE:!0},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}});hljs.registerLanguage("handlebars",function(e){var a="each in with if else unless bindattr action collection debugger log outlet template unbound view yield";return{aliases:["hbs","html.hbs","html.handlebars"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{{",e:"}}",c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a}]}]}});hljs.registerLanguage("mercury",function(e){var i={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",pragma:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses",preprocessor:"foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r={cN:"label",b:"XXX",e:"$",eW:!0,r:0},t=e.inherit(e.CLCM,{b:"%"}),_=e.inherit(e.CBCM,{r:0});t.c.push(r),_.c.push(r);var n={cN:"number",b:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.ASM,{r:0}),o=e.inherit(e.QSM,{r:0}),l={cN:"constant",b:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",r:0};o.c.push(l);var s={cN:"built_in",v:[{b:"<=>"},{b:"<=",r:0},{b:"=>",r:0},{b:"/\\\\"},{b:"\\\\/"}]},c={cN:"built_in",v:[{b:":-\\|-->"},{b:"=",r:0}]};return{aliases:["m","moo"],k:i,c:[s,c,t,_,n,e.NM,a,o,{b:/:-/}]}});hljs.registerLanguage("fix",function(u){return{c:[{b:/[^\u2401\u0001]+/,e:/[\u2401\u0001]/,eE:!0,rB:!0,rE:!1,c:[{b:/([^\u2401\u0001=]+)/,e:/=([^\u2401\u0001=]+)/,rE:!0,rB:!1,cN:"attribute"},{b:/=/,e:/([\u2401\u0001])/,eE:!0,eB:!0,cN:"string"}]}],cI:!0}});hljs.registerLanguage("clojure",function(e){var t={built_in:"def cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",o={b:n,r:0},s={cN:"number",b:a,r:0},i=e.inherit(e.QSM,{i:null}),c=e.C(";","$",{r:0}),d={cN:"literal",b:/\b(true|false|nil)\b/},l={cN:"collection",b:"[\\[\\{]",e:"[\\]\\}]"},m={cN:"comment",b:"\\^"+n},p=e.C("\\^\\{","\\}"),u={cN:"attribute",b:"[:]"+n},f={cN:"list",b:"\\(",e:"\\)"},h={eW:!0,r:0},y={k:t,l:n,cN:"keyword",b:n,starts:h},b=[f,i,m,p,c,u,l,s,d,o];return f.c=[e.C("comment",""),y,h],h.c=b,l.c=b,{aliases:["clj"],i:/\S/,c:[f,i,m,p,c,u,l,s,d]}});hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},s={b:"->{",e:"}"},n={cN:"variable",v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},i=e.C("^(__END__|__DATA__)","\\n$",{r:5}),o=[e.BE,r,n],a=[n,e.HCM,i,e.C("^\\=\\w","\\=cut",{eW:!0}),s,{cN:"string",c:o,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,i,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}];return r.c=a,s.c=a,{aliases:["pl"],k:t,c:a}});hljs.registerLanguage("twig",function(e){var t={cN:"params",b:"\\(",e:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",r={cN:"function",bK:a,r:0,c:[t]},c={cN:"filter",b:/\|[A-Za-z_]+:?/,k:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",c:[r]},n="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return n=n+" "+n.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:n,c:[c,r]},{cN:"variable",b:/\{\{/,e:/}}/,c:[c,r]}]}});hljs.registerLanguage("livecodeserver",function(e){var r={cN:"variable",b:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",r:0},t=[e.CBCM,e.HCM,e.C("--","$"),e.C("[^:]//","$")],a=e.inherit(e.TM,{v:[{b:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{b:"\\b_[a-z0-9\\-]+"}]}),o=e.inherit(e.TM,{b:"\\b([A-Za-z0-9_\\-]+)\\b"});return{cI:!1,k:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if",constant:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",operator:"div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},c:[r,{cN:"keyword",b:"\\bend\\sif\\b"},{cN:"function",bK:"function",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"function",bK:"end",e:"$",c:[o,a]},{cN:"command",bK:"command on",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"command",bK:"end",e:"$",c:[o,a]},{cN:"preprocessor",b:"<\\?rev|<\\?lc|<\\?livecode",r:10},{cN:"preprocessor",b:"<\\?"},{cN:"preprocessor",b:"\\?>"},e.ASM,e.QSM,e.BNM,e.CNM,a].concat(t),i:";$|^\\[|^="}});hljs.registerLanguage("step21",function(e){var r="[A-Z_][A-Z0-9_.]*",i="END-ISO-10303-21;",l={literal:"",built_in:"",keyword:"HEADER ENDSEC DATA"},s={cN:"preprocessor",b:"ISO-10303-21;",r:10},t=[e.CLCM,e.CBCM,e.C("/\\*\\*!","\\*/"),e.CNM,e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"'",e:"'"},{cN:"label",v:[{b:"#",e:"\\d+",i:"\\W"}]}];return{aliases:["p21","step","stp"],cI:!0,l:r,k:l,c:[{cN:"preprocessor",b:i,r:10},s].concat(t)}});hljs.registerLanguage("cpp",function(t){var i={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary intmax_t uintmax_t int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t int_least8_t uint_least8_t int_least16_t uint_least16_t int_least32_t uint_least32_t int_least64_t uint_least64_t int_fast8_t uint_fast8_t int_fast16_t uint_fast16_t int_fast32_t uint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong atomic_wchar_t atomic_char16_t atomic_char32_t atomic_intmax_t atomic_uintmax_t atomic_intptr_t atomic_uintptr_t atomic_size_t atomic_ptrdiff_t atomic_int_least8_t atomic_int_least16_t atomic_int_least32_t atomic_int_least64_t atomic_uint_least8_t atomic_uint_least16_t atomic_uint_least32_t atomic_uint_least64_t atomic_int_fast8_t atomic_int_fast16_t atomic_int_fast32_t atomic_int_fast64_t atomic_uint_fast8_t atomic_uint_fast16_t atomic_uint_fast32_t atomic_uint_fast64_t",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"};return{aliases:["c","cc","h","c++","h++","hpp"],k:i,i:""]',k:"include",i:"\\n"},t.CLCM]},{b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:i,c:["self"]},{b:t.IR+"::",k:i},{bK:"new throw return else",r:0},{cN:"function",b:"("+t.IR+"\\s+)+"+t.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:i,c:[{b:t.IR+"\\s*\\(",rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:i,r:0,c:[t.CBCM]},t.CLCM,t.CBCM]}]}});hljs.registerLanguage("vala",function(e){return{k:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object",literal:"false true null"},c:[{cN:"class",bK:"class interface delegate namespace",e:"{",eE:!0,i:"[^,:\\n\\s\\.]",c:[e.UTM]},e.CLCM,e.CBCM,{cN:"string",b:'"""',e:'"""',r:5},e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"^#",e:"$",r:2},{cN:"constant",b:" [A-Z_]+ ",r:0}]}});hljs.registerLanguage("http",function(t){return{aliases:["https"],i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}});hljs.registerLanguage("avrasm",function(r){return{cI:!0,l:"\\.?"+r.IR,k:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",preprocessor:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},c:[r.CBCM,r.C(";","$",{r:0}),r.CNM,r.BNM,{cN:"number",b:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},r.QSM,{cN:"string",b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"},{cN:"label",b:"^[A-Za-z0-9_.$]+:"},{cN:"preprocessor",b:"#",e:"$"},{cN:"localvars",b:"@[0-9]+"}]}});hljs.registerLanguage("aspectj",function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",i="get set args call";return{k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"aspect",bK:"aspect",e:/[{;=]/,eE:!0,i:/[:;"\[\]]/,c:[{bK:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UTM,{b:/\([^\)]*/,e:/[)]+/,k:t+" "+i,eE:!1}]},{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,r:0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"pointcut after before around throwing returning",e:/[)]/,eE:!1,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",rB:!0,c:[e.UTM]}]},{b:/[:]/,rB:!0,e:/[{;]/,r:0,eE:!1,k:t,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",k:t+" "+i},e.QSM]},{bK:"new throw",r:0},{cN:"function",b:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,rB:!0,e:/[{;=]/,k:t,eE:!0,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,r:0,k:t,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("rib",function(e){return{k:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",i:">>|\.\.\.) /},b={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[r],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[r],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},l={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},c={cN:"params",b:/\(/,e:/\)/,c:["self",r,l,b]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[r,l,b,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,c]},{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("axapta",function(e){return{k:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"#",e:"$"},{cN:"class",bK:"class interface",e:"{",eE:!0,i:":",c:[{bK:"extends implements"},e.UTM]}]}});hljs.registerLanguage("nix",function(e){var t={keyword:"rec with let in inherit assert if else then",constant:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},i={cN:"subst",b:/\$\{/,e:/}/,k:t},r={cN:"variable",b:/[a-zA-Z0-9-_]+(\s*=)/},n={cN:"string",b:"''",e:"''",c:[i]},s={cN:"string",b:'"',e:'"',c:[i]},a=[e.NM,e.HCM,e.CBCM,n,s,r];return i.c=a,{aliases:["nixos"],k:t,c:a}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}});hljs.registerLanguage("parser3",function(r){var e=r.C("{","}",{c:["self"]});return{sL:"xml",r:0,c:[r.C("^#","$"),r.C("\\^rem{","}",{r:10,c:[e]}),{cN:"preprocessor",b:"^@(?:BASE|USE|CLASS|OPTIONS)$",r:10},{cN:"title",b:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{cN:"variable",b:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{cN:"keyword",b:"\\^[\\w\\-\\.\\:]+"},{cN:"number",b:"\\^#[0-9a-fA-F]+"},r.CNM]}});hljs.registerLanguage("django",function(e){var t={cN:"filter",b:/\|[A-Za-z]+:?/,k:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone",c:[{cN:"argument",b:/"/,e:/"/},{cN:"argument",b:/'/,e:/'/}]};return{aliases:["jinja"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor in ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup by as ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim",c:[t]},{cN:"variable",b:/\{\{/,e:/}}/,c:[t]}]}});hljs.registerLanguage("rust",function(e){var t=e.inherit(e.CBCM);return t.c.push("self"),{aliases:["rs"],k:{keyword:"alignof as be box break const continue crate do else enum extern false fn for if impl in let loop match mod mut offsetof once priv proc pub pure ref return self sizeof static struct super trait true type typeof unsafe unsized use virtual while yield int i8 i16 i32 i64 uint u8 u32 u64 float f32 f64 str char bool",built_in:"assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln!"},l:e.IR+"!?",i:""}]}});hljs.registerLanguage("vhdl",function(e){var t="\\d(_|\\d)*",r="[eE][-+]?"+t,n=t+"(\\."+t+")?("+r+")?",o="\\w+",i=t+"#"+o+"(\\."+o+")?#("+r+")?",a="\\b("+i+"|"+n+")";return{cI:!0,k:{keyword:"abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",typename:"boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"},i:"{",c:[e.CBCM,e.C("--","$"),e.QSM,{cN:"number",b:a,r:0},{cN:"literal",b:"'(U|X|0|1|Z|W|L|H|-)'",c:[e.BE]},{cN:"attribute",b:"'[A-Za-z](_?[A-Za-z0-9])*",c:[e.BE]}]}});hljs.registerLanguage("ocaml",function(e){return{aliases:["ml"],k:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("cmake",function(e){return{aliases:["cmake.in"],cI:!0,k:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or",operator:"equal less greater strless strgreater strequal matches"},c:[{cN:"envvar",b:"\\${",e:"}"},e.HCM,e.QSM,e.NM]}});hljs.registerLanguage("1c",function(c){var e="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",r="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",t="ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",i={cN:"dquote",b:'""'},n={cN:"string",b:'"',e:'"|$',c:[i]},a={cN:"string",b:"\\|",e:'"|$',c:[i]};return{cI:!0,l:e,k:{keyword:r,built_in:t},c:[c.CLCM,c.NM,n,a,{cN:"function",b:"(процедура|функция)",e:"$",l:e,k:"процедура функция",c:[c.inherit(c.TM,{b:e}),{cN:"tail",eW:!0,c:[{cN:"params",b:"\\(",e:"\\)",l:e,k:"знач",c:[n,a]},{cN:"export",b:"экспорт",eW:!0,l:e,k:"экспорт",c:[c.CLCM]}]},c.CLCM]},{cN:"preprocessor",b:"#",e:"$"},{cN:"date",b:"'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"}]}});hljs.registerLanguage("tcl",function(e){return{aliases:["tk"],k:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",c:[e.C(";[ \\t]*#","$"),e.C("^[ \\t]*#","$"),{bK:"proc",e:"[\\{]",eE:!0,c:[{cN:"symbol",b:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"[ \\t\\n\\r]",eW:!0,eE:!0}]},{cN:"variable",eE:!0,v:[{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",e:"[^a-zA-Z0-9_\\}\\$]"},{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{cN:"string",c:[e.BE],v:[e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},{cN:"number",v:[e.BNM,e.CNM]}]}});hljs.registerLanguage("groovy",function(e){return{k:{typename:"byte short char int long boolean float double void",literal:"true false null",keyword:"def as in assert trait super this abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"string",b:'"""',e:'"""'},{cN:"string",b:"'''",e:"'''"},{cN:"string",b:"\\$/",e:"/\\$",r:10},e.ASM,{cN:"regexp",b:/~?\/[^\/\n]+\//,c:[e.BE]},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.BNM,{cN:"class",bK:"class interface trait enum",e:"{",i:":",c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{cN:"string",b:/[^\?]{0}[A-Za-z0-9_$]+ *:/},{b:/\?/,e:/\:/},{cN:"label",b:"^\\s*[A-Za-z0-9_$]+:",r:0}]}});hljs.registerLanguage("erlang-repl",function(r){return{k:{special_functions:"spawn spawn_link self",reserved:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},c:[{cN:"prompt",b:"^[0-9]+> ",r:10},r.C("%","$"),{cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},r.ASM,r.QSM,{cN:"constant",b:"\\?(::)?([A-Z]\\w*(::)?)+"},{cN:"arrow",b:"->"},{cN:"ok",b:"ok"},{cN:"exclamation_mark",b:"!"},{cN:"function_or_atom",b:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",r:0},{cN:"variable",b:"[A-Z][a-zA-Z0-9_']*",r:0}]}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"title",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("mathematica",function(e){return{aliases:["mma"],l:"(\\$|\\b)"+e.IR+"\\b",k:"AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber", +c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{cN:"list",b:/\{/,e:/\}/,i:/:/}]}});hljs.registerLanguage("fsharp",function(e){var t={b:"<",e:">",c:[e.inherit(e.TM,{b:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],k:"yield! return! let! do!abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",c:[{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},{cN:"string",b:'"""',e:'"""'},e.C("\\(\\*","\\*\\)"),{cN:"class",bK:"type",e:"\\(|=|$",eE:!0,c:[e.UTM,t]},{cN:"annotation",b:"\\[<",e:">\\]",r:10},{cN:"attribute",b:"\\B('[A-Za-z])\\b",c:[e.BE]},e.CLCM,e.inherit(e.QSM,{i:null}),e.CNM]}});hljs.registerLanguage("verilog",function(e){return{aliases:["v"],cI:!0,k:{keyword:"always and assign begin buf bufif0 bufif1 case casex casez cmos deassign default defparam disable edge else end endcase endfunction endmodule endprimitive endspecify endtable endtask event for force forever fork function if ifnone initial inout input join macromodule module nand negedge nmos nor not notif0 notif1 or output parameter pmos posedge primitive pulldown pullup rcmos release repeat rnmos rpmos rtran rtranif0 rtranif1 specify specparam table task timescale tran tranif0 tranif1 wait while xnor xor",typename:"highz0 highz1 integer large medium pull0 pull1 real realtime reg scalared signed small strong0 strong1 supply0 supply0 supply1 supply1 time tri tri0 tri1 triand trior trireg vectored wand weak0 weak1 wire wor"},c:[e.CBCM,e.CLCM,e.QSM,{cN:"number",b:"\\b(\\d+'(b|h|o|d|B|H|O|D))?[0-9xzXZ]+",c:[e.BE],r:0},{cN:"typename",b:"\\.\\w+",r:0},{cN:"value",b:"#\\((?!parameter).+\\)"},{cN:"keyword",b:"\\+|-|\\*|/|%|<|>|=|#|`|\\!|&|\\||@|:|\\^|~|\\{|\\}",r:0}]}});hljs.registerLanguage("dos",function(e){var r=e.C(/@?rem\b/,/$/,{r:10}),t={cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0};return{aliases:["bat","cmd"],cI:!0,k:{flow:"if else goto for in do call exit not exist errorlevel defined",operator:"equ neq lss leq gtr geq",keyword:"shift cd dir echo setlocal endlocal set pause copy",stream:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux",winutils:"ping net ipconfig taskkill xcopy ren del",built_in:"append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol"},c:[{cN:"envvar",b:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{cN:"function",b:t.b,e:"goto:eof",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{cN:"number",b:"\\b\\d+",r:0},r]}});hljs.registerLanguage("gherkin",function(e){return{aliases:["feature"],k:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",c:[{cN:"keyword",b:"\\*"},e.C("@[^@\r\n ]+","$"),{cN:"string",b:"\\|",e:"\\$"},{cN:"variable",b:"<",e:">"},e.HCM,{cN:"string",b:'"""',e:'"""'},e.QSM]}});hljs.registerLanguage("xml",function(t){var e="[A-Za-z0-9\\._:-]+",s={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},c={eW:!0,i:/]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"doctype",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},t.C("",{r:10}),{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"|$)",e:">",k:{title:"style"},c:[c],starts:{e:"",rE:!0,sL:"css"}},{cN:"tag",b:"|$)",e:">",k:{title:"script"},c:[c],starts:{e:"",rE:!0,sL:""}},s,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"",c:[{cN:"title",b:/[^ \/><\n\t]+/,r:0},c]}]}});hljs.registerLanguage("autohotkey",function(e){var r={cN:"escape",b:"`[\\s\\S]"},c=e.C(";","$",{r:0}),n=[{cN:"built_in",b:"A_[a-zA-Z0-9]+"},{cN:"built_in",bK:"ComSpec Clipboard ClipboardAll ErrorLevel"}];return{cI:!0,k:{keyword:"Break Continue Else Gosub If Loop Return While",literal:"A true false NOT AND OR"},c:n.concat([r,e.inherit(e.QSM,{c:[r]}),c,{cN:"number",b:e.NR,r:0},{cN:"var_expand",b:"%",e:"%",i:"\\n",c:[r]},{cN:"label",c:[r],v:[{b:'^[^\\n";]+::(?!=)'},{b:'^[^\\n";]+:(?!=)',r:0}]},{b:",\\s*,",r:10}])}});hljs.registerLanguage("r",function(e){var r="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{c:[e.HCM,{b:r,l:r,k:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},r:0},{cN:"number",b:"0[xX][0-9a-fA-F]+[Li]?\\b",r:0},{cN:"number",b:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",r:0},{cN:"number",b:"\\d+\\.(?!\\d)(?:i\\b)?",r:0},{cN:"number",b:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{cN:"number",b:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{b:"`",e:"`",r:0},{cN:"string",c:[e.BE],v:[{b:'"',e:'"'},{b:"'",e:"'"}]}]}});hljs.registerLanguage("cs",function(e){var r="abstract as base bool break byte case catch char checked const continue decimal dynamic default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long null when object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",t=e.IR+"(<"+e.IR+">)?";return{aliases:["csharp"],k:r,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:""},{b:""}]}]}),e.CLCM,e.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class namespace interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("nsis",function(e){var t={cN:"symbol",b:"\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)"},n={cN:"constant",b:"\\$+{[a-zA-Z0-9_]+}"},i={cN:"variable",b:"\\$+[a-zA-Z0-9_]+",i:"\\(\\){}"},r={cN:"constant",b:"\\$+\\([a-zA-Z0-9_]+\\)"},o={cN:"params",b:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},l={cN:"constant",b:"\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)"};return{cI:!1,k:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user "},c:[e.HCM,e.CBCM,{cN:"string",b:'"',e:'"',i:"\\n",c:[{cN:"symbol",b:"\\$(\\\\(n|r|t)|\\$)"},t,n,i,r]},e.C(";","$",{r:0}),{cN:"function",bK:"Function PageEx Section SectionGroup SubSection",e:"$"},l,n,i,r,o,e.NM,{cN:"literal",b:e.IR+"::"+e.IR}]}});hljs.registerLanguage("less",function(e){var r="[\\w-]+",t="("+r+"|@{"+r+"})",a=[],c=[],n=function(e){return{cN:"string",b:"~?"+e+".*?"+e}},i=function(e,r,t){return{cN:e,b:r,r:t}},s=function(r,t,a){return e.inherit({cN:r,b:t+"\\(",e:"\\(",rB:!0,eE:!0,r:0},a)},b={b:"\\(",e:"\\)",c:c,r:0};c.push(e.CLCM,e.CBCM,n("'"),n('"'),e.CSSNM,i("hexcolor","#[0-9A-Fa-f]+\\b"),s("function","(url|data-uri)",{starts:{cN:"string",e:"[\\)\\n]",eE:!0}}),s("function",r),b,i("variable","@@?"+r,10),i("variable","@{"+r+"}"),i("built_in","~?`[^`]*?`"),{cN:"attribute",b:r+"\\s*:",e:":",rB:!0,eE:!0});var o=c.concat({b:"{",e:"}",c:a}),u={bK:"when",eW:!0,c:[{bK:"and not"}].concat(c)},C={cN:"attribute",b:t,e:":",eE:!0,c:[e.CLCM,e.CBCM],i:/\S/,starts:{e:"[;}]",rE:!0,c:c,i:"[<=$]"}},l={cN:"at_rule",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:c,r:0}},d={cN:"variable",v:[{b:"@"+r+"\\s*:",r:15},{b:"@"+r}],starts:{e:"[;}]",rE:!0,c:o}},p={v:[{b:"[\\.#:&\\[]",e:"[;{}]"},{b:t+"[^;]*{",e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",c:[e.CLCM,e.CBCM,u,i("keyword","all\\b"),i("variable","@{"+r+"}"),i("tag",t+"%?",0),i("id","#"+t),i("class","\\."+t,0),i("keyword","&",0),s("pseudo",":not"),s("keyword",":extend"),i("pseudo","::?"+t),{cN:"attr_selector",b:"\\[",e:"\\]"},{b:"\\(",e:"\\)",c:o},{b:"!important"}]};return a.push(e.CLCM,e.CBCM,l,d,p,C),{cI:!0,i:"[=>'/<($\"]",c:a}});hljs.registerLanguage("pf",function(t){var o={cN:"variable",b:/\$[\w\d#@][\w\d_]*/},e={cN:"variable",b://};return{aliases:["pf.conf"],l:/[a-z0-9_<>-]+/,k:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},c:[t.HCM,t.NM,t.QSM,o,e]}});hljs.registerLanguage("lasso",function(e){var r="[a-zA-Z_][a-zA-Z0-9_.]*",a="<\\?(lasso(script)?|=)",t="\\]|\\?>",s={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited",keyword:"error_code error_msg error_pop error_push error_reset cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},n=e.C("",{r:0}),o={cN:"preprocessor",b:"\\[noprocess\\]",starts:{cN:"markup",e:"\\[/noprocess\\]",rE:!0,c:[n]}},i={cN:"preprocessor",b:"\\[/noprocess|"+a},l={cN:"variable",b:"'"+r+"'"},c=[e.CLCM,{cN:"javadoc",b:"/\\*\\*!",e:"\\*/",c:[e.PWM]},e.CBCM,e.inherit(e.CNM,{b:e.CNR+"|(-?infinity|nan)\\b"}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"`",e:"`"},{cN:"variable",v:[{b:"[#$]"+r},{b:"#",e:"\\d+",i:"\\W"}]},{cN:"tag",b:"::\\s*",e:r,i:"\\W"},{cN:"attribute",v:[{b:"-"+e.UIR,r:0},{b:"(\\.\\.\\.)"}]},{cN:"subst",v:[{b:"->\\s*",c:[l]},{b:":=|/(?!\\w)=?|[-+*%=<>&|!?\\\\]+",r:0}]},{cN:"built_in",b:"\\.\\.?\\s*",r:0,c:[l]},{cN:"class",bK:"define",rE:!0,e:"\\(|=>",c:[e.inherit(e.TM,{b:e.UIR+"(=(?!>))?"})]}];return{aliases:["ls","lassoscript"],cI:!0,l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[|"+a,rE:!0,r:0,c:[n]}},o,i,{cN:"preprocessor",b:"\\[no_square_brackets",starts:{e:"\\[/no_square_brackets\\]",l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[noprocess\\]|"+a,rE:!0,c:[n]}},o,i].concat(c)}},{cN:"preprocessor",b:"\\[",r:0},{cN:"shebang",b:"^#!.+lasso9\\b",r:10}].concat(c)}});hljs.registerLanguage("prolog",function(c){var r={cN:"atom",b:/[a-z][A-Za-z0-9_]*/,r:0},b={cN:"name",v:[{b:/[A-Z][a-zA-Z0-9_]*/},{b:/_[A-Za-z0-9_]*/}],r:0},a={b:/\(/,e:/\)/,r:0},e={b:/\[/,e:/\]/},n={cN:"comment",b:/%/,e:/$/,c:[c.PWM]},t={cN:"string",b:/`/,e:/`/,c:[c.BE]},g={cN:"string",b:/0\'(\\\'|.)/},N={cN:"string",b:/0\'\\s/},o={b:/:-/},s=[r,b,a,o,e,n,c.CBCM,c.QSM,c.ASM,t,g,N,c.CNM];return a.c=s,e.c=s,{c:s.concat([{b:/\.$/}])}});hljs.registerLanguage("oxygene",function(e){var r="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",t=e.C("{","}",{r:0}),a=e.C("\\(\\*","\\*\\)",{r:10}),n={cN:"string",b:"'",e:"'",c:[{b:"''"}]},o={cN:"string",b:"(#\\d+)+"},i={cN:"function",bK:"function constructor destructor procedure method",e:"[:;]",k:"function constructor|10 destructor|10 procedure|10 method|10",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",k:r,c:[n,o]},t,a]};return{cI:!0,k:r,i:'("|\\$[G-Zg-z]|\\/\\*||->)',c:[t,a,e.CLCM,n,o,e.NM,i,{cN:"class",b:"=\\bclass\\b",e:"end;",k:r,c:[n,o,t,a,e.CLCM,i]}]}});hljs.registerLanguage("applescript",function(e){var t=e.inherit(e.QSM,{i:""}),r={cN:"params",b:"\\(",e:"\\)",c:["self",e.CNM,t]},o=e.C("--","$"),n=e.C("\\(\\*","\\*\\)",{c:["self",o]}),a=[o,n,e.HCM];return{aliases:["osascript"],k:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",constant:"AppleScript false linefeed return pi quote result space tab true",type:"alias application boolean class constant date file integer list number real record string text",command:"activate beep count delay launch log offset read round run say summarize write",property:"character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},c:[t,e.CNM,{cN:"type",b:"\\bPOSIX file\\b"},{cN:"command",b:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{cN:"constant",b:"\\b(text item delimiters|current application|missing value)\\b"},{cN:"keyword",b:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"},{cN:"property",b:"\\b(POSIX path|(date|time) string|quoted form)\\b"},{cN:"function_start",bK:"on",i:"[${=;\\n]",c:[e.UTM,r]}].concat(a),i:"//|->|=>"}});hljs.registerLanguage("makefile",function(e){var a={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[a]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,a]}]}});hljs.registerLanguage("dust",function(e){var a="if eq ne lt lte gt gte select default math sep";return{aliases:["dst"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{",e:"}",r:0,c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a,r:0}]}]}});hljs.registerLanguage("clojure-repl",function(e){return{c:[{cN:"prompt",b:/^([\w.-]+|\s*#_)=>/,starts:{e:/$/,sL:"clojure",subLanguageMode:"continuous"}}]}});hljs.registerLanguage("dart",function(e){var t={cN:"subst",b:"\\$\\{",e:"}",k:"true false null this is new super"},r={cN:"string",v:[{b:"r'''",e:"'''"},{b:'r"""',e:'"""'},{b:"r'",e:"'",i:"\\n"},{b:'r"',e:'"',i:"\\n"},{b:"'''",e:"'''",c:[e.BE,t]},{b:'"""',e:'"""',c:[e.BE,t]},{b:"'",e:"'",i:"\\n",c:[e.BE,t]},{b:'"',e:'"',i:"\\n",c:[e.BE,t]}]};t.c=[e.CNM,r];var n={keyword:"assert break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch this throw true try var void while with",literal:"abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{k:n,c:[r,{cN:"dartdoc",b:"/\\*\\*",e:"\\*/",sL:"markdown",subLanguageMode:"continuous"},{cN:"dartdoc",b:"///",e:"$",sL:"markdown",subLanguageMode:"continuous"},e.CLCM,e.CBCM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{b:"=>"}]}}); \ No newline at end of file diff --git a/doc/html/js/jquery-2.1.1.min.js b/doc/html/js/jquery-2.1.1.min.js new file mode 100644 index 0000000..e5ace11 --- /dev/null +++ b/doc/html/js/jquery-2.1.1.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="
    ",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b) +},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("

    5q!RY z*BeMp5!YRitn`g&nth8{m6Dd0QYAj0ZxqJ;!r>+5bAHQflhf0aYx(Url?1GY6U}5F zylvy$dA2fK(`58 z4KJ8nnOPF^3Rx@@8g_Vg6GI*_Bng?U4A#>qx-1Jv@{q$QbMPz!SyL+_iFRlz_(NHK z0V0O}tchz`Cb(6e7?+~x9pfb%8)c-+N~ShwBa6&z&P!?UfKd=_feP)X9~S=&MC3F( z*fN(l@lMz-Sg_16J{@jx<&VV<$8Y)g2W-?OuM)0zALCcypa7@C54l}4jp82+hE{_p zzbA6zM`9T_Oj{2RAI9}Nc{4Y$2PA<_)4TPX&X=UEl76Wmy`q=?CUS>c{DGdm^`|%G z(s%#%Hrw?koB7l6V{b8-VY{XAvxUrI5`qnSe&|K^v-^%e^oLtN=Nq48kKc0Q$&at- zZW5)*hobU>eO7s-$XtWXd)6mnm%lcTUi zK&*foQA{K#vaRajK9rcS7^w0jBmjFlBtBqCDQ+x!lKgTGJR=daf)T>G+sSz z>3!F|bshfrxlql3dksJ;yki`JCk>MLXg+mixfSh^nFV61GuCX5b*731Gb8O4vs+sD z4ZYW1+uL*PwerFv_UNOOT|#!KNGU?!W7<_aPf)(m1c|p*IQ7F$KslqsvIdML5`{$z z0qCeH@IM!*f^8%E$}_%2`zkHzlwXZbDe}9@bPMTFJd+e=i*a)@X7LHY13w}nwL}8*;!Y- zX2blTm}2po@Xu>WVIroz;-*=>PVN;djL-t96631*$$`%G82II>ph;?=TR4h2OMLSQ z2;d3;a80}nlz<;SHDQ`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OU9>><2~$93@DMBTW2l5^EEyxD<#H5z_Zl@)ENO!ybW zQLZHklLF{!G{=E-H5wqFD5qOYnD9N`rdnxp1_c@vxqkwK(p2`35J$F&FJL3#<63BP z)&di#a@GPq4kYe{C!t$Fmaq|UaV<01V*wWj5>~)P!Ni@9WYgPcvbF$s2eyIjr2Azz za1y71_W}Xbun%yeTRfC-TaY`mPNC_D_X;GTfO~}!aygStt(r;L2Y68;29kCG-V`Y} z0Otx6&3U4iwLQ*pEnrA?P&-5z{w$K0~ zYQGeaW1qNFNo1H=OBKl&2S0Eu61gJ)*X{(1fNS>xXep9PDMDEj0MG6PfJtT(N5Dg% Ox*$vd000000000ka;p>o diff --git a/tpl/default/fonts/fontawesome-webfont.svg b/tpl/default/fonts/fontawesome-webfont.svg index d05688e..855c845 100644 --- a/tpl/default/fonts/fontawesome-webfont.svg +++ b/tpl/default/fonts/fontawesome-webfont.svg @@ -1,655 +1,2671 @@ - - + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tpl/default/fonts/fontawesome-webfont.ttf b/tpl/default/fonts/fontawesome-webfont.ttf index 84864859010dc8f37cf3bf4da374048fa09f3f56..35acda2fa1196aad98c2adf4378a7611dd713aa3 100644 GIT binary patch delta 30894 z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Y!_7>eW*MglAL zIL#2A>T&X;M}j^rtkS(8v7Y$*>uc`N315z_)%1ECrsP2A>HQ zlN5FxpHv18UQz_Z!2SBTA|MM30ILA#sq%z^N-%idr1@zwy%9(d3`{hV5t5uRn7FtN zjpedq?fjl%FcK4|ieUs$ylOg(Qfmbk2@dc1QeqZrwFV6wo9nBe4$)$m#_ueLT;d7* zjdB=CE6jE&A7253X(l30?psg+%T#=K1H|}rjo`;TyBxmHHxkEVH6qZ7gtP-}DPUJ; zfet**-a_yQj}4FX&u`oHnt$M*{B3VS^@_yTcD2DKdo?MqyA7M|bjk2)e&`CY@Kr0| z&zNF-3D3bY!1?jM11rIU`I}7;<&!=SQ?a*!xY7pFLlsIugHSPUWx*b^Ml&MM>zeF|8=#LG6vHH$MCSM`Yjomxn5;@wC4`tl2QMs> z2n{`wu=Lmv<(OgY6qmy`*kwx3mZ@zqI@%ha6B(C0k$N-Zxt+Um#%`?`69LxMD;(DG z?}x;^y79A__zeO1nZ z_2$l`RL0ygcqNEF{kYAWBFx!f)wsxD_{6Ir47^Mr>`3}j95tB_5hxjrK{cou{RX{; z{)9e3UFatw7*F1z&8pS7oSsNmiYI}#Sq0B%H;G669Lkm|vN=SyV3#gZLp;)!O5U

    - {loop="$theme_available"}
    -

    {function="strftime('%A %d, %B %Y', $day)"}

    +

    {function="format_date($dayDate, false)"}

    {loop="$daily_about_plugin"} From 935222b8b2d9744511cc95b2b5c17f555503582e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 28 Mar 2017 20:51:11 +0200 Subject: [PATCH 531/658] Display daily date in the page title (browser title) Fixes #211 Depends on #838 --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 5c21c2f..259d017 100644 --- a/index.php +++ b/index.php @@ -695,6 +695,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager) $dayDate = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $day.'_000000'); $data = array( + 'pagetitle' => $conf->get('general.title') .' - '. format_date($dayDate, false), 'linksToDisplay' => $linksToDisplay, 'cols' => $columns, 'day' => $dayDate->getTimestamp(), From 8e33d0e767579f9f9c783973b6cce14ccf4620dd Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 1 Apr 2017 12:26:31 +0200 Subject: [PATCH 532/658] Remove readityourself plugin Fixes #818 --- plugins/readityourself/book-open.png | Bin 568 -> 0 bytes plugins/readityourself/readityourself.html | 1 - plugins/readityourself/readityourself.meta | 2 - plugins/readityourself/readityourself.php | 51 ----------- tests/plugins/PluginReadityourselfTest.php | 99 --------------------- 5 files changed, 153 deletions(-) delete mode 100644 plugins/readityourself/book-open.png delete mode 100644 plugins/readityourself/readityourself.html delete mode 100644 plugins/readityourself/readityourself.meta delete mode 100644 plugins/readityourself/readityourself.php delete mode 100644 tests/plugins/PluginReadityourselfTest.php diff --git a/plugins/readityourself/book-open.png b/plugins/readityourself/book-open.png deleted file mode 100644 index 36513d7b7cea3e6e607dfc01a1b2b153e0786c3d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 568 zcmV-80>}M{P)Koj`T6MR;8U%(`=!ySPEAad=4NN-3zL&mL#CNeCzBbCbB(>I ztdq$mM;ItH08jP&6Sp#uI)*^RCh$Bj-azWeAU?s(2A2tZ z5o_SO?hQu}S4X&I0&!OfgxhaRD2j3cHA?^aZ-T3Jxpt}Ju&q>OYYUunP$$CBbqwZm z&r|JV@-{e_ASOw2^)I zxD#wwt8T-e{(0PTdMCe5&#hBOpwp;F$taTnmK=wgNreadityourself diff --git a/plugins/readityourself/readityourself.meta b/plugins/readityourself/readityourself.meta deleted file mode 100644 index bd611dd..0000000 --- a/plugins/readityourself/readityourself.meta +++ /dev/null @@ -1,2 +0,0 @@ -description="For each link, add a ReadItYourself icon to save the shaared URL." -parameters=READITYOUSELF_URL; \ No newline at end of file diff --git a/plugins/readityourself/readityourself.php b/plugins/readityourself/readityourself.php deleted file mode 100644 index 961c5bd..0000000 --- a/plugins/readityourself/readityourself.php +++ /dev/null @@ -1,51 +0,0 @@ -get('plugins.READITYOUSELF_URL'); - if (empty($riyUrl)) { - $error = 'Readityourself plugin error: '. - 'Please define the "READITYOUSELF_URL" setting in the plugin administration page.'; - return array($error); - } -} - -/** - * Add readityourself icon to link_plugin when rendering linklist. - * - * @param mixed $data Linklist data. - * @param ConfigManager $conf Configuration Manager instance. - * - * @return mixed - linklist data with readityourself plugin. - */ -function hook_readityourself_render_linklist($data, $conf) -{ - $riyUrl = $conf->get('plugins.READITYOUSELF_URL'); - if (empty($riyUrl)) { - return $data; - } - - $readityourself_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/readityourself/readityourself.html'); - - foreach ($data['links'] as &$value) { - $readityourself = sprintf($readityourself_html, $riyUrl, $value['url'], PluginManager::$PLUGINS_PATH); - $value['link_plugin'][] = $readityourself; - } - - return $data; -} diff --git a/tests/plugins/PluginReadityourselfTest.php b/tests/plugins/PluginReadityourselfTest.php deleted file mode 100644 index bbba967..0000000 --- a/tests/plugins/PluginReadityourselfTest.php +++ /dev/null @@ -1,99 +0,0 @@ -set('plugins.READITYOUSELF_URL', 'value'); - $errors = readityourself_init($conf); - $this->assertEmpty($errors); - } - - /** - * Test Readityourself init with errors. - */ - public function testReadityourselfInitError() - { - $conf = new ConfigManager(''); - $errors = readityourself_init($conf); - $this->assertNotEmpty($errors); - } - - /** - * Test render_linklist hook. - */ - public function testReadityourselfLinklist() - { - $conf = new ConfigManager(''); - $conf->set('plugins.READITYOUSELF_URL', 'value'); - $str = 'http://randomstr.com/test'; - $data = array( - 'title' => $str, - 'links' => array( - array( - 'url' => $str, - ) - ) - ); - - $data = hook_readityourself_render_linklist($data, $conf); - $link = $data['links'][0]; - // data shouldn't be altered - $this->assertEquals($str, $data['title']); - $this->assertEquals($str, $link['url']); - - // plugin data - $this->assertEquals(1, count($link['link_plugin'])); - $this->assertNotFalse(strpos($link['link_plugin'][0], $str)); - } - - /** - * Test without config: nothing should happened. - */ - public function testReadityourselfLinklistWithoutConfig() - { - $conf = new ConfigManager(''); - $conf->set('plugins.READITYOUSELF_URL', null); - $str = 'http://randomstr.com/test'; - $data = array( - 'title' => $str, - 'links' => array( - array( - 'url' => $str, - ) - ) - ); - - $data = hook_readityourself_render_linklist($data, $conf); - $link = $data['links'][0]; - // data shouldn't be altered - $this->assertEquals($str, $data['title']); - $this->assertEquals($str, $link['url']); - - // plugin data - $this->assertArrayNotHasKey('link_plugin', $link); - } -} From 84315a3bad02652e5ea26586fab003eaaf467e30 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 10 Mar 2017 20:06:01 +0100 Subject: [PATCH 533/658] Fix a warning generated in return_bytes function and refactor it It was multiplying a string containing a letter. Moved function to Utils.php and display a human readable limit size --- application/Utils.php | 89 +++++++++++++++++++++++++++++++++++++++++ index.php | 32 +-------------- tests/UtilsTest.php | 80 ++++++++++++++++++++++++++++++++++++ tpl/vintage/import.html | 2 +- 4 files changed, 172 insertions(+), 31 deletions(-) diff --git a/application/Utils.php b/application/Utils.php index d6e0661..3ef2a7e 100644 --- a/application/Utils.php +++ b/application/Utils.php @@ -345,3 +345,92 @@ function format_date($date, $time = true, $intl = true) return $formatter->format($date); } + +/** + * Check if the input is an integer, no matter its real type. + * + * PHP is a bit messy regarding this: + * - is_int returns false if the input is a string + * - ctype_digit returns false if the input is an integer or negative + * + * @param mixed $input value + * + * @return bool true if the input is an integer, false otherwise + */ +function is_integer_mixed($input) +{ + if (is_array($input) || is_bool($input) || is_object($input)) { + return false; + } + $input = strval($input); + return ctype_digit($input) || (startsWith($input, '-') && ctype_digit(substr($input, 1))); +} + +/** + * Convert post_max_size/upload_max_filesize (e.g. '16M') parameters to bytes. + * + * @param string $val Size expressed in string. + * + * @return int Size expressed in bytes. + */ +function return_bytes($val) +{ + if (is_integer_mixed($val) || $val === '0' || empty($val)) { + return $val; + } + $val = trim($val); + $last = strtolower($val[strlen($val)-1]); + $val = intval(substr($val, 0, -1)); + switch($last) { + case 'g': $val *= 1024; + case 'm': $val *= 1024; + case 'k': $val *= 1024; + } + return $val; +} + +/** + * Return a human readable size from bytes. + * + * @param int $bytes value + * + * @return string Human readable size + */ +function human_bytes($bytes) +{ + if ($bytes === '') { + return t('Setting not set'); + } + if (! is_integer_mixed($bytes)) { + return $bytes; + } + $bytes = intval($bytes); + if ($bytes === 0) { + return t('Unlimited'); + } + + $units = [t('B'), t('kiB'), t('MiB'), t('GiB')]; + for ($i = 0; $i < count($units) && $bytes >= 1024; ++$i) { + $bytes /= 1024; + } + + return $bytes . $units[$i]; +} + +/** + * Try to determine max file size for uploads (POST). + * Returns an integer (in bytes) + * + * @param mixed $limitPost post_max_size PHP setting + * @param mixed $limitUpload upload_max_filesize PHP setting + * + * @return int max upload file size in bytes. + */ +function get_max_upload_size($limitPost, $limitUpload) +{ + $size1 = return_bytes($limitPost); + $size2 = return_bytes($limitUpload); + // Return the smaller of two: + $maxsize = min($size1, $size2); + return human_bytes($maxsize); +} diff --git a/index.php b/index.php index 863d509..8f26c39 100644 --- a/index.php +++ b/index.php @@ -472,34 +472,6 @@ if (isset($_POST['login'])) } } -// ------------------------------------------------------------------------------------------ -// Misc utility functions: - -// Convert post_max_size/upload_max_filesize (e.g. '16M') parameters to bytes. -function return_bytes($val) -{ - $val = trim($val); $last=strtolower($val[strlen($val)-1]); - switch($last) - { - case 'g': $val *= 1024; - case 'm': $val *= 1024; - case 'k': $val *= 1024; - } - return $val; -} - -// Try to determine max file size for uploads (POST). -// Returns an integer (in bytes) -function getMaxFileSize() -{ - $size1 = return_bytes(ini_get('post_max_size')); - $size2 = return_bytes(ini_get('upload_max_filesize')); - // Return the smaller of two: - $maxsize = min($size1,$size2); - // FIXME: Then convert back to readable notations ? (e.g. 2M instead of 2000000) - return $maxsize; -} - // ------------------------------------------------------------------------------------------ // Token management for XSRF protection // Token should be used in any form which acts on data (create,update,delete,import...). @@ -1517,7 +1489,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) if (! isset($_POST['token']) || ! isset($_FILES['filetoupload'])) { // Show import dialog - $PAGE->assign('maxfilesize', getMaxFileSize()); + $PAGE->assign('maxfilesize', get_max_upload_size(ini_get('post_max_size'), ini_get('upload_max_filesize'))); $PAGE->renderPage('import'); exit; } @@ -1527,7 +1499,7 @@ function renderPage($conf, $pluginManager, $LINKSDB) // The file is too big or some form field may be missing. echo ''; exit; diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index e70cc1a..e95c624 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -4,6 +4,7 @@ */ require_once 'application/Utils.php'; +require_once 'application/Languages.php'; require_once 'tests/utils/ReferenceSessionIdHashes.php'; // Initialize reference data before PHPUnit starts a session @@ -326,4 +327,83 @@ class UtilsTest extends PHPUnit_Framework_TestCase $this->assertFalse(format_date([])); $this->assertFalse(format_date(null)); } + + /** + * Test is_integer_mixed with valid values + */ + public function testIsIntegerMixedValid() + { + $this->assertTrue(is_integer_mixed(12)); + $this->assertTrue(is_integer_mixed('12')); + $this->assertTrue(is_integer_mixed(-12)); + $this->assertTrue(is_integer_mixed('-12')); + $this->assertTrue(is_integer_mixed(0)); + $this->assertTrue(is_integer_mixed('0')); + $this->assertTrue(is_integer_mixed(0x0a)); + } + + /** + * Test is_integer_mixed with invalid values + */ + public function testIsIntegerMixedInvalid() + { + $this->assertFalse(is_integer_mixed(true)); + $this->assertFalse(is_integer_mixed(false)); + $this->assertFalse(is_integer_mixed([])); + $this->assertFalse(is_integer_mixed(['test'])); + $this->assertFalse(is_integer_mixed([12])); + $this->assertFalse(is_integer_mixed(new DateTime())); + $this->assertFalse(is_integer_mixed('0x0a')); + $this->assertFalse(is_integer_mixed('12k')); + $this->assertFalse(is_integer_mixed('k12')); + $this->assertFalse(is_integer_mixed('')); + } + + /** + * Test return_bytes + */ + public function testReturnBytes() + { + $this->assertEquals(2 * 1024, return_bytes('2k')); + $this->assertEquals(2 * 1024, return_bytes('2K')); + $this->assertEquals(2 * (1024 ** 2), return_bytes('2m')); + $this->assertEquals(2 * (1024 ** 2), return_bytes('2M')); + $this->assertEquals(2 * (1024 ** 3), return_bytes('2g')); + $this->assertEquals(2 * (1024 ** 3), return_bytes('2G')); + $this->assertEquals(374, return_bytes('374')); + $this->assertEquals(374, return_bytes(374)); + $this->assertEquals(0, return_bytes('0')); + $this->assertEquals(0, return_bytes(0)); + $this->assertEquals(-1, return_bytes('-1')); + $this->assertEquals(-1, return_bytes(-1)); + $this->assertEquals('', return_bytes('')); + } + + /** + * Test human_bytes + */ + public function testHumanBytes() + { + $this->assertEquals('2kiB', human_bytes(2 * 1024)); + $this->assertEquals('2kiB', human_bytes(strval(2 * 1024))); + $this->assertEquals('2MiB', human_bytes(2 * (1024 ** 2))); + $this->assertEquals('2MiB', human_bytes(strval(2 * (1024 ** 2)))); + $this->assertEquals('2GiB', human_bytes(2 * (1024 ** 3))); + $this->assertEquals('2GiB', human_bytes(strval(2 * (1024 ** 3)))); + $this->assertEquals('374B', human_bytes(374)); + $this->assertEquals('374B', human_bytes('374')); + $this->assertEquals('Unlimited', human_bytes('0')); + $this->assertEquals('Unlimited', human_bytes(0)); + $this->assertEquals('Setting not set', human_bytes('')); + } + + /** + * Test get_max_upload_size + */ + public function testGetMaxUploadSize() + { + $this->assertEquals('1MiB', get_max_upload_size(2097152, '1024k')); + $this->assertEquals('1MiB', get_max_upload_size('1m', '2m')); + $this->assertEquals('100B', get_max_upload_size(100, 100)); + } } diff --git a/tpl/vintage/import.html b/tpl/vintage/import.html index 071e116..bb9e4a5 100644 --- a/tpl/vintage/import.html +++ b/tpl/vintage/import.html @@ -5,7 +5,7 @@
    -
    -
    -
    - -
    -
    -
    -
    - {ignore}FIXME! too hackish, needs to be fixed upstream{/ignore} -
    {$timezone_html}
    -
    -
    -
    -
    -
    @@ -80,6 +63,43 @@
    +
    +
    +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    +
    diff --git a/tpl/default/js/shaarli.js b/tpl/default/js/shaarli.js index 30d8ed6..714420b 100644 --- a/tpl/default/js/shaarli.js +++ b/tpl/default/js/shaarli.js @@ -76,9 +76,12 @@ window.onload = function () { } } - document.getElementById('menu-toggle').addEventListener('click', function (e) { - toggleMenu(); - }); + var menuToggle = document.getElementById('menu-toggle'); + if (menuToggle != null) { + menuToggle.addEventListener('click', function (e) { + toggleMenu(); + }); + } window.addEventListener(WINDOW_CHANGE_EVENT, closeMenu); })(this, this.document); @@ -299,21 +302,6 @@ window.onload = function () { }); } - /** - * TimeZome select - * FIXME! way too hackish - */ - var toRemove = document.getElementById('timezone-remove'); - if (toRemove != null) { - var firstSelect = toRemove.getElementsByTagName('select')[0]; - var secondSelect = toRemove.getElementsByTagName('select')[1]; - toRemove.parentNode.removeChild(toRemove); - var toAdd = document.getElementById('timezone-add'); - var newTimezone = 'Continent ' + firstSelect.outerHTML + ''; - newTimezone += ' Country ' + secondSelect.outerHTML + ''; - toAdd.innerHTML = newTimezone; - } - /** * Awesomplete trigger. */ @@ -366,6 +354,15 @@ window.onload = function () { } }); }); + + var continent = document.getElementById('continent'); + var city = document.getElementById('city'); + if (continent != null && city != null) { + continent.addEventListener('change', function(event) { + hideTimezoneCities(city, continent.options[continent.selectedIndex].value, true); + }); + hideTimezoneCities(city, continent.options[continent.selectedIndex].value, false); + } }; function activateFirefoxSocial(node) { @@ -391,3 +388,25 @@ function activateFirefoxSocial(node) { var activate = new CustomEvent("ActivateSocialFeature"); node.dispatchEvent(activate); } + +/** + * Add the class 'hidden' to city options not attached to the current selected continent. + * + * @param cities List of
    $ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/
     # install/update third-party dependencies
     $ cd /path/to/shaarli/
    -$ composer update --no-dev
    +$ composer install --no-dev

    Development version (mainline)

    Use at your own risk!

    To get the latest changes from the master branch:

    # clone the repository  
    -$ git clone https://github.com/shaarli/Shaarli.git master /path/to/shaarli/
    +$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/
     # install/update third-party dependencies
     $ cd /path/to/shaarli
    -$ composer update --no-dev
    +$ composer install --no-dev

    Finish Installation

    Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser.

    diff --git a/doc/Download-and-Installation.md b/doc/Download-and-Installation.md index 32df898..970144a 100644 --- a/doc/Download-and-Installation.md +++ b/doc/Download-and-Installation.md @@ -13,13 +13,13 @@ Get the latest released version from the [releases](https://github.com/shaarli/S **Download our *shaarli-full* archive** to include dependencies. -The current latest released version is `v0.8.0` +The current latest released version is `v0.8.4` Or in command lines: ```bash -$ wget https://github.com/shaarli/Shaarli/releases/download/v0.8.0/shaarli-v0.8.0-full.zip -$ unzip shaarli-v0.8.0-full.zip +$ wget https://github.com/shaarli/Shaarli/releases/download/v0.8.4/shaarli-v0.8.4-full.zip +$ unzip shaarli-v0.8.4-full.zip $ mv Shaarli /path/to/shaarli/ ``` @@ -30,8 +30,8 @@ $ mv Shaarli /path/to/shaarli/ ``` mkdir -p /path/to/shaarli && cd /path/to/shaarli/ -git clone -b v0.8.0 https://github.com/shaarli/Shaarli.git . -composer update --no-dev +git clone -b v0.8 https://github.com/shaarli/Shaarli.git . +composer install --no-dev ``` -------------------------------------------------------- @@ -66,7 +66,7 @@ $ mv Shaarli-stable /path/to/shaarli/ $ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/ # install/update third-party dependencies $ cd /path/to/shaarli/ -$ composer update --no-dev +$ composer install --no-dev ``` -------------------------------------------------------- @@ -79,10 +79,10 @@ To get the latest changes from the `master` branch: ```bash # clone the repository -$ git clone https://github.com/shaarli/Shaarli.git master /path/to/shaarli/ +$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/ # install/update third-party dependencies $ cd /path/to/shaarli -$ composer update --no-dev +$ composer install --no-dev ``` -------------------------------------------------------- diff --git a/doc/Example-patch---add-new-via-field-for-links.html b/doc/Example-patch---add-new-via-field-for-links.html index 133224e..49036a7 100644 --- a/doc/Example-patch---add-new-via-field-for-links.html +++ b/doc/Example-patch---add-new-via-field-for-links.html @@ -32,6 +32,7 @@
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To
  • How To
  • How To
  • How To
  • How To
  • How To
  • Plugin System

    -
    -

    Note: Plugin current status - in development (not merged into master).

    -

    I am a developer. Developer API.

    I am a template designer. Guide for template designer.

    Developer API

    @@ -121,12 +120,21 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf | plugins/ |---| demo_plugin/ | |---| demo_plugin.php +

    Plugin initialization

    +

    At the beginning of Shaarli execution, all enabled plugins are loaded. At this point, the plugin system looks for an init() function to execute and run it if it exists. This function must be named this way, and takes the ConfigManager as parameter.

    +
    <plugin_name>_init($conf)
    +

    This function can be used to create initial data, load default settings, etc. But also to set plugin errors. If the initialization function returns an array of strings, they will be understand as errors, and displayed in the header to logged in users.

    Understanding hooks

    A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution.

    These functions need to be named with this pattern:

    -
    hook_<plugin_name>_<hook_name>
    +
    hook_<plugin_name>_<hook_name>($data, $conf)
    +

    Parameters:

    +

    For exemple, if my plugin want to add data to the header, this function is needed:

    -
    hook_demo_plugin_render_header()
    +
    hook_demo_plugin_render_header

    If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header.

    Plugin's data

    Parameters

    @@ -159,6 +167,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • description: plugin description
    • parameters: user parameter names, separated by a ;.
    • +
    • parameter.<PARAMETER_NAME>: add a text description the specified parameter.

    Note: In PHP, parse_ini_file() seems to want strings to be between by quotes " in the ini file.

    @@ -209,16 +218,28 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf render_tagcloud -Allow to add content at the top and bottom of the page. +Allow to add content at the top and bottom of the page, and after all tags. +render_taglist +Allow to add content at the top and bottom of the page, and after all tags. + + render_daily Allow to add content at the top and bottom of the page, the bottom of each link and to alter data. + +render_feed +Allow to do add tags in RSS and ATOM feeds. + -savelink +save_link Allow to alter the link being saved in the datastore. + +delete_link +Allow to do an action before a link is deleted from the datastore. +

    render_header

    @@ -376,17 +397,41 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • plugin_start_zone: before displaying the template content.

  • plugin_end_zone: after displaying the template content.

  • +

    For each tag, the following placeholder can be used:

    +
      +
    • tag_plugin: after each tag
    • +

    plugin_start_end_zone_example

    +

    render_taglist

    +

    Triggered when taglist is displayed.

    +

    Allow to add content at the top and bottom of the page.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • All templates data.
    • +
    +
    Template placeholders
    +

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • plugin_start_zone: before displaying the template content.

    • +
    • plugin_end_zone: after displaying the template content.

    • +
    +

    For each tag, the following placeholder can be used:

    +
      +
    • tag_plugin: after each tag
    • +

    render_daily

    Triggered when tagcloud is displayed.

    Allow to add content at the top and bottom of the page, the bottom of each link and to alter data.

    -
    Data
    +
    Data

    $data is an array containing:

    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • All templates data, including links.
    -
    Template placeholders
    +
    Template placeholders

    Items can be displayed in templates by adding an entry in $data['<placeholder>'] array.

    List of placeholders:

      @@ -397,18 +442,57 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • plugin_start_zone: before displaying the template content.

    • plugin_end_zone: after displaying the template content.

    - +

    render_feed

    +

    Triggered when the ATOM or RSS feed is displayed.

    +

    Allow to add tags in the feed, either in the header or for each items. Items (links) can also be altered before being rendered.

    +
    Data
    +

    $data is an array containing:

    +
      +
    • _LOGGEDIN_: true if user is logged in, false otherwise.
    • +
    • _PAGE_: containing either rss or atom.
    • +
    • All templates data, including links.
    • +
    +
    Template placeholders
    +

    Tags can be added in feeds by adding an entry in $data['<placeholder>'] array.

    +

    List of placeholders:

    +
      +
    • feed_plugins_header: used as a header tag in the feed.
    • +
    +

    For each links:

    +
      +
    • feed_plugins: additional tag for every link entry.
    • +
    +

    Triggered when a link is save (new link or edit).

    Allow to alter the link being saved in the datastore.

    -
    Data
    +
    Data

    $data is an array containing the link being saved:

      +
    • id
    • title
    • url
    • +
    • shorturl
    • description
    • -
    • linkdate
    • private
    • tags
    • +
    • created
    • +
    • updated
    • +
    + +

    Triggered when a link is deleted.

    +

    Allow to execute any action before the link is actually removed from the datastore

    +
    Data
    +

    $data is an array containing the link being saved:

    +
      +
    • id
    • +
    • title
    • +
    • url
    • +
    • shorturl
    • +
    • description
    • +
    • private
    • +
    • tags
    • +
    • created
    • +
    • updated

    Guide for template designer

    Plugin administration

    @@ -537,5 +621,14 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf {$value} {/loop} </div>
    +

    feed.atom.xml and feed.rss.xml:

    +

    In headers tags section:

    +
    {loop="$feed_plugins_header"}
    +  {$value}
    +{/loop}
    +

    After each entry:

    +
    {loop="$value.feed_plugins"}
    +  {$value}
    +{/loop}
    diff --git a/doc/Plugin-System.md b/doc/Plugin-System.md index 623627d..addd792 100644 --- a/doc/Plugin-System.md +++ b/doc/Plugin-System.md @@ -1,6 +1,4 @@ #Plugin System -> Note: Plugin current status - in development (not merged into master). - [**I am a developer.** Developer API.](#developer-api)[](.html) [**I am a template designer.** Guide for template designer.](#guide-for-template-designer)[](.html) @@ -30,6 +28,14 @@ You should have the following tree view: | |---| demo_plugin.php ``` +### Plugin initialization + +At the beginning of Shaarli execution, all enabled plugins are loaded. At this point, the plugin system looks for an `init()` function to execute and run it if it exists. This function must be named this way, and takes the `ConfigManager` as parameter. + + _init($conf) + +This function can be used to create initial data, load default settings, etc. But also to set *plugin errors*. If the initialization function returns an array of strings, they will be understand as errors, and displayed in the header to logged in users. + ### Understanding hooks A plugin is a set of functions. Each function will be triggered by the plugin system at certain point in Shaarli execution. @@ -37,12 +43,17 @@ A plugin is a set of functions. Each function will be triggered by the plugin sy These functions need to be named with this pattern: ``` -hook__ +hook__($data, $conf) ``` +Parameters: + + - data: see [$data section](https://github.com/shaarli/Shaarli/wiki/Plugin-System#plugins-data)[](.html) + - conf: the `ConfigManager` instance. + For exemple, if my plugin want to add data to the header, this function is needed: - hook_demo_plugin_render_header() + hook_demo_plugin_render_header If this function is declared, and the plugin enabled, it will be called every time Shaarli is rendering the header. @@ -98,6 +109,7 @@ Each file contain two keys: * `description`: plugin description * `parameters`: user parameter names, separated by a `;`. + * `parameter.`: add a text description the specified parameter. > Note: In PHP, `parse_ini_file()` seems to want strings to be between by quotes `"` in the ini file. @@ -118,9 +130,13 @@ If it's still not working, please [open an issue](https://github.com/shaarli/Sha | [render_editlink](#render_editlink) | Allow to add fields in the form, or display elements. |[](.html) | [render_tools](#render_tools) | Allow to add content at the end of the page. |[](.html) | [render_picwall](#render_picwall) | Allow to add content at the top and bottom of the page. |[](.html) -| [render_tagcloud](#render_tagcloud) | Allow to add content at the top and bottom of the page. |[](.html) +| [render_tagcloud](#render_tagcloud) | Allow to add content at the top and bottom of the page, and after all tags. |[](.html) +| [render_taglist](#render_taglist) | Allow to add content at the top and bottom of the page, and after all tags. |[](.html) | [render_daily](#render_daily) | Allow to add content at the top and bottom of the page, the bottom of each link and to alter data. |[](.html) -| [savelink](#savelink) | Allow to alter the link being saved in the datastore. |[](.html) +| [render_feed](#render_feed) | Allow to do add tags in RSS and ATOM feeds. |[](.html) +| [save_link](#save_link) | Allow to alter the link being saved in the datastore. |[](.html) +| [delete_link](#delete_link) | Allow to do an action before a link is deleted from the datastore. |[](.html) + #### render_header @@ -330,8 +346,40 @@ List of placeholders: * `plugin_end_zone`: after displaying the template content. +For each tag, the following placeholder can be used: + + * `tag_plugin`: after each tag + ![plugin_start_end_zone_example](http://i.imgur.com/vHmyT3a.png)[](.html) + +#### render_taglist + +Triggered when taglist is displayed. + +Allow to add content at the top and bottom of the page. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * All templates data. + +##### Template placeholders + +Items can be displayed in templates by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `plugin_start_zone`: before displaying the template content. + + * `plugin_end_zone`: after displaying the template content. + +For each tag, the following placeholder can be used: + + * `tag_plugin`: after each tag + #### render_daily Triggered when tagcloud is displayed. @@ -359,7 +407,33 @@ List of placeholders: * `plugin_end_zone`: after displaying the template content. -#### savelink +#### render_feed + +Triggered when the ATOM or RSS feed is displayed. + +Allow to add tags in the feed, either in the header or for each items. Items (links) can also be altered before being rendered. + +##### Data + +`$data` is an array containing: + + * `_LOGGEDIN_`: true if user is logged in, false otherwise. + * `_PAGE_`: containing either `rss` or `atom`. + * All templates data, including links. + +##### Template placeholders + +Tags can be added in feeds by adding an entry in `$data['']` array.[](.html) + +List of placeholders: + + * `feed_plugins_header`: used as a header tag in the feed. + +For each links: + + * `feed_plugins`: additional tag for every link entry. + +#### save_link Triggered when a link is save (new link or edit). @@ -369,12 +443,36 @@ Allow to alter the link being saved in the datastore. `$data` is an array containing the link being saved: + * id * title * url + * shorturl * description - * linkdate * private * tags + * created + * updated + + +#### delete_link + +Triggered when a link is deleted. + +Allow to execute any action before the link is actually removed from the datastore + +##### Data + +`$data` is an array containing the link being saved: + + * id + * title + * url + * shorturl + * description + * private + * tags + * created + * updated ## Guide for template designer @@ -595,3 +693,19 @@ Bottom: {/loop}
    ``` + +**feed.atom.xml** and **feed.rss.xml**: + +In headers tags section: +```xml +{loop="$feed_plugins_header"} + {$value} +{/loop} +``` + +After each entry: +```xml +{loop="$value.feed_plugins"} + {$value} +{/loop} +``` diff --git a/doc/Plugins.html b/doc/Plugins.html index 435a836..08ce8a8 100644 --- a/doc/Plugins.html +++ b/doc/Plugins.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To

    Third party plugins

    diff --git a/doc/Plugins.md b/doc/Plugins.md index 81167fc..e3192a6 100644 --- a/doc/Plugins.md +++ b/doc/Plugins.md @@ -67,7 +67,6 @@ Usage of each plugin is documented in it's README file: * [`markdown`](https://github.com/shaarli/Shaarli/blob/master/plugins/markdown/README.md): Render shaare description with Markdown syntax.[](.html) * [`playvideos`](https://github.com/shaarli/Shaarli/blob/master/plugins/playvideos/README.md): Add a button in the toolbar allowing to watch all videos.[](.html) * `qrcode`: For each link, add a QRCode icon. - * `readityourself`: For each link, add a ReadItYourself icon to save the shaared URL * [`wallabag`](https://github.com/shaarli/Shaarli/blob/master/plugins/wallabag/README.md): For each link, add a Wallabag icon to save it in your instance.[](.html) diff --git a/doc/REST-API.html b/doc/REST-API.html new file mode 100644 index 0000000..d14c98c --- /dev/null +++ b/doc/REST-API.html @@ -0,0 +1,169 @@ + + + + + + + Shaarli – REST API + + + + + + + +

    REST API

    +

    Usage

    +

    See the REST API documentation.

    +

    Authentication

    +

    All requests to Shaarli's API must include a JWT token to verify their authenticity.

    +

    This token has to be included as an HTTP header called Authentication: Bearer <jwt token>.

    +

    JWT resources :

    + +

    Shaarli JWT Token

    +

    JWT tokens are composed by three parts, separated by a dot . and encoded in base64:

    +
    [header].[payload].[signature][](.html)
    + +

    Shaarli only allow one hash algorithm, so the header will always be the same:

    +
    {
    +    "typ": "JWT",
    +    "alg": "HS512"
    +}
    +

    Encoded in base64, it gives:

    +
    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==
    +

    Payload

    +

    Validity duration

    +

    To avoid infinite token validity, JWT tokens must include their creation date in UNIX timestamp format (timezone independant - UTC) under the key iat (issued at). This token will be accepted during 9 minutes.

    +
    {
    +    "iat": 1468663519
    +}
    +

    See RFC reference.

    +

    Signature

    +

    The signature authenticate the token validity. It contains the base64 of the header and the body, separated by a dot ., hashed in SHA512 with the API secret available in Shaarli administration page.

    +

    Signature example with PHP:

    +
    $content = base64_encode($header) . '.' . base64_encode($payload);
    +$signature = hash_hmac('sha512', $content, $secret);
    +

    Complete example

    +

    PHP

    +
    function generateToken($secret) {
    +    $header = base64_encode('{
    +        "typ": "JWT",
    +        "alg": "HS512"
    +    }');
    +    $payload = base64_encode('{
    +        "iat": '. time() .'
    +    }');
    +    $signature = hash_hmac('sha512', $header .'.'. $payload , $secret);
    +    return $header .'.'. $payload .'.'. $signature;
    +}
    +
    +$secret = 'mysecret';
    +$token = generateToken($secret);
    +echo $token;
    +
    +

    ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==.ewogICAgICAgICJpYXQiOiAxNDY4NjY3MDQ3CiAgICB9.1d2c54fa947daf594fdbf7591796195652c8bc63bffad7f6a6db2a41c313f495a542cbfb595acade79e83f3810d709b4251d7b940bbc10b531a6e6134af63a68

    +
    +
    $options = [[](.html)
    +    'http' => [[](.html)
    +        'method' => 'GET',
    +        'jwt' => $token,
    +    ],
    +];
    +$context = stream_context_create($options);
    +file_get_contents($apiEndpoint, false, $context);
    + + diff --git a/doc/REST-API.md b/doc/REST-API.md new file mode 100644 index 0000000..d790997 --- /dev/null +++ b/doc/REST-API.md @@ -0,0 +1,105 @@ +#REST API +## Usage + +See the [REST API documentation](http://shaarli.github.io/api-documentation/).[](.html) + +## Authentication + +All requests to Shaarli's API must include a JWT token to verify their authenticity. + +This token has to be included as an HTTP header called `Authentication: Bearer `. + +JWT resources : + + * [jwt.io](https://jwt.io) (including a list of client per language).[](.html) + * RFC : https://tools.ietf.org/html/rfc7519 + * https://float-middle.com/json-web-tokens-jwt-vs-sessions/ + * HackerNews thread: https://news.ycombinator.com/item?id=11929267 + + +### Shaarli JWT Token + +JWT tokens are composed by three parts, separated by a dot `.` and encoded in base64: + +``` +[header].[payload].[signature][](.html) +``` + +#### Header + +Shaarli only allow one hash algorithm, so the header will always be the same: + +```json +{ + "typ": "JWT", + "alg": "HS512" +} +``` + +Encoded in base64, it gives: + +``` +ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ== +``` + +#### Payload + +**Validity duration** + +To avoid infinite token validity, JWT tokens must include their creation date in UNIX timestamp format (timezone independant - UTC) under the key `iat` (issued at). This token will be accepted during 9 minutes. + +```json +{ + "iat": 1468663519 +} +``` + +See [RFC reference](https://tools.ietf.org/html/rfc7519#section-4.1.6).[](.html) + + +#### Signature + +The signature authenticate the token validity. It contains the base64 of the header and the body, separated by a dot `.`, hashed in SHA512 with the API secret available in Shaarli administration page. + +Signature example with PHP: + +```php +$content = base64_encode($header) . '.' . base64_encode($payload); +$signature = hash_hmac('sha512', $content, $secret); +``` + + +### Complete example + +#### PHP + +```php +function generateToken($secret) { + $header = base64_encode('{ + "typ": "JWT", + "alg": "HS512" + }'); + $payload = base64_encode('{ + "iat": '. time() .' + }'); + $signature = hash_hmac('sha512', $header .'.'. $payload , $secret); + return $header .'.'. $payload .'.'. $signature; +} + +$secret = 'mysecret'; +$token = generateToken($secret); +echo $token; +``` + +> `ewogICAgICAgICJ0eXAiOiAiSldUIiwKICAgICAgICAiYWxnIjogIkhTNTEyIgogICAgfQ==.ewogICAgICAgICJpYXQiOiAxNDY4NjY3MDQ3CiAgICB9.1d2c54fa947daf594fdbf7591796195652c8bc63bffad7f6a6db2a41c313f495a542cbfb595acade79e83f3810d709b4251d7b940bbc10b531a6e6134af63a68` + +```php +$options = [[](.html) + 'http' => [[](.html) + 'method' => 'GET', + 'jwt' => $token, + ], +]; +$context = stream_context_create($options); +file_get_contents($apiEndpoint, false, $context); +``` diff --git a/doc/RSS-feeds.html b/doc/RSS-feeds.html index 0f332b3..0ebfecc 100644 --- a/doc/RSS-feeds.html +++ b/doc/RSS-feeds.html @@ -32,6 +32,7 @@
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To
  • How To
  • Publish the GitHub release

    +

    Update release badges

    +

    Update README.md so version badges display and point to the newly released Shaarli version(s).

    Create a GitHub release from a Git tag

    From the previously drafted release:

      diff --git a/doc/Release-Shaarli.md b/doc/Release-Shaarli.md index 556a96e..ced5885 100644 --- a/doc/Release-Shaarli.md +++ b/doc/Release-Shaarli.md @@ -103,6 +103,9 @@ gpg: Good signature from "VirtualTam " [ultimate][](.htm ``` ## Publish the GitHub release +### Update release badges +Update `README.md` so version badges display and point to the newly released Shaarli version(s). + ### Create a GitHub release from a Git tag From the previously drafted release: - edit the release notes (if needed) diff --git a/doc/Security.html b/doc/Security.html index cec2059..12b46fa 100644 --- a/doc/Security.html +++ b/doc/Security.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
  • How To
      @@ -87,6 +88,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • @@ -196,6 +198,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf

      .htaccess

      Shaarli use .htaccess Apache files to deny access to files that shouldn't be directly accessed (datastore, config, etc.). You need the directive AllowOverride All in your virtual host configuration for them to work.

      Warning: If you use Apache 2.2 or lower, you need mod_version to be installed and enabled.

      +

      Apache module mod_rewrite must be enabled to use the REST API. URL rewriting rules for the Slim microframework are stated in the root .htaccess file.

      LightHttpd

      Nginx

      Foreword

      @@ -296,11 +299,14 @@ http { error_log /var/log/nginx/error.log; location /shaarli/ { + try_files $uri /shaarli/index.php$is_args$args; access_log /var/log/nginx/shaarli.access.log; error_log /var/log/nginx/shaarli.error.log; } location ~ (index)\.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; include fastcgi.conf; @@ -335,6 +341,10 @@ location ~ ~$ { }
      # /etc/nginx/php.conf
       location ~ (index)\.php$ {
      +    # Slim - split URL path into (script_filename, path_info)
      +    try_files $uri =404;
      +    fastcgi_split_path_info ^(.+\.php)(/.+)$;
      +
           # filter and proxy PHP requests to PHP-FPM
           fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
           fastcgi_index  index.php;
      @@ -367,6 +377,9 @@ http {
               server_name  my.first.domain.org;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /shaarli/index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      @@ -425,6 +438,9 @@ http {
               ssl_certificate_key  /home/john/ssl/localhost.key;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      diff --git a/doc/Server-configuration.md b/doc/Server-configuration.md
      index df10feb..81cc1a7 100644
      --- a/doc/Server-configuration.md
      +++ b/doc/Server-configuration.md
      @@ -107,6 +107,8 @@ See [Server-side TLS](https://wiki.mozilla.org/Security/Server_Side_TLS#Apache)
       Shaarli use `.htaccess` Apache files to deny access to files that shouldn't be directly accessed (datastore, config, etc.). You need the directive `AllowOverride All` in your virtual host configuration for them to work.
       
       **Warning**: If you use Apache 2.2 or lower, you need [mod_version](https://httpd.apache.org/docs/current/mod/mod_version.html) to be installed and enabled.[](.html)
      + 
      +Apache module `mod_rewrite` **must** be enabled to use the REST API. URL rewriting rules for the Slim microframework are stated in the root `.htaccess` file.
       
       ## LightHttpd
       
      @@ -218,11 +220,14 @@ http {
               error_log   /var/log/nginx/error.log;
       
               location /shaarli/ {
      +            try_files $uri /shaarli/index.php$is_args$args;
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
       
               location ~ (index)\.php$ {
      +            try_files $uri =404;
      +            fastcgi_split_path_info ^(.+\.php)(/.+)$;
                   fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
                   fastcgi_index  index.php;
                   include        fastcgi.conf;
      @@ -261,6 +266,10 @@ location ~ ~$ {
       ```nginx
       # /etc/nginx/php.conf
       location ~ (index)\.php$ {
      +    # Slim - split URL path into (script_filename, path_info)
      +    try_files $uri =404;
      +    fastcgi_split_path_info ^(.+\.php)(/.+)$;
      +
           # filter and proxy PHP requests to PHP-FPM
           fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
           fastcgi_index  index.php;
      @@ -299,6 +308,9 @@ http {
               server_name  my.first.domain.org;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /shaarli/index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      @@ -361,6 +373,9 @@ http {
               ssl_certificate_key  /home/john/ssl/localhost.key;
       
               location /shaarli/ {
      +            # Slim - rewrite URLs
      +            try_files $uri /index.php$is_args$args;
      +
                   access_log  /var/log/nginx/shaarli.access.log;
                   error_log   /var/log/nginx/shaarli.error.log;
               }
      diff --git a/doc/Server-requirements.html b/doc/Server-requirements.html
      index 2c2545b..79d7411 100644
      --- a/doc/Server-requirements.html
      +++ b/doc/Server-requirements.html
      @@ -32,6 +32,7 @@
       
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
      @@ -50,6 +51,7 @@
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • @@ -83,26 +85,31 @@ +7.1 +Supported (v0.9.x) +✅ + + 7.0 Supported ✅ - + 5.6 Supported ✅ - + 5.5 EOL: 2016-07-10 ✅ - + 5.4 EOL: 2015-09-14 ✅ (up to Shaarli 0.8.x) - + 5.3 EOL: 2014-08-14 ✅ (up to Shaarli 0.8.x) @@ -130,6 +137,16 @@ download and install third-party PHP dependencies.

      All Import bookmarks from Netscape files + +erusev/parsedown +All +Parse MarkDown syntax for the MarkDown plugin + + +slim/slim +All +Handle routes and middleware for the REST API +

      Extensions

      diff --git a/doc/Server-requirements.md b/doc/Server-requirements.md index 4962193..07e70ab 100644 --- a/doc/Server-requirements.md +++ b/doc/Server-requirements.md @@ -10,6 +10,7 @@ ### Supported versions Version | Status | Shaarli compatibility :---:|:---:|:---: +7.1 | Supported (v0.9.x) | :white_check_mark: 7.0 | Supported | :white_check_mark: 5.6 | Supported | :white_check_mark: 5.5 | EOL: 2016-07-10 | :white_check_mark: @@ -26,6 +27,8 @@ download and install third-party PHP dependencies. Library | Required? | Usage ---|:---:|--- [`shaarli/netscape-bookmark-parser`](https://packagist.org/packages/shaarli/netscape-bookmark-parser) | All | Import bookmarks from Netscape files[](.html) +[`erusev/parsedown`](https://packagist.org/packages/erusev/parsedown) | All | Parse MarkDown syntax for the MarkDown plugin[](.html) +[`slim/slim`](https://packagist.org/packages/slim/slim) | All | Handle routes and middleware for the REST API[](.html) ### Extensions Extension | Required? | Usage diff --git a/doc/Server-security.html b/doc/Server-security.html index 3551def..4f7ff46 100644 --- a/doc/Server-security.html +++ b/doc/Server-security.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
  • How To
      @@ -87,6 +88,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • @@ -169,6 +171,7 @@ It might be useful if your IP adress often changes.

      Resources

      data_dir: Data directory.
      datastore: Shaarli's links database file path.
      +history: Shaarli's operation history file path.
      updates: File path for the ran updates file.
      log: Log file path.
      update_check: Last update check file path.
      diff --git a/doc/Shaarli-configuration.md b/doc/Shaarli-configuration.md index 4a783c0..25647cb 100644 --- a/doc/Shaarli-configuration.md +++ b/doc/Shaarli-configuration.md @@ -70,6 +70,7 @@ It might be useful if your IP adress often changes. **data_dir**: Data directory. **datastore**: Shaarli's links database file path. +**history**: Shaarli's operation history file path. **updates**: File path for the ran updates file. **log**: Log file path. **update_check**: Last update check file path. diff --git a/doc/Sharing-button.html b/doc/Sharing-button.html index 93710ef..f3682f8 100644 --- a/doc/Sharing-button.html +++ b/doc/Sharing-button.html @@ -32,6 +32,7 @@

    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
  • How To
  • How To
  • Theming

    -

    User CSS

    +

    Foreword

    +

    There are two ways of customizing how Shaarli looks:

    +
      +
    1. by using a custom CSS to override Shaarli's CSS
    2. +
    3. by using a full theme that provides its own RainTPL templates, CSS and Javascript resources
    4. +
    +

    Custom CSS

    +

    Shaarli's appearance can be modified by adding CSS rules to:

      -
    • Shaarli's apparence can be modified by editing CSS rules in inc/user.css. This file allows to override rules defined in the main inc/shaarli.css (only add changed rules), or define a whole new theme.
    • -
    • Do not edit inc/shaarli.css! Your changes would be overriden when updating Shaarli.
    • -
    • Some themes are available at https://github.com/shaarli/shaarli-themes.
    • +
    • Shaarli < v0.9.0: inc/user.css
    • +
    • Shaarli >= v0.9.0: data/user.css
    -

    See also:

    - -

    RainTPL template

    +

    This file allows overriding rules defined in the template CSS files (only add changed rules), or define a whole new theme.

    +

    Note: Do not edit tpl/default/css/shaarli.css! Your changes would be overridden when updating Shaarli.

    +

    See also Download CSS styles from an OPML list

    +

    Themes

    WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental.

    +

    Installation:

      -
    • Find the template you'd like to install (see the list of available templates|Theming#community-themes--templates)
    • -
    • Find it's git clone URL or download the zip archive for the template.
    • -
    • In your Shaarli tpl/ directory, run git clone https://url/of/my-template/ or unpack the zip archive. +
    • find a theme you'd like to install
    • +
    • copy or clone the theme folder under tpl/<a_sweet_theme>
    • +
    • enable the theme:
        -
      • There should now be a my-template/ directory under the tpl/ dir, containing directly all the template files.
      • +
      • Shaarli < v0.9.0: edit data/config.json.php and set the value of raintpl_tpl to the new theme name:
        +"raintpl_tpl": "tpl\/my-template\/"
      • +
      • Shaarli >= v0.9.0: select the theme through the Tools page
    • -
    • Edit data/config.json.php to have Shaarli use this template, in "resource" e.g.

      -
      "raintpl_tpl": "tpl\/my-template\/",
    -

    Community themes & templates

    +

    Community CSS & themes

    +

    Custom CSS

    + +

    Themes

    +

    Shaarli forks

    + -

    Example installation: AlbinoMouse template

    +

    Example installation: AlbinoMouse theme

    With the following configuration:

    • Apache 2 / PHP 5.6
    • diff --git a/doc/Theming.md b/doc/Theming.md index a21899c..23877e5 100644 --- a/doc/Theming.md +++ b/doc/Theming.md @@ -1,39 +1,51 @@ #Theming -## User CSS +## Foreword +There are two ways of customizing how Shaarli looks: -- Shaarli's apparence can be modified by editing CSS rules in `inc/user.css`. This file allows to override rules defined in the main `inc/shaarli.css` (only add changed rules), or define a whole new theme. -- Do not edit `inc/shaarli.css`! Your changes would be overriden when updating Shaarli. -- Some themes are available at https://github.com/shaarli/shaarli-themes. +1. by using a custom CSS to override Shaarli's CSS +2. by using a full theme that provides its own RainTPL templates, CSS and Javascript resources -See also: -- [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) +## Custom CSS +Shaarli's appearance can be modified by adding CSS rules to: +- Shaarli < `v0.9.0`: `inc/user.css` +- Shaarli >= `v0.9.0`: `data/user.css` -## RainTPL template +This file allows overriding rules defined in the template CSS files (only add changed rules), or define a whole new theme. +**Note**: Do not edit `tpl/default/css/shaarli.css`! Your changes would be overridden when updating Shaarli. + +See also [Download CSS styles from an OPML list](Download-CSS-styles-from-an-OPML-list.html) + +## Themes _WARNING - This feature is currently being worked on and will be improved in the next releases. Experimental._ -- Find the template you'd like to install (see the list of [available templates|Theming#community-themes--templates](available-templates|Theming#community-themes--templates.html)) -- Find it's git clone URL or download the zip archive for the template. -- In your Shaarli `tpl/` directory, run `git clone https://url/of/my-template/` or unpack the zip archive. - - There should now be a `my-template/` directory under the `tpl/` dir, containing directly all the template files. -- Edit `data/config.json.php` to have Shaarli use this template, in `"resource"` e.g. -```json -"raintpl_tpl": "tpl\/my-template\/", -``` +Installation: +- find a theme you'd like to install +- copy or clone the theme folder under `tpl/` +- enable the theme: + - Shaarli < `v0.9.0`: edit `data/config.json.php` and set the value of `raintpl_tpl` to the new theme name: + `"raintpl_tpl": "tpl\/my-template\/"` + - Shaarli >= `v0.9.0`: select the theme through the _Tools_ page -## Community themes & templates +## Community CSS & themes +### Custom CSS +- [mrjovanovic/serious-theme-shaarli](https://github.com/mrjovanovic/serious-theme-shaarli) - A serious theme for Shaarli[](.html) +- [shaarli/shaarli-themes](https://github.com/shaarli/shaarli-themes)[](.html) + +### Themes - [AkibaTech/Shaarli Superhero Theme](https://github.com/AkibaTech/Shaarli---SuperHero-Theme) - A template/theme for Shaarli[](.html) - [alexisju/albinomouse-template](https://github.com/alexisju/albinomouse-template) - A full template for Shaarli[](.html) -- [ArthurHoaro/shaarli-launch](https://github.com/ArthurHoaro/shaarli-launch) - Customizable Shaarli theme.[](.html) +- [ArthurHoaro/shaarli-launch](https://github.com/ArthurHoaro/shaarli-launch) - Customizable Shaarli theme[](.html) - [dhoko/ShaarliTemplate](https://github.com/dhoko/ShaarliTemplate) - A template/theme for Shaarli[](.html) - [kalvn/shaarli-blocks](https://github.com/kalvn/shaarli-blocks) - A template/theme for Shaarli[](.html) -- [kalvn/Shaarli-Material](https://github.com/kalvn/Shaarli-Material) - A theme (template) based on Google's Material Design for Shaarli, the superfast delicious clone.[](.html) -- [ManufacturaInd/shaarli-2004licious-theme](https://github.com/ManufacturaInd/shaarli-2004licious-theme) - A template/theme as a humble homage to the early looks of the del.icio.us site.[](.html) +- [kalvn/Shaarli-Material](https://github.com/kalvn/Shaarli-Material) - A theme (template) based on Google's Material Design for Shaarli, the superfast delicious clone[](.html) +- [ManufacturaInd/shaarli-2004licious-theme](https://github.com/ManufacturaInd/shaarli-2004licious-theme) - A template/theme as a humble homage to the early looks of the del.icio.us site[](.html) + +### Shaarli forks - [misterair/Limonade](https://github.com/misterair/limonade) - A fork of (legacy) Shaarli with a new template[](.html) -- [mrjovanovic/serious-theme-shaarli](https://github.com/mrjovanovic/serious-theme-shaarli) - A serious theme for SHaarli.[](.html) - [vivienhaese/shaarlitheme](https://github.com/vivienhaese/shaarlitheme) - A Shaarli fork meant to be run in an openshift instance[](.html) -### Example installation: AlbinoMouse template +## Example installation: AlbinoMouse theme With the following configuration: - Apache 2 / PHP 5.6 - user sites are enabled, e.g. `/home/user/public_html/somedir` is served as `http://localhost/~user/somedir` diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html index ed1c6f0..f43e6ed 100644 --- a/doc/Troubleshooting.html +++ b/doc/Troubleshooting.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To
      @@ -87,6 +88,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • 3rd party libraries
    • Plugin System
    • Release Shaarli
    • +
    • Versioning and Branches
    • Security
    • Static analysis
    • Theming
    • @@ -172,7 +174,7 @@ Search for failed in this file to look for unauthorized login attem
    • If you have the error Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:
    //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
    -// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
    +// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
     //if (strpos($status,'200 OK')) $title=html_extract_title($data);
    • On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work.
    • diff --git a/doc/Unit-tests.html b/doc/Unit-tests.html index 266fd33..0961146 100644 --- a/doc/Unit-tests.html +++ b/doc/Unit-tests.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
    • Browsing and Searching
    • Firefox share
    • RSS feeds
    • +
    • REST API
  • How To +

    Executing specific tests

    +

    Add a @group annotation in a test class or method comment:

    +
    /**
    + * Netscape bookmark import
    + * @group WIP
    + */
    +class BookmarkImportTest extends PHPUnit_Framework_TestCase
    +{
    +   [...][](.html)
    +}
    +

    To run all tests annotated with @group WIP:

    +
    $ vendor/bin/phpunit --group WIP tests/
    diff --git a/doc/Unit-tests.md b/doc/Unit-tests.md index f288878..0942ad3 100644 --- a/doc/Unit-tests.md +++ b/doc/Unit-tests.md @@ -126,3 +126,22 @@ If Xdebug has been installed and activated, two coverage reports will be generat * a summary in the console * a detailed HTML report with metrics for tested code * to open it in a web browser: `firefox coverage/index.html &` + +### Executing specific tests +Add a [`@group`](https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.annotations.group) annotation in a test class or method comment:[](.html) + +```php +/** + * Netscape bookmark import + * @group WIP + */ +class BookmarkImportTest extends PHPUnit_Framework_TestCase +{ + [...][](.html) +} +``` + +To run all tests annotated with `@group WIP`: +```bash +$ vendor/bin/phpunit --group WIP tests/ +``` diff --git a/doc/Upgrade-and-migration.html b/doc/Upgrade-and-migration.html index a5b041d..667215a 100644 --- a/doc/Upgrade-and-migration.html +++ b/doc/Upgrade-and-migration.html @@ -69,6 +69,7 @@ code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Inf
  • Browsing and Searching
  • Firefox share
  • RSS feeds
  • +
  • REST API
  • How To