├── icons
└── .empty
├── lib
├── xmlrpc
│ ├── .empty
│ ├── README
│ └── filelist.txt
├── magpierss
│ └── AUTHORS
├── iui
│ ├── cancel.png
│ ├── loading.gif
│ ├── thumb.png
│ ├── toggle.png
│ ├── toolbar.png
│ ├── listArrow.png
│ ├── listGroup.png
│ ├── redButton.png
│ ├── selection.png
│ ├── toggleOn.png
│ ├── backButton.png
│ ├── blueButton.png
│ ├── grayButton.png
│ ├── listArrowSel.png
│ ├── pinstripes.png
│ ├── toolButton.png
│ ├── whiteButton.png
│ └── iui-logo-touch-icon.png
└── htmlpurifier
│ ├── library
│ ├── HTMLPurifier
│ │ ├── ConfigSchema
│ │ │ ├── schema
│ │ │ │ ├── info.ini
│ │ │ │ ├── CSS.txt
│ │ │ │ ├── HTML.txt
│ │ │ │ ├── Attr.txt
│ │ │ │ ├── Core.txt
│ │ │ │ ├── FilterParam.txt
│ │ │ │ ├── URI.txt
│ │ │ │ ├── Test.txt
│ │ │ │ ├── Output.txt
│ │ │ │ ├── Cache.txt
│ │ │ │ ├── Filter.txt
│ │ │ │ ├── AutoFormatParam.txt
│ │ │ │ ├── Attr.IDBlacklist.txt
│ │ │ │ ├── AutoFormat.txt
│ │ │ │ ├── HTML.TidyAdd.txt
│ │ │ │ ├── HTML.TidyRemove.txt
│ │ │ │ ├── CSS.Proprietary.txt
│ │ │ │ ├── Test.ForceNoIconv.txt
│ │ │ │ ├── Core.EscapeInvalidTags.txt
│ │ │ │ ├── CSS.DefinitionRev.txt
│ │ │ │ ├── URI.DefinitionRev.txt
│ │ │ │ ├── HTML.Strict.txt
│ │ │ │ ├── CSS.AllowImportant.txt
│ │ │ │ ├── HTML.Trusted.txt
│ │ │ │ ├── HTML.CustomDoctype.txt
│ │ │ │ ├── HTML.XHTML.txt
│ │ │ │ ├── Attr.AllowedRev.txt
│ │ │ │ ├── URI.DefaultScheme.txt
│ │ │ │ ├── URI.DefinitionID.txt
│ │ │ │ ├── AutoFormat.Linkify.txt
│ │ │ │ ├── Attr.AllowedRel.txt
│ │ │ │ ├── Core.Language.txt
│ │ │ │ ├── Output.CommentScriptContents.txt
│ │ │ │ ├── URI.Disable.txt
│ │ │ │ ├── Attr.DefaultInvalidImageAlt.txt
│ │ │ │ ├── Attr.DefaultTextDir.txt
│ │ │ │ ├── Core.RemoveScriptContents.txt
│ │ │ │ ├── URI.DisableResources.txt
│ │ │ │ ├── Filter.Custom.txt
│ │ │ │ ├── URI.HostBlacklist.txt
│ │ │ │ ├── AutoFormat.Custom.txt
│ │ │ │ ├── Attr.IDBlacklistRegexp.txt
│ │ │ │ ├── AutoFormatParam.PurifierLinkifyDocURL.txt
│ │ │ │ ├── HTML.Parent.txt
│ │ │ │ ├── Attr.DefaultInvalidImage.txt
│ │ │ │ ├── AutoFormat.PurifierLinkify.txt
│ │ │ │ ├── Filter.YouTube.txt
│ │ │ │ ├── AutoFormat.DisplayLinkURI.txt
│ │ │ │ ├── URI.OverrideAllowedSchemes.txt
│ │ │ │ ├── HTML.Proprietary.txt
│ │ │ │ ├── Cache.SerializerPath.txt
│ │ │ │ ├── Core.RemoveInvalidImg.txt
│ │ │ │ ├── Output.Newline.txt
│ │ │ │ ├── URI.AllowedSchemes.txt
│ │ │ │ ├── Cache.DefinitionImpl.txt
│ │ │ │ ├── Core.EscapeInvalidChildren.txt
│ │ │ │ ├── URI.MakeAbsolute.txt
│ │ │ │ ├── Core.CollectErrors.txt
│ │ │ │ ├── URI.DisableExternal.txt
│ │ │ │ ├── CSS.AllowTricky.txt
│ │ │ │ ├── Core.ConvertDocumentToFragment.txt
│ │ │ │ ├── HTML.Doctype.txt
│ │ │ │ ├── Attr.IDPrefix.txt
│ │ │ │ ├── Attr.DefaultImageAlt.txt
│ │ │ │ ├── FilterParam.ExtractStyleBlocksEscaping.txt
│ │ │ │ ├── HTML.SafeEmbed.txt
│ │ │ │ ├── HTML.MaxImgLength.txt
│ │ │ │ ├── Output.SortAttr.txt
│ │ │ │ ├── HTML.SafeObject.txt
│ │ │ │ ├── HTML.DefinitionRev.txt
│ │ │ │ ├── FilterParam.ExtractStyleBlocksTidyImpl.txt
│ │ │ │ ├── URI.DisableExternalResources.txt
│ │ │ │ ├── Core.MaintainLineNumbers.txt
│ │ │ │ ├── Attr.AllowedFrameTargets.txt
│ │ │ │ ├── Core.EscapeNonASCIICharacters.txt
│ │ │ │ ├── HTML.BlockWrapper.txt
│ │ │ │ ├── Core.HiddenElements.txt
│ │ │ │ ├── URI.MungeResources.txt
│ │ │ │ ├── CSS.AllowedProperties.txt
│ │ │ │ ├── CSS.MaxImgLength.txt
│ │ │ │ ├── HTML.AllowedAttributes.txt
│ │ │ │ ├── Attr.EnableID.txt
│ │ │ │ ├── Attr.IDPrefixLocal.txt
│ │ │ │ ├── URI.Base.txt
│ │ │ │ ├── Core.DirectLexLineNumberSyncInterval.txt
│ │ │ │ ├── HTML.CoreModules.txt
│ │ │ │ ├── HTML.TidyLevel.txt
│ │ │ │ ├── Core.AggressivelyFixLt.txt
│ │ │ │ ├── Core.ColorKeywords.txt
│ │ │ │ ├── HTML.AllowedElements.txt
│ │ │ │ ├── HTML.AllowedModules.txt
│ │ │ │ ├── Core.Encoding.txt
│ │ │ │ ├── HTML.ForbiddenElements.txt
│ │ │ │ └── URI.Host.txt
│ │ │ ├── Exception.php
│ │ │ └── Interchange
│ │ │ │ ├── Namespace.php
│ │ │ │ └── Id.php
│ │ ├── DefinitionCache
│ │ │ ├── Serializer
│ │ │ │ ├── README
│ │ │ │ └── URI
│ │ │ │ │ └── 3.3.0,05c766101e813c246917b022f97b5e6e,1.ser
│ │ │ └── Null.php
│ │ ├── Printer
│ │ │ ├── ConfigForm.js
│ │ │ └── ConfigForm.css
│ │ ├── Token
│ │ │ ├── Empty.php
│ │ │ ├── Start.php
│ │ │ ├── End.php
│ │ │ └── Comment.php
│ │ ├── Language
│ │ │ ├── classes
│ │ │ │ └── en-x-test.php
│ │ │ └── messages
│ │ │ │ ├── en-x-test.php
│ │ │ │ └── en-x-testmini.php
│ │ ├── VarParserException.php
│ │ ├── Exception.php
│ │ ├── HTMLModule
│ │ │ ├── Tidy
│ │ │ │ ├── Transitional.php
│ │ │ │ ├── XHTML.php
│ │ │ │ ├── Strict.php
│ │ │ │ └── Name.php
│ │ │ ├── XMLCommonAttributes.php
│ │ │ ├── NonXMLCommonAttributes.php
│ │ │ ├── Name.php
│ │ │ ├── Target.php
│ │ │ ├── CommonAttributes.php
│ │ │ └── StyleAttribute.php
│ │ ├── URIScheme
│ │ │ ├── https.php
│ │ │ ├── http.php
│ │ │ ├── nntp.php
│ │ │ ├── news.php
│ │ │ └── mailto.php
│ │ ├── AttrDef
│ │ │ ├── Text.php
│ │ │ ├── URI
│ │ │ │ ├── Email.php
│ │ │ │ └── Email
│ │ │ │ │ └── SimpleCheck.php
│ │ │ ├── CSS
│ │ │ │ ├── AlphaValue.php
│ │ │ │ └── DenyElementDecorator.php
│ │ │ └── HTML
│ │ │ │ ├── FrameTarget.php
│ │ │ │ └── Bool.php
│ │ ├── URIFilter
│ │ │ ├── DisableExternalResources.php
│ │ │ └── HostBlacklist.php
│ │ ├── AttrTransform
│ │ │ ├── ScriptRequired.php
│ │ │ ├── SafeEmbed.php
│ │ │ ├── SafeObject.php
│ │ │ ├── Textarea.php
│ │ │ ├── Name.php
│ │ │ ├── BdoDir.php
│ │ │ ├── Border.php
│ │ │ ├── BgColor.php
│ │ │ ├── Background.php
│ │ │ ├── Length.php
│ │ │ └── Lang.php
│ │ ├── Strategy
│ │ │ ├── Core.php
│ │ │ └── Composite.php
│ │ ├── ChildDef
│ │ │ └── Empty.php
│ │ ├── VarParser
│ │ │ └── Native.php
│ │ ├── Strategy.php
│ │ ├── Injector
│ │ │ └── DisplayLinkURI.php
│ │ └── PropertyListIterator.php
│ ├── HTMLPurifier.path.php
│ ├── HTMLPurifier.auto.php
│ ├── HTMLPurifier.func.php
│ └── HTMLPurifier.autoload.php
│ └── CREDITS
├── index.php
├── version.php
├── themes
├── compact
│ ├── theme.ini
│ └── theme.css
├── neon
│ ├── images
│ │ ├── tag.png
│ │ ├── button.png
│ │ ├── fresh.png
│ │ ├── label.png
│ │ ├── archive.png
│ │ ├── art-zoom.png
│ │ ├── mark_set.png
│ │ ├── pub_set.png
│ │ ├── fresh_sign.png
│ │ ├── mark_unset.png
│ │ ├── pub_unset.png
│ │ ├── shadow_dark.png
│ │ ├── sign_excl.png
│ │ ├── sign_info.png
│ │ ├── sign_quest.png
│ │ ├── ttrss_logo.png
│ │ ├── art-pub-note.png
│ │ ├── button_pressed.png
│ │ ├── indicator_white.gif
│ │ ├── small_question.png
│ │ └── resize_handle_horiz.png
│ └── theme.ini
├── graycube
│ ├── theme.ini
│ └── images
│ │ ├── grad_1.png
│ │ ├── resize_horiz.png
│ │ ├── ttrss_logo.png
│ │ └── resize_handle_horiz.png
├── neutral
│ ├── theme.ini
│ └── images
│ │ ├── button.png
│ │ ├── fresh_sign.png
│ │ ├── prefs_tab.png
│ │ ├── score_high.png
│ │ ├── subtoolbar.png
│ │ ├── ttrss_logo.png
│ │ ├── button_pressed.png
│ │ ├── score_half_high.png
│ │ └── resize_handle_horiz.png
├── greentiny
│ ├── images
│ │ ├── tag.png
│ │ ├── footer.png
│ │ ├── fresh.png
│ │ ├── label.png
│ │ ├── favicon.png
│ │ ├── mark_set.gif
│ │ ├── mark_set.png
│ │ ├── overlay.png
│ │ ├── pub_set.gif
│ │ ├── pub_set.png
│ │ ├── resizer.png
│ │ ├── toolbar.png
│ │ ├── updated.png
│ │ ├── blank_icon.gif
│ │ ├── down_arrow.png
│ │ ├── fresh_new.png
│ │ ├── mark_unset.gif
│ │ ├── mark_unset.png
│ │ ├── new_version.png
│ │ ├── pub_unset.gif
│ │ ├── pub_unset.png
│ │ ├── score_high.png
│ │ ├── score_low.png
│ │ ├── sign_excl.png
│ │ ├── sign_info.png
│ │ ├── sign_quest.png
│ │ ├── ttrss_logo.png
│ │ ├── prefs-content.png
│ │ ├── resize_horiz.png
│ │ ├── score_neutral.png
│ │ ├── feed-icon-12x12.png
│ │ ├── indicator_white.gif
│ │ ├── score_half_high.png
│ │ ├── score_half_low.png
│ │ ├── small_question.png
│ │ ├── ttrss_logo_big.png
│ │ └── resize_handle_horiz.png
│ └── theme.ini
└── triple-pane
│ ├── theme.ini
│ └── images
│ ├── resize_vert.png
│ ├── resize_handle_horiz.png
│ └── resize_handle_vert.png
├── schema
└── versions
│ ├── mysql
│ ├── 35.sql
│ ├── 34.sql
│ ├── 43.sql
│ ├── 25.sql
│ ├── 55.sql
│ ├── 40.sql
│ ├── 46.sql
│ ├── 64.sql
│ ├── 48.sql
│ ├── 66.sql
│ ├── 18.sql
│ ├── 27.sql
│ ├── 42.sql
│ ├── 28.sql
│ ├── 30.sql
│ ├── 65.sql
│ ├── 23.sql
│ ├── 21.sql
│ ├── 24.sql
│ ├── 29.sql
│ ├── 38.sql
│ ├── 58.sql
│ ├── 52.sql
│ ├── 49.sql
│ ├── 45.sql
│ ├── 13.sql
│ ├── 33.sql
│ ├── 32.sql
│ ├── 31.sql
│ ├── 15.sql
│ ├── 54.sql
│ ├── 37.sql
│ ├── 20.sql
│ ├── 41.sql
│ ├── 14.sql
│ ├── 16.sql
│ ├── 47.sql
│ ├── 44.sql
│ ├── 61.sql
│ ├── 57.sql
│ ├── 22.sql
│ ├── 36.sql
│ ├── 5.sql
│ ├── 39.sql
│ ├── 12.sql
│ ├── 56.sql
│ ├── 19.sql
│ ├── 53.sql
│ ├── 59.sql
│ ├── 62.sql
│ ├── 50.sql
│ ├── 4.sql
│ ├── 26.sql
│ ├── 51.sql
│ ├── 63.sql
│ ├── 60.sql
│ ├── 10.sql
│ ├── 7.sql
│ ├── 6.sql
│ ├── 11.sql
│ └── 8.sql
│ └── pgsql
│ ├── 56.sql
│ ├── 25.sql
│ ├── 55.sql
│ ├── 40.sql
│ ├── 46.sql
│ ├── 64.sql
│ ├── 66.sql
│ ├── 18.sql
│ ├── 27.sql
│ ├── 42.sql
│ ├── 35.sql
│ ├── 28.sql
│ ├── 30.sql
│ ├── 65.sql
│ ├── 23.sql
│ ├── 48.sql
│ ├── 21.sql
│ ├── 24.sql
│ ├── 29.sql
│ ├── 38.sql
│ ├── 58.sql
│ ├── 45.sql
│ ├── 52.sql
│ ├── 44.sql
│ ├── 49.sql
│ ├── 32.sql
│ ├── 33.sql
│ ├── 31.sql
│ ├── 15.sql
│ ├── 41.sql
│ ├── 54.sql
│ ├── 37.sql
│ ├── 20.sql
│ ├── 16.sql
│ ├── 13.sql
│ ├── 14.sql
│ ├── 43.sql
│ ├── 34.sql
│ ├── 57.sql
│ ├── 61.sql
│ ├── 47.sql
│ ├── 5.sql
│ ├── 22.sql
│ ├── 36.sql
│ ├── 39.sql
│ ├── 12.sql
│ ├── 19.sql
│ ├── 53.sql
│ ├── 50.sql
│ ├── 51.sql
│ ├── 26.sql
│ ├── 59.sql
│ ├── 62.sql
│ ├── 63.sql
│ ├── 4.sql
│ ├── 60.sql
│ ├── 10.sql
│ ├── 7.sql
│ ├── 11.sql
│ ├── 8.sql
│ └── 6.sql
├── images
├── c1.png
├── c2.png
├── c3.png
├── c4.png
├── tag.png
├── www.png
├── fresh.png
├── label.png
├── archive.png
├── art-zoom.png
├── button.png
├── favicon.png
├── footer.png
├── mark_set.gif
├── mark_set.png
├── offline.png
├── online.png
├── overlay.png
├── piggie.png
├── pub_set.gif
├── pub_set.png
├── resizer.png
├── shadow.png
├── toolbar.png
├── updated.png
├── blank_icon.gif
├── down_arrow.png
├── fresh_sign.png
├── mark_unset.gif
├── mark_unset.png
├── pub_unset.gif
├── pub_unset.png
├── score_high.png
├── score_low.png
├── sign_excl.png
├── sign_info.png
├── sign_quest.png
├── ttrss_logo.png
├── art-pub-note.png
├── cat-collapse.png
├── new_version.png
├── offline-sync.gif
├── piggie_icon.png
├── prefs-content.png
├── resize_horiz.png
├── score_neutral.png
├── shadow-grid.gif
├── shadow_dark.png
├── shadow_white.png
├── art-set-unread.png
├── button_pressed.png
├── feed-icon-12x12.png
├── feed-icon-64x64.png
├── indicator_tiny.gif
├── indicator_white.gif
├── score_half_high.png
├── score_half_low.png
├── small_question.png
├── ttrss_logo_big.png
└── resize_handle_horiz.png
├── extras
└── button
│ ├── musicplayer.swf
│ └── musicplayer_f6.swf
├── utils
├── notifier
│ ├── images
│ │ ├── alert.png
│ │ ├── error.png
│ │ ├── icon.png
│ │ ├── normal.png
│ │ └── ttrss_logo.png
│ ├── popup.html
│ ├── style.css
│ └── manifest.json
├── create-release-tarball.sh
└── extract-i18n-js.pl
├── locale
├── ca_CA
│ └── LC_MESSAGES
│ │ └── messages.mo
├── de_DE
│ └── LC_MESSAGES
│ │ └── messages.mo
├── es_ES
│ └── LC_MESSAGES
│ │ └── messages.mo
├── fr_FR
│ └── LC_MESSAGES
│ │ └── messages.mo
├── hu_HU
│ └── LC_MESSAGES
│ │ └── messages.mo
├── it_IT
│ └── LC_MESSAGES
│ │ └── messages.mo
├── ja_JP
│ └── LC_MESSAGES
│ │ └── messages.mo
├── nb_NO
│ └── LC_MESSAGES
│ │ └── messages.mo
├── pt_BR
│ └── LC_MESSAGES
│ │ └── messages.mo
├── ru_RU
│ └── LC_MESSAGES
│ │ └── messages.mo
└── zh_CN
│ └── LC_MESSAGES
│ └── messages.mo
├── image.php
├── mobile
├── logout.php
├── classic
│ └── logout.php
├── cat.php
├── article.php
├── home.php
└── feed.php
├── logout.php
├── templates
├── resetpass_template.txt
├── digest_template.txt
└── digest_template_html.txt
├── update-translations.sh
└── modules
└── help.php
/icons/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/xmlrpc/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/magpierss/AUTHORS:
--------------------------------------------------------------------------------
1 | kellan Injectors)
3 | --# vim: et sw=4 sts=4
4 |
--------------------------------------------------------------------------------
/schema/versions/mysql/30.sql:
--------------------------------------------------------------------------------
1 | alter table ttrss_feeds add column last_update_started datetime;
2 | alter table ttrss_feeds alter column last_update_started set default null;
3 |
4 | update ttrss_version set schema_version = 30;
5 |
--------------------------------------------------------------------------------
/schema/versions/mysql/65.sql:
--------------------------------------------------------------------------------
1 | begin;
2 |
3 | update ttrss_prefs set short_desc = 'Default feed update interval' where pref_name = 'DEFAULT_UPDATE_INTERVAL';
4 |
5 | update ttrss_version set schema_version = 65;
6 |
7 | commit;
8 |
--------------------------------------------------------------------------------
/schema/versions/pgsql/30.sql:
--------------------------------------------------------------------------------
1 | alter table ttrss_feeds add column last_update_started timestamp;
2 | alter table ttrss_feeds alter column last_update_started set default null;
3 |
4 | update ttrss_version set schema_version = 30;
5 |
--------------------------------------------------------------------------------
/schema/versions/pgsql/65.sql:
--------------------------------------------------------------------------------
1 | begin;
2 |
3 | update ttrss_prefs set short_desc = 'Default feed update interval' where pref_name = 'DEFAULT_UPDATE_INTERVAL';
4 |
5 | update ttrss_version set schema_version = 65;
6 |
7 | commit;
8 |
--------------------------------------------------------------------------------
/utils/notifier/popup.html:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/mobile/classic/logout.php:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/lib/htmlpurifier/library/HTMLPurifier/Token/Empty.php:
--------------------------------------------------------------------------------
1 |
8 | Whether or not to allow safe, proprietary CSS values.
9 |
8 | Revision identifier for your custom definition. See 9 | %HTML.DefinitionRev for details. 10 |
11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionRev.txt: -------------------------------------------------------------------------------- 1 | URI.DefinitionRev 2 | TYPE: int 3 | VERSION: 2.1.0 4 | DEFAULT: 1 5 | --DESCRIPTION-- 6 | 7 |8 | Revision identifier for your custom definition. See 9 | %HTML.DefinitionRev for details. 10 |
11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /schema/versions/pgsql/31.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feeds add column update_method integer; 2 | update ttrss_feeds set update_method = 0; 3 | alter table ttrss_feeds alter column update_method set not null; 4 | alter table ttrss_feeds alter column update_method set default 0; 5 | 6 | update ttrss_version set schema_version = 31; 7 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier.path.php: -------------------------------------------------------------------------------- 1 | 2 | Hello, ${LOGIN}. 3 | 4 | Your password for this Tiny Tiny RSS installation has been reset by an administrator. 5 | 6 | Your new password is ${NEWPASS}, please remember it for later reference. 7 | 8 | Sincerely, Tiny Tiny RSS Mail Daemon. 9 | 10 | -------------------------------------------------------------------------------- /schema/versions/mysql/20.sql: -------------------------------------------------------------------------------- 1 | UPDATE ttrss_prefs SET help_text = 'This option is useful when you are reading several planet-type aggregators with partially colliding userbase. When disabled, it forces same posts from different feeds to appear only once.' WHERE pref_name = 'ALLOW_DUPLICATE_POSTS'; 2 | 3 | update ttrss_version set schema_version = 20; 4 | -------------------------------------------------------------------------------- /schema/versions/mysql/41.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feed_categories add column order_id integer; 2 | update ttrss_feed_categories set order_id = 0; 3 | alter table ttrss_feed_categories change order_id order_id integer not null; 4 | alter table ttrss_feed_categories alter column order_id set default 0; 5 | 6 | update ttrss_version set schema_version = 41; 7 | -------------------------------------------------------------------------------- /schema/versions/pgsql/20.sql: -------------------------------------------------------------------------------- 1 | UPDATE ttrss_prefs SET help_text = 'This option is useful when you are reading several planet-type aggregators with partially colliding userbase. When disabled, it forces same posts from different feeds to appear only once.' WHERE pref_name = 'ALLOW_DUPLICATE_POSTS'; 2 | 3 | update ttrss_version set schema_version = 20; 4 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CustomDoctype.txt: -------------------------------------------------------------------------------- 1 | HTML.CustomDoctype 2 | TYPE: string/null 3 | VERSION: 2.0.1 4 | DEFAULT: NULL 5 | --DESCRIPTION-- 6 | 7 | A custom doctype for power-users who defined there own document 8 | type. This directive only applies when %HTML.Doctype is blank. 9 | --# vim: et sw=4 sts=4 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.XHTML.txt: -------------------------------------------------------------------------------- 1 | HTML.XHTML 2 | TYPE: bool 3 | DEFAULT: true 4 | VERSION: 1.1.0 5 | DEPRECATED-VERSION: 1.7.0 6 | DEPRECATED-USE: HTML.Doctype 7 | --DESCRIPTION-- 8 | Determines whether or not output is XHTML 1.0 or HTML 4.01 flavor. 9 | --ALIASES-- 10 | Core.XHTML 11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/Language/messages/en-x-testmini.php: -------------------------------------------------------------------------------- 1 | 'HTML Purifier XNone' 10 | ); 11 | 12 | // vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /schema/versions/pgsql/16.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feeds add column auth_pass_encrypted boolean; 2 | update ttrss_feeds set auth_pass_encrypted = false; 3 | alter table ttrss_feeds alter column auth_pass_encrypted set not null; 4 | alter table ttrss_feeds alter column auth_pass_encrypted set default false; 5 | 6 | update ttrss_version set schema_version = 16; 7 | -------------------------------------------------------------------------------- /schema/versions/mysql/14.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, 2 | 'This option enables marking articles as read automatically in combined mode while you scroll article list.'); 3 | 4 | update ttrss_version set schema_version = 14; 5 | -------------------------------------------------------------------------------- /schema/versions/pgsql/13.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_filters add column inverse boolean; 4 | update ttrss_filters set inverse = false; 5 | alter table ttrss_filters alter column inverse set not null; 6 | alter table ttrss_filters alter column inverse set default false; 7 | 8 | update ttrss_version set schema_version = 13; 9 | 10 | commit; 11 | -------------------------------------------------------------------------------- /schema/versions/pgsql/14.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, 2 | 'This option enables marking articles as read automatically in combined mode while you scroll article list.'); 3 | 4 | update ttrss_version set schema_version = 14; 5 | -------------------------------------------------------------------------------- /schema/versions/pgsql/43.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_labels rename column sql_exp to sql_exp_old; 2 | alter table ttrss_labels add column sql_exp text; 3 | update ttrss_labels set sql_exp = sql_exp_old; 4 | alter table ttrss_labels alter column sql_exp set not null; 5 | alter table ttrss_labels drop column sql_exp_old; 6 | 7 | update ttrss_version set schema_version = 43; 8 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier.auto.php: -------------------------------------------------------------------------------- 1 | 7 | Defines through what scheme the output will be served, in order to 8 | select the proper object validator when no scheme information is present. 9 | 10 | --# vim: et sw=4 sts=4 11 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionID.txt: -------------------------------------------------------------------------------- 1 | URI.DefinitionID 2 | TYPE: string/null 3 | VERSION: 2.1.0 4 | DEFAULT: NULL 5 | --DESCRIPTION-- 6 | 7 |8 | Unique identifier for a custom-built URI definition. If you want 9 | to add custom URIFilters, you must specify this value. 10 |
11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /schema/versions/mysql/16.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feeds add column auth_pass_encrypted bool; 2 | update ttrss_feeds set auth_pass_encrypted = false; 3 | alter table ttrss_feeds change auth_pass_encrypted auth_pass_encrypted bool not null; 4 | alter table ttrss_feeds alter column auth_pass_encrypted set default false; 5 | 6 | update ttrss_version set schema_version = 16; 7 | -------------------------------------------------------------------------------- /schema/versions/pgsql/34.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feeds rename column feed_url to feed_url_old; 2 | alter table ttrss_feeds add column feed_url text; 3 | update ttrss_feeds set feed_url = feed_url_old; 4 | alter table ttrss_feeds alter column feed_url set not null; 5 | alter table ttrss_feeds drop column feed_url_old; 6 | 7 | update ttrss_version set schema_version = 34; 8 | -------------------------------------------------------------------------------- /schema/versions/mysql/47.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_filters add column filter_param varchar(200); 2 | 3 | update ttrss_filters set filter_param = ''; 4 | 5 | alter table ttrss_filters change filter_param filter_param varchar(200) not null; 6 | alter table ttrss_filters alter column filter_param set default ''; 7 | 8 | update ttrss_version set schema_version = 47; 9 | 10 | -------------------------------------------------------------------------------- /schema/versions/pgsql/57.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_feeds add column always_display_enclosures boolean; 2 | update ttrss_feeds set always_display_enclosures = false; 3 | alter table ttrss_feeds alter column always_display_enclosures set not null; 4 | alter table ttrss_feeds alter column always_display_enclosures set default false; 5 | 6 | update ttrss_version set schema_version = 57; 7 | -------------------------------------------------------------------------------- /schema/versions/mysql/44.sql: -------------------------------------------------------------------------------- 1 | create table ttrss_counters_cache ( 2 | feed_id integer not null, 3 | owner_uid integer not null, 4 | value integer not null default 0, 5 | foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE, 6 | foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE 7 | ); 8 | 9 | update ttrss_version set schema_version = 44; 10 | -------------------------------------------------------------------------------- /schema/versions/mysql/61.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | update ttrss_prefs set short_desc = 'Amount of articles to display at once', help_text = '', def_value = '30' where pref_name = 'DEFAULT_ARTICLE_LIMIT'; 4 | 5 | update ttrss_user_prefs set value = '30' where pref_name = 'DEFAULT_ARTICLE_LIMIT' and value = '0'; 6 | 7 | update ttrss_version set schema_version = 61; 8 | 9 | commit; 10 | -------------------------------------------------------------------------------- /schema/versions/pgsql/61.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | update ttrss_prefs set short_desc = 'Amount of articles to display at once', help_text = '', def_value = '30' where pref_name = 'DEFAULT_ARTICLE_LIMIT'; 4 | 5 | update ttrss_user_prefs set value = '30' where pref_name = 'DEFAULT_ARTICLE_LIMIT' and value = '0'; 6 | 7 | update ttrss_version set schema_version = 61; 8 | 9 | commit; 10 | -------------------------------------------------------------------------------- /schema/versions/pgsql/47.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_filters add column filter_param varchar(200); 4 | 5 | update ttrss_filters set filter_param = ''; 6 | 7 | alter table ttrss_filters alter column filter_param set not null; 8 | alter table ttrss_filters alter column filter_param set default ''; 9 | 10 | update ttrss_version set schema_version = 47; 11 | 12 | commit; 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php: -------------------------------------------------------------------------------- 1 | parseCDATA($string); 11 | } 12 | 13 | } 14 | 15 | // vim: et sw=4 sts=4 16 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.Linkify.txt: -------------------------------------------------------------------------------- 1 | AutoFormat.Linkify 2 | TYPE: bool 3 | VERSION: 2.0.1 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | 7 |
8 | This directive turns on linkification, auto-linking http, ftp and
9 | https URLs. a tags with the href attribute
10 | must be allowed.
11 |
8 | Disables all URIs in all forms. Not sure why you'd want to do that 9 | (after all, the Internet's founded on the notion of a hyperlink). 10 |
11 | 12 | --ALIASES-- 13 | Attr.DisableURI 14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImageAlt.txt: -------------------------------------------------------------------------------- 1 | Attr.DefaultInvalidImageAlt 2 | TYPE: string 3 | DEFAULT: 'Invalid image' 4 | --DESCRIPTION-- 5 | This is the content of the alt tag of an invalid image if the user had not 6 | previously specified an alt attribute. It has no effect when the image is 7 | valid but there was no alt attribute present. 8 | --# vim: et sw=4 sts=4 9 | -------------------------------------------------------------------------------- /schema/versions/pgsql/22.sql: -------------------------------------------------------------------------------- 1 | create index ttrss_entries_date_entered_index on ttrss_entries(date_entered); 2 | 3 | alter table ttrss_feeds add column cache_images boolean; 4 | update ttrss_feeds set cache_images = false; 5 | alter table ttrss_feeds alter column cache_images set not null; 6 | alter table ttrss_feeds alter column cache_images set default false; 7 | 8 | update ttrss_version set schema_version = 22; 9 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php: -------------------------------------------------------------------------------- 1 | 9 | This directive enables HTML Purifier to remove not only script tags 10 | but all of their contents. 11 | 12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php: -------------------------------------------------------------------------------- 1 | array( 9 | 'xml:lang' => 'LanguageCode', 10 | ) 11 | ); 12 | } 13 | 14 | // vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /schema/versions/mysql/22.sql: -------------------------------------------------------------------------------- 1 | create index ttrss_entries_date_entered_index on ttrss_entries(date_entered); 2 | 3 | alter table ttrss_feeds add column cache_images bool; 4 | update ttrss_feeds set cache_images = false; 5 | alter table ttrss_feeds change cache_images cache_images bool not null; 6 | alter table ttrss_feeds alter column cache_images set default false; 7 | 8 | update ttrss_version set schema_version = 22; 9 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt: -------------------------------------------------------------------------------- 1 | URI.DisableResources 2 | TYPE: bool 3 | VERSION: 1.3.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | 7 |8 | Disables embedding resources, essentially meaning no pictures. You can 9 | still link to them though. See %URI.DisableExternalResources for why 10 | this might be a good idea. 11 |
12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php: -------------------------------------------------------------------------------- 1 | array( 9 | 'lang' => 'LanguageCode', 10 | ) 11 | ); 12 | } 13 | 14 | // vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.Custom.txt: -------------------------------------------------------------------------------- 1 | Filter.Custom 2 | TYPE: list 3 | VERSION: 3.1.0 4 | DEFAULT: array() 5 | --DESCRIPTION-- 6 |
7 | This directive can be used to add custom filters; it is nearly the
8 | equivalent of the now deprecated HTMLPurifier->addFilter()
9 | method. Specify an array of concrete implementations.
10 |
8 | This directive can be used to add custom auto-format injectors. 9 | Specify an array of injector names (class name minus the prefix) 10 | or concrete implementations. Injector class must exist. 11 |
12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/3.3.0,05c766101e813c246917b022f97b5e6e,1.ser: -------------------------------------------------------------------------------- 1 | O:26:"HTMLPurifier_URIDefinition":7:{s:4:"type";s:3:"URI";s:10:" * filters";a:1:{s:13:"HostBlacklist";O:36:"HTMLPurifier_URIFilter_HostBlacklist":3:{s:4:"name";s:13:"HostBlacklist";s:12:" * blacklist";a:0:{}s:4:"post";b:0;}}s:14:" * postFilters";a:0:{}s:4:"base";N;s:4:"host";N;s:13:"defaultScheme";s:4:"http";s:5:"setup";b:1;} -------------------------------------------------------------------------------- /schema/versions/pgsql/36.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_user_entries add column score int; 2 | update ttrss_user_entries set score = 0; 3 | alter table ttrss_user_entries alter column score set not null; 4 | alter table ttrss_user_entries alter column score set default 0; 5 | 6 | insert into ttrss_filter_actions (id,name,description) values (6, 'score', 7 | 'Modify score'); 8 | 9 | update ttrss_version set schema_version = 36; 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklistRegexp.txt: -------------------------------------------------------------------------------- 1 | Attr.IDBlacklistRegexp 2 | TYPE: string/null 3 | VERSION: 1.6.0 4 | DEFAULT: NULL 5 | --DESCRIPTION-- 6 | PCRE regular expression to be matched against all IDs. If the expression is 7 | matches, the ID is rejected. Use this with care: may cause significant 8 | degradation. ID matching is done after all other validation. 9 | --# vim: et sw=4 sts=4 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt: -------------------------------------------------------------------------------- 1 | AutoFormatParam.PurifierLinkifyDocURL 2 | TYPE: string 3 | VERSION: 2.0.1 4 | DEFAULT: '#%s' 5 | --DESCRIPTION-- 6 | 7 |8 | Location of configuration documentation to link to, let %s substitute 9 | into the configuration's namespace and directive names sans the percent 10 | sign. 11 |
12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Parent.txt: -------------------------------------------------------------------------------- 1 | HTML.Parent 2 | TYPE: string 3 | VERSION: 1.3.0 4 | DEFAULT: 'div' 5 | --DESCRIPTION-- 6 | 7 |8 | String name of element that HTML fragment passed to library will be 9 | inserted in. An interesting variation would be using span as the 10 | parent element, meaning that only inline tags would be allowed. 11 |
12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /schema/versions/mysql/36.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_user_entries add column score integer; 2 | update ttrss_user_entries set score = 0; 3 | alter table ttrss_user_entries change score score integer not null; 4 | alter table ttrss_user_entries alter column score set default 0; 5 | 6 | insert into ttrss_filter_actions (id,name,description) values (6, 'score', 7 | 'Modify score'); 8 | 9 | update ttrss_version set schema_version = 36; 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImage.txt: -------------------------------------------------------------------------------- 1 | Attr.DefaultInvalidImage 2 | TYPE: string 3 | DEFAULT: '' 4 | --DESCRIPTION-- 5 | This is the default image an img tag will be pointed to if it does not have 6 | a valid src attribute. In future versions, we may allow the image tag to 7 | be removed completely, but due to design issues, this is not possible right 8 | now. 9 | --# vim: et sw=4 sts=4 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.txt: -------------------------------------------------------------------------------- 1 | AutoFormat.PurifierLinkify 2 | TYPE: bool 3 | VERSION: 2.0.1 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | 7 |
8 | Internal auto-formatter that converts configuration directives in
9 | syntax %Namespace.Directive to links. a tags
10 | with the href attribute must be allowed.
11 |
7 | This directive enables YouTube video embedding in HTML Purifier. Check 8 | this document 9 | on embedding videos for more information on what this filter does. 10 |
11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.DisplayLinkURI.txt: -------------------------------------------------------------------------------- 1 | AutoFormat.DisplayLinkURI 2 | TYPE: bool 3 | VERSION: 3.2.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 |7 | This directive turns on the in-text display of URIs in <a> tags, and disables 8 | those links. For example, example becomes 9 | example (http://example.com). 10 |
11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.OverrideAllowedSchemes.txt: -------------------------------------------------------------------------------- 1 | URI.OverrideAllowedSchemes 2 | TYPE: bool 3 | DEFAULT: true 4 | --DESCRIPTION-- 5 | If this is set to true (which it is by default), you can override 6 | %URI.AllowedSchemes by simply registering a HTMLPurifier_URIScheme to the 7 | registry. If false, you will also have to update that directive in order 8 | to add more schemes. 9 | --# vim: et sw=4 sts=4 10 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Proprietary.txt: -------------------------------------------------------------------------------- 1 | HTML.Proprietary 2 | TYPE: bool 3 | VERSION: 3.1.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 |
7 | Whether or not to allow proprietary elements and attributes in your
8 | documents, as per HTMLPurifier_HTMLModule_Proprietary.
9 | Warning: This can cause your documents to stop
10 | validating!
11 |
8 | This directive enables pre-emptive URI checking in img
9 | tags, as the attribute validation strategy is not authorized to
10 | remove elements from the document. Revert to pre-1.3.0 behavior by setting to false.
11 |
8 | Newline string to format final output with. If left null, HTML Purifier 9 | will auto-detect the default newline type of the system and use that; 10 | you can manually override it here. Remember, \r\n is Windows, \r 11 | is Mac, and \n is Unix. 12 |
13 | --# vim: et sw=4 sts=4 14 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt: -------------------------------------------------------------------------------- 1 | URI.AllowedSchemes 2 | TYPE: lookup 3 | --DEFAULT-- 4 | array ( 5 | 'http' => true, 6 | 'https' => true, 7 | 'mailto' => true, 8 | 'ftp' => true, 9 | 'nntp' => true, 10 | 'news' => true, 11 | ) 12 | --DESCRIPTION-- 13 | Whitelist that defines the schemes that a URI is allowed to have. This 14 | prevents XSS attacks from using pseudo-schemes like javascript or mocha. 15 | --# vim: et sw=4 sts=4 16 | -------------------------------------------------------------------------------- /schema/versions/mysql/56.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | drop table ttrss_enclosures; 4 | 5 | create table ttrss_enclosures (id serial not null primary key, 6 | content_url text not null, 7 | content_type varchar(250) not null, 8 | post_id integer not null, 9 | title text not null, 10 | duration text not null, 11 | index (post_id), 12 | foreign key (post_id) references ttrss_entries(id) ON DELETE cascade) TYPE=InnoDB; 13 | 14 | update ttrss_version set schema_version = 56; 15 | 16 | commit; 17 | -------------------------------------------------------------------------------- /schema/versions/pgsql/12.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_filters add column action_param varchar(200); 4 | 5 | update ttrss_filters set action_param = ''; 6 | 7 | alter table ttrss_filters alter column action_param set not null; 8 | alter table ttrss_filters alter column action_param set default ''; 9 | 10 | insert into ttrss_filter_actions (id,name,description) values (4, 'tag', 11 | 'Assign tags'); 12 | 13 | update ttrss_version set schema_version = 12; 14 | 15 | commit; 16 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | class HTMLPurifier_AttrTransform_ScriptRequired extends HTMLPurifier_AttrTransform 7 | { 8 | public function transform($attr, $config, $context) { 9 | if (!isset($attr['type'])) { 10 | $attr['type'] = 'text/javascript'; 11 | } 12 | return $attr; 13 | } 14 | } 15 | 16 | // vim: et sw=4 sts=4 17 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php: -------------------------------------------------------------------------------- 1 | 8 | Converts all URIs into absolute forms. This is useful when the HTML 9 | being filtered assumes a specific base path, but will actually be 10 | viewed in a different context (and setting an alternate base URI is 11 | not possible). %URI.Base must be set for this directive to work. 12 | 13 | --# vim: et sw=4 sts=4 14 | -------------------------------------------------------------------------------- /templates/digest_template.txt: -------------------------------------------------------------------------------- 1 | 2 | New headlines for last 24 hours, as of ${CUR_DATE} ${CUR_TIME} 3 | ============================================================== 4 | 5 | ${FEED_TITLE} 6 | 7 | 8 | * ${ARTICLE_TITLE} - ${ARTICLE_UPDATED} 9 | ${ARTICLE_LINK} 10 | 11 | 12 | -- 13 | To unsubscribe, visit your configuration options or contact instance owner. 14 | 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php: -------------------------------------------------------------------------------- 1 | addBlankElement($name); 12 | $element->attr['name'] = 'ID'; 13 | } 14 | } 15 | 16 | } 17 | 18 | // vim: et sw=4 sts=4 19 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | class HTMLPurifier_AttrTransform_Textarea extends HTMLPurifier_AttrTransform 7 | { 8 | 9 | public function transform($attr, $config, $context) { 10 | // Calculated from Firefox 11 | if (!isset($attr['cols'])) $attr['cols'] = '22'; 12 | if (!isset($attr['rows'])) $attr['rows'] = '3'; 13 | return $attr; 14 | } 15 | 16 | } 17 | 18 | // vim: et sw=4 sts=4 19 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.CollectErrors.txt: -------------------------------------------------------------------------------- 1 | Core.CollectErrors 2 | TYPE: bool 3 | VERSION: 2.0.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | 7 | Whether or not to collect errors found while filtering the document. This 8 | is a useful way to give feedback to your users. Warning: 9 | Currently this feature is very patchy and experimental, with lots of 10 | possible error messages not yet implemented. It will not cause any 11 | problems, but it may not help your users either. 12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableExternal.txt: -------------------------------------------------------------------------------- 1 | URI.DisableExternal 2 | TYPE: bool 3 | VERSION: 1.2.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | Disables links to external websites. This is a highly effective anti-spam 7 | and anti-pagerank-leech measure, but comes at a hefty price: nolinks or 8 | images outside of your domain will be allowed. Non-linkified URIs will 9 | still be preserved. If you want to be able to link to subdomains or use 10 | absolute URIs, specify %URI.Host for your website. 11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/Token/End.php: -------------------------------------------------------------------------------- 1 | display:none; is considered a tricky property that 10 | will only be allowed if this directive is set to true. 11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.ConvertDocumentToFragment.txt: -------------------------------------------------------------------------------- 1 | Core.ConvertDocumentToFragment 2 | TYPE: bool 3 | DEFAULT: true 4 | --DESCRIPTION-- 5 | 6 | This parameter determines whether or not the filter should convert 7 | input that is a full document with html and body tags to a fragment 8 | of just the contents of a body tag. This parameter is simply something 9 | HTML Purifier can do during an edge-case: for most inputs, this 10 | processing is not necessary. 11 | 12 | --ALIASES-- 13 | Core.AcceptFullDocuments 14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/URIScheme/http.php: -------------------------------------------------------------------------------- 1 | userinfo = null; 15 | return true; 16 | } 17 | 18 | } 19 | 20 | // vim: et sw=4 sts=4 21 | -------------------------------------------------------------------------------- /utils/notifier/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Tiny Tiny RSS Notifier", 3 | "background_page": "background.html", 4 | "version": "0.4", 5 | "description": "This extension displays the number of unread articles in your Tiny Tiny RSS installation", 6 | "options_page": "options.html", 7 | "icons": { "48": "images/icon.png", "128": "images/icon.png" }, 8 | "browser_action": { 9 | "default_icon": "images/normal.png", 10 | "default_title": "You have no unread articles." 11 | }, 12 | "permissions": [ 13 | "tabs", "http://*/*", "https://*/*" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Doctype.txt: -------------------------------------------------------------------------------- 1 | HTML.Doctype 2 | TYPE: string/null 3 | DEFAULT: NULL 4 | --DESCRIPTION-- 5 | Doctype to use during filtering. Technically speaking this is not actually 6 | a doctype (as it does not identify a corresponding DTD), but we are using 7 | this name for sake of simplicity. When non-blank, this will override any 8 | older directives like %HTML.XHTML or %HTML.Strict. 9 | --ALLOWED-- 10 | 'HTML 4.01 Transitional', 'HTML 4.01 Strict', 'XHTML 1.0 Transitional', 'XHTML 1.0 Strict', 'XHTML 1.1' 11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /schema/versions/pgsql/19.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_PUBLISH_KEY', 2, '', '', 1); 2 | 3 | alter table ttrss_user_entries add column published boolean; 4 | update ttrss_user_entries set published = false; 5 | alter table ttrss_user_entries alter column published set not null; 6 | alter table ttrss_user_entries alter column published set default false; 7 | 8 | insert into ttrss_filter_actions (id,name,description) values (5, 'publish', 9 | 'Publish article'); 10 | 11 | update ttrss_version set schema_version = 19; 12 | -------------------------------------------------------------------------------- /schema/versions/mysql/19.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_PUBLISH_KEY', 2, '', '', 1); 2 | 3 | alter table ttrss_user_entries add column published bool; 4 | update ttrss_user_entries set published = false; 5 | alter table ttrss_user_entries change published published bool not null; 6 | alter table ttrss_user_entries alter column published set default false; 7 | 8 | insert into ttrss_filter_actions (id,name,description) values (5, 'publish', 9 | 'Publish article'); 10 | 11 | update ttrss_version set schema_version = 19; 12 | -------------------------------------------------------------------------------- /schema/versions/mysql/53.sql: -------------------------------------------------------------------------------- 1 | alter table ttrss_labels2 add column fg_color varchar(15); 2 | update ttrss_labels2 set fg_color = ''; 3 | alter table ttrss_labels2 change fg_color fg_color varchar(15) not null; 4 | alter table ttrss_labels2 alter column fg_color set default ''; 5 | 6 | alter table ttrss_labels2 add column bg_color varchar(15); 7 | update ttrss_labels2 set bg_color = ''; 8 | alter table ttrss_labels2 change bg_color bg_color varchar(15) not null; 9 | alter table ttrss_labels2 alter column bg_color set default ''; 10 | 11 | update ttrss_version set schema_version = 53; 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php: -------------------------------------------------------------------------------- 1 | confiscateAttr($attr, 'name'); 12 | if ( isset($attr['id'])) return $attr; 13 | $attr['id'] = $id; 14 | return $attr; 15 | } 16 | 17 | } 18 | 19 | // vim: et sw=4 sts=4 20 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefix.txt: -------------------------------------------------------------------------------- 1 | Attr.IDPrefix 2 | TYPE: string 3 | VERSION: 1.2.0 4 | DEFAULT: '' 5 | --DESCRIPTION-- 6 | String to prefix to IDs. If you have no idea what IDs your pages may use, 7 | you may opt to simply add a prefix to all user-submitted ID attributes so 8 | that they are still usable, but will not conflict with core page IDs. 9 | Example: setting the directive to 'user_' will result in a user submitted 10 | 'foo' to become 'user_foo' Be sure to set %HTML.EnableAttrID to true 11 | before using this. 12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/URIScheme/nntp.php: -------------------------------------------------------------------------------- 1 | userinfo = null; 14 | $uri->query = null; 15 | return true; 16 | } 17 | 18 | } 19 | 20 | // vim: et sw=4 sts=4 21 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultImageAlt.txt: -------------------------------------------------------------------------------- 1 | Attr.DefaultImageAlt 2 | TYPE: string/null 3 | DEFAULT: null 4 | VERSION: 3.2.0 5 | --DESCRIPTION-- 6 | This is the content of the alt tag of an image if the user had not 7 | previously specified an alt attribute. This applies to all images without 8 | a valid alt attribute, as opposed to %Attr.DefaultInvalidImageAlt, which 9 | only applies to invalid images, and overrides in the case of an invalid image. 10 | Default behavior with null is to use the basename of the src tag for the alt. 11 | --# vim: et sw=4 sts=4 12 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksEscaping.txt: -------------------------------------------------------------------------------- 1 | FilterParam.ExtractStyleBlocksEscaping 2 | TYPE: bool 3 | VERSION: 3.0.0 4 | DEFAULT: true 5 | ALIASES: Filter.ExtractStyleBlocksEscaping 6 | --DESCRIPTION-- 7 | 8 |9 | Whether or not to escape the dangerous characters <, > and & 10 | as \3C, \3E and \26, respectively. This is can be safely set to false 11 | if the contents of StyleBlocks will be placed in an external stylesheet, 12 | where there is no risk of it being interpreted as HTML. 13 |
14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /schema/versions/pgsql/53.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_labels2 add column fg_color varchar(15); 4 | update ttrss_labels2 set fg_color = ''; 5 | alter table ttrss_labels2 alter column fg_color set not null; 6 | alter table ttrss_labels2 alter column fg_color set default ''; 7 | 8 | alter table ttrss_labels2 add column bg_color varchar(15); 9 | update ttrss_labels2 set bg_color = ''; 10 | alter table ttrss_labels2 alter column bg_color set not null; 11 | alter table ttrss_labels2 alter column bg_color set default ''; 12 | 13 | update ttrss_version set schema_version = 53; 14 | 15 | commit; 16 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BdoDir.php: -------------------------------------------------------------------------------- 1 | get('Attr', 'DefaultTextDir'); 14 | return $attr; 15 | } 16 | 17 | } 18 | 19 | // vim: et sw=4 sts=4 20 | -------------------------------------------------------------------------------- /schema/versions/pgsql/50.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | drop table ttrss_counters_cache; 4 | 5 | create table ttrss_counters_cache ( 6 | feed_id integer not null, 7 | owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, 8 | updated timestamp not null, 9 | value integer not null default 0); 10 | 11 | create table ttrss_cat_counters_cache ( 12 | feed_id integer not null, 13 | owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, 14 | updated timestamp not null, 15 | value integer not null default 0); 16 | 17 | update ttrss_version set schema_version = 50; 18 | 19 | commit; 20 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeEmbed.txt: -------------------------------------------------------------------------------- 1 | HTML.SafeEmbed 2 | TYPE: bool 3 | VERSION: 3.1.1 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 |7 | Whether or not to permit embed tags in documents, with a number of extra 8 | security features added to prevent script execution. This is similar to 9 | what websites like MySpace do to embed tags. Embed is a proprietary 10 | element and will cause your website to stop validating. You probably want 11 | to enable this with %HTML.SafeObject. 12 | Highly experimental. 13 |
14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /schema/versions/pgsql/51.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | create table ttrss_labels2 (id serial not null primary key, 4 | owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, 5 | caption varchar(250) not null 6 | ); 7 | 8 | create table ttrss_user_labels2 ( 9 | label_id integer not null references ttrss_labels2(id) ON DELETE CASCADE, 10 | article_id integer not null references ttrss_entries(id) ON DELETE CASCADE 11 | ); 12 | 13 | insert into ttrss_filter_actions (id,name,description) values (7, 'label', 14 | 'Assign label'); 15 | 16 | update ttrss_version set schema_version = 51; 17 | 18 | commit; 19 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.MaxImgLength.txt: -------------------------------------------------------------------------------- 1 | HTML.MaxImgLength 2 | TYPE: int/null 3 | DEFAULT: 1200 4 | VERSION: 3.1.1 5 | --DESCRIPTION-- 6 |
7 | This directive controls the maximum number of pixels in the width and
8 | height attributes in img tags. This is
9 | in place to prevent imagecrash attacks, disable with null at your own risk.
10 | This directive is similar to %CSS.MaxImgLength, and both should be
11 | concurrently edited, although there are
12 | subtle differences in the input format (the HTML max is an integer).
13 |
7 | If true, HTML Purifier will sort attributes by name before writing them back
8 | to the document, converting a tag like: <el b="" a="" c="" />
9 | to <el a="" b="" c="" />. This is a workaround for
10 | a bug in FCKeditor which causes it to swap attributes order, adding noise
11 | to text diffs. If you're not seeing this bug, chances are, you don't need
12 | this directive.
13 |
7 | Whether or not to permit object tags in documents, with a number of extra 8 | security features added to prevent script execution. This is similar to 9 | what websites like MySpace do to object tags. You may also want to 10 | enable %HTML.SafeEmbed for maximum interoperability with Internet Explorer, 11 | although embed tags will cause your website to stop validating. 12 | Highly experimental. 13 |
14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/URIScheme/news.php: -------------------------------------------------------------------------------- 1 | userinfo = null; 13 | $uri->host = null; 14 | $uri->port = null; 15 | $uri->query = null; 16 | // typecode check needed on path 17 | return true; 18 | } 19 | 20 | } 21 | 22 | // vim: et sw=4 sts=4 23 | -------------------------------------------------------------------------------- /schema/versions/mysql/62.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_ENABLE_CATS', 1, 'false', '', 1); 4 | 5 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_SHOW_IMAGES', 1, 'false', '', 1); 6 | 7 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_HIDE_READ', 1, 'false', '', 1); 8 | 9 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_SORT_FEEDS_UNREAD', 1, 'false', '', 1); 10 | 11 | update ttrss_version set schema_version = 62; 12 | 13 | commit; 14 | -------------------------------------------------------------------------------- /schema/versions/pgsql/62.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_ENABLE_CATS', 1, 'false', '', 1); 4 | 5 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_SHOW_IMAGES', 1, 'false', '', 1); 6 | 7 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_HIDE_READ', 1, 'false', '', 1); 8 | 9 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_MOBILE_SORT_FEEDS_UNREAD', 1, 'false', '', 1); 10 | 11 | update ttrss_version set schema_version = 62; 12 | 13 | commit; 14 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php: -------------------------------------------------------------------------------- 1 | addBlankElement($name); 15 | $e->attr = array( 16 | 'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget() 17 | ); 18 | } 19 | } 20 | 21 | } 22 | 23 | // vim: et sw=4 sts=4 24 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/Token/Comment.php: -------------------------------------------------------------------------------- 1 | data = $data; 17 | $this->line = $line; 18 | $this->col = $col; 19 | } 20 | } 21 | 22 | // vim: et sw=4 sts=4 23 | -------------------------------------------------------------------------------- /schema/versions/mysql/50.sql: -------------------------------------------------------------------------------- 1 | drop table if exists ttrss_counters_cache; 2 | 3 | create table ttrss_counters_cache ( 4 | feed_id integer not null, 5 | owner_uid integer not null, 6 | value integer not null default 0, 7 | updated datetime not null, 8 | foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE 9 | ); 10 | 11 | create table ttrss_cat_counters_cache ( 12 | feed_id integer not null, 13 | owner_uid integer not null, 14 | value integer not null default 0, 15 | updated datetime not null, 16 | foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE 17 | ); 18 | 19 | update ttrss_version set schema_version = 50; 20 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php: -------------------------------------------------------------------------------- 1 | confiscateAttr($attr, 'bgcolor'); 13 | // some validation should happen here 14 | 15 | $this->prependCSS($attr, "background-color:$bgcolor;"); 16 | 17 | return $attr; 18 | 19 | } 20 | 21 | } 22 | 23 | // vim: et sw=4 sts=4 24 | -------------------------------------------------------------------------------- /mobile/cat.php: -------------------------------------------------------------------------------- 1 | 27 | 28 | -------------------------------------------------------------------------------- /schema/versions/pgsql/63.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | create table ttrss_settings_profiles(id serial not null primary key, 4 | title varchar(250) not null, 5 | owner_uid integer not null references ttrss_users(id) on delete cascade); 6 | 7 | alter table ttrss_user_prefs add column profile integer; 8 | update ttrss_user_prefs set profile = NULL; 9 | 10 | alter table ttrss_user_prefs add constraint "$3" FOREIGN KEY (profile) REFERENCES ttrss_settings_profiles(id) ON DELETE CASCADE; 11 | 12 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_THEME_ID', 3, '0', '', 1); 13 | 14 | update ttrss_version set schema_version = 63; 15 | 16 | commit; 17 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionRev.txt: -------------------------------------------------------------------------------- 1 | HTML.DefinitionRev 2 | TYPE: int 3 | VERSION: 2.0.0 4 | DEFAULT: 1 5 | --DESCRIPTION-- 6 | 7 |8 | Revision identifier for your custom definition specified in 9 | %HTML.DefinitionID. This serves the same purpose: uniquely identifying 10 | your custom definition, but this one does so in a chronological 11 | context: revision 3 is more up-to-date then revision 2. Thus, when 12 | this gets incremented, the cache handling is smart enough to clean 13 | up any older revisions of your definition as well as flush the 14 | cache. 15 |
16 | --# vim: et sw=4 sts=4 17 | -------------------------------------------------------------------------------- /schema/versions/mysql/4.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_feeds add column parent_feed integer; 4 | alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null; 5 | 6 | alter table ttrss_feeds add column private bool; 7 | 8 | update ttrss_feeds set private = false; 9 | 10 | alter table ttrss_feeds change private private bool not null; 11 | alter table ttrss_feeds alter column private set default 0; 12 | 13 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2); 14 | 15 | update ttrss_version set schema_version = 4; 16 | 17 | commit; 18 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier.func.php: -------------------------------------------------------------------------------- 1 | purify($html, $config); 21 | } 22 | 23 | // vim: et sw=4 sts=4 24 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php: -------------------------------------------------------------------------------- 1 | confiscateAttr($attr, 'background'); 13 | // some validation should happen here 14 | 15 | $this->prependCSS($attr, "background-image:url($background);"); 16 | 17 | return $attr; 18 | 19 | } 20 | 21 | } 22 | 23 | // vim: et sw=4 sts=4 24 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/FilterParam.ExtractStyleBlocksTidyImpl.txt: -------------------------------------------------------------------------------- 1 | FilterParam.ExtractStyleBlocksTidyImpl 2 | TYPE: mixed/null 3 | VERSION: 3.1.0 4 | DEFAULT: NULL 5 | --DESCRIPTION-- 6 |
7 | If left NULL, HTML Purifier will attempt to instantiate a csstidy
8 | class to use for internal cleaning. This will usually be good enough.
9 |
11 | However, for trusted user input, you can set this to false to
12 | disable cleaning. In addition, you can supply your own concrete implementation
13 | of Tidy's interface to use, although I don't know why you'd want to do that.
14 |
8 | If true, HTML Purifier will add line number information to all tokens. 9 | This is useful when error reporting is turned on, but can result in 10 | significant performance degradation and should not be used when 11 | unnecessary. This directive must be used with the DirectLex lexer, 12 | as the DOMLex lexer does not (yet) support this functionality. 13 | If the value is null, an appropriate value will be selected based 14 | on other configuration. 15 |
16 | --# vim: et sw=4 sts=4 17 | -------------------------------------------------------------------------------- /schema/versions/mysql/26.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('PURGE_UNREAD_ARTICLES', 1, 'true', 'Purge unread articles',3); 2 | 3 | alter table ttrss_users add column created datetime; 4 | alter table ttrss_users alter column created set default null; 5 | 6 | create table ttrss_enclosures (id serial not null primary key, 7 | content_url text not null, 8 | content_type varchar(250) not null, 9 | post_id integer not null, 10 | title text not null, 11 | duration text not null, 12 | index (post_id), 13 | foreign key (post_id) references ttrss_entries(id) ON DELETE cascade); 14 | 15 | update ttrss_version set schema_version = 26; 16 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedFrameTargets.txt: -------------------------------------------------------------------------------- 1 | Attr.AllowedFrameTargets 2 | TYPE: lookup 3 | DEFAULT: array() 4 | --DESCRIPTION-- 5 | Lookup table of all allowed link frame targets. Some commonly used link 6 | targets include _blank, _self, _parent and _top. Values should be 7 | lowercase, as validation will be done in a case-sensitive manner despite 8 | W3C's recommendation. XHTML 1.0 Strict does not permit the target attribute 9 | so this directive will have no effect in that doctype. XHTML 1.1 does not 10 | enable the Target module by default, you will have to manually enable it 11 | (see the module documentation for more details.) 12 | --# vim: et sw=4 sts=4 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeNonASCIICharacters.txt: -------------------------------------------------------------------------------- 1 | Core.EscapeNonASCIICharacters 2 | TYPE: bool 3 | VERSION: 1.4.0 4 | DEFAULT: false 5 | --DESCRIPTION-- 6 | This directive overcomes a deficiency in %Core.Encoding by blindly 7 | converting all non-ASCII characters into decimal numeric entities before 8 | converting it to its native encoding. This means that even characters that 9 | can be expressed in the non-UTF-8 encoding will be entity-ized, which can 10 | be a real downer for encodings like Big5. It also assumes that the ASCII 11 | repetoire is available, although this is the case for almost all encodings. 12 | Anyway, use UTF-8! 13 | --# vim: et sw=4 sts=4 14 | -------------------------------------------------------------------------------- /schema/versions/mysql/51.sql: -------------------------------------------------------------------------------- 1 | create table ttrss_labels2 (id integer not null primary key auto_increment, 2 | owner_uid integer not null, 3 | caption varchar(250) not null, 4 | foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE 5 | ) TYPE=InnoDB; 6 | 7 | create table ttrss_user_labels2 (label_id integer not null, 8 | article_id integer not null, 9 | foreign key (label_id) references ttrss_labels2(id) ON DELETE CASCADE, 10 | foreign key (article_id) references ttrss_entries(id) ON DELETE CASCADE 11 | ) TYPE=InnoDB; 12 | 13 | insert into ttrss_filter_actions (id,name,description) values (7, 'label', 14 | 'Assign label'); 15 | 16 | update ttrss_version set schema_version = 51; 17 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/AlphaValue.php: -------------------------------------------------------------------------------- 1 | 1.0) $result = '1'; 16 | return $result; 17 | } 18 | 19 | } 20 | 21 | // vim: et sw=4 sts=4 22 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php: -------------------------------------------------------------------------------- 1 | strategies as $strategy) { 18 | $tokens = $strategy->execute($tokens, $config, $context); 19 | } 20 | return $tokens; 21 | } 22 | 23 | } 24 | 25 | // vim: et sw=4 sts=4 26 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.BlockWrapper.txt: -------------------------------------------------------------------------------- 1 | HTML.BlockWrapper 2 | TYPE: string 3 | VERSION: 1.3.0 4 | DEFAULT: 'p' 5 | --DESCRIPTION-- 6 | 7 |8 | String name of element to wrap inline elements that are inside a block 9 | context. This only occurs in the children of blockquote in strict mode. 10 |
11 |
12 | Example: by default value,
13 | <blockquote>Foo</blockquote> would become
14 | <blockquote><p>Foo</p></blockquote>.
15 | The <p> tags can be replaced with whatever you desire,
16 | as long as it is a block level element.
17 |
11 | This directive is a lookup array of elements which should have their
12 | contents removed when they are not allowed by the HTML definition.
13 | For example, the contents of a script tag are not
14 | normally shown in a document, so if script tags are to be removed,
15 | their contents should be removed to. This is opposed to a b
16 | tag, which defines some presentational changes but does not hide its
17 | contents.
18 |
7 | If true, any URI munging directives like %URI.Munge
8 | will also apply to embedded resources, such as <img src="">.
9 | Be careful enabling this directive if you have a redirector script
10 | that does not use the Location HTTP header; all of your images
11 | and other embedded resources will break.
12 |
14 | Warning: It is strongly advised you use this in conjunction 15 | %URI.MungeSecretKey to mitigate the security risk of an open redirector. 16 |
17 | --# vim: et sw=4 sts=4 18 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php: -------------------------------------------------------------------------------- 1 | 8 | If HTML Purifier's style attributes set is unsatisfactory for your needs, 9 | you can overload it with your own list of tags to allow. Note that this 10 | method is subtractive: it does its job by taking away from HTML Purifier 11 | usual feature set, so you cannot add an attribute that HTML Purifier never 12 | supported in the first place. 13 | 14 |15 | Warning: If another directive conflicts with the 16 | elements here, that directive will win and override. 17 |
18 | --# vim: et sw=4 sts=4 19 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.MaxImgLength.txt: -------------------------------------------------------------------------------- 1 | CSS.MaxImgLength 2 | TYPE: string/null 3 | DEFAULT: '1200px' 4 | VERSION: 3.1.1 5 | --DESCRIPTION-- 6 |
7 | This parameter sets the maximum allowed length on img tags,
8 | effectively the width and height properties.
9 | Only absolute units of measurement (in, pt, pc, mm, cm) and pixels (px) are allowed. This is
10 | in place to prevent imagecrash attacks, disable with null at your own risk.
11 | This directive is similar to %HTML.MaxImgLength, and both should be
12 | concurrently edited, although there are
13 | subtle differences in the input format (the CSS max is a number with
14 | a unit).
15 |
13 | Warning: If another directive conflicts with the 14 | elements here, that directive will win and override. For 15 | example, %HTML.EnableAttrID will take precedence over *.id in this 16 | directive. You must set that directive to true before you can use 17 | IDs at all. 18 |
19 | --# vim: et sw=4 sts=4 20 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php: -------------------------------------------------------------------------------- 1 | content_model_type != 'strictblockquote') return parent::getChildDef($def); 17 | return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model); 18 | } 19 | } 20 | 21 | // vim: et sw=4 sts=4 22 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php: -------------------------------------------------------------------------------- 1 | array( 9 | 0 => array('Style'), 10 | // 'xml:space' => false, 11 | 'class' => 'NMTOKENS', 12 | 'id' => 'ID', 13 | 'title' => 'CDATA', 14 | ), 15 | 'Lang' => array(), 16 | 'I18N' => array( 17 | 0 => array('Lang'), // proprietary, for xml:lang/lang 18 | ), 19 | 'Common' => array( 20 | 0 => array('Core', 'I18N') 21 | ) 22 | ); 23 | } 24 | 25 | // vim: et sw=4 sts=4 26 | -------------------------------------------------------------------------------- /schema/versions/mysql/60.sql: -------------------------------------------------------------------------------- 1 | begin; 2 | 3 | alter table ttrss_user_entries change feed_id feed_id integer null; 4 | 5 | create table ttrss_archived_feeds (id integer not null primary key, 6 | owner_uid integer not null, 7 | title varchar(200) not null, 8 | feed_url text not null, 9 | site_url varchar(250) not null default '', 10 | index(owner_uid), 11 | foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; 12 | 13 | alter table ttrss_user_entries add column orig_feed_id integer; 14 | update ttrss_user_entries set orig_feed_id = NULL; 15 | 16 | alter table ttrss_user_entries add FOREIGN KEY (orig_feed_id) REFERENCES ttrss_archived_feeds(id) ON DELETE SET NULL; 17 | 18 | update ttrss_version set schema_version = 60; 19 | 20 | commit; 21 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.EnableID.txt: -------------------------------------------------------------------------------- 1 | Attr.EnableID 2 | TYPE: bool 3 | DEFAULT: false 4 | VERSION: 1.2.0 5 | --DESCRIPTION-- 6 | Allows the ID attribute in HTML. This is disabled by default due to the 7 | fact that without proper configuration user input can easily break the 8 | validation of a webpage by specifying an ID that is already on the 9 | surrounding HTML. If you don't mind throwing caution to the wind, enable 10 | this directive, but I strongly recommend you also consider blacklisting IDs 11 | you use (%Attr.IDBlacklist) or prefixing all user supplied IDs 12 | (%Attr.IDPrefix). When set to true HTML Purifier reverts to the behavior of 13 | pre-1.2.0 versions. 14 | --ALIASES-- 15 | HTML.EnableAttrID 16 | --# vim: et sw=4 sts=4 17 | -------------------------------------------------------------------------------- /schema/versions/pgsql/10.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, 2 | 'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); 3 | 4 | alter table ttrss_feeds add column include_in_digest boolean; 5 | update ttrss_feeds set include_in_digest = true; 6 | alter table ttrss_feeds alter column include_in_digest set not null; 7 | alter table ttrss_feeds alter column include_in_digest set default true; 8 | 9 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3); 10 | 11 | update ttrss_version set schema_version = 10; 12 | 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefixLocal.txt: -------------------------------------------------------------------------------- 1 | Attr.IDPrefixLocal 2 | TYPE: string 3 | VERSION: 1.2.0 4 | DEFAULT: '' 5 | --DESCRIPTION-- 6 | Temporary prefix for IDs used in conjunction with %Attr.IDPrefix. If you 7 | need to allow multiple sets of user content on web page, you may need to 8 | have a seperate prefix that changes with each iteration. This way, 9 | seperately submitted user content displayed on the same page doesn't 10 | clobber each other. Ideal values are unique identifiers for the content it 11 | represents (i.e. the id of the row in the database). Be sure to add a 12 | seperator (like an underscore) at the end. Warning: this directive will 13 | not work unless %Attr.IDPrefix is set to a non-empty value! 14 | --# vim: et sw=4 sts=4 15 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Base.txt: -------------------------------------------------------------------------------- 1 | URI.Base 2 | TYPE: string/null 3 | VERSION: 2.1.0 4 | DEFAULT: NULL 5 | --DESCRIPTION-- 6 | 7 |8 | The base URI is the URI of the document this purified HTML will be 9 | inserted into. This information is important if HTML Purifier needs 10 | to calculate absolute URIs from relative URIs, such as when %URI.MakeAbsolute 11 | is on. You may use a non-absolute URI for this value, but behavior 12 | may vary (%URI.MakeAbsolute deals nicely with both absolute and 13 | relative paths, but forwards-compatibility is not guaranteed). 14 | Warning: If set, the scheme on this URI 15 | overrides the one specified by %URI.DefaultScheme. 16 |
17 | --# vim: et sw=4 sts=4 18 | -------------------------------------------------------------------------------- /mobile/article.php: -------------------------------------------------------------------------------- 1 | 29 | 30 | -------------------------------------------------------------------------------- /schema/versions/mysql/10.sql: -------------------------------------------------------------------------------- 1 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('DIGEST_ENABLE', 1, 'false', 'Enable e-mail digest',1, 2 | 'This option enables sending daily digest of new (and unread) headlines on your configured e-mail address'); 3 | 4 | alter table ttrss_feeds add column include_in_digest bool; 5 | update ttrss_feeds set include_in_digest = true; 6 | alter table ttrss_feeds change include_in_digest include_in_digest bool not null; 7 | alter table ttrss_feeds alter column include_in_digest set default true; 8 | 9 | insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3); 10 | 11 | update ttrss_version set schema_version = 10; 12 | 13 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php: -------------------------------------------------------------------------------- 1 | " 12 | // that needs more percent encoding to be done 13 | if ($string == '') return false; 14 | $string = trim($string); 15 | $result = preg_match('/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i', $string); 16 | return $result ? $string : false; 17 | } 18 | 19 | } 20 | 21 | // vim: et sw=4 sts=4 22 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.DirectLexLineNumberSyncInterval.txt: -------------------------------------------------------------------------------- 1 | Core.DirectLexLineNumberSyncInterval 2 | TYPE: int 3 | VERSION: 2.0.0 4 | DEFAULT: 0 5 | --DESCRIPTION-- 6 | 7 |8 | Specifies the number of tokens the DirectLex line number tracking 9 | implementations should process before attempting to resyncronize the 10 | current line count by manually counting all previous new-lines. When 11 | at 0, this functionality is disabled. Lower values will decrease 12 | performance, and this is only strictly necessary if the counting 13 | algorithm is buggy (in which case you should report it as a bug). 14 | This has no effect when %Core.MaintainLineNumbers is disabled or DirectLex is 15 | not being used. 16 |
17 | --# vim: et sw=4 sts=4 18 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CoreModules.txt: -------------------------------------------------------------------------------- 1 | HTML.CoreModules 2 | TYPE: lookup 3 | VERSION: 2.0.0 4 | --DEFAULT-- 5 | array ( 6 | 'Structure' => true, 7 | 'Text' => true, 8 | 'Hypertext' => true, 9 | 'List' => true, 10 | 'NonXMLCommonAttributes' => true, 11 | 'XMLCommonAttributes' => true, 12 | 'CommonAttributes' => true, 13 | ) 14 | --DESCRIPTION-- 15 | 16 |17 | Certain modularized doctypes (XHTML, namely), have certain modules 18 | that must be included for the doctype to be an conforming document 19 | type: put those modules here. By default, XHTML's core modules 20 | are used. You can set this to a blank array to disable core module 21 | protection, but this is not recommended. 22 |
23 | --# vim: et sw=4 sts=4 24 | -------------------------------------------------------------------------------- /lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyLevel.txt: -------------------------------------------------------------------------------- 1 | HTML.TidyLevel 2 | TYPE: string 3 | VERSION: 2.0.0 4 | DEFAULT: 'medium' 5 | --DESCRIPTION-- 6 | 7 |General level of cleanliness the Tidy module should enforce. 8 | There are four allowed values:
9 |".__("Help topic not found.")."
"; 18 | } 19 | print "