Merge branch '0.98'
This commit is contained in:
commit
6ff4370a20
@ -556,11 +556,11 @@ $enableWebsiteThumbnails = false;
|
||||
* User ID from websitethumbnail.de
|
||||
*
|
||||
* You need to register on
|
||||
* http://www.artviper.net/registerAPI.php
|
||||
* http://www.artviper.net/registerapi.php
|
||||
* in order to use thumbnails on your domain
|
||||
*
|
||||
* @var string
|
||||
* @link http://www.artviper.net/registerAPI.php
|
||||
* @link http://www.artviper.net/registerapi.php
|
||||
*/
|
||||
$thumbnailsUserId = null;
|
||||
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Scuttle\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-11-01 17:15+0100\n"
|
||||
"POT-Creation-Date: 2012-01-20 13:58+0100\n"
|
||||
"PO-Revision-Date: 2008-04-24 19:07+0100\n"
|
||||
"Last-Translator: BenjaminHKB <benjamin.huynh-kim-bang@loria.fr>\n"
|
||||
"Language-Team: fr-FR <toony.sf@chezouam.net>\n"
|
||||
@ -700,9 +700,10 @@ msgid "Instructions"
|
||||
msgstr "Instructions"
|
||||
|
||||
#: data/templates/default/importDelicious.tpl.php:33
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Log in to the <a href=\"http://del.icio.us/api/posts/all\">export page at "
|
||||
"del.icio.us</a>"
|
||||
"Log in to the <a href=\"https://api.del.icio.us/v1/posts/all\">export page "
|
||||
"at del.icio.us</a>"
|
||||
msgstr ""
|
||||
"Se connecter à la <a href=\"http://del.icio.us/api/posts/all\">page d'export "
|
||||
"de del.icio.us</a>"
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2011-11-01 17:15+0100\n"
|
||||
"POT-Creation-Date: 2012-01-20 13:58+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -660,8 +660,8 @@ msgstr ""
|
||||
|
||||
#: data/templates/default/importDelicious.tpl.php:33
|
||||
msgid ""
|
||||
"Log in to the <a href=\"http://del.icio.us/api/posts/all\">export page at "
|
||||
"del.icio.us</a>"
|
||||
"Log in to the <a href=\"https://api.del.icio.us/v1/posts/all\">export page "
|
||||
"at del.icio.us</a>"
|
||||
msgstr ""
|
||||
|
||||
#: data/templates/default/importDelicious.tpl.php:34
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
259
data/tables-postgresql.sql
Normal file
259
data/tables-postgresql.sql
Normal file
@ -0,0 +1,259 @@
|
||||
-- Semantic Scuttle - Tables creation SQL script
|
||||
-- ! Dont forget to change table names according to $tableprefix defined in config.php !
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_bookmarks"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE bIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_bookmarks (
|
||||
bId integer DEFAULT nextval('bIds'::text) PRIMARY KEY,
|
||||
uId integer NOT NULL,
|
||||
bIp varchar(40) DEFAULT NULL,
|
||||
bStatus smallint NOT NULL,
|
||||
bDatetime timestamp with time zone DEFAULT now() NOT NULL,
|
||||
bModified timestamp with time zone DEFAULT now() NOT NULL,
|
||||
bTitle varchar(255) DEFAULT '' NOT NULL,
|
||||
bAddress varchar(1500) DEFAULT '' NOT NULL,
|
||||
bDescription text,
|
||||
bPrivateNote text,
|
||||
bHash varchar(32) DEFAULT '' NOT NULL,
|
||||
bVotes integer NOT NULL,
|
||||
bVoting integer NOT NULL,
|
||||
bShort varchar(16) DEFAULT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX sc_bookmarks_usd ON sc_bookmarks (uId, bStatus, bDatetime);
|
||||
CREATE INDEX sc_bookmarks_hui ON sc_bookmarks (bHash, uId, bId);
|
||||
CREATE INDEX sc_bookmarks_du ON sc_bookmarks (bDatetime, uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_bookmarks2tags"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE b2tIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_bookmarks2tags (
|
||||
id integer DEFAULT nextval('b2tIds'::text) PRIMARY KEY,
|
||||
bId integer NOT NULL,
|
||||
tag varchar(100) DEFAULT '' NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_bookmarks2tags_tag_bId on sc_bookmarks2tags (tag, bId);
|
||||
CREATE INDEX sc_bookmarks2tags_bId on sc_bookmarks2tags (bId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_commondescription"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE cdIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_commondescription (
|
||||
cdId integer DEFAULT nextval('cdIds'::text) PRIMARY KEY,
|
||||
uId integer NOT NULL,
|
||||
tag varchar(100) DEFAULT '' NOT NULL,
|
||||
bHash varchar(32) DEFAULT '' NOT NULL,
|
||||
cdTitle varchar(255) DEFAULT '' NOT NULL,
|
||||
cdDescription text,
|
||||
cdDatetime timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_commondescription_tag_timestamp on sc_commondescription (tag, cdDatetime);
|
||||
CREATE UNIQUE INDEX sc_commondescription_bookmark_timestamp on sc_commondescription (bHash, cdDatetime);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_searchhistory"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE shIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_searchhistory (
|
||||
shId integer DEFAULT nextval('shIds'::text) PRIMARY KEY,
|
||||
shTerms varchar(255) NOT NULL DEFAULT '',
|
||||
shRange varchar(32) NOT NULL DEFAULT '',
|
||||
shDatetime timestamp with time zone DEFAULT now() NOT NULL,
|
||||
shNbResults integer NOT NULL,
|
||||
uId integer NOT NULL
|
||||
);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_tags"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE tIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_tags (
|
||||
tId integer DEFAULT nextval('tIds'::text) PRIMARY KEY,
|
||||
tag varchar(100) NOT NULL DEFAULT '',
|
||||
uId integer NOT NULL,
|
||||
tDescription text
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_tags_tag_uId on sc_tags (tag, uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_tags2tags"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE ttIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_tags2tags (
|
||||
ttId integer DEFAULT nextval('ttIds'::text) PRIMARY KEY,
|
||||
tag1 varchar(100) NOT NULL DEFAULT '',
|
||||
tag2 varchar(100) NOT NULL DEFAULT '',
|
||||
relationType varchar(32) NOT NULL DEFAULT '',
|
||||
uId integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_tags2tags_tag1_tag2_uId on sc_tags2tags (tag1, tag2, relationType, uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_tagscache"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE tcIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_tagscache (
|
||||
tcId integer DEFAULT nextval('tcIds'::text) PRIMARY KEY,
|
||||
tag1 varchar(100) NOT NULL DEFAULT '',
|
||||
tag2 varchar(100) NOT NULL DEFAULT '',
|
||||
relationType varchar(32) NOT NULL DEFAULT '',
|
||||
uId integer NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_tagscache_tag1_tag2_type_uId on sc_tagscache (tag1, tag2, relationType, uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_tagsstats"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE tstIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_tagsstats (
|
||||
tstId integer DEFAULT nextval('tstIds'::text) PRIMARY KEY,
|
||||
tag1 varchar(100) NOT NULL DEFAULT '',
|
||||
relationType varchar(32) NOT NULL DEFAULT '',
|
||||
uId integer NOT NULL,
|
||||
nb integer NOT NULL,
|
||||
depth integer NOT NULL,
|
||||
nbupdate integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX sc_tagsstats_tag1_type_uId on sc_tagsstats (tag1, relationType, uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_users"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE uIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_users (
|
||||
uId integer DEFAULT nextval('uIds'::text) PRIMARY KEY,
|
||||
username varchar(25) NOT NULL DEFAULT '',
|
||||
password varchar(40) NOT NULL DEFAULT '',
|
||||
uDatetime timestamp with time zone DEFAULT now() NOT NULL,
|
||||
uModified timestamp with time zone DEFAULT now() NOT NULL,
|
||||
name varchar(50) DEFAULT NULL,
|
||||
email varchar(50) NOT NULL DEFAULT '',
|
||||
homepage varchar(255) DEFAULT NULL,
|
||||
uContent text,
|
||||
privateKey varchar(33) DEFAULT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX privateKey on sc_users (privateKey);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_users_sslclientcerts"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE ids
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_users_sslclientcerts (
|
||||
id integer DEFAULT nextval('ids'::text) PRIMARY KEY,
|
||||
uId integer NOT NULL,
|
||||
sslSerial varchar(32) DEFAULT '' NOT NULL,
|
||||
sslClientIssuerDn varchar(1024) DEFAULT '' NOT NULL,
|
||||
sslName varchar(64) DEFAULT '' NOT NULL,
|
||||
sslEmail varchar(64) DEFAULT '' NOT NULL
|
||||
);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_version"
|
||||
--
|
||||
|
||||
CREATE TABLE sc_version (
|
||||
schema_version integer NOT NULL
|
||||
);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_votes"
|
||||
--
|
||||
|
||||
CREATE TABLE sc_votes (
|
||||
bId integer NOT NULL,
|
||||
uId integer NOT NULL,
|
||||
vote integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX bid_2 on sc_votes (bId, uId);
|
||||
CREATE INDEX bid on sc_votes (bId);
|
||||
CREATE INDEX uid on sc_votes (uId);
|
||||
|
||||
--
|
||||
-- Table structure for table "sc_watched"
|
||||
--
|
||||
|
||||
CREATE SEQUENCE wIds
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
CREATE TABLE sc_watched (
|
||||
wId integer DEFAULT nextval('wIds'::text) PRIMARY KEY,
|
||||
uId integer NOT NULL,
|
||||
watched integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX sc_watched_uId on sc_watched (uId);
|
@ -45,7 +45,7 @@ if (browser == "Opera") {
|
||||
+ '<?php
|
||||
$popupLink = 'javascript:'
|
||||
. "location.href='"
|
||||
. createURL('bookmarks', $GLOBALS['user'])
|
||||
. addProtocolToUrl(createURL('bookmarks', $GLOBALS['user']))
|
||||
. '?action=add'
|
||||
. "&address='+encodeURIComponent(document.location.href)+'"
|
||||
. "&title='+encodeURIComponent(document.title)+'"
|
||||
@ -71,7 +71,7 @@ echo jsEscTitle(htmlspecialchars($link));
|
||||
+ '<?php
|
||||
$popupLink = 'javascript:'
|
||||
. 'open('
|
||||
. "'" . createURL('bookmarks', $GLOBALS['user'])
|
||||
. "'" . addProtocolToUrl(createURL('bookmarks', $GLOBALS['user']))
|
||||
. '?action=add'
|
||||
. '&popup=1'
|
||||
. "&address='+encodeURIComponent(document.location.href)+'"
|
||||
@ -97,7 +97,7 @@ echo jsEscTitle(htmlspecialchars($link));
|
||||
} else {
|
||||
$('#bookmarklet').append(
|
||||
'<ul>'
|
||||
+ '<li><a class="bookmarklet" href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0;"><?php echo jsEscTitle(sprintf(T_('Post to %s'), $GLOBALS['sitename'])); ?><\/a><\/li>'
|
||||
+ '<li><a class="bookmarklet" href="javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent('+selection+');location.href=\'<?php echo addProtocolToUrl(createURL('bookmarks', $GLOBALS['user'])); ?>?action=add&address=\'+a+\'&title=\'+t+\'&description=\'+d;void 0;"><?php echo jsEscTitle(sprintf(T_('Post to %s'), $GLOBALS['sitename'])); ?><\/a><\/li>'
|
||||
+ '<li>'
|
||||
+ '<a class="bookmarklet" href="'
|
||||
+ 'javascript:x=document;'
|
||||
@ -105,7 +105,7 @@ echo jsEscTitle(htmlspecialchars($link));
|
||||
+ 't=encodeURIComponent(x.title);'
|
||||
+ 'd=encodeURIComponent('+selection+');'
|
||||
+ 'open('
|
||||
+ '\'<?php echo createURL('bookmarks', $GLOBALS['user']); ?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?php echo htmlspecialchars(jsEscTitleDouble($GLOBALS['sitename'])); ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2'
|
||||
+ '\'<?php echo addProtocolToUrl(createURL('bookmarks', $GLOBALS['user'])); ?>?action=add&popup=1&address=\'+a+\'&title=\'+t+\'&description=\'+d,\'<?php echo htmlspecialchars(jsEscTitleDouble($GLOBALS['sitename'])); ?>\',\'modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left=\'+(screen.width-790)/2+\',top=\'+(screen.height-425)/2'
|
||||
+ ');void 0;">'
|
||||
+ '<?php echo jsEscTitle(sprintf(T_('Post to %s (Pop-up)'), $GLOBALS['sitename'])); ?>'
|
||||
+ '</a>'
|
||||
|
@ -13,6 +13,6 @@ $thumbnailHash = md5(
|
||||
$address . $GLOBALS['thumbnailsUserId'] . $GLOBALS['thumbnailsKey']
|
||||
);
|
||||
//echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
|
||||
echo '<img class="thumbnail" onclick="window.location.href=\''.$address.'\'" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
|
||||
echo '<img class="thumbnail" onclick="window.location.href=\''.htmlspecialchars($address).'\'" src="http://www.artviper.net/screenshots/screener.php?url='.htmlspecialchars($address).'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
|
||||
|
||||
?>
|
@ -30,7 +30,7 @@ $this->includeTemplate($GLOBALS['top_include']);
|
||||
|
||||
<h3><?php echo T_('Instructions'); ?></h3>
|
||||
<ol>
|
||||
<li><?php echo T_('Log in to the <a href="http://del.icio.us/api/posts/all">export page at del.icio.us</a>'); ?>.</li>
|
||||
<li><?php echo T_('Log in to the <a href="https://api.del.icio.us/v1/posts/all">export page at del.icio.us</a>'); ?>.</li>
|
||||
<li><?php echo T_('Save the resulting <abbr title="Extensible Markup Language">XML</abbr> file to your computer'); ?>.</li>
|
||||
<li><?php echo T_('Click <kbd>Browse...</kbd> to find this file on your computer. The maximum size the file can be is 1MB'); ?>.</li>
|
||||
<li><?php echo T_('Select the default privacy setting for your imported bookmarks'); ?>.</li>
|
||||
|
@ -1,10 +1,13 @@
|
||||
<?php
|
||||
echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
|
||||
?>
|
||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
>
|
||||
<channel>
|
||||
<title><?php echo $feedtitle; ?></title>
|
||||
<link><?php echo htmlspecialchars($feedlink); ?></link>
|
||||
<link><?php echo htmlspecialchars($pagelink); ?></link>
|
||||
<atom:link rel="self" type="application/rss+xml" href="<?php echo htmlspecialchars($feedlink); ?>"/>
|
||||
<description><?php echo htmlspecialchars($feeddescription); ?></description>
|
||||
<pubDate><?php echo date('r'); ?></pubDate>
|
||||
<lastBuildDate><?php echo $feedlastupdate ?></lastBuildDate>
|
||||
@ -14,6 +17,7 @@ echo '<' . '?xml version="1.0" encoding="utf-8" ?' . ">\n";
|
||||
<item>
|
||||
<title><?php echo htmlspecialchars($bookmark['title']); ?></title>
|
||||
<link><?php echo htmlspecialchars($bookmark['link']); ?></link>
|
||||
<guid><?php echo $bookmark['guid']; ?></guid>
|
||||
<description><?php echo htmlspecialchars($bookmark['description']); ?></description>
|
||||
<dc:creator><?php echo htmlspecialchars($bookmark['creator']); ?></dc:creator>
|
||||
<pubDate><?php echo $bookmark['pubdate']; ?></pubDate>
|
||||
|
@ -5,14 +5,23 @@ ChangeLog for SemantiScuttle
|
||||
|
||||
0.98.4 - 2011-XX-XX
|
||||
-------------------
|
||||
- Fix bug: URLs were escaped too often in bookmark list
|
||||
- Fix bug #3439729: URLs were escaped too often in bookmark list
|
||||
- Fix bug: Subtitle was not escaped
|
||||
- Fix bug #3388219: Incorrect URL when cancelling tag2tag-actions
|
||||
- Fix bug #3393951: Logo images missing on bookmark page
|
||||
- Fix bug #3399815: PHP error in opensearch API in 0.98.3
|
||||
- Fix bug #3407728: Can't delete users from admin page
|
||||
- Fix bug #3431742: open_basedir problems with /etc/ config files
|
||||
- Fix bug #3436624: Wrong URL for Delicious API when importing
|
||||
- Fix bug #3463481: RSS feed show warnings in feedvalidator.org
|
||||
- Fix bug #3384416: Use URL with protocol in bookmarklet
|
||||
- Fix bug: Invalid HTML when website thumbnails are activated
|
||||
- Fix bug #3413459: Thumbnails not in one line
|
||||
- Fix bug #3468293: Delicious import does not preserve private links
|
||||
- Fix bug #3396727: Title of http://lesscss.org/ not loaded
|
||||
- Implement request #3403609: fr_CA translation update
|
||||
- Implement patch #3476011: PostgreSQL tables can not be initialized
|
||||
(Frédéric Fauberteau [triaxx])
|
||||
|
||||
|
||||
0.98.3 - 2011-08-09
|
||||
|
@ -25,6 +25,8 @@ then this instructions are for you.
|
||||
|
||||
on the shell ("semanticscuttle" being the database name)
|
||||
|
||||
If you run PostgreSQL, use ``data/tables.postgresql.sql``.
|
||||
|
||||
3. Copy ``data/config.php.dist`` to ``data/config.php`` and modify it as
|
||||
necessary. See configuration_ for more information.
|
||||
4. Make the cache directory writable by your web server.
|
||||
|
@ -118,6 +118,31 @@ function createURL($page = '', $ending = '') {
|
||||
return ROOT . $page;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the protocol to the URL if it's missing.
|
||||
* If the current URL is served via HTTPS, https will be used as protocol.
|
||||
*
|
||||
* Useful to fix ROOT urls of SemanticScuttle when it's needed, e.g.
|
||||
* in the bookmarklet or the feed.
|
||||
*
|
||||
* @param string $url Url with or without the protocol ("//example.org/foo")
|
||||
*
|
||||
* @return string URL with a HTTP protocol
|
||||
*/
|
||||
function addProtocolToUrl($url)
|
||||
{
|
||||
if (substr($url, 0, 2) != '//') {
|
||||
return $url;
|
||||
}
|
||||
|
||||
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) {
|
||||
$protocol = 'https:';
|
||||
} else {
|
||||
$protocol = 'http:';
|
||||
}
|
||||
return $protocol . $url;
|
||||
}
|
||||
/**
|
||||
* Creates a "vote for/against this bookmark" URL.
|
||||
* Also runs htmlspecialchars() on them to prevent XSS.
|
||||
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<posts user="dpuser" update="2012-01-20T21:09:22Z" tag="" total="1">
|
||||
<post href="http://www.example.org/" hash="4f8533885bb5740b98b6415140a0c8c6" description="title" tag="unittest" time="2012-01-20T21:09:11Z" extended="0.........10........20........30........40........50........60........70........80........90........100.......110.......120.......130.......140.......150.......160.......170.......180.......190.......200.......210.......220.......230.......240.......250.......260.......270.......280.......290......." meta="5c80704730a1bf1b9eb615d4ba7a59bd" />
|
||||
</posts>
|
1
tests/data/BookmarkTest_deliciousbookmarks_private.xml
Normal file
1
tests/data/BookmarkTest_deliciousbookmarks_private.xml
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><posts tag="" total="1" user="cweiske"><post description="Christians Tagebuch" extended="" hash="d82ca757a4583a24260a1126b5dafb0d" href="http://cweiske.de/tagebuch/" private="yes" shared="no" tag="private" time="2012-01-20T20:18:56Z"/></posts>
|
@ -50,7 +50,10 @@ function getTitle($url) {
|
||||
$title = @mb_convert_encoding($title, 'UTF-8', $encoding);
|
||||
}
|
||||
|
||||
$title = trim($title);
|
||||
|
||||
if (utf8_strlen($title) > 0) {
|
||||
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
|
||||
return $title;
|
||||
} else {
|
||||
// No title, so return filename
|
||||
|
@ -27,7 +27,9 @@ require_once 'www-header.php';
|
||||
/* Managing all possible inputs */
|
||||
// First input is $_FILES
|
||||
// Other inputs
|
||||
isset($_POST['status']) ? define('POST_STATUS', $_POST['status']): define('POST_STATUS', $GLOBALS['defaults']['privacy']);
|
||||
isset($_POST['status'])
|
||||
? define('POST_STATUS', $_POST['status'])
|
||||
: define('POST_STATUS', $GLOBALS['defaults']['privacy']);
|
||||
|
||||
|
||||
if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['size'] > 0) {
|
||||
@ -54,6 +56,7 @@ if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['si
|
||||
}
|
||||
}
|
||||
xml_parser_free($xml_parser);
|
||||
//FIXME: show errors and warnings
|
||||
header('Location: '. createURL('bookmarks', $userinfo->getUsername()));
|
||||
} else {
|
||||
$templatename = 'importDelicious.tpl';
|
||||
@ -70,6 +73,7 @@ function startElement($parser, $name, $attrs) {
|
||||
$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
|
||||
|
||||
if ($name == 'POST') {
|
||||
$newstatus = $status;
|
||||
while (list($attrTitle, $attrVal) = each($attrs)) {
|
||||
switch ($attrTitle) {
|
||||
case 'HREF':
|
||||
@ -87,6 +91,11 @@ function startElement($parser, $name, $attrs) {
|
||||
case 'TAG':
|
||||
$tags = strtolower($attrVal);
|
||||
break;
|
||||
case 'PRIVATE':
|
||||
if ($attrVal == 'yes') {
|
||||
$newstatus = 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($bookmarkservice->bookmarkExists($bAddress, $userservice->getCurrentUserId())) {
|
||||
@ -100,12 +109,20 @@ function startElement($parser, $name, $attrs) {
|
||||
$bDatetime = gmdate('Y-m-d H:i:s');
|
||||
}
|
||||
|
||||
if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, '', $status, $tags, null, $bDatetime, true, true))
|
||||
$res = $bookmarkservice->addBookmark(
|
||||
$bAddress, $bTitle, $bDescription, '', $newstatus, $tags,
|
||||
null, $bDatetime, true, true
|
||||
);
|
||||
if ($res) {
|
||||
$tplVars['msg'] = T_('Bookmark imported.');
|
||||
else
|
||||
} else {
|
||||
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isset($depth[$parser])) {
|
||||
$depth[$parser] = 0;
|
||||
}
|
||||
$depth[$parser]++;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,8 @@ if ($cat) {
|
||||
}
|
||||
|
||||
$tplVars['feedtitle'] = filter($GLOBALS['sitename'] . (isset($pagetitle) ? $pagetitle : ''));
|
||||
$tplVars['feedlink'] = ROOT;
|
||||
$tplVars['pagelink'] = addProtocolToUrl(ROOT);
|
||||
$tplVars['feedlink'] = addProtocolToUrl(ROOT) . 'rss?sort=' . getSortOrder();
|
||||
$tplVars['feeddescription'] = sprintf(T_('Recent bookmarks posted to %s'), $GLOBALS['sitename']);
|
||||
|
||||
$bookmarks = $bookmarkservice->getBookmarks(
|
||||
@ -137,6 +138,7 @@ $bookmarks_tmp = filter($bookmarks['bookmarks']);
|
||||
|
||||
$bookmarks_tpl = array();
|
||||
$latestdate = null;
|
||||
$guidBaseUrl = addProtocolToUrl(ROOT) . '#';
|
||||
foreach ($bookmarks_tmp as $key => $row) {
|
||||
$_link = $row['bAddress'];
|
||||
// Redirection option
|
||||
@ -154,7 +156,8 @@ foreach ($bookmarks_tmp as $key => $row) {
|
||||
'description' => $row['bDescription'],
|
||||
'creator' => SemanticScuttle_Model_UserArray::getName($row),
|
||||
'pubdate' => $_pubdate,
|
||||
'tags' => $row['tags']
|
||||
'tags' => $row['tags'],
|
||||
'guid' => $guidBaseUrl . $row['bId'],
|
||||
);
|
||||
}
|
||||
unset($bookmarks_tmp);
|
||||
|
@ -223,6 +223,7 @@ li.xfolkentry {
|
||||
border-bottom: 1px solid #DDD;
|
||||
margin-bottom: 0;
|
||||
padding: 1em 0.5em;
|
||||
overflow: auto;
|
||||
}
|
||||
html > body li.xfolkentry {
|
||||
border-bottom: 1px dotted #AAA;
|
||||
|
Loading…
Reference in New Issue
Block a user