Full Code of dignajar/nibbleblog for AI

master 396520e69e82 cached
495 files
1.2 MB
385.2k tokens
510 symbols
1 requests
Download .txt
Showing preview only (1,371K chars total). Download the full file or copy to clipboard to get everything.
Repository: dignajar/nibbleblog
Branch: master
Commit: 396520e69e82
Files: 495
Total size: 1.2 MB

Directory structure:
gitextract_7w7k1dco/

├── .gitignore
├── COPYRIGHT.txt
├── LICENSE.txt
├── README.md
├── admin/
│   ├── ajax/
│   │   ├── categories.php
│   │   ├── comments.php
│   │   ├── mobile.php
│   │   ├── pages.php
│   │   ├── posts.php
│   │   ├── posts_get_video_info.php
│   │   ├── security.bit
│   │   ├── settings.php
│   │   └── uploader.php
│   ├── boot/
│   │   ├── admin.bit
│   │   ├── ajax.bit
│   │   ├── blog.bit
│   │   ├── feed.bit
│   │   ├── rules/
│   │   │   ├── 1-fs_php.bit
│   │   │   ├── 10-pager.bit
│   │   │   ├── 10-seo.bit
│   │   │   ├── 10-session.bit
│   │   │   ├── 11-admin.bit
│   │   │   ├── 11-security.bit
│   │   │   ├── 2-objects.bit
│   │   │   ├── 3-variables.bit
│   │   │   ├── 4-blacklist.bit
│   │   │   ├── 4-remove_magic.bit
│   │   │   ├── 5-regional.bit
│   │   │   ├── 5-url.bit
│   │   │   ├── 8-posts_pages.bit
│   │   │   ├── 8-posts_pages_feed.bit
│   │   │   ├── 8-posts_pages_sitemap.bit
│   │   │   ├── 98-blog.bit
│   │   │   ├── 98-comments.bit
│   │   │   ├── 98-constants.bit
│   │   │   ├── 98-plugins.bit
│   │   │   └── 99-misc.bit
│   │   └── sitemap.bit
│   ├── controllers/
│   │   ├── categories/
│   │   │   ├── edit.bit
│   │   │   └── list.bit
│   │   ├── comments/
│   │   │   ├── list.bit
│   │   │   └── settings.bit
│   │   ├── dashboard/
│   │   │   └── view.bit
│   │   ├── page/
│   │   │   ├── edit.bit
│   │   │   ├── list.bit
│   │   │   └── new.bit
│   │   ├── plugins/
│   │   │   ├── config.bit
│   │   │   ├── install.bit
│   │   │   ├── list.bit
│   │   │   └── uninstall.bit
│   │   ├── post/
│   │   │   ├── edit.bit
│   │   │   ├── list.bit
│   │   │   └── new.bit
│   │   ├── settings/
│   │   │   ├── advanced.bit
│   │   │   ├── general.bit
│   │   │   ├── image.bit
│   │   │   ├── notifications.bit
│   │   │   ├── regional.bit
│   │   │   ├── seo.bit
│   │   │   ├── themes.bit
│   │   │   └── username.bit
│   │   └── user/
│   │       ├── forgot.bit
│   │       ├── login.bit
│   │       ├── logout.bit
│   │       └── send_forgot.bit
│   ├── js/
│   │   ├── ajax_form.bit
│   │   ├── functions.js
│   │   ├── jquery/
│   │   │   └── jquery.js
│   │   ├── reveal/
│   │   │   └── jquery.reveal.js
│   │   ├── system.php
│   │   └── tinymce/
│   │       ├── langs/
│   │       │   ├── de_DE.js
│   │       │   ├── es_ES.js
│   │       │   ├── fr_FR.js
│   │       │   ├── it_IT.js
│   │       │   ├── nl_NL.js
│   │       │   ├── pl_PL.js
│   │       │   ├── pt_PT.js
│   │       │   ├── ru_RU.js
│   │       │   ├── vi_VI.js
│   │       │   ├── zh_CN.js
│   │       │   └── zh_TW.js
│   │       ├── plugins/
│   │       │   ├── media/
│   │       │   │   └── moxieplayer.swf
│   │       │   └── visualblocks/
│   │       │       └── css/
│   │       │           └── visualblocks.css
│   │       └── skins/
│   │           └── lightgray/
│   │               └── fonts/
│   │                   └── readme.md
│   ├── kernel/
│   │   ├── api/
│   │   │   ├── comment.class.php
│   │   │   └── login.class.php
│   │   ├── db/
│   │   │   ├── db_categories.class.php
│   │   │   ├── db_comments.class.php
│   │   │   ├── db_notifications.class.php
│   │   │   ├── db_pages.class.php
│   │   │   ├── db_posts.class.php
│   │   │   ├── db_settings.class.php
│   │   │   ├── db_tags.class.php
│   │   │   ├── db_users.class.php
│   │   │   └── nbxml.class.php
│   │   ├── defensio/
│   │   │   ├── Defensio.php
│   │   │   └── lib/
│   │   │       ├── DefensioRestClient.php
│   │   │       └── exceptions.php
│   │   ├── helpers/
│   │   │   ├── blog.class.php
│   │   │   ├── category.class.php
│   │   │   ├── cookie.class.php
│   │   │   ├── crypt.class.php
│   │   │   ├── date.class.php
│   │   │   ├── email.class.php
│   │   │   ├── filesystem.class.php
│   │   │   ├── html.class.php
│   │   │   ├── image.class.php
│   │   │   ├── language.class.php
│   │   │   ├── net.class.php
│   │   │   ├── number.class.php
│   │   │   ├── page.class.php
│   │   │   ├── pager.class.php
│   │   │   ├── plugin.class.php
│   │   │   ├── post.class.php
│   │   │   ├── redirect.class.php
│   │   │   ├── resize.class.php
│   │   │   ├── session.class.php
│   │   │   ├── social.class.php
│   │   │   ├── text.class.php
│   │   │   ├── url.class.php
│   │   │   ├── validation.class.php
│   │   │   └── video.class.php
│   │   └── plugin.class.php
│   ├── templates/
│   │   ├── easy4/
│   │   │   ├── css/
│   │   │   │   ├── icons/
│   │   │   │   │   ├── Read Me.txt
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── license.txt
│   │   │   │   │   ├── lte-ie7.js
│   │   │   │   │   └── style.css
│   │   │   │   ├── main.css
│   │   │   │   ├── nb_code.css
│   │   │   │   ├── nb_media.css
│   │   │   │   ├── normalize.css
│   │   │   │   └── tinymce.css
│   │   │   ├── includes/
│   │   │   │   ├── sidebar.bit
│   │   │   │   └── toolbar.bit
│   │   │   └── index.bit
│   │   └── login/
│   │       ├── css/
│   │       │   └── main.css
│   │       └── index.bit
│   └── views/
│       ├── categories/
│       │   ├── edit.bit
│       │   └── list.bit
│       ├── comments/
│       │   ├── list.bit
│       │   └── settings.bit
│       ├── dashboard/
│       │   ├── drafts.bit
│       │   ├── last_comments.bit
│       │   ├── notifications.bit
│       │   ├── quick_start.bit
│       │   └── view.bit
│       ├── page/
│       │   ├── includes/
│       │   │   ├── buttons.bit
│       │   │   ├── content.bit
│       │   │   ├── description.bit
│       │   │   ├── keywords.bit
│       │   │   ├── nb_code.bit
│       │   │   ├── nb_media.bit
│       │   │   ├── position.bit
│       │   │   ├── slug.bit
│       │   │   └── title.bit
│       │   ├── list.bit
│       │   └── new.bit
│       ├── plugins/
│       │   ├── config.bit
│       │   └── list.bit
│       ├── post/
│       │   ├── edit.bit
│       │   ├── includes/
│       │   │   ├── allow_comments.bit
│       │   │   ├── buttons.bit
│       │   │   ├── categories.bit
│       │   │   ├── content.bit
│       │   │   ├── description.bit
│       │   │   ├── nb_code.bit
│       │   │   ├── nb_media.bit
│       │   │   ├── publish_date.bit
│       │   │   ├── quote.bit
│       │   │   ├── slug.bit
│       │   │   ├── tags.bit
│       │   │   └── title.bit
│       │   ├── list.bit
│       │   ├── new_quote.bit
│       │   ├── new_simple.bit
│       │   └── new_video.bit
│       ├── settings/
│       │   ├── general.bit
│       │   ├── image.bit
│       │   ├── notifications.bit
│       │   ├── regional.bit
│       │   ├── seo.bit
│       │   ├── themes.bit
│       │   └── username.bit
│       └── user/
│           ├── forgot.bit
│           ├── login.bit
│           └── send_forgot.bit
├── admin.php
├── bludit.php
├── feed.php
├── index.php
├── install.php
├── languages/
│   ├── ca_ES.bit
│   ├── cs_CZ.bit
│   ├── da_DK.bit
│   ├── de_DE.bit
│   ├── en_US.bit
│   ├── es_ES.bit
│   ├── fa_IR.bit
│   ├── fr_FR.bit
│   ├── it_IT.bit
│   ├── ja_JP.bit
│   ├── nl_NL.bit
│   ├── pl_PL.bit
│   ├── pt_BR.bit
│   ├── pt_PT.bit
│   ├── ru_RU.bit
│   ├── sk_SVK.bit
│   ├── sv_SE.bit
│   ├── tr_TR.bit
│   ├── vi_VI.bit
│   ├── zh_CN.bit
│   └── zh_TW.bit
├── plugins/
│   ├── about/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── analytics/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── categories/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── hello/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── html_code/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── latest_posts/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── maintenance_mode/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── mathjax/
│   │   ├── languages/
│   │   │   ├── en_US.bit
│   │   │   └── es_ES.bit
│   │   └── plugin.bit
│   ├── my_image/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── open_graph/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── pages/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── quick_links/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── slogan/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR_bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── sponsors/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── tag_cloud/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   └── twitter_cards/
│       ├── languages/
│       │   ├── da_DK.bit
│       │   ├── en_US.bit
│       │   ├── es_ES.bit
│       │   ├── fr_FR.bit
│       │   └── ru_RU.bit
│       └── plugin.bit
├── sitemap.php
├── themes/
│   ├── clean3/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── echo/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   └── style.css
│   │   ├── js/
│   │   │   └── script.js
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── pager.bit
│   │       │   │   ├── post_body.bit
│   │       │   │   ├── post_foot.bit
│   │       │   │   └── post_head.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── comments_disqus.bit
│   │           │   ├── comments_facebook.bit
│   │           │   ├── comments_nibbleblog.bit
│   │           │   ├── post_body.bit
│   │           │   ├── post_foot.bit
│   │           │   └── post_head.bit
│   │           └── view.bit
│   ├── google_simple/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── disqus_comments.bit
│   │       │   │   ├── facebook_comments.bit
│   │       │   │   ├── pager.bit
│   │       │   │   └── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── disqus_comments.bit
│   │           │   ├── facebook_comments.bit
│   │           │   ├── nibbleblog_comments.bit
│   │           │   └── post.bit
│   │           └── view.bit
│   ├── medium/
│   │   ├── config.bit
│   │   ├── controllers/
│   │   │   └── post/
│   │   │       └── view.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── init.bit
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           └── view.bit
│   ├── mydocs/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── note-2/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   └── styles.css
│   │   ├── js/
│   │   │   └── scripts.js
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           └── view.bit
│   ├── orange2/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── panadero/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   └── normalize.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── pager.bit
│   │       │   │   └── post_view.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── comment_form.bit
│   │           │   ├── comment_list.bit
│   │           │   └── post_view.bit
│   │           └── view.bit
│   ├── pure_html/
│   │   ├── config.bit
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           └── view.bit
│   ├── simpler/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   └── techie/
│       ├── config.bit
│       ├── css/
│       │   ├── main.css
│       │   ├── normalize.css
│       │   ├── page.css
│       │   ├── plugins.css
│       │   ├── post.css
│       │   └── rainbow_github.css
│       ├── js/
│       │   ├── browser-update.js
│       │   ├── sidebar.js
│       │   ├── taglist.js
│       │   └── youtube_embed.js
│       ├── templates/
│       │   └── default.bit
│       └── views/
│           ├── blog/
│           │   ├── disqus_comments.bit
│           │   ├── facebook_comments.bit
│           │   ├── pager.bit
│           │   ├── post.bit
│           │   ├── social.bit
│           │   ├── taglist.bit
│           │   └── view.bit
│           ├── error/
│           │   └── 404.bit
│           ├── page/
│           │   ├── social.bit
│           │   └── view.bit
│           └── post/
│               ├── disqus_comments.bit
│               ├── facebook_comments.bit
│               ├── nibbleblog_comments.bit
│               ├── post.bit
│               ├── social.bit
│               └── view.bit
└── update.php

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
.DS_Store
.htaccess
content/tmp/*
content/public/*
content/private/*
themes/hellophotos/*


================================================
FILE: COPYRIGHT.txt
================================================
All Nibbleblog code is Copyright 2009 - 2015 by Diego Ignacio Gabriel Najar Carrascal.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with this program as the file LICENSE.txt; if not, please see
http://www.gnu.org/licenses/gpl-3.0.txt

Nibbleblog includes works under other copyright notices and distributed
according to the terms of the GNU General Public License or a compatible
license, including:

- jQuery and jQuery UI - Copyright (c) Team JQuery - http://jquery.org/license
- TinyMCE - Copyright (c) Moxiecode Systems AB. - http://www.tinymce.com
- Helper resize.class.php - Author: Jarrod Oberto - http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/
- jQuery Reveal Plugin - Copyright 2010, ZURB - www.ZURB.com
- Icons: Dave Gandy (Font Awesome)
- Icons: Daniel Bruce (Entypo)
- Icons: Keyamoon (IcoMoon - Free)


================================================
FILE: LICENSE.txt
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.



================================================
FILE: README.md
================================================
[Nibbleblog](http://www.nibbleblog.com/)
================================================

> Nibbleblog is no longer developed. Please use [Bludit CMS](https://www.bludit.com).

License
-------
Nibbleblog is opensource software licensed under the [GPL v3](http://www.gnu.org/licenses/gpl-3.0.txt)


================================================
FILE: admin/ajax/categories.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

if( $_POST['action']=='delete' )
{
	$safe['id'] = $_POST['id'];

	$error = !$_DB_CATEGORIES->delete($safe);
}
elseif( $_POST['action']=='set' )
{
	$data = Text::unserialize($_POST['serial_data']);

	foreach( $data as $id=>$name )
	{
		$safe = array();
		$safe['id'] = $id;
		$safe['name'] = Validation::sanitize_html($name);

		if(Text::not_empty($safe['name']))
		{
			$_DB_CATEGORIES->set($safe);
		}
	}

	$error = !$_DB_CATEGORIES->savetofile();
}

if($error)
	exit( Text::ajax_header('<error><![CDATA[1]]></error><alert><![CDATA['.$_LANG['FAIL'].']]></alert>') );
else
	exit( Text::ajax_header('<success><![CDATA[1]]></success><alert><![CDATA['.$_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY'].']]></alert>') );

?>

================================================
FILE: admin/ajax/comments.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

if( $_POST['action']=='delete' )
{
	$safe['id'] = $_POST['id'];

	$error = !$_DB_COMMENTS->delete($safe);
}
elseif( $_POST['action']=='set' )
{
	$data = Text::unserialize($_POST['serial_data']);

	foreach( $data as $name=>$value )
	{
		$safe[$name] = Validation::sanitize_html($value);
	}

	$_DB_COMMENTS->set_settings($safe);

	$error = !$_DB_COMMENTS->savetofile();
}
elseif( $_POST['action']=='approve' )
{
	$safe['id'] = $_POST['id'];

	$error = !$_DB_COMMENTS->approve($safe);
}
elseif( $_POST['action']=='unapprove' )
{
	$safe['id'] = $_POST['id'];

	$error = !$_DB_COMMENTS->unapprove($safe);
}

if($error)
	exit( Text::ajax_header('<error><![CDATA[1]]></error><alert><![CDATA['.$_LANG['FAIL'].']]></alert>') );
else
	exit( Text::ajax_header('<success><![CDATA[1]]></success><alert><![CDATA['.$_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY'].']]></alert>') );

?>


================================================
FILE: admin/ajax/mobile.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');


// =====================================================================
//	FUNCTIONS
// =====================================================================

function gen_token($username, $password)
{
	$safe = array();
	$safe['username'] = Validation::sanitize_html($username);
	$safe['password'] = Validation::sanitize_html($password);

	if(!$Login->verify_login( array('username'=>$safe['username'], 'password'=>$safe['password']) ))
		return false;

	if(require(FILE_KEYS)==false)
		return false;

	$token = Crypt::get_hash($safe['username'], $_KEYS[2]);

	return $token;
}

function check_user($username, $password)
{
	global $Login;

	return $Login->verify_login( array('username'=>$safe['username'], 'password'=>$safe['password']) );
}

// =====================================================================
//	MAIN
// =====================================================================

$safe = array();
$safe['username']	= Validation::sanitize_html($_POST['username']);
$safe['password']	= Validation::sanitize_html($_POST['password']);
//$safe['post_type']	= Validation::sanitize_html($_POST['post_type']);

if(check_user($safe['username'], $safe['password']))
{
	$hash = Crypt::get_hash(time());
	$filename = PATH_UPLOAD.$hash.'.jpg';

	if( move_uploaded_file($_FILES["file"]["tmp_name"], $filename) )
	{
		$Resize->setImage($filename, '1024', '720', 'auto');
		$Resize->saveImage($filename, 100);

		exit('OK');
	}

	exit('Fallo subida');
}

exit('Fallo usuario');

?>

================================================
FILE: admin/ajax/pages.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

if( $_POST['action']=='delete' )
{
	$safe['id'] = $_POST['id'];

	// Delete the post
	$error = !$_DB_PAGES->delete($safe);

	// Remove homepage
	if($settings['default_homepage']==$safe['id'])
	{
		$_DB_SETTINGS->set(array('default_homepage'=>0));
		$_DB_SETTINGS->savetofile();
	}
}

if($error)
	exit( Text::ajax_header('<error><![CDATA[1]]></error><alert><![CDATA['.$_LANG['FAIL'].']]></alert>') );
else
	exit( Text::ajax_header('<success><![CDATA[1]]></success><alert><![CDATA['.$_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY'].']]></alert>') );

?>

================================================
FILE: admin/ajax/posts.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

if( $_POST['action']=='delete' )
{
	$safe['id'] = $_POST['id'];

	// Delete all comments from a post
	$_DB_COMMENTS->delete_all_by_post( array('id_post'=>$safe['id']) );

	// Delete links to tags
	$_DB_TAGS->delete_links(array('id_post'=>$safe['id']));
	$_DB_TAGS->savetofile();

	// Delete the post
	$error = !$_DB_POST->delete($safe);
}

if($error)
	exit( Text::ajax_header('<error><![CDATA[1]]></error><alert><![CDATA['.$_LANG['FAIL'].']]></alert>') );
else
	exit( Text::ajax_header('<success><![CDATA[1]]></success><alert><![CDATA['.$_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY'].']]></alert>') );

?>

================================================
FILE: admin/ajax/posts_get_video_info.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

$error = Video::video_get_info($_POST['url']);

if( $error == false )
{
	exit( Text::ajax_header('<error><![CDATA[1]]></error>') );
}
else
{
	exit( Text::ajax_header('<success><![CDATA[1]]></success><title><![CDATA['.$error['title'].']]></title>') );
}
?>

================================================
FILE: admin/ajax/security.bit
================================================
<?php

if(!isset($Login))
	exit('<error><![CDATA[1]]></error><alert><![CDATA[Nibbleblog security error(512)]]></alert>');

if(!$Login->is_logged())
	exit('<error><![CDATA[1]]></error><alert><![CDATA[Nibbleblog security error(1024)]]></alert>');

?>

================================================
FILE: admin/ajax/settings.php
================================================
<?php header("Content-Type: text/xml");

require('../boot/ajax.bit');
require('security.bit');

if($_POST['action']=='set')
{
	$data = Text::unserialize($_POST['serial_data']);

	foreach( $data as $name=>$value )
		$safe[$name] = Validation::sanitize_html($value);

	$_DB_SETTINGS->set($safe);

	$error = !$_DB_SETTINGS->savetofile();
}

if($error)
	exit( Text::ajax_header('<error><![CDATA[1]]></error><alert><![CDATA['.$_LANG['FAIL'].']]></alert>') );
else
	exit( Text::ajax_header('<success><![CDATA[1]]></success><alert><![CDATA['.$_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY'].']]></alert>') );

?>

================================================
FILE: admin/ajax/uploader.php
================================================
<?php header('Content-Type: application/json');

require('../boot/ajax.bit');
require('security.bit');

// Filename
$filename = false;

if(isset($_SERVER['HTTP_X_FILE_NAME']))
{
	$filename = $_SERVER['HTTP_X_FILE_NAME'];
}
else
{
	if(function_exists('apache_request_headers'))
	{
		$headers = apache_request_headers();

		if(isset($headers['X-FILE-NAME']))
		{
			$filename = $headers['X-FILE-NAME'];
		}
	}
}

$filename = $_GET['filename'];

if( $filename )
{
	// Ext
	$ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));

	if( ($ext!='jpg') && ($ext!='jpeg') && ($ext!='gif') && ($ext!='png') )
	{
		exit(json_encode(array('status'=>0, 'msg'=>'Extension error')));
	}

	// Stream
	$content = file_get_contents("php://input");

	if( $content == false )
	{
		exit(json_encode(array('status'=>0, 'msg'=>'Streaming error')));
	}

	$filename = strtolower(pathinfo($filename, PATHINFO_FILENAME));
	$filename = Text::replace(' ', '', $filename);
	$filename = Text::replace('_', '', $filename);
	//$filename = Text::cut_text($filename, 20);
	$number = 0;

	while(file_exists(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext))
		$number++;

	if( file_put_contents(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, $content) )
	{
		// If the gif then don't resize
		if($ext!='gif')
		{
			// Resize and/or Crop
			if($settings['img_resize'])
			{
				$Resize->setImage(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, $settings['img_resize_width'], $settings['img_resize_height'], $settings['img_resize_option']);
				$Resize->saveImage(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, $settings['img_resize_quality']);
			}

			// Generate thumbnail
			if($settings['img_thumbnail'])
			{
				$Resize->setImage(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, $settings['img_thumbnail_width'], $settings['img_thumbnail_height'], $settings['img_thumbnail_option']);
				$Resize->saveImage(PATH_UPLOAD.$filename.'_'.$number.'_thumb.'.$ext, $settings['img_thumbnail_quality']);
			}
		}

		// Generate thumbnail for Nibbleblog media
		$Resize->setImage(PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, '110', '110', 'crop');
		$Resize->saveImage(PATH_UPLOAD.$filename.'_'.$number.'_nbmedia.jpg', 98, true);

		exit(json_encode(array('status'=>1, 'msg'=>'Upload complete', 'original'=>HTML_PATH_UPLOAD.$filename.'_'.$number.'_o.'.$ext, 'nbmedia'=>HTML_PATH_UPLOAD.$filename.'_'.$number.'_nbmedia.jpg')));
	}
}

exit(json_encode(array('status'=>0, 'msg'=>'Filename error')));

?>

================================================
FILE: admin/boot/admin.bit
================================================
<?php
// =====================================================================
//	RULES
// =====================================================================
require_once('rules/1-fs_php.bit');
require_once('rules/2-objects.bit');
require_once('rules/3-variables.bit');
require_once('rules/4-blacklist.bit');
require_once('rules/4-remove_magic.bit');
require_once('rules/5-regional.bit');
require_once('rules/5-url.bit');

require_once('rules/10-session.bit');
require_once('rules/11-security.bit');
require_once('rules/11-admin.bit');

require_once('rules/98-plugins.bit');
require_once('rules/98-constants.bit');

require_once('rules/99-misc.bit');

?>

================================================
FILE: admin/boot/ajax.bit
================================================
<?php
// =====================================================================
//	RULES
// =====================================================================
require_once('rules/1-fs_php.bit');
require_once('rules/2-objects.bit');
require_once('rules/3-variables.bit');
require_once('rules/4-remove_magic.bit');
require_once('rules/4-blacklist.bit');
require_once('rules/5-regional.bit');

require_once('rules/99-misc.bit');
?>

================================================
FILE: admin/boot/blog.bit
================================================
<?php
// =====================================================================
//	RULES
// =====================================================================
require_once('rules/1-fs_php.bit');
require_once('rules/2-objects.bit');
require_once('rules/3-variables.bit');
require_once('rules/4-blacklist.bit');
require_once('rules/4-remove_magic.bit');
require_once('rules/5-regional.bit');
require_once('rules/5-url.bit');

require_once('rules/8-posts_pages.bit');

require_once('rules/10-seo.bit');
require_once('rules/10-pager.bit');
require_once('rules/10-session.bit');

require_once('rules/98-comments.bit');
require_once('rules/98-plugins.bit');
require_once('rules/98-constants.bit');
require_once('rules/98-blog.bit');

require_once('rules/99-misc.bit');
?>

================================================
FILE: admin/boot/feed.bit
================================================
<?php
// =====================================================================
//	RULES
// =====================================================================
require_once('rules/1-fs_php.bit');
require_once('rules/2-objects.bit');
require_once('rules/3-variables.bit');
require_once('rules/4-blacklist.bit');
require_once('rules/5-regional.bit');
require_once('rules/5-url.bit');

require_once('rules/8-posts_pages_feed.bit');

require_once('rules/99-misc.bit');
?>

================================================
FILE: admin/boot/rules/1-fs_php.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 * (boolean) $session_started

*/
// =====================================================================
//	SESSIONS
// =====================================================================
// HttpOnly, this prevent read the session cookie (only from HTTP)
//$cookie_params = session_get_cookie_params();
//session_set_cookie_params($cookie_params['lifetime'], $cookie_params['path'], $cookie_params['domain'], $cookie_params['secure'], true);

// Session start
$session_started = session_start();

// Regenerate the SESSION ID, this for prevent session hijacking "man-in-the-middle attack"
//session_regenerate_id();

// =====================================================================
//	PATHS
// =====================================================================
$current_path = basename(getcwd());
if( ($current_path == 'ajax') || ($current_path == 'js') )
{
	define('PATH_ROOT', '../../');
	define('PATH_CONTENT', '../../content/');
}
else
{
	define('PATH_ROOT', './');
	define('PATH_CONTENT', './content/');
}

// PHP - ADMIN
define('PATH_ADMIN',			PATH_ROOT.'admin/');
define('PATH_KERNEL',			PATH_ADMIN.'kernel/');
define('PATH_HELPERS',			PATH_ADMIN.'kernel/helpers/');
define('PATH_DB',				PATH_ADMIN.'kernel/db/');
define('PATH_API',				PATH_ADMIN.'kernel/api/');

define('PATH_ADMIN_CONTROLLER',	PATH_ADMIN.'controllers/');
define('PATH_ADMIN_VIEW',		PATH_ADMIN.'views/');
define('PATH_ADMIN_TEMPLATES',	PATH_ADMIN.'templates/');
define('PATH_ADMIN_AJAX',		PATH_ADMIN.'ajax/');
define('PATH_ADMIN_JS',			PATH_ADMIN.'js/');

// PHP - SYSTEM
define('PATH_LANGUAGES',		PATH_ROOT.'languages/');
define('PATH_PLUGINS',			PATH_ROOT.'plugins/');
define('PATH_THEMES',			PATH_ROOT.'themes/');

define('PATH_PUBLIC',			PATH_CONTENT.'public/');
define('PATH_PRIVATE',			PATH_CONTENT.'private/');
define('PATH_TMP',				PATH_CONTENT.'tmp/');

define('PATH_PAGES',			PATH_PUBLIC.'pages/');
define('PATH_POSTS',			PATH_PUBLIC.'posts/');
define('PATH_COMMENTS',			PATH_PUBLIC.'comments/');
define('PATH_UPLOAD',			PATH_PUBLIC.'upload/');
define('PATH_PLUGINS_DB',		PATH_PRIVATE.'plugins/');

// =====================================================================
//	FILES
// =====================================================================
// Private
define('FILE_XML_POSTS',		PATH_PRIVATE . 'posts.xml');
define('FILE_XML_PAGES',		PATH_PRIVATE . 'pages.xml');
define('FILE_XML_TAGS',			PATH_PRIVATE . 'tags.xml');
define('FILE_XML_CATEGORIES',	PATH_PRIVATE . 'categories.xml');
define('FILE_XML_CONFIG',		PATH_PRIVATE . 'config.xml');
define('FILE_XML_NOTIFICATIONS',PATH_PRIVATE . 'notifications.xml');
define('FILE_XML_COMMENTS',		PATH_PRIVATE . 'comments.xml');
define('FILE_XML_USERS',		PATH_PRIVATE . 'users.xml');
define('FILE_SHADOW',			PATH_PRIVATE . 'shadow.php');
define('FILE_KEYS',				PATH_PRIVATE . 'keys.php');

// =====================================================================
//	CLEANING
// =====================================================================
unset($current_path);

?>

================================================
FILE: admin/boot/rules/10-pager.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $url
 * $settings
 * $_DB_POST

 * Return
 * (array) $pager
*/

$pager_next = $url['number'] + 1;
$pager_prev = $url['number'] - 1;

if($settings['friendly_urls'])
{
	if($url['category']!=null)
	{
		$href_older = HTML_PATH_ROOT.'category/'.$url['category'].'/page-'.$pager_next;
		$href_newer = HTML_PATH_ROOT.'category/'.$url['category'].'/page-'.$pager_prev;
	}
	else
	{
		$href_older = HTML_PATH_ROOT.'page-'.$pager_next;
		$href_newer = HTML_PATH_ROOT.'page-'.$pager_prev;
	}
}
else
{
	if($url['category']!=null)
	{
		$href_older = HTML_PATH_ROOT.'index.php?controller=blog&action=view&category='.$url['category'].'&number='.$pager_next;
		$href_newer = HTML_PATH_ROOT.'index.php?controller=blog&action=view&category='.$url['category'].'&number='.$pager_prev;
	}
	else
	{
		$href_older = HTML_PATH_ROOT.'index.php?controller=blog&action=view&number='.$pager_next;
		$href_newer = HTML_PATH_ROOT.'index.php?controller=blog&action=view&number='.$pager_prev;
	}
}

$num_posts = $_DB_POST->get_count();
$num_pages = (int) ceil($num_posts / $settings['items_page']) - 1;

$show_older = $num_pages > $url['number'];
$show_newer = $url['number'] > 0;

$pager = array(
	'next'=>$pager_next,		// (int) Next integer page
	'prev'=>$pager_prev,		// (int) Previus integer page
	'current'=>$url['number'],	// (int) Current integer page
	'href_older'=>$href_older,	// (string) Link to older posts
	'href_newer'=>$href_newer,	// (string) Link to newers posts
	'show_older'=>$show_older,	// (Boolean) If there more older posts to show
	'show_newer'=>$show_newer,	// (Boolean) If there more newers posts to show
	'num_posts'=>$num_posts,	// (int) Number of posts
	'num_pages'=>$num_pages		// (int) Number of pages
);

// =====================================================================
// CLEANING
// =====================================================================
unset($pager_next);
unset($pager_prev);
unset($href_older);
unset($href_newer);
unset($show_older);
unset($show_newer);
unset($num_posts);
unset($num_pages);

?>

================================================
FILE: admin/boot/rules/10-seo.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $settings

 * Return
 * (array) $seo
*/

	$seo['site_title'] = $settings['seo_site_title'];
	$seo['site_description'] = $settings['seo_site_description'];
	$seo['keywords'] = $settings['seo_keywords'];
	$seo['robots'] = $settings['seo_robots'];

	$seo['google_code'] = $settings['seo_google_code'];
	$seo['bing_code'] = $settings['seo_bing_code'];

	$seo['friendly_urls'] = $settings['friendly_urls'];

	$seo['generator'] = 'Nibbleblog';
	$seo['author'] = $settings['seo_author'];

// =====================================================================
// CLEANING
// =====================================================================


?>

================================================
FILE: admin/boot/rules/10-session.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

if( !isset($_SESSION['nibbleblog']) )
{
	Session::init();
}

?>

================================================
FILE: admin/boot/rules/11-admin.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

// =====================================================================
//	VARIABLES
// =====================================================================
$where_am_i[0] = 'admin';
$default_template = 'easy4';

$layout = array(
	'controller'=>'user/login.bit',
	'view'=>'user/login.bit',
	'template'=>'login/index.bit',
	'title'=>$_LANG['SIGN_IN_TO_NIBBLEBLOG_ADMIN_AREA'],
	'id_sidebar'=>null
);

// =====================================================================
//	CONTROLLER, VIEW and TEMPLATE
// =====================================================================

$controllers['dashboard']['view'] 		= array('security'=>true, 'title'=>$_LANG['DASHBOARD'], 'controller'=>'view', 'view'=>'view', 'template'=>$default_template, 'id_sidebar'=>1);

$controllers['page']['new']		 		= array('security'=>true, 'title'=>$_LANG['NEW_PAGE'], 'controller'=>'new', 'view'=>'new', 'template'=>$default_template, 'id_sidebar'=>2);
$controllers['post']['new_simple'] 		= array('security'=>true, 'title'=>$_LANG['NEW_SIMPLE_POST'], 'controller'=>'new', 'view'=>'new_simple', 'template'=>$default_template, 'id_sidebar'=>3);
$controllers['post']['new_video'] 		= array('security'=>true, 'title'=>$_LANG['NEW_VIDEO_POST'], 'controller'=>'new', 'view'=>'new_video', 'template'=>$default_template, 'id_sidebar'=>4);
$controllers['post']['new_quote'] 		= array('security'=>true, 'title'=>$_LANG['NEW_QUOTE_POST'], 'controller'=>'new', 'view'=>'new_quote', 'template'=>$default_template, 'id_sidebar'=>5);

$controllers['page']['edit']	 		= array('security'=>true, 'title'=>$_LANG['NEW_PAGE'], 'controller'=>'edit', 'view'=>'new', 'template'=>$default_template, 'id_sidebar'=>6);
$controllers['post']['edit_simple'] 	= array('security'=>true, 'title'=>$_LANG['EDIT_POST'], 'controller'=>'edit', 'view'=>'edit', 'template'=>$default_template, 'id_sidebar'=>7);
$controllers['post']['edit_video'] 		= array('security'=>true, 'title'=>$_LANG['EDIT_POST'], 'controller'=>'edit', 'view'=>'edit', 'template'=>$default_template, 'id_sidebar'=>8);
$controllers['post']['edit_quote'] 		= array('security'=>true, 'title'=>$_LANG['EDIT_POST'], 'controller'=>'edit', 'view'=>'new_quote', 'template'=>$default_template, 'id_sidebar'=>9);
$controllers['categories']['edit']		= array('security'=>true, 'title'=>$_LANG['MANAGE_CATEGORIES'], 'controller'=>'edit', 'view'=>'edit', 'template'=>$default_template, 'id_sidebar'=>10);

$controllers['page']['list']	 		= array('security'=>true, 'title'=>$_LANG['MANAGE_PAGES'], 'controller'=>'list', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>11);
$controllers['post']['list'] 			= array('security'=>true, 'title'=>$_LANG['MANAGE_POSTS'], 'controller'=>'list', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>12);
$controllers['categories']['list']		= array('security'=>true, 'title'=>$_LANG['MANAGE_CATEGORIES'], 'controller'=>'list', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>13);

$controllers['comments']['list']		= array('security'=>true, 'title'=>$_LANG['MANAGE_COMMENTS'], 'controller'=>'list', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>14);
$controllers['comments']['settings']	= array('security'=>true, 'title'=>$_LANG['COMMENT_SETTINGS'], 'controller'=>'settings', 'view'=>'settings', 'template'=>$default_template, 'id_sidebar'=>15);

$controllers['settings']['general']		= array('security'=>true, 'title'=>$_LANG['GENERAL_SETTINGS'], 'controller'=>'general', 'view'=>'general', 'template'=>$default_template, 'id_sidebar'=>16);
$controllers['settings']['advanced']	= array('security'=>true, 'title'=>$_LANG['ADVANCED_SETTINGS'], 'controller'=>'advanced', 'view'=>'advanced', 'template'=>$default_template, 'id_sidebar'=>17);
$controllers['settings']['regional']	= array('security'=>true, 'title'=>$_LANG['REGIONAL_SETTINGS'], 'controller'=>'regional', 'view'=>'regional', 'template'=>$default_template, 'id_sidebar'=>18);
$controllers['settings']['image']		= array('security'=>true, 'title'=>$_LANG['IMAGE_SETTINGS'], 'controller'=>'image', 'view'=>'image', 'template'=>$default_template, 'id_sidebar'=>19);
$controllers['settings']['themes']		= array('security'=>true, 'title'=>$_LANG['CHANGE_THEME'], 'controller'=>'themes', 'view'=>'themes', 'template'=>$default_template, 'id_sidebar'=>20);
$controllers['settings']['username']	= array('security'=>true, 'title'=>$_LANG['USERNAME_AND_PASSWORD'], 'controller'=>'username', 'view'=>'username', 'template'=>$default_template, 'id_sidebar'=>21);
$controllers['settings']['notifications']= array('security'=>true,'title'=>$_LANG['NOTIFICATIONS'], 'controller'=>'notifications', 'view'=>'notifications', 'template'=>$default_template, 'id_sidebar'=>22);
$controllers['settings']['seo'] 		 = array('security'=>true,'title'=>$_LANG['SEO_OPTIONS'], 'controller'=>'seo', 'view'=>'seo', 'template'=>$default_template, 'id_sidebar'=>23);

$controllers['plugins']['list']			= array('security'=>true, 'title'=>$_LANG['PLUGINS'], 'controller'=>'list', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>24);
$controllers['plugins']['install']		= array('security'=>true, 'title'=>$_LANG['PLUGINS'], 'controller'=>'install', 'view'=>'config', 'template'=>$default_template, 'id_sidebar'=>25);
$controllers['plugins']['uninstall']	= array('security'=>true, 'title'=>$_LANG['PLUGINS'], 'controller'=>'uninstall', 'view'=>'list', 'template'=>$default_template, 'id_sidebar'=>26);
$controllers['plugins']['config']		= array('security'=>true, 'title'=>$_LANG['PLUGINS'], 'controller'=>'config', 'view'=>'config', 'template'=>$default_template, 'id_sidebar'=>27);

$controllers['user']['logout']			= array('security'=>true,  'title'=>$_LANG['LOGOUT'], 'controller'=>'logout', 'view'=>'logout', 'template'=>'login', 'id_sidebar'=>28);
$controllers['user']['login']			= array('security'=>false, 'title'=>$_LANG['SIGN_IN_TO_NIBBLEBLOG_ADMIN_AREA'], 'controller'=>'login', 'view'=>'login', 'template'=>'login', 'id_sidebar'=>29);
$controllers['user']['forgot']			= array('security'=>false, 'title'=>$_LANG['CHANGE_PASSWORD'], 'controller'=>'forgot', 'view'=>'forgot', 'template'=>$default_template, 'id_sidebar'=>30);
$controllers['user']['send_forgot']		= array('security'=>false, 'title'=>$_LANG['FORGOT_PASSWORD'], 'controller'=>'send_forgot', 'view'=>'send_forgot', 'template'=>'login', 'id_sidebar'=>31);

if(isset($controllers[$url['controller']][$url['action']]))
{
	$dirname = $url['controller'].'/';
	$parameters = $controllers[$url['controller']][$url['action']];

	if($parameters['security'])
	{
		if(!isset($Login))
			exit('Nibbleblog security error - Obj $Login not found');

		if(!$Login->is_logged())
			exit('Nibbleblog security error - User not logged');
	}

	$layout['controller'] 	= $dirname.$parameters['controller'].'.bit';
	$layout['view'] 	= $dirname.$parameters['view'].'.bit';
	$layout['template'] 	= $parameters['template'].'/index.bit';
	$layout['title'] 	= $parameters['title'];
	$layout['id_sidebar']	= isset($parameters['id_sidebar'])?$parameters['id_sidebar']:null;
}

?>

================================================
FILE: admin/boot/rules/11-security.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

// Prevent CSRF
if( ($_SERVER['REQUEST_METHOD'] == 'POST') && $Login->is_logged() )
{
	$token = isset($_POST['token']) ? Validation::sanitize_html($_POST['token']) : false;

	if( !Session::validFormToken($token) )
	{
		$Login->logout();
		Redirect::controller('admin','user','login');
	}
	else
	{
		unset($_POST['token']);
	}
}

?>

================================================
FILE: admin/boot/rules/2-objects.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $session_started

 * Return
 * (object) $Login
 * (object) $Resize
 * (object) $Comment
 * (object) $Post
 * (object) $_DB_SETTINGS
 * (object) $_DB_CATEGORIES
 * (object) $_DB_NOTIFICATIONS
 * (object) $_DB_POST
 * (object) $_DB_PAGES
 * (object) $_DB_COMMENTS
 * (object) $_DB_USERS

*/

// =====================================================================
//	CLASS
// =====================================================================
require(PATH_KERNEL . 'plugin.class.php');
require(PATH_KERNEL . 'defensio/Defensio.php');

// Helpers
require(PATH_HELPERS . 'resize.class.php');

// Static Helpers
require(PATH_HELPERS . 'cookie.class.php');
require(PATH_HELPERS . 'crypt.class.php');
require(PATH_HELPERS . 'date.class.php');
require(PATH_HELPERS . 'email.class.php');
require(PATH_HELPERS . 'filesystem.class.php');
require(PATH_HELPERS . 'html.class.php');
require(PATH_HELPERS . 'image.class.php');
require(PATH_HELPERS . 'net.class.php');
require(PATH_HELPERS . 'number.class.php');
require(PATH_HELPERS . 'url.class.php');
require(PATH_HELPERS . 'redirect.class.php');
require(PATH_HELPERS . 'session.class.php');
require(PATH_HELPERS . 'social.class.php');
require(PATH_HELPERS . 'text.class.php');
require(PATH_HELPERS . 'validation.class.php');
require(PATH_HELPERS . 'video.class.php');
require(PATH_HELPERS . 'language.class.php');
require(PATH_HELPERS . 'blog.class.php');
require(PATH_HELPERS . 'post.class.php');
require(PATH_HELPERS . 'page.class.php');
require(PATH_HELPERS . 'pager.class.php');
require(PATH_HELPERS . 'category.class.php');

// Database
require(PATH_DB . 'nbxml.class.php');
require(PATH_DB . 'db_posts.class.php');
require(PATH_DB . 'db_pages.class.php');
require(PATH_DB . 'db_tags.class.php');
require(PATH_DB . 'db_categories.class.php');
require(PATH_DB . 'db_settings.class.php');
require(PATH_DB . 'db_comments.class.php');
require(PATH_DB . 'db_notifications.class.php');
require(PATH_DB . 'db_users.class.php');

// Api
require(PATH_API . 'login.class.php');
require(PATH_API . 'comment.class.php');

// =====================================================================
//	OBJECTS
// =====================================================================
// Helpers
$Resize				= new Resize();
$Language			= new Language();

// Level 1
$_DB_SETTINGS		= new DB_SETTINGS( FILE_XML_CONFIG ); 				if(!isset($_DB_SETTINGS->xml))exit('Nibbleblog security error - Failed to load $_DB_SETTINGS');
$_DB_CATEGORIES		= new DB_CATEGORIES( FILE_XML_CATEGORIES );			if(!isset($_DB_CATEGORIES->xml))exit('Nibbleblog security error - Failed to load $_DB_CATEGORIES');
$_DB_POST			= new DB_POSTS( FILE_XML_POSTS );					if(!isset($_DB_POST->xml))exit('Nibbleblog security error - Failed to load loading $_DB_POST');
$_DB_PAGES			= new DB_PAGES( FILE_XML_PAGES );					if(!isset($_DB_PAGES->xml))exit('Nibbleblog security error - Failed to load $_DB_PAGES');
$_DB_USERS			= new DB_USERS( FILE_XML_USERS );					if(!isset($_DB_USERS->xml))exit('Nibbleblog security error - Failed to load $_DB_USERS');
$_DB_TAGS			= new DB_TAGS( FILE_XML_TAGS );						if(!isset($_DB_TAGS->xml))exit('Nibbleblog security error - Failed to load $_DB_TAGS');

// Level 2
$_DB_COMMENTS		= new DB_COMMENTS( FILE_XML_COMMENTS, $_DB_SETTINGS->get() );			if(!isset($_DB_COMMENTS->xml))exit('Nibbleblog security error - Failed to load $_DB_COMMENTS');
$_DB_NOTIFICATIONS 	= new DB_NOTIFICATIONS( FILE_XML_NOTIFICATIONS, $_DB_SETTINGS->get() );	if(!isset($_DB_NOTIFICATIONS->xml))exit('Nibbleblog security error - Failed to load $_DB_NOTIFICATIONS');

// Level 3
// API for humans
$Comment			= new Comment($_DB_COMMENTS, $_DB_NOTIFICATIONS, $_DB_SETTINGS->get());
$Login				= new Login($session_started, $_DB_USERS);

?>

================================================
FILE: admin/boot/rules/3-variables.bit
================================================
<?php
/*
* Nibbleblog
* http://www.nibbleblog.com

* Require
* $_DB_CATEGORIES
* $_DB_SETTINGS

* Return
* (array) $settings
* (array) $categories
*/

// =====================================================================
//	VARIABLES
// =====================================================================
// Settings
$settings = $_DB_SETTINGS->get();

// Categories
$categories = $_DB_CATEGORIES->get_all();

// Where am I ?
$where_am_i[0] = 'blog';
$where_am_i[1] = null;

// Variables for ajax boot
$error = false;
$safe = array();

// =====================================================================
//	CONSTANTS
// =====================================================================
define('COMMENT_INTERVAL',		30);

define('NOTIFICATIONS_AMOUNT',	8);
define('LAST_COMMENTS_AMOUNT',	8);
define('COMMENTS_AMOUNT',		10);
define('POSTS_AMOUNT',			10);
define('PAGES_AMOUNT',			15);

define('BLACKLIST_SAVED_REQUESTS',	15);
define('BLACKLIST_LOCKING_AMOUNT',	5);		// Number of failures before being locked
define('BLACKLIST_TIME',			5);		// Time in minutes the ip will be blocked

define('NOTIFICATION_DATE_FORMAT',	'%d %B - %H:%M:%S');
define('LAST_COMMENT_DATE_FORMAT',	'%d %B - %H:%M:%S');
define('COMMENT_DATE_FORMAT',		'%I:%M:%S %p - %m/%d/%y');
define('POST_DATE_FORMAT',			'%I:%M:%S %p - %m/%d/%y');

define('BLOG_URL',			$settings['url']);

// =====================================================================
//	HTML
// =====================================================================
define('HTML_PATH_ROOT',			$settings['path']);

define('HTML_PATH_ADMIN',			HTML_PATH_ROOT.'admin/');
define('HTML_PATH_ADMIN_TEMPLATES',	HTML_PATH_ADMIN.'templates/');
define('HTML_PATH_ADMIN_JS',		HTML_PATH_ADMIN.'js/');
define('HTML_PATH_ADMIN_AJAX',		HTML_PATH_ADMIN.'ajax/');

define('HTML_PATH_THEMES',			HTML_PATH_ROOT.'themes/');
define('HTML_PATH_PLUGINS',			HTML_PATH_ROOT.'plugins/');
define('HTML_PATH_PLUGINS_DB',		HTML_PATH_ROOT.'content/private/plugins/');
define('HTML_PATH_UPLOAD',			HTML_PATH_ROOT.'content/public/upload/');

// =====================================================================
//	THEME
// =====================================================================
// PHP
define('THEME_ROOT',			PATH_THEMES . $settings['theme'] . '/');
define('THEME_CONTROLLERS',		THEME_ROOT.'controllers/');
define('THEME_VIEWS',			THEME_ROOT.'views/');
define('THEME_TEMPLATES',		THEME_ROOT.'templates/');
define('THEME_CSS',				THEME_ROOT.'css/');
define('THEME_IMG',				THEME_ROOT.'css/img/');
define('THEME_LANGUAGE',		THEME_ROOT.'language/');

// HTML
define('HTML_THEME_ROOT',		HTML_PATH_THEMES . $settings['theme'] . '/');
define('HTML_THEME_CSS',		HTML_THEME_ROOT.'css/');
define('HTML_THEME_IMG',		HTML_THEME_ROOT.'css/img/');
define('HTML_THEME_JS',			HTML_THEME_ROOT.'js/');

// =====================================================================
//	JAVASCRIPT
// =====================================================================
// Comment if you are using jQuery from other server
define('JS_JQUERY',				HTML_PATH_ADMIN_JS.'jquery/jquery.js');

// Uncomment if you want to use jQuery from Google's servers
//define('JS_JQUERY',			'//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js');

// Uncomment if you want to use jQuery from jQuery's servers
//define('JS_JQUERY',			'http://code.jquery.com/jquery-latest.min.js');
?>

================================================
FILE: admin/boot/rules/4-blacklist.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

if($_DB_USERS->blacklist())
	exit('Nibbleblog security error - Blacklist protection');

?>

================================================
FILE: admin/boot/rules/4-remove_magic.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $_POST

 * Return
 * (array) $_POST
*/

// =====================================================================
//	MAGIC QUOTES
// =====================================================================

// Try disable magic quotes at runtime
if(get_magic_quotes_runtime())
{
	set_magic_quotes_runtime(false);
}

if(get_magic_quotes_gpc())
{
	$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
	while (list($key, $val) = each($process)) {
		foreach ($val as $k => $v) {
			unset($process[$key][$k]);
			if (is_array($v)) {
				$process[$key][stripslashes($k)] = $v;
				$process[] = &$process[$key][stripslashes($k)];
			} else {
				$process[$key][stripslashes($k)] = stripslashes($v);
			}
		}
	}
	unset($process);
}

?>

================================================
FILE: admin/boot/rules/5-regional.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $settings

 * Return
 * (boolean) $translit_enable
*/

// Include the language
include(PATH_LANGUAGES.'en_US.bit');
include(PATH_LANGUAGES.$settings['language'].'.bit');
$Language->set($_LANG);

// Set the timezone
Date::set_timezone($settings['timezone']);

// Set the locale
Date::set_locale($settings['locale']);

// Translit
$translit_enable = isset($_LANG['TRANSLIT'])?$_LANG['TRANSLIT']:false;

?>

================================================
FILE: admin/boot/rules/5-url.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $_GET

 * Return
 * (array) $url
*/

// =====================================================================
//	VARIABLES URL
// =====================================================================
$url = array(
			'controller'=>null,
			'action'=>null,
			'id_post'=>null,
			'id_page'=>null,
			'id_user'=>null,
			'id_cat'=>null,
			'number'=>0,
			'plugin'=>null,
			'category'=>null,
			'tag'=>null,
			'other'=>null,
			'post'=>null,
			'sync'=>null,
			'page'=>null
);

if( isset($_GET['controller']) ){ $url['controller'] = Validation::sanitize_html($_GET['controller']); }

if( isset($_GET['action']) ) { $url['action'] = Validation::sanitize_html($_GET['action']); }

if( isset($_GET['id_post']) ) { $url['id_post'] = Validation::sanitize_int($_GET['id_post']); }

if( isset($_GET['id_page']) ) { $url['id_page'] = Validation::sanitize_int($_GET['id_page']); }

if( isset($_GET['id_cat']) ) { $url['id_cat'] = Validation::sanitize_int($_GET['id_cat']); }

if( isset($_GET['id_user']) ) { $url['id_user'] = Validation::sanitize_int($_GET['id_user']); }

if( isset($_GET['number']) ) { $url['number'] = Validation::sanitize_int($_GET['number']); }

if( isset($_GET['plugin']) ) { $url['plugin'] = Validation::sanitize_html($_GET['plugin']); }

if( isset($_GET['category']) ) { $url['category'] = Validation::sanitize_html($_GET['category']); }

if( isset($_GET['tag']) ) { $url['tag'] = Validation::sanitize_html($_GET['tag']); }

if( isset($_GET['other']) ) { $url['other'] = Validation::sanitize_html($_GET['other']); }

if( isset($_GET['post']) ) { $url['post'] = Validation::sanitize_html($_GET['post']); }

if( isset($_GET['sync']) ) { $url['sync'] = Validation::sanitize_html($_GET['sync']); }

if( isset($_GET['page']) ) { $url['page'] = Validation::sanitize_html($_GET['page']); }

?>

================================================
FILE: admin/boot/rules/8-posts_pages.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $url
 * $settings
 * $_DB_CATEGORIES
 * $_DB_POST
 * $_DB_COMMENTS
 * $_LANG

 * Return
 * (array) $posts
 * (array) $post
 * (array) $pages
 * (array) $page
 * (boolean) $page_not_found
*/

$page_not_found = false;

// =====================================================================
// PAGES
// =====================================================================
$page = array();
$pages = $_DB_PAGES->get_all();

// Filter by page or Default homepage
if( ($url['id_page']!==null) || ($url['page']!==null) || ($settings['default_homepage']!=0) )
{
	if($url['id_page']!==null)
		$args = array('id'=>$url['id_page']);
	elseif($url['page']!==null)
		$args = array('slug'=>$url['page']);
	elseif($settings['default_homepage']!=0)
		$args = array('id'=>$settings['default_homepage']);

	// Get page
	$tmp = $_DB_PAGES->get($args);

	if($tmp===false)
		$page_not_found = true;
	else
		$page = $tmp;
}

if(!empty($page))
{
	$register = $page;
	array_push($pages, $page);
}

// ---- PERMALINKS
// ---- PUBLISH DATE
foreach($pages as $key=>$value)
{
	$page = $pages[$key];

	// Publish date
	$pages[$key]['pub_date'] = Page::published();

	// Modified date
	$pages[$key]['mod_date'] = Page::modified();

	// Permalink
	$pages[$key]['permalink'] = Page::permalink();
}

if(!empty($register))
	$page = array_pop($pages);

// =====================================================================
// POSTS
// =====================================================================
$post = array();
$posts = array();
$category = array();
$tag = array();

// ---- POSTS FILTER BY CATEGORY
if($url['category']!==null)
{
	// Get the category ID
	$category = $_DB_CATEGORIES->get_by_slug( array('slug'=>$url['category']) );

	if($category!==false)
	{
		// Posts by category
		$posts = $_DB_POST->get_list_by_category( array('page'=>$url['number'], 'amount'=>$settings['items_page'], 'id_cat'=>$category['id']) );
	}
	else
	{
		$page_not_found = true;
	}
}
// ---- POSTS FILTER BY TAG
elseif($url['tag']!==null)
{
	// Get IDs posts linked with the tag
	$id_posts = $_DB_TAGS->get_all_posts(array('name'=>$url['tag']));

	if($id_posts!==false)
	{
		$tag = $url['tag'];

		arsort($id_posts);

		foreach($id_posts as $id)
		{
			array_push($posts, $_DB_POST->get( array('id'=>$id) ));
		}
	}
	else
	{
		$page_not_found = true;
	}
}
// ---- PARTICULAR POST
elseif( ($url['id_post']!==null) || ($url['post']!==null) )
{
	if($url['id_post']!==null)
		$args = array('id'=>$url['id_post']);
	else
		$args = array('slug'=>$url['post']);

	// Get post
	$tmp = $_DB_POST->get($args);

	if($tmp===false)
		$page_not_found = true;
	else
		$posts[0] = $tmp;
}
// ---- POSTS FILTER BY BLOG
else
{
	// Posts by page
	$posts = $_DB_POST->get_list_by_page( array('page'=>$url['number'], 'amount'=>$settings['items_page']) );
}


// ---- COMMENTS
// ---- PERMALINKS
// ---- CATEGORY
// ---- PUBLISH DATE
// ---- TAGS
foreach($posts as $key=>$value)
{
	$post = $posts[$key];

	// Tags
	$posts[$key]['tags'] = Post::tags(true); //$_DB_TAGS->get_by_idpost( array('id_post'=>$value['id']) );

	// Comments
	$posts[$key]['comments'] = Post::comments(); // $_DB_COMMENTS->get_list_by_post( array('id_post'=>$value['id']) );

	// Category
	$posts[$key]['category'] = Post::category(); //$category['name'];

	// Publish date
	$posts[$key]['pub_date'] = Post::published(); //Date::format($posts[$key]['pub_date_unix'], $settings['timestamp_format']);

	// Modified date
	$posts[$key]['mod_date'] = Post::modified(); //Date::format($posts[$key]['mod_date_unix'], $settings['timestamp_format']);

	// Permalink
	$posts[$key]['permalink'] = Post::permalink(); //Url::post($posts[$key]);
}

if(isset($posts[0]))
{
	$post = $posts[0];
}

// =====================================================================
// CLEANING
// =====================================================================
unset($tmp);

?>

================================================
FILE: admin/boot/rules/8-posts_pages_feed.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require

 * Return

*/

// =====================================================================
// PAGES
// =====================================================================
$pages = $_DB_PAGES->get_all();

foreach($pages as $key=>$value)
{
	$page = $pages[$key];

	// Publish date
	$pages[$key]['pub_date'] = Page::published();

	// Modified date
	$pages[$key]['mod_date'] = Page::modified();

	// Permalink
	$pages[$key]['permalink'] = Page::permalink();
}

// =====================================================================
// POSTS
// =====================================================================
$posts = array();

// ---- POSTS FILTER BY CATEGORY
if($url['category']!==null)
{
	// Get the category ID
	$category = $_DB_CATEGORIES->get_by_slug( array('slug'=>$url['category']) );

	if($category!==false)
	{
		// Posts by category
		$posts = $_DB_POST->get_list_by_category( array('page'=>0, 'amount'=>$settings['items_rss'], 'id_cat'=>$category['id']) );
	}
}
else
{
	$posts = $_DB_POST->get_list_by_page( array('page'=>0, 'amount'=>$settings['items_rss']) );
}

// Recondition Posts
foreach($posts as $key=>$value)
{
	$post = $posts[$key];

	// Category
	$posts[$key]['category'] = Post::category(); //$category['name'];

	// Publish date
	$posts[$key]['pub_date'] = Post::published(); //Date::format($posts[$key]['pub_date_unix'], $settings['timestamp_format']);

	// Modified date
	$posts[$key]['mod_date'] = Post::modified(); //Date::format($posts[$key]['mod_date_unix'], $settings['timestamp_format']);

	// Permalink
	$posts[$key]['permalink'] = Post::permalink(); //Url::post($posts[$key]);
}

// =====================================================================
// CLEANING
// =====================================================================
unset($post);
unset($page);

?>

================================================
FILE: admin/boot/rules/8-posts_pages_sitemap.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require

 * Return

*/

// =====================================================================
// PAGES
// =====================================================================
$pages = $_DB_PAGES->get_all();

foreach($pages as $key=>$value)
{
	$page = $pages[$key];

	$pages[$key]['permalink'] = Page::permalink();
}

// =====================================================================
// POSTS
// =====================================================================
$posts = $_DB_POST->get_all();

foreach($posts as $key=>$value)
{

	$post = $posts[$key];

	$posts[$key]['permalink'] = Post::permalink();

}

// =====================================================================
// CLEANING
// =====================================================================
unset($post);
unset($page);

?>


================================================
FILE: admin/boot/rules/98-blog.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

// =====================================================================
//	THEME CONFIG
// =====================================================================
require(THEME_ROOT.'config.bit');

// =====================================================================
//	VARIABLES
// =====================================================================

$layout = array(
	'controller'=>'blog/view.bit',
	'view'=>'blog/view.bit',
	'template'=>'default.bit',
	'title'=>$seo['site_title'],
	'description'=>$seo['site_description'],
	'author'=>$seo['author'],
	'robots'=>$seo['robots'],
	'keywords'=>$seo['keywords'],
	'generator'=>$seo['generator'],
	'feed'=>HTML_PATH_ROOT.'feed.php',
	'canonical'=>BLOG_URL
);

// =====================================================================
//	CONTROLLER, VIEW and TEMPLATE
// =====================================================================

if( ($url['controller']!=null) && ($url['action']!=null) )
{
	$layout['controller']	= $url['controller'].'/'.$url['action'].'.bit';
	$layout['view']			= $url['controller'].'/'.$url['action'].'.bit';

	// Filter by Post
	if( (($url['id_post']!==null) || ($url['post']!==null)) && !empty($post) )
	{
		$layout['title'] 		.= !empty($post['title'])?' - '.$post['title']:'';
		$layout['description']	= $post['description'];
		$layout['keywords']		= implode(',', array_map('array_pop', $post['tags']));
		$layout['canonical'] 	= Url::post($post, true);

		$where_am_i[1] = 'post';
	}
	// Filter by Page
	elseif( (($url['id_page']!==null) || ($url['page']!==null)) && !empty($page) )
	{
		$layout['title'] 		.= !empty($page['title'])?' - '.$page['title']:'';
		$layout['description']	= $page['description'];
		$layout['keywords']		= $page['keywords'];
		$layout['canonical'] 	= Url::page($page, true);

		$where_am_i[1] = 'page';
	}
	// Filter by Category
	elseif( ($url['category']!==null) && !empty($category) )
	{
		$layout['title'] 		.= ' - '.$category['name'];
		$layout['canonical']	= Url::category($category['slug'], true);

		$where_am_i[1] = 'category';
	}
	// Filter by Tag
	elseif( ($url['tag']!==null) && !empty($tag) )
	{
		$layout['title'] 		.= ' - '.$url['tag'];
		$layout['canonical']	= Url::tag($tag, true);

		$where_am_i[1] = 'tag';
	}

	// Page 404
	if(!file_exists(THEME_VIEWS.$layout['view']) || $page_not_found )
	{
		$layout['controller']	= 'error/404.bit';
		$layout['view']			= 'error/404.bit';
		$layout['title'] 		.= ' - Error 404';

		$where_am_i[1] = '404';
	}
}
// Check default homepage
else
{
	if($settings['default_homepage']!=0)
	{
		$layout['controller']	= 'page/view.bit';
		$layout['view']			= 'page/view.bit';
	}
}

if(isset($theme['template'][$url['controller']]))
{
	$layout['template'] = $theme['template'][$url['controller']];
}

if($settings['friendly_urls'])
{
	$layout['feed'] = HTML_PATH_ROOT.'feed/';
}

?>

================================================
FILE: admin/boot/rules/98-comments.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

if($_SERVER['REQUEST_METHOD'] == 'POST')
{
	foreach($_POST as $key=>$value)
		$Comment->set_form(Validation::sanitize_html($key), Validation::sanitize_html($value));

	// Check: fields are complete
	if( Text::is_empty($_POST['author_email']) || Text::is_empty($_POST['content']) )
	{
		Session::set_alert($_LANG['PLEASE_COMPLETE_ALL_FIELDS']);
	}
	else
	{
		// XSS protection
		if(isset($_POST['hash']))
		{
			// XSS protection
			if($Comment->get_hash()===Validation::sanitize_html($_POST['hash']))
			{
				// Post allows comments
				if(isset($posts[0]['id']) && isset($posts[0]['allow_comments']))
				{
					$safe					= array();
					$safe['id_post'] 		= $posts[0]['id'];
					$safe['author_name']	= $Comment->form('author_name');
					$safe['author_email']	= $Comment->form('author_email');
					$safe['content']		= $Comment->form('content');
					$safe['author_ip']		= Net::get_user_ip();

					// Check: Anti-spam / Approve / Sanitize
					if($Comment->add($safe)===false)
						Session::set_alert($_LANG['YOUR_COMMENT_IS_UNDER_REVIEW_IT_WILL_BE']);

				}
			}
		}
	}
}

// Set hash comment
$Comment->set_form('hash', Crypt::get_hash(time(),time()) );

?>

================================================
FILE: admin/boot/rules/98-constants.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

// =====================================================================
//	SYSTEM INFORMATION
// =====================================================================
define('NIBBLEBLOG_VERSION',		'4.0.5');
define('NIBBLEBLOG_NAME',		'Espresso');
define('NIBBLEBLOG_RELEASE_DATE',	'05/09/2015');
define('NIBBLEBLOG_BUILD',		2392406953);

// =====================================================================
//	DEBUG
// =====================================================================
define('DEBUG_MODE',	TRUE);

error_reporting(0);

if(DEBUG_MODE)
{
	ini_set("display_errors", 1);
	ini_set('display_startup_errors',1);
	ini_set("track_errors", 1);
	ini_set("html_errors", 1);
	error_reporting(E_ALL | E_STRICT | E_NOTICE);
}

header('Content-Type: text/html; charset=utf-8');

?>

================================================
FILE: admin/boot/rules/98-plugins.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 * $settings

 * Return
 * (array) $plugins
 * (array) $plugins_all
 * (array) $plugins_installed
 * (array) $plugins_by_name
*/

$plugins_on_system = Filesystem::ls(PATH_PLUGINS, '*', 'bit', true, false, false);

// Plugins installed order by position
$plugins = array();

// Plugins installed order by position
$plugins_installed = array();

// All plugins, installed and not
$plugins_all = array();

// Plugins installed, order by position and only has enable the method blog_body()
$plugins_sidebar = array();

// Plugins not installed
$plugins_not_installed = array();

// Plugins installed the keys of the array are the names
$plugins_by_name = array();

foreach($plugins_on_system as $dir_name)
{
	include_once(PATH_PLUGINS.$dir_name.'/plugin.bit');
	$class = 'PLUGIN_'.strtoupper($dir_name);
	$plugins_all[$class] = new $class;

	// Language
	if( @!include_once(PATH_PLUGINS.$dir_name.'/languages/'.$settings['language'].'.bit') )
		include_once(PATH_PLUGINS.$dir_name.'/languages/en_US.bit');

	$plugins_all[$class]->set_attributes(
	array(
		'name'=>$_PLUGIN_CONFIG['LANG']['NAME'],
		'description'=>$_PLUGIN_CONFIG['LANG']['DESCRIPTION'],
		'author'=>$_PLUGIN_CONFIG['DATA']['author'],
		'version'=>$_PLUGIN_CONFIG['DATA']['version'],
		'url'=>$_PLUGIN_CONFIG['DATA']['url']
	));

	// Add plugin dictionary to the general dictionary
	unset($_PLUGIN_CONFIG['LANG']['NAME']);
	unset($_PLUGIN_CONFIG['LANG']['DESCRIPTION']);
	$Language->add($_PLUGIN_CONFIG['LANG']);

	// Set slug name
	include(PATH_PLUGINS.$dir_name.'/languages/en_US.bit');
	$plugins_all[$class]->set_slug_name($_PLUGIN_CONFIG['LANG']['NAME']);

	// If plugin is installed, set the database and get the position
	if($plugins_all[$class]->init_db())
	{
		$position = $plugins_all[$class]->get_field_db('position');

		while( isset($plugins_installed[$position]) )
			$position += 100;

		$plugins_installed[$position] = $plugins_all[$class];
		$plugins_by_name[$dir_name] = $plugins_all[$class];

		if($where_am_i[0]=='blog')
		{
			if($plugins_all[$class]->blog_body())
			{
				$plugins_sidebar[$position] = $plugins_all[$class];
			}
		}
	}
	else
	{
		// Plugins not installed
		array_push($plugins_not_installed, $plugins_all[$class]);
	}
}

// Sort plugins
ksort($plugins_installed);
ksort($plugins_sidebar);

$plugins = $plugins_installed;

// =====================================================================
//	CLEANING
// =====================================================================
unset($plugins_on_system);
unset($_PLUGIN_CONFIG);
unset($class);
unset($position);
unset($merge);

?>

================================================
FILE: admin/boot/rules/99-misc.bit
================================================
<?php
/*
 * Nibbleblog
 * http://www.nibbleblog.com

 * Require
 *

 * Return
 *
*/

// Add your rules here!

?>

================================================
FILE: admin/boot/sitemap.bit
================================================
<?php
// =====================================================================
//	RULES
// =====================================================================
require_once('rules/1-fs_php.bit');
require_once('rules/2-objects.bit');
require_once('rules/3-variables.bit');
require_once('rules/4-blacklist.bit');
require_once('rules/5-url.bit');

require_once('rules/8-posts_pages_sitemap.bit');

require_once('rules/99-misc.bit');
?>


================================================
FILE: admin/controllers/categories/edit.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$safe['id']	= $url['id_cat'];
	$safe['name'] = Validation::sanitize_html( $_POST['name'] );
	$safe['slug'] = Validation::sanitize_html( $_POST['slug'] );
	$safe['position'] = $_POST['position'];

	if( $_DB_CATEGORIES->set($safe) )
	{
		Session::set_alert($_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY']);

		Redirect::controller('admin', 'categories', 'list');
	}
}

// ============================================================================
//	VARIABLES
// ============================================================================
$category = $_DB_CATEGORIES->get( array('id'=>$url['id_cat']) );

if($category === false )
{
	Redirect::controller('admin', 'categories', 'list');
}

$ctrlv['positions_html'] = array_combine(range(1, count($categories)), range(1, count($categories)));

?>

================================================
FILE: admin/controllers/categories/list.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	// New category
	$safe = array();
	$safe['name'] = Validation::sanitize_html( $_POST['name'] );
	$safe['slug'] = Text::clean_url($safe['name'], '-', $translit_enable);
	$safe['position'] = count($categories)+1;

	if(Text::not_empty($safe['name']))
	{
		$_DB_CATEGORIES->add($safe);
	}
}

// ============================================================================
//	VARIABLES
// ============================================================================

// Update categories list
$categories = $_DB_CATEGORIES->get_all();

?>

================================================
FILE: admin/controllers/comments/list.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================
$comments = $_DB_COMMENTS->get_list_by_page(array('page_number'=>$url['number'], 'amount'=>COMMENTS_AMOUNT));

$total_pages = ceil($_DB_COMMENTS->get_count() / COMMENTS_AMOUNT);

?>

================================================
FILE: admin/controllers/comments/settings.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================

// =====================================================================
//	VARIABLES
// =====================================================================
$comment_settings = $_DB_COMMENTS->get_settings();

$spam_control_options = array('0.3'=>$_LANG['LOW_DETECTION_LEVEL'], '0.5'=>$_LANG['MEDIUM_DETECTION_LEVEL'], '0.75'=>$_LANG['HIGH_DETECTION_LEVEL']);

?>

================================================
FILE: admin/controllers/dashboard/view.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

$last_comments = $_DB_COMMENTS->get_last(LAST_COMMENTS_AMOUNT);

$notifications = $_DB_NOTIFICATIONS->get_all();

$drafts = $_DB_POST->get_drafts(array('page'=>0, 'amount'=>5));

?>

================================================
FILE: admin/controllers/page/edit.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$safe = array(
		'id'=>$url['id_page'],
		'title'=>'',
		'content'=>'',
		'description'=>'',
		'keywords'=>'',
		'position'=>0,
		'slug'=>'page'
	);

	// Mode
	if( isset($_POST['button_draft']) )
		$safe['mode'] = 'draft';

	// Title
	if(isset($_POST['title']))
		$safe['title'] = Validation::sanitize_html($_POST['title']);

	// Content
	if(isset($_POST['content']))
		$safe['content'] = $_POST['content'];

	// Content
	if(isset($_POST['keywords']))
		$safe['keywords'] = $_POST['keywords'];

	// Position
	if(isset($_POST['position']))
		$safe['position'] = $_POST['position'];

	// Description for SEO
	if( isset($_POST['description']) )
		$safe['description'] = Validation::sanitize_html( $_POST['description'] );

	// Slug
	if(!empty($_POST['slug']))
		$safe['slug'] = $_POST['slug'];
	elseif(!empty($safe['title']))
		$safe['slug'] = Text::clean_url($safe['title'], '-', $translit_enable);

	// Add page
	$id = $_DB_PAGES->set($safe);

	if($id!==false)
	{
		Session::set_alert($_LANG['PAGE_HAS_BEEN_PUBLISHED_SUCCESSFULLY']);

		Redirect::controller('admin', 'page', 'list');
	}
}

// =====================================================================
//	VARIABLES
// =====================================================================
$ctrlv['page'] = $_DB_PAGES->get( array('id'=>$url['id_page']) );

// Page does not exist
if($ctrlv['page'] == array() )
	Redirect::controller('admin', 'page', 'list');

$count = count($_DB_PAGES->get_all());
$ctrlv['positions_html'] = array_combine(range(1, $count), range(1, $count));

?>

================================================
FILE: admin/controllers/page/list.bit
================================================
<?php

// =====================================================================
//	GET
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'GET' )
{
	if(!empty($url['other']))
	{
		$_DB_SETTINGS->set(array('default_homepage'=>$url['id_page']));

		$_DB_SETTINGS->savetofile();

		$settings['default_homepage'] = $url['id_page'];
	}
}

// =====================================================================
//	VARIABLES
// =====================================================================
$ctrlv['page_list'] = $_DB_PAGES->get_list_by_page_more_drafts( array('page'=>$url['number'], 'amount'=>PAGES_AMOUNT) );

$ctrlv['total_pages'] = ceil(count($ctrlv['page_list']) / PAGES_AMOUNT);

?>

================================================
FILE: admin/controllers/page/new.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{

	$safe = array(
		'title'=>'',
		'content'=>'',
		'description'=>'',
		'keywords'=>'',
		'position'=>0,
		'slug'=>'page'
	);

	// Mode
	if( isset($_POST['button_draft']) )
		$safe['mode'] = 'draft';

	// Title
	if(isset($_POST['title']))
		$safe['title'] = Validation::sanitize_html($_POST['title']);

	// Content
	if(isset($_POST['content']))
		$safe['content'] = $_POST['content'];

	// keywords
	if(isset($_POST['keywords']))
		$safe['keywords'] = $_POST['keywords'];

	// Position
	if(isset($_POST['position']))
		$safe['position'] = $_POST['position'];

	// Description for SEO
	if( isset($_POST['description']) )
		$safe['description'] = Validation::sanitize_html( $_POST['description'] );

	// Slug
	if(!empty($_POST['slug']))
		$safe['slug'] = $_POST['slug'];
	elseif(!empty($safe['title']))
		$safe['slug'] = Text::clean_url($safe['title'], '-', $translit_enable);

	// Add page
	$id = $_DB_PAGES->add($safe);

	if($id!==false)
	{
		Session::set_alert($_LANG['PAGE_HAS_BEEN_PUBLISHED_SUCCESSFULLY']);

		Redirect::controller('admin', 'page', 'list');
	}
}

// =====================================================================
//	VARIABLES
// =====================================================================
$count = count($_DB_PAGES->get_all()) + 1;
$ctrlv['positions_html'] = array_combine(range(1, $count), range(1, $count));

?>

================================================
FILE: admin/controllers/plugins/config.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================
if( ($_SERVER['REQUEST_METHOD'] == 'POST') && isset($_POST['plugin']) )
{
	$plugin = $plugins_all['PLUGIN_'.strtoupper($_POST['plugin'])];

	if( $plugin->init_db() )
	{
		// upload files
		foreach($_FILES as $field_name=>$file)
		{
			$extension = strtolower(pathinfo($file['name'], PATHINFO_EXTENSION));
			$destination = PATH_PLUGINS_DB.$plugin->get_dir_name();
			$complete = $destination.'/'.$field_name.'.'.$extension;

			if( ($extension=='jpg') || ($extension=='gif') || ($extension=='png') )
			{

			// Upload the new file and move
			if(move_uploaded_file($file["tmp_name"], $complete))
			{
				// Resize images if requested by the plugin
				if(isset($_POST[$field_name.'_resize']))
				{
					$width = isset($_POST[$field_name.'_width'])?$_POST[$field_name.'_width']:200;
					$height = isset($_POST[$field_name.'_height'])?$_POST[$field_name.'_height']:200;
					$option = isset($_POST[$field_name.'_option'])?$_POST[$field_name.'_option']:'auto';
					$quality = isset($_POST[$field_name.'_quality'])?$_POST[$field_name.'_quality']:100;

					$Resize->setImage($complete, $width, $height, $option);
					$Resize->saveImage($complete, $quality, true);
				}
			}

			}
		}

		unset($_POST['plugin']);

		// update fields
		$plugin->set_fields_db($_POST);

		Session::set_alert($_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY']);
	}
}
// ============================================================================
//	VARIABLES
// ============================================================================
$ctrlv['plugin'] = $plugins_all['PLUGIN_'.strtoupper($url['plugin'])];
$ctrlv['plugin']->init_db();

$ctrlv['html'] = $ctrlv['plugin']->dashboard_config();

if($ctrlv['html']===false)
	$ctrlv['html'] = '';

$ctrlv['positions_html'] = array_combine(range(1, count($plugins)), range(1, count($plugins)));

$layout['title'] .= ' :: '.$ctrlv['plugin']->get_name();

?>

================================================
FILE: admin/controllers/plugins/install.bit
================================================
<?php

// ============================================================================
//	VARIABLES
// ============================================================================
$plugin = $plugins_all['PLUGIN_'.strtoupper($url['plugin'])];

// If the plugin is not installed, install it
if ( !$plugin->is_installed() )
{
	$next_position = count($plugins_installed) + 1;

	if($plugin->install($next_position))
		Redirect::controller('admin','plugins','config',array('plugin'=>$url['plugin']));
}

Redirect::controller('admin','plugins','list');

?>

================================================
FILE: admin/controllers/plugins/list.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================


// ============================================================================
//	VARIABLES
// ============================================================================



?>


================================================
FILE: admin/controllers/plugins/uninstall.bit
================================================
<?php

// ============================================================================
//	VARIABLES
// ============================================================================

$plugin = $plugins_all['PLUGIN_'.strtoupper($url['plugin'])];

if ( $plugin->is_installed() )
{
	$plugin->uninstall();
}

Redirect::controller('admin','plugins','list');

?>


================================================
FILE: admin/controllers/post/edit.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$safe = array(
		'mode'=>'publish',
		'type'=>'simple',
		'title'=>'',
		'content'=>'',
		'description'=>'',
		'allow_comments'=>0,
		'slug'=>''
	);

	// Post ID
	$safe['id']	= $url['id_post'];

	// Category ID
	$safe['id_cat']	= $_POST['id_cat'];

	// Title
	if(isset($_POST['title']))
		$safe['title'] = Validation::sanitize_html($_POST['title']);

	// Content
	if(isset($_POST['content']))
		$safe['content'] = $_POST['content'];

	// Description for SEO
	if( isset($_POST['description']) )
		$safe['description'] = Validation::sanitize_html( $_POST['description'] );

	// Mode
	if( isset($_POST['button_draft']) )
		$safe['mode'] = 'draft';

	// Slug
	if(!empty($_POST['slug']))
		$safe['slug'] = $_POST['slug'];
	elseif(!empty($safe['title']))
		$safe['slug'] = Text::clean_url($safe['title'], '-', $translit_enable);
	else
		$safe['slug'] = $safe['type'];

	// Quote
	if(isset($_POST['quote']))
	{
		$safe['type'] = 'quote';
		$safe['quote'] = $_POST['quote'];
	}

	// Allow comments
	if( isset($_POST['allow_comments']) && $_POST['allow_comments']=='1' )
		$safe['allow_comments'] = 1;

	// Publish date
	if( isset($_POST['date_hours']) )
		$safe['unixstamp'] = mktime($_POST['date_hours'],$_POST['date_minutes'],$_POST['date_seconds'],$_POST['date_month'],$_POST['date_day'],$_POST['date_year']);

	// Set post
	if( $_DB_POST->set($safe) )
	{
		// Tags
		if( isset($_POST['tags']) )
		{
			$safe['tags'] = Validation::sanitize_html($_POST['tags']);
			$_DB_TAGS->delete_links(array('id_post'=>$safe['id']));
			$_DB_TAGS->add_tags(array('tags'=>$safe['tags'], 'id_post'=>$safe['id']));
			$_DB_TAGS->savetofile();
		}

		Session::set_alert($_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY']);

		Redirect::controller('admin', 'post', 'list');
	}
}

// ============================================================================
//	VARIABLES
// ============================================================================
$post_edit = $_DB_POST->get( array('id'=>$url['id_post']) );

if($post_edit == array() )
	Redirect::controller('admin', 'post', 'list');

// Tags
$post_edit['tags'] = $_DB_TAGS->get_by_idpost( array('id_post'=>$post_edit['id']) );

$categories_options = array();
foreach($categories as $category)
	$categories_options[$category['id']] = $category['name'];

$years_options = array_combine(range(1970, date("Y")), range(1970, date("Y")));
$months_options = array_combine(range(1, 12), range(1, 12));
$days_options = array_combine(range(1, 31), range(1, 31));
$hours_options = range(0, 23);
$seconds_options = $minutes_options = range(0, 59);

$year = Date::format($post_edit['pub_date_unix'], '%Y');
$month = Date::format($post_edit['pub_date_unix'], '%m');
$day = Date::format($post_edit['pub_date_unix'], '%d');
$hours = Date::format($post_edit['pub_date_unix'], '%H');
$minutes = Date::format($post_edit['pub_date_unix'], '%M');
$seconds = Date::format($post_edit['pub_date_unix'], '%S');

?>

================================================
FILE: admin/controllers/post/list.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================
$post_list = $_DB_POST->get_list_by_page_more_drafts( array('page'=>$url['number'], 'amount'=>POSTS_AMOUNT) );

$total_pages = ceil($_DB_POST->get_count() / POSTS_AMOUNT);

?>

================================================
FILE: admin/controllers/post/new.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$safe = array(
		'id_user'=>0,
		'mode'=>'publish',
		'type'=>'simple',
		'title'=>'',
		'content'=>'',
		'description'=>'',
		'allow_comments'=>0,
		'slug'=>''
	);

	// Category ID
	$safe['id_cat'] = $_POST['id_cat'];

	// Mode
	if( isset($_POST['button_draft']) )
		$safe['mode'] = 'draft';

	// Type
	if(isset($_POST['video']))
	{
		$safe['type'] = 'video';
		$safe['video'] = $_POST['video'];
	}
	elseif(isset($_POST['quote']))
	{
		$safe['type'] = 'quote';
		$safe['quote'] = $_POST['quote'];
	}

	// Title
	if(isset($_POST['title']))
		$safe['title'] = Validation::sanitize_html($_POST['title']);

	// Content
	if(isset($_POST['content']))
		$safe['content'] = $_POST['content'];

	// Description for SEO
	if( isset($_POST['description']) )
		$safe['description'] = Validation::sanitize_html( $_POST['description'] );


	// Slug
	if(!empty($_POST['slug']))
		$safe['slug'] = $_POST['slug'];
	elseif(!empty($safe['title']))
		$safe['slug'] = Text::clean_url($safe['title'], '-', $translit_enable);
	else
		$safe['slug'] = $safe['type'];

	// Allow comments
	if( isset($_POST['allow_comments']) && $_POST['allow_comments']=='1' )
		$safe['allow_comments'] = 1;

	// Add new post
	$id_post = $_DB_POST->add($safe);

	if($id_post !== false)
	{
		// Tags
		if( isset($_POST['tags']) )
		{
			$safe['tags'] = Validation::sanitize_html($_POST['tags']);
			$_DB_TAGS->add_tags(array('tags'=>$safe['tags'], 'id_post'=>$id_post));
			$_DB_TAGS->savetofile();
		}

		Session::set_alert($_LANG['POST_HAS_BEEN_PUBLISHED_SUCCESSFULLY']);

		Redirect::controller('admin', 'post', 'list');
	}
}

// =====================================================================
//	VARIABLES
// =====================================================================
$categories_options = array();
foreach($categories as $category)
	$categories_options[$category['id']] = $category['name'];

?>

================================================
FILE: admin/controllers/settings/advanced.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

$items_html = array(1=>1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18);

?>


================================================
FILE: admin/controllers/settings/general.bit
================================================
<?php

// =====================================================================
//	POST
// =====================================================================

// =====================================================================
//	VARIABLES
// =====================================================================

$items_html = array(1=>1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18);

?>

================================================
FILE: admin/controllers/settings/image.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

	$img_resize_option = array(
								'auto'=>$_LANG['AUTOMATIC'],
								'exact'=>$_LANG['EXACT'],
								'portrait'=>$_LANG['PORTRAIT'],
								'landscape'=>$_LANG['LANDSCAPE'],
								'crop'=>$_LANG['CROP']
	);

?>

================================================
FILE: admin/controllers/settings/notifications.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

?>

================================================
FILE: admin/controllers/settings/regional.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

$languages = $_DB_SETTINGS->get_languages();

$languages_html = array();
foreach($languages as $raw=>$lang)
	$languages_html[$raw] = $lang;

$timezone_html = Date::get_timezones();

$timestamp_format_html = array(
							''=>$_LANG['CUSTOM'],
							'%d/%m/%y'=>'31/12/15',

							'%m/%d/%y'=>'12/31/15',

							'%d %B, %Y'=>'31 December, 2015',

							'%d %b, %Y'=>'31 Dec, 2015'
);

?>

================================================
FILE: admin/controllers/settings/seo.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================

// ============================================================================
//	VARIABLES
// ============================================================================

?>

================================================
FILE: admin/controllers/settings/themes.bit
================================================
<?php

// ============================================================================
//	GET
// ============================================================================
if( $_SERVER['REQUEST_METHOD'] == 'GET' )
{
	if(!empty($_GET['other']))
	{
		$_DB_SETTINGS->set(array('theme'=>$_GET['other']));

		$_DB_SETTINGS->savetofile();

		Session::set_alert($_LANG['CHANGES_HAS_BEEN_SAVED_SUCCESSFULLY']);

		Redirect::controller('admin', 'settings', 'themes');
	}
}

// ============================================================================
//	VARIABLES
// ============================================================================

$themes_dirs = $_DB_SETTINGS->get_themes();

$themes_list = array();

foreach($themes_dirs as $dir)
{
	include(PATH_THEMES.$dir.'/config.bit');

	$theme['dir'] = $dir;
	array_push($themes_list, $theme);

	$themes_html[$dir]=$theme['name'];
}

?>

================================================
FILE: admin/controllers/settings/username.bit
================================================
<?php

// ============================================================================
//	POST
// ============================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	include( FILE_SHADOW );

	$current_hash = Crypt::get_hash($_POST['pw_current'], $_USER[0]['salt']);

	if( Text::compare($current_hash, $_USER[0]['password']) )
	{
		// Change username
		if(isset($_POST['username']))
		{
			$new_username = $_POST['username'];
			$text = '<?php $_USER[0]["uid"] = "0"; $_USER[0]["username"] = "'.$new_username.'"; $_USER[0]["password"] = "'.$_USER[0]['password'].'"; $_USER[0]["salt"] = "'.$_USER[0]['salt'].'"; $_USER[0]["email"] = "'.$_USER[0]['email'].'"; ?>';

			Session::set_alert($_LANG['USERNAME_HAS_BEEN_CHANGED_SUCCESSFULLY']);
		}
		// Change password
		else
		{
			$new_salt = Text::random_text(11);
			$new_hash = Crypt::get_hash($_POST['pw_new'],$new_salt);
			$text = '<?php $_USER[0]["uid"] = "0"; $_USER[0]["username"] = "'.$_USER[0]['username'].'"; $_USER[0]["password"] = "'.$new_hash.'"; $_USER[0]["salt"] = "'.$new_salt.'"; $_USER[0]["email"] = "'.$_USER[0]['email'].'"; ?>';

			Session::set_alert($_LANG['PASSWORD_HAS_BEEN_CHANGED_SUCCESSFULLY']);
		}

		$file = fopen( FILE_SHADOW, 'w');
		fputs($file, $text);
		fclose($file);
	}
	else
	{
		Session::set_alert($_LANG['CURRENT_PASSWORD_INCORRECT']);
	}
}

// ============================================================================
//	VARIABLES
// ============================================================================
include( FILE_SHADOW );

?>

================================================
FILE: admin/controllers/user/forgot.bit
================================================
<?php

// =====================================================================
//	GET
// =====================================================================
if( ($url['id_user']===null) || ($url['other']===null) )
{
	$_DB_USERS->set_blacklist();
	exit('Nibbleblog security error');
}

require_once(FILE_SHADOW);

if( !isset($_USER[$url['id_user']]) )
{
	$_DB_USERS->set_blacklist();
	exit('Nibbleblog security error');
}

require_once(FILE_KEYS);

$hash = Crypt::get_hash($_USER[$url['id_user']]['salt'].$_KEYS[2]);

if( $hash!==$url['other'] )
{
	$_DB_USERS->set_blacklist();
	exit('Nibbleblog security error - Invalid hash');
}

$Login->set_login( array('id_user'=>$url['id_user'], 'username'=>$_USER[$url['id_user']]['username']) );

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$new_salt = Text::random_text(11);
	$new_hash = Crypt::get_hash($_POST['pw_new'],$new_salt);
	$text = '<?php $_USER[0]["uid"] = "0"; $_USER[0]["username"] = "'.$_USER[0]['username'].'"; $_USER[0]["password"] = "'.$new_hash.'"; $_USER[0]["salt"] = "'.$new_salt.'"; $_USER[0]["email"] = "'.$_USER[0]['email'].'"; ?>';

	$file = fopen(FILE_SHADOW, 'w');
	fputs($file, $text);
	fclose($file);

	Session::set_alert($_LANG['PASSWORD_HAS_BEEN_CHANGED_SUCCESSFULLY']);

	// Redirect to Dashboard
	Redirect::controller('admin','dashboard','view');
}

?>

================================================
FILE: admin/controllers/user/login.bit
================================================
<?php

// ============================================================================
//	CONTROLLER
// ============================================================================

if( $Login->is_logged() || $Login->remember_me() )
	Redirect::controller('admin','dashboard','view');

// ============================================================================
//	POST
// ============================================================================

if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	$safe = array();
	$safe['username'] = Validation::sanitize_html($_POST['username']);
	$safe['password'] = Validation::sanitize_html($_POST['password']);

	$Login->verify_login( array('username'=>$safe['username'], 'password'=>$safe['password']) );

	if( $Login->is_logged() )
	{
		// Check remember me
		if( isset($_POST['remember']) && $_POST['remember']=='1' )
			$Login->set_remember_me();

		// Notification - Session started
		$_DB_NOTIFICATIONS->add('session_start', $settings['notification_session_start'], array('username'=>$safe['username']));

		// Redirect to Dashboard
		Redirect::controller('admin','dashboard','view');
	}

	// Notification - Session failed
	$_DB_NOTIFICATIONS->add('session_fail', $settings['notification_session_fail'], array('username'=>$safe['username'], 'password'=>$safe['password']));

	Session::set_alert($_LANG['INCORRECT_USERNAME_OR_PASSWORD'].'. <a href="'.HTML_PATH_ROOT.'admin.php?controller=user&action=send_forgot">'.$_LANG['FORGOT_PASSWORD'].'</a>');
}

?>

================================================
FILE: admin/controllers/user/logout.bit
================================================
<?php

$Login->logout();

Redirect::controller('admin','user','login');

?>

================================================
FILE: admin/controllers/user/send_forgot.bit
================================================
<?php

// =====================================================================
//	GET
// =====================================================================
$_DB_USERS->set_blacklist();

// =====================================================================
//	POST
// =====================================================================
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
	require_once(FILE_SHADOW);
	require_once(FILE_KEYS);

	$hash = Crypt::get_hash($_USER[0]['salt'].$_KEYS[2]);
	$link = BLOG_URL.'admin.php?controller=user&action=forgot&id_user=0&other='.$hash;

	// Subject
	$subject = $_LANG['FORGOT_PASSWORD'];

	// Message
	$message = Text::replace_assoc(
			array(
				'{{BLOG_NAME}}'=>$settings['name'],
				'{{FORGOT_LINK}}'=>'<a href="'.$link.'">'.$link.'</a>'
			),
			$_LANG['EMAIL_NOTIFICATION_FORGOT_PASSWORD']
	);

	$sent = Email::send(array(
				'from'=>$settings['notification_email_from'],
				'to'=>$settings['notification_email_to'],
				'subject'=>$subject,
				'message'=>$message
	));

	if($sent)
		Session::set_alert($_LANG['WE_ARE_SENT_YOU_AN_EMAIL']);
	else
		Session::set_alert($_LANG['AN_ERROR_OCURRED_WHILE']);
}

?>

================================================
FILE: admin/js/ajax_form.bit
================================================
<?php

	$action = isset($javascript['action'])? $javascript['action'] : 'set';

?>

<script>

$(document).ready(function() {

//
//	VARIABLES
//
	// Timer
	var timer;

	// Time to request the save
	var time_to_save = 5000;

//
//	EVENTS
//
	$("input[type='text'], textarea").keydown(function() {
		set_timer();
	});

	$("select, input[type='checkbox']").change(function() {
		set_timer();
	});

	$(document).on("click", ".save", function() {
		window.clearTimeout(timer);
		save();
	});

//
//	FUNCTIONS
//
	function set_timer()
	{
		$("#js_button_save").removeClass().addClass("save");

		window.clearTimeout(timer);
		timer = window.setTimeout(function(){save()},time_to_save);

		console.log("Nibbleblog: Timer set");
	}

	function save()
	{
		var data = serial_form($("#js_form"));

		$("#js_button_save").removeClass().addClass("disabled");

		$.ajax({
				url:"<?php echo $javascript['url']; ?>", type: "POST", cache: false, timeout: 15000, dataType: "xml", async: true,
				data:{ serial_data: data, action:"<?php echo $action; ?>" },
				success:function(xml)
				{
					var text = $(xml).find("alert").text();

					show_alert(text, 3500);

					console.log("Nibbleblog: Form saved");
				}
		});
	}

}); // end document

</script>

================================================
FILE: admin/js/functions.js
================================================

function empty(text)
{
	return($.trim(text).length < 1);
}

function not_empty(text)
{
	return( !empty(text) );
}

function serial_form(form)
{
	var notchecked = "";
	form.find('input[type=checkbox]:not(:checked)').each(function() { notchecked += $(this).attr("name") + "=0&" });

	return( notchecked + form.serialize() );
}

function validate_email(email)
{
	var emailReg = /\S+@\S+\.\S+/;

	if(!emailReg.test(email)) {
		return false;
	}

	return true;
}

function set_ajax(id, type, ajax)
{
	var result = false;

	$.ajax({
			url: HTML_PATH_ADMIN_AJAX + ajax, type: 'POST', cache: false, timeout: 15000, dataType: "xml", async: false,
			data: { action: type, id: id },
			success: function(xml)
			{
				result = true;
			}
	});

	return(result);
}

function show_alert(text, hidden_time)
{
	$("#alert").html(text).fadeIn(1000);
	setTimeout(function(){$("#alert").fadeOut(1000);}, hidden_time);
}


================================================
FILE: admin/js/jquery/jquery.js
================================================
/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m=a.document,n="2.1.0",o=function(a,b){return new o.fn.init(a,b)},p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};o.fn=o.prototype={jquery:n,constructor:o,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=o.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return o.each(this,a,b)},map:function(a){return this.pushStack(o.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},o.extend=o.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||o.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(o.isPlainObject(d)||(e=o.isArray(d)))?(e?(e=!1,f=c&&o.isArray(c)?c:[]):f=c&&o.isPlainObject(c)?c:{},g[b]=o.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},o.extend({expando:"jQuery"+(n+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===o.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isPlainObject:function(a){if("object"!==o.type(a)||a.nodeType||o.isWindow(a))return!1;try{if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(b){return!1}return!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=o.trim(a),a&&(1===a.indexOf("use strict")?(b=m.createElement("script"),b.text=a,m.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":k.call(a)},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?o.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),o.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||o.guid++,f):void 0},now:Date.now,support:l}),o.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);o.find=t,o.expr=t.selectors,o.expr[":"]=o.expr.pseudos,o.unique=t.uniqueSort,o.text=t.getText,o.isXMLDoc=t.isXML,o.contains=t.contains;var u=o.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return o.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return o.filter(b,a,c);b=o.filter(b,a)}return o.grep(a,function(a){return g.call(b,a)>=0!==c})}o.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?o.find.matchesSelector(d,a)?[d]:[]:o.find.matches(a,o.grep(b,function(a){return 1===a.nodeType}))},o.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(o(a).filter(function(){for(b=0;c>b;b++)if(o.contains(e[b],this))return!0}));for(b=0;c>b;b++)o.find(a,e[b],d);return d=this.pushStack(c>1?o.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?o(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=o.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof o?b[0]:b,o.merge(this,o.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:m,!0)),v.test(c[1])&&o.isPlainObject(b))for(c in b)o.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=m.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=m,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):o.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(o):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),o.makeArray(a,this))};A.prototype=o.fn,y=o(m);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};o.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&o(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),o.fn.extend({has:function(a){var b=o(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(o.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?o(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&o.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?o.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(o(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(o.unique(o.merge(this.get(),o(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}o.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return o.dir(a,"parentNode")},parentsUntil:function(a,b,c){return o.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return o.dir(a,"nextSibling")},prevAll:function(a){return o.dir(a,"previousSibling")},nextUntil:function(a,b,c){return o.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return o.dir(a,"previousSibling",c)},siblings:function(a){return o.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return o.sibling(a.firstChild)},contents:function(a){return a.contentDocument||o.merge([],a.childNodes)}},function(a,b){o.fn[a]=function(c,d){var e=o.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=o.filter(d,e)),this.length>1&&(C[a]||o.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b[c]=!0}),b}o.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):o.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){o.each(b,function(b,c){var d=o.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&o.each(arguments,function(a,b){var c;while((c=o.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?o.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},o.extend({Deferred:function(a){var b=[["resolve","done",o.Callbacks("once memory"),"resolved"],["reject","fail",o.Callbacks("once memory"),"rejected"],["notify","progress",o.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return o.Deferred(function(c){o.each(b,function(b,f){var g=o.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&o.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?o.extend(a,d):d}},e={};return d.pipe=d.then,o.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&o.isFunction(a.promise)?e:0,g=1===f?a:o.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&o.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;o.fn.ready=function(a){return o.ready.promise().done(a),this},o.extend({isReady:!1,readyWait:1,holdReady:function(a){a?o.readyWait++:o.ready(!0)},ready:function(a){(a===!0?--o.readyWait:o.isReady)||(o.isReady=!0,a!==!0&&--o.readyWait>0||(H.resolveWith(m,[o]),o.fn.trigger&&o(m).trigger("ready").off("ready")))}});function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),o.ready()}o.ready.promise=function(b){return H||(H=o.Deferred(),"complete"===m.readyState?setTimeout(o.ready):(m.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},o.ready.promise();var J=o.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===o.type(c)){e=!0;for(h in c)o.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,o.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(o(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};o.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=o.expando+Math.random()}K.uid=1,K.accepts=o.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,o.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(o.isEmptyObject(f))o.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,o.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{o.isArray(b)?d=b.concat(b.map(o.camelCase)):(e=o.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!o.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?o.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}o.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),o.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;
while(c--)d=g[c].name,0===d.indexOf("data-")&&(d=o.camelCase(d.slice(5)),P(f,d,e[d]));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=o.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),o.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||o.isArray(c)?d=L.access(a,b,o.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=o.queue(a,b),d=c.length,e=c.shift(),f=o._queueHooks(a,b),g=function(){o.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:o.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),o.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?o.queue(this[0],a):void 0===b?this:this.each(function(){var c=o.queue(this,a,b);o._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&o.dequeue(this,a)})},dequeue:function(a){return this.each(function(){o.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=o.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===o.css(a,"display")||!o.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=m.createDocumentFragment(),b=a.appendChild(m.createElement("div"));b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";l.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return m.activeElement}catch(a){}}o.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=o.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof o!==U&&o.event.triggered!==b.type?o.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n&&(l=o.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=o.event.special[n]||{},k=o.extend({type:n,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&o.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),o.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],n=q=h[1],p=(h[2]||"").split(".").sort(),n){l=o.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||o.removeEvent(a,n,r.handle),delete i[n])}else for(n in i)o.event.remove(a,n+b[j],c,d,!0);o.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,p=[d||m],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||m,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+o.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[o.expando]?b:new o.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:o.makeArray(c,[b]),n=o.event.special[q]||{},e||!n.trigger||n.trigger.apply(d,c)!==!1)){if(!e&&!n.noBubble&&!o.isWindow(d)){for(i=n.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||m)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:n.bindType||q,l=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),l&&l.apply(g,c),l=k&&g[k],l&&l.apply&&o.acceptData(g)&&(b.result=l.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||n._default&&n._default.apply(p.pop(),c)!==!1||!o.acceptData(d)||k&&o.isFunction(d[q])&&!o.isWindow(d)&&(h=d[k],h&&(d[k]=null),o.event.triggered=q,d[q](),o.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=o.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=o.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=o.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((o.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?o(e,this).index(i)>=0:o.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||m,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[o.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new o.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=m),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&o.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return o.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=o.extend(new o.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?o.event.trigger(e,null,b):o.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},o.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},o.Event=function(a,b){return this instanceof o.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.getPreventDefault&&a.getPreventDefault()?Z:$):this.type=a,b&&o.extend(this,b),this.timeStamp=a&&a.timeStamp||o.now(),void(this[o.expando]=!0)):new o.Event(a,b)},o.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z,this.stopPropagation()}},o.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){o.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!o.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.focusinBubbles||o.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){o.event.simulate(b,a.target,o.event.fix(a),!0)};o.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),o.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return o().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=o.guid++)),this.each(function(){o.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,o(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){o.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){o.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?o.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return o.nodeName(a,"table")&&o.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)o.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=o.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&o.nodeName(a,b)?o.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}o.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=o.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||o.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===o.type(e))o.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;o.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===o.inArray(e,d))&&(i=o.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f,g,h=o.event.special,i=0;void 0!==(c=a[i]);i++){if(o.acceptData(c)&&(f=c[L.expando],f&&(b=L.cache[f]))){if(d=Object.keys(b.events||{}),d.length)for(g=0;void 0!==(e=d[g]);g++)h[e]?o.event.remove(c,e):o.removeEvent(c,e,b.handle);L.cache[f]&&delete L.cache[f]}delete M.cache[c[M.expando]]}}}),o.fn.extend({text:function(a){return J(this,function(a){return void 0===a?o.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?o.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||o.cleanData(ob(c)),c.parentNode&&(b&&o.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(o.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return o.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(o.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,o.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,n=k-1,p=a[0],q=o.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(c=o.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=o.map(ob(c,"script"),kb),g=f.length;k>j;j++)h=c,j!==n&&(h=o.clone(h,!0,!0),g&&o.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,o.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&o.contains(i,h)&&(h.src?o._evalUrl&&o._evalUrl(h.src):o.globalEval(h.textContent.replace(hb,"")))}return this}}),o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){o.fn[a]=function(a){for(var c,d=[],e=o(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),o(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d=o(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:o.css(d[0],"display");return d.detach(),e}function tb(a){var b=m,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||o("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||o.contains(a.ownerDocument,a)||(g=o.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",e=m.documentElement,f=m.createElement("div"),g=m.createElement("div");g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",f.appendChild(g);function h(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",e.appendChild(f);var d=a.getComputedStyle(g,null);b="1%"!==d.top,c="4px"===d.width,e.removeChild(f)}a.getComputedStyle&&o.extend(l,{pixelPosition:function(){return h(),b},boxSizingReliable:function(){return null==c&&h(),c},reliableMarginRight:function(){var b,c=g.appendChild(m.createElement("div"));return c.style.cssText=g.style.cssText=d,c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),g.innerHTML="",b}})}(),o.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:0,fontWeight:400},Eb=["Webkit","O","Moz","ms"];function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=o.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=o.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=o.css(a,"border"+R[f]+"Width",!0,e))):(g+=o.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=o.css(a,"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===o.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):f[g]||(e=S(d),(c&&"none"!==c||!e)&&L.set(d,"olddisplay",e?c:o.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}o.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=o.camelCase(b),i=a.style;return b=o.cssProps[h]||(o.cssProps[h]=Fb(i,h)),g=o.cssHooks[b]||o.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(o.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||o.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]="",i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=o.camelCase(b);return b=o.cssProps[h]||(o.cssProps[h]=Fb(a.style,h)),g=o.cssHooks[b]||o.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||o.isNumeric(f)?f||0:e):e}}),o.each(["height","width"],function(a,b){o.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&zb.test(o.css(a,"display"))?o.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===o.css(a,"boxSizing",!1,e),e):0)}}}),o.cssHooks.marginRight=yb(l.reliableMarginRight,function(a,b){return b?o.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),o.each({margin:"",padding:"",border:"Width"},function(a,b){o.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||f[d-2]||f[0];return e}},ub.test(a)||(o.cssHooks[a+b].set=Gb)}),o.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(o.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=o.css(a,b[g],!1,d);return f}return void 0!==c?o.style(a,b,c):o.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?o(this).show():o(this).hide()})}});function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}o.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(o.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?o.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=o.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){o.fx.step[a.prop]?o.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[o.cssProps[a.prop]]||o.cssHooks[a.prop])?o.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},o.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},o.fx=Kb.prototype.init,o.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Ob.exec(b),f=e&&e[3]||(o.cssNumber[a]?"":"px"),g=(o.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(o.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,o.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=o.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k=this,l={},m=a.style,n=a.nodeType&&S(a),p=L.get(a,"fxshow");c.queue||(h=o._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,k.always(function(){k.always(function(){h.unqueued--,o.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],j=o.css(a,"display"),"none"===j&&(j=tb(a.nodeName)),"inline"===j&&"none"===o.css(a,"float")&&(m.display="inline-block")),c.overflow&&(m.overflow="hidden",k.always(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(n?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;n=!0}l[d]=p&&p[d]||o.style(a,d)}if(!o.isEmptyObject(l)){p?"hidden"in p&&(n=p.hidden):p=L.access(a,"fxshow",{}),f&&(p.hidden=!n),n?o(a).show():k.done(function(){o(a).hide()}),k.done(function(){var b;L.remove(a,"fxshow");for(b in l)o.style(a,b,l[b])});for(d in l)g=Ub(n?p[d]:0,d,k),d in p||(p[d]=g.start,n&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=o.camelCase(c),e=b[d],f=a[c],o.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=o.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=o.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:o.extend({},b),opts:o.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=o.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return o.map(k,Ub,j),o.isFunction(j.opts.start)&&j.opts.start.call(a,j),o.fx.timer(o.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}o.Animation=o.extend(Xb,{tweener:function(a,b){o.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),o.speed=function(a,b,c){var d=a&&"object"==typeof a?o.extend({},a):{complete:c||!c&&b||o.isFunction(a)&&a,duration:a,easing:c&&b||b&&!o.isFunction(b)&&b};return d.duration=o.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in o.fx.speeds?o.fx.speeds[d.duration]:o.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){o.isFunction(d.old)&&d.old.call(this),d.queue&&o.dequeue(this,d.queue)},d},o.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=o.isEmptyObject(a),f=o.speed(b,c,d),g=function(){var b=Xb(this,o.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=o.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&o.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=o.timers,g=d?d.length:0;for(c.finish=!0,o.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),o.each(["toggle","show","hide"],function(a,b){var c=o.fn[b];o.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),o.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){o.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),o.timers=[],o.fx.tick=function(){var a,b=0,c=o.timers;for(Lb=o.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||o.fx.stop(),Lb=void 0},o.fx.timer=function(a){o.timers.push(a),a()?o.fx.start():o.timers.pop()},o.fx.interval=13,o.fx.start=function(){Mb||(Mb=setInterval(o.fx.tick,o.fx.interval))},o.fx.stop=function(){clearInterval(Mb),Mb=null},o.fx.speeds={slow:600,fast:200,_default:400},o.fn.delay=function(a,b){return a=o.fx?o.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=m.createElement("input"),b=m.createElement("select"),c=b.appendChild(m.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=m.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var Yb,Zb,$b=o.expr.attrHandle;o.fn.extend({attr:function(a,b){return J(this,o.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){o.removeAttr(this,a)})}}),o.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?o.prop(a,b,c):(1===f&&o.isXMLDoc(a)||(b=b.toLowerCase(),d=o.attrHooks[b]||(o.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=o.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void o.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=o.propFix[c]||c,o.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&o.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?o.removeAttr(a,c):a.setAttribute(c,c),c}},o.each(o.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||o.find.attr;$b[b]=function(a,b,d){var e,f;
return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;o.fn.extend({prop:function(a,b){return J(this,o.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[o.propFix[a]||a]})}}),o.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!o.isXMLDoc(a),f&&(b=o.propFix[b]||b,e=o.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),l.optSelected||(o.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),o.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){o.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;o.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(o.isFunction(a))return this.each(function(b){o(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=o.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(o.isFunction(a))return this.each(function(b){o(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?o.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(o.isFunction(a)?function(c){o(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=o(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;o.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=o.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,o(this).val()):a,null==e?e="":"number"==typeof e?e+="":o.isArray(e)&&(e=o.map(e,function(a){return null==a?"":a+""})),b=o.valHooks[this.type]||o.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=o.valHooks[e.type]||o.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}}),o.extend({valHooks:{select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&o.nodeName(c.parentNode,"optgroup"))){if(b=o(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=o.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=o.inArray(o(d).val(),f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),o.each(["radio","checkbox"],function(){o.valHooks[this]={set:function(a,b){return o.isArray(b)?a.checked=o.inArray(o(a).val(),b)>=0:void 0}},l.checkOn||(o.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),o.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){o.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),o.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=o.now(),dc=/\?/;o.parseJSON=function(a){return JSON.parse(a+"")},o.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&o.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=m.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(o.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,o.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=o.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&o.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}o.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":o.parseJSON,"text xml":o.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,o.ajaxSettings),b):tc(o.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=o.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?o(l):o.event,n=o.Deferred(),p=o.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(n.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=o.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=o.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===o.active++&&o.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(o.lastModified[d]&&v.setRequestHeader("If-Modified-Since",o.lastModified[d]),o.etag[d]&&v.setRequestHeader("If-None-Match",o.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(o.lastModified[d]=w),w=v.getResponseHeader("etag"),w&&(o.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?n.resolveWith(l,[r,x,v]):n.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--o.active||o.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return o.get(a,b,c,"json")},getScript:function(a,b){return o.get(a,void 0,b,"script")}}),o.each(["get","post"],function(a,b){o[b]=function(a,c,d,e){return o.isFunction(c)&&(e=e||d,d=c,c=void 0),o.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),o.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){o.fn[b]=function(a){return this.on(b,a)}}),o._evalUrl=function(a){return o.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},o.fn.extend({wrapAll:function(a){var b;return o.isFunction(a)?this.each(function(b){o(this).wrapAll(a.call(this,b))}):(this[0]&&(b=o(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(o.isFunction(a)?function(b){o(this).wrapInner(a.call(this,b))}:function(){var b=o(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=o.isFunction(a);return this.each(function(c){o(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){o.nodeName
Download .txt
gitextract_7w7k1dco/

├── .gitignore
├── COPYRIGHT.txt
├── LICENSE.txt
├── README.md
├── admin/
│   ├── ajax/
│   │   ├── categories.php
│   │   ├── comments.php
│   │   ├── mobile.php
│   │   ├── pages.php
│   │   ├── posts.php
│   │   ├── posts_get_video_info.php
│   │   ├── security.bit
│   │   ├── settings.php
│   │   └── uploader.php
│   ├── boot/
│   │   ├── admin.bit
│   │   ├── ajax.bit
│   │   ├── blog.bit
│   │   ├── feed.bit
│   │   ├── rules/
│   │   │   ├── 1-fs_php.bit
│   │   │   ├── 10-pager.bit
│   │   │   ├── 10-seo.bit
│   │   │   ├── 10-session.bit
│   │   │   ├── 11-admin.bit
│   │   │   ├── 11-security.bit
│   │   │   ├── 2-objects.bit
│   │   │   ├── 3-variables.bit
│   │   │   ├── 4-blacklist.bit
│   │   │   ├── 4-remove_magic.bit
│   │   │   ├── 5-regional.bit
│   │   │   ├── 5-url.bit
│   │   │   ├── 8-posts_pages.bit
│   │   │   ├── 8-posts_pages_feed.bit
│   │   │   ├── 8-posts_pages_sitemap.bit
│   │   │   ├── 98-blog.bit
│   │   │   ├── 98-comments.bit
│   │   │   ├── 98-constants.bit
│   │   │   ├── 98-plugins.bit
│   │   │   └── 99-misc.bit
│   │   └── sitemap.bit
│   ├── controllers/
│   │   ├── categories/
│   │   │   ├── edit.bit
│   │   │   └── list.bit
│   │   ├── comments/
│   │   │   ├── list.bit
│   │   │   └── settings.bit
│   │   ├── dashboard/
│   │   │   └── view.bit
│   │   ├── page/
│   │   │   ├── edit.bit
│   │   │   ├── list.bit
│   │   │   └── new.bit
│   │   ├── plugins/
│   │   │   ├── config.bit
│   │   │   ├── install.bit
│   │   │   ├── list.bit
│   │   │   └── uninstall.bit
│   │   ├── post/
│   │   │   ├── edit.bit
│   │   │   ├── list.bit
│   │   │   └── new.bit
│   │   ├── settings/
│   │   │   ├── advanced.bit
│   │   │   ├── general.bit
│   │   │   ├── image.bit
│   │   │   ├── notifications.bit
│   │   │   ├── regional.bit
│   │   │   ├── seo.bit
│   │   │   ├── themes.bit
│   │   │   └── username.bit
│   │   └── user/
│   │       ├── forgot.bit
│   │       ├── login.bit
│   │       ├── logout.bit
│   │       └── send_forgot.bit
│   ├── js/
│   │   ├── ajax_form.bit
│   │   ├── functions.js
│   │   ├── jquery/
│   │   │   └── jquery.js
│   │   ├── reveal/
│   │   │   └── jquery.reveal.js
│   │   ├── system.php
│   │   └── tinymce/
│   │       ├── langs/
│   │       │   ├── de_DE.js
│   │       │   ├── es_ES.js
│   │       │   ├── fr_FR.js
│   │       │   ├── it_IT.js
│   │       │   ├── nl_NL.js
│   │       │   ├── pl_PL.js
│   │       │   ├── pt_PT.js
│   │       │   ├── ru_RU.js
│   │       │   ├── vi_VI.js
│   │       │   ├── zh_CN.js
│   │       │   └── zh_TW.js
│   │       ├── plugins/
│   │       │   ├── media/
│   │       │   │   └── moxieplayer.swf
│   │       │   └── visualblocks/
│   │       │       └── css/
│   │       │           └── visualblocks.css
│   │       └── skins/
│   │           └── lightgray/
│   │               └── fonts/
│   │                   └── readme.md
│   ├── kernel/
│   │   ├── api/
│   │   │   ├── comment.class.php
│   │   │   └── login.class.php
│   │   ├── db/
│   │   │   ├── db_categories.class.php
│   │   │   ├── db_comments.class.php
│   │   │   ├── db_notifications.class.php
│   │   │   ├── db_pages.class.php
│   │   │   ├── db_posts.class.php
│   │   │   ├── db_settings.class.php
│   │   │   ├── db_tags.class.php
│   │   │   ├── db_users.class.php
│   │   │   └── nbxml.class.php
│   │   ├── defensio/
│   │   │   ├── Defensio.php
│   │   │   └── lib/
│   │   │       ├── DefensioRestClient.php
│   │   │       └── exceptions.php
│   │   ├── helpers/
│   │   │   ├── blog.class.php
│   │   │   ├── category.class.php
│   │   │   ├── cookie.class.php
│   │   │   ├── crypt.class.php
│   │   │   ├── date.class.php
│   │   │   ├── email.class.php
│   │   │   ├── filesystem.class.php
│   │   │   ├── html.class.php
│   │   │   ├── image.class.php
│   │   │   ├── language.class.php
│   │   │   ├── net.class.php
│   │   │   ├── number.class.php
│   │   │   ├── page.class.php
│   │   │   ├── pager.class.php
│   │   │   ├── plugin.class.php
│   │   │   ├── post.class.php
│   │   │   ├── redirect.class.php
│   │   │   ├── resize.class.php
│   │   │   ├── session.class.php
│   │   │   ├── social.class.php
│   │   │   ├── text.class.php
│   │   │   ├── url.class.php
│   │   │   ├── validation.class.php
│   │   │   └── video.class.php
│   │   └── plugin.class.php
│   ├── templates/
│   │   ├── easy4/
│   │   │   ├── css/
│   │   │   │   ├── icons/
│   │   │   │   │   ├── Read Me.txt
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── license.txt
│   │   │   │   │   ├── lte-ie7.js
│   │   │   │   │   └── style.css
│   │   │   │   ├── main.css
│   │   │   │   ├── nb_code.css
│   │   │   │   ├── nb_media.css
│   │   │   │   ├── normalize.css
│   │   │   │   └── tinymce.css
│   │   │   ├── includes/
│   │   │   │   ├── sidebar.bit
│   │   │   │   └── toolbar.bit
│   │   │   └── index.bit
│   │   └── login/
│   │       ├── css/
│   │       │   └── main.css
│   │       └── index.bit
│   └── views/
│       ├── categories/
│       │   ├── edit.bit
│       │   └── list.bit
│       ├── comments/
│       │   ├── list.bit
│       │   └── settings.bit
│       ├── dashboard/
│       │   ├── drafts.bit
│       │   ├── last_comments.bit
│       │   ├── notifications.bit
│       │   ├── quick_start.bit
│       │   └── view.bit
│       ├── page/
│       │   ├── includes/
│       │   │   ├── buttons.bit
│       │   │   ├── content.bit
│       │   │   ├── description.bit
│       │   │   ├── keywords.bit
│       │   │   ├── nb_code.bit
│       │   │   ├── nb_media.bit
│       │   │   ├── position.bit
│       │   │   ├── slug.bit
│       │   │   └── title.bit
│       │   ├── list.bit
│       │   └── new.bit
│       ├── plugins/
│       │   ├── config.bit
│       │   └── list.bit
│       ├── post/
│       │   ├── edit.bit
│       │   ├── includes/
│       │   │   ├── allow_comments.bit
│       │   │   ├── buttons.bit
│       │   │   ├── categories.bit
│       │   │   ├── content.bit
│       │   │   ├── description.bit
│       │   │   ├── nb_code.bit
│       │   │   ├── nb_media.bit
│       │   │   ├── publish_date.bit
│       │   │   ├── quote.bit
│       │   │   ├── slug.bit
│       │   │   ├── tags.bit
│       │   │   └── title.bit
│       │   ├── list.bit
│       │   ├── new_quote.bit
│       │   ├── new_simple.bit
│       │   └── new_video.bit
│       ├── settings/
│       │   ├── general.bit
│       │   ├── image.bit
│       │   ├── notifications.bit
│       │   ├── regional.bit
│       │   ├── seo.bit
│       │   ├── themes.bit
│       │   └── username.bit
│       └── user/
│           ├── forgot.bit
│           ├── login.bit
│           └── send_forgot.bit
├── admin.php
├── bludit.php
├── feed.php
├── index.php
├── install.php
├── languages/
│   ├── ca_ES.bit
│   ├── cs_CZ.bit
│   ├── da_DK.bit
│   ├── de_DE.bit
│   ├── en_US.bit
│   ├── es_ES.bit
│   ├── fa_IR.bit
│   ├── fr_FR.bit
│   ├── it_IT.bit
│   ├── ja_JP.bit
│   ├── nl_NL.bit
│   ├── pl_PL.bit
│   ├── pt_BR.bit
│   ├── pt_PT.bit
│   ├── ru_RU.bit
│   ├── sk_SVK.bit
│   ├── sv_SE.bit
│   ├── tr_TR.bit
│   ├── vi_VI.bit
│   ├── zh_CN.bit
│   └── zh_TW.bit
├── plugins/
│   ├── about/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── analytics/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── categories/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── hello/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── html_code/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── latest_posts/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── maintenance_mode/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── mathjax/
│   │   ├── languages/
│   │   │   ├── en_US.bit
│   │   │   └── es_ES.bit
│   │   └── plugin.bit
│   ├── my_image/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── open_graph/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── pages/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── quick_links/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── slogan/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR_bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── sponsors/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   ├── tag_cloud/
│   │   ├── languages/
│   │   │   ├── da_DK.bit
│   │   │   ├── en_US.bit
│   │   │   ├── es_ES.bit
│   │   │   ├── fr_FR.bit
│   │   │   └── ru_RU.bit
│   │   └── plugin.bit
│   └── twitter_cards/
│       ├── languages/
│       │   ├── da_DK.bit
│       │   ├── en_US.bit
│       │   ├── es_ES.bit
│       │   ├── fr_FR.bit
│       │   └── ru_RU.bit
│       └── plugin.bit
├── sitemap.php
├── themes/
│   ├── clean3/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── echo/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   └── style.css
│   │   ├── js/
│   │   │   └── script.js
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── pager.bit
│   │       │   │   ├── post_body.bit
│   │       │   │   ├── post_foot.bit
│   │       │   │   └── post_head.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── comments_disqus.bit
│   │           │   ├── comments_facebook.bit
│   │           │   ├── comments_nibbleblog.bit
│   │           │   ├── post_body.bit
│   │           │   ├── post_foot.bit
│   │           │   └── post_head.bit
│   │           └── view.bit
│   ├── google_simple/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── disqus_comments.bit
│   │       │   │   ├── facebook_comments.bit
│   │       │   │   ├── pager.bit
│   │       │   │   └── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── disqus_comments.bit
│   │           │   ├── facebook_comments.bit
│   │           │   ├── nibbleblog_comments.bit
│   │           │   └── post.bit
│   │           └── view.bit
│   ├── medium/
│   │   ├── config.bit
│   │   ├── controllers/
│   │   │   └── post/
│   │   │       └── view.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── init.bit
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           └── view.bit
│   ├── mydocs/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── note-2/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   └── styles.css
│   │   ├── js/
│   │   │   └── scripts.js
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           └── view.bit
│   ├── orange2/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   ├── panadero/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   └── normalize.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── includes/
│   │       │   │   ├── pager.bit
│   │       │   │   └── post_view.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── includes/
│   │           │   ├── comment_form.bit
│   │           │   ├── comment_list.bit
│   │           │   └── post_view.bit
│   │           └── view.bit
│   ├── pure_html/
│   │   ├── config.bit
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           └── view.bit
│   ├── simpler/
│   │   ├── config.bit
│   │   ├── css/
│   │   │   ├── main.css
│   │   │   ├── normalize.css
│   │   │   ├── page.css
│   │   │   ├── plugins.css
│   │   │   ├── post.css
│   │   │   └── rainbow.css
│   │   ├── templates/
│   │   │   └── default.bit
│   │   └── views/
│   │       ├── blog/
│   │       │   ├── disqus_comments.bit
│   │       │   ├── facebook_comments.bit
│   │       │   ├── pager.bit
│   │       │   ├── post.bit
│   │       │   └── view.bit
│   │       ├── error/
│   │       │   └── 404.bit
│   │       ├── page/
│   │       │   └── view.bit
│   │       └── post/
│   │           ├── disqus_comments.bit
│   │           ├── facebook_comments.bit
│   │           ├── nibbleblog_comments.bit
│   │           ├── post.bit
│   │           └── view.bit
│   └── techie/
│       ├── config.bit
│       ├── css/
│       │   ├── main.css
│       │   ├── normalize.css
│       │   ├── page.css
│       │   ├── plugins.css
│       │   ├── post.css
│       │   └── rainbow_github.css
│       ├── js/
│       │   ├── browser-update.js
│       │   ├── sidebar.js
│       │   ├── taglist.js
│       │   └── youtube_embed.js
│       ├── templates/
│       │   └── default.bit
│       └── views/
│           ├── blog/
│           │   ├── disqus_comments.bit
│           │   ├── facebook_comments.bit
│           │   ├── pager.bit
│           │   ├── post.bit
│           │   ├── social.bit
│           │   ├── taglist.bit
│           │   └── view.bit
│           ├── error/
│           │   └── 404.bit
│           ├── page/
│           │   ├── social.bit
│           │   └── view.bit
│           └── post/
│               ├── disqus_comments.bit
│               ├── facebook_comments.bit
│               ├── nibbleblog_comments.bit
│               ├── post.bit
│               ├── social.bit
│               └── view.bit
└── update.php
Download .txt
SYMBOL INDEX (510 symbols across 49 files)

FILE: admin/ajax/mobile.php
  function gen_token (line 10) | function gen_token($username, $password)
  function check_user (line 27) | function check_user($username, $password)

FILE: admin/js/functions.js
  function empty (line 2) | function empty(text)
  function not_empty (line 7) | function not_empty(text)
  function serial_form (line 12) | function serial_form(form)
  function validate_email (line 20) | function validate_email(email)
  function set_ajax (line 31) | function set_ajax(id, type, ajax)
  function show_alert (line 47) | function show_alert(text, hidden_time)

FILE: admin/js/jquery/jquery.js
  function s (line 2) | function s(a){var b=a.length,c=o.type(a);return"function"===c||o.isWindo...
  function db (line 2) | function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)...
  function eb (line 2) | function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLengt...
  function fb (line 2) | function fb(a){return a[s]=!0,a}
  function gb (line 2) | function gb(a){var b=l.createElement("div");try{return!!a(b)}catch(c){re...
  function hb (line 2) | function hb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[...
  function ib (line 2) | function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sou...
  function jb (line 2) | function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"...
  function kb (line 2) | function kb(a){return function(b){var c=b.nodeName.toLowerCase();return(...
  function lb (line 2) | function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,...
  function mb (line 2) | function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}
  function nb (line 2) | function nb(){}
  function ob (line 2) | function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k)return b?0:k.slice(0)...
  function pb (line 2) | function pb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}
  function qb (line 2) | function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.firs...
  function rb (line 2) | function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e-...
  function sb (line 2) | function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(...
  function tb (line 2) | function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)...
  function ub (line 2) | function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.r...
  function vb (line 2) | function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var...
  function wb (line 2) | function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}
  function xb (line 2) | function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0...
  function x (line 2) | function x(a,b,c){if(o.isFunction(b))return o.grep(a,function(a,d){retur...
  function D (line 2) | function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}
  function G (line 2) | function G(a){var b=F[a]={};return o.each(a.match(E)||[],function(a,c){b...
  function I (line 2) | function I(){m.removeEventListener("DOMContentLoaded",I,!1),a.removeEven...
  function K (line 2) | function K(){Object.defineProperty(this.cache={},0,{get:function(){retur...
  function P (line 2) | function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.rep...
  function Z (line 3) | function Z(){return!0}
  function $ (line 3) | function $(){return!1}
  function _ (line 3) | function _(){try{return m.activeElement}catch(a){}}
  function jb (line 3) | function jb(a,b){return o.nodeName(a,"table")&&o.nodeName(11!==b.nodeTyp...
  function kb (line 3) | function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}
  function lb (line 3) | function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttrib...
  function mb (line 3) | function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",...
  function nb (line 3) | function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&...
  function ob (line 3) | function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||...
  function pb (line 3) | function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.ty...
  function sb (line 3) | function sb(b,c){var d=o(c.createElement(b)).appendTo(c.body),e=a.getDef...
  function tb (line 3) | function tb(a){var b=m,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(...
  function xb (line 3) | function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPr...
  function yb (line 3) | function yb(a,b){return{get:function(){return a()?void delete this.get:(...
  function h (line 3) | function h(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-siz...
  function Fb (line 3) | function Fb(a,b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),...
  function Gb (line 3) | function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[...
  function Hb (line 3) | function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===...
  function Ib (line 3) | function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f...
  function Jb (line 3) | function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.styl...
  function Kb (line 3) | function Kb(a,b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}
  function Sb (line 3) | function Sb(){return setTimeout(function(){Lb=void 0}),Lb=o.now()}
  function Tb (line 3) | function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e[...
  function Ub (line 3) | function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.lengt...
  function Vb (line 3) | function Vb(a,b,c){var d,e,f,g,h,i,j,k=this,l={},m=a.style,n=a.nodeType&...
  function Wb (line 3) | function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=o.camelCase(c),e=b[d],f=a...
  function Xb (line 3) | function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=o.Deferred().always(functio...
  function rc (line 4) | function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var ...
  function sc (line 4) | function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!...
  function tc (line 4) | function tc(a,b){var c,d,e=o.ajaxSettings.flatOptions||{};for(c in b)voi...
  function uc (line 4) | function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[...
  function vc (line 4) | function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])fo...
  function x (line 4) | function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=v...
  function Bc (line 4) | function Bc(a,b,c,d){var e;if(o.isArray(b))o.each(b,function(b,e){c||xc....
  function Kc (line 4) | function Kc(a){return o.isWindow(a)?a:9===a.nodeType&&a.defaultView}

FILE: admin/js/reveal/jquery.reveal.js
  function unlockModal (line 151) | function unlockModal() {
  function lockModal (line 154) | function lockModal() {

FILE: admin/kernel/api/comment.class.php
  class Comment (line 12) | class Comment {
    method __construct (line 30) | function __construct($db, $db_notification, $settings)
    method add (line 48) | public function add($data)
    method get (line 104) | public function get($id)
    method get_by_page (line 113) | public function get_by_page($page, $amount)
    method get_by_post (line 122) | public function get_by_post($id_post)
    method get_last (line 131) | public function get_last($amount)
    method get_settings (line 139) | public function get_settings()
    method disqus_shortname (line 144) | public function disqus_shortname()
    method facebook_appid (line 149) | public function facebook_appid()
    method disqus_enabled (line 154) | public function disqus_enabled()
    method facebook_enabled (line 159) | public function facebook_enabled()
    method get_hash (line 165) | public function get_hash()
    method set_hash (line 171) | public function set_hash()
    method get_last_time (line 177) | public function get_last_time()
    method set_last_time (line 182) | public function set_last_time()
    method set_form (line 190) | public function set_form($field, $text)
    method form (line 198) | public function form($field)
    method sanitize (line 211) | private function sanitize($args)
    method get_spam_level (line 222) | private function get_spam_level($content)

FILE: admin/kernel/api/login.class.php
  class Login (line 12) | class Login {
    method Login (line 17) | function Login($started, $db_users)
    method set_login (line 30) | public function set_login($args)
    method is_logged (line 43) | public function is_logged()
    method verify_login (line 66) | public function verify_login($args)
    method logout (line 110) | public function logout()
    method remember_me (line 134) | public function remember_me()
    method set_remember_me (line 194) | public function set_remember_me()
    method get_user_id (line 214) | public function get_user_id()
    method get_username (line 226) | public function get_username()
    method get_key (line 246) | private function get_key()

FILE: admin/kernel/db/db_categories.class.php
  class DB_CATEGORIES (line 12) | class DB_CATEGORIES {
    method DB_CATEGORIES (line 27) | function DB_CATEGORIES($file)
    method savetofile (line 42) | public function savetofile()
    method add (line 47) | public function add($args)
    method set (line 66) | public function set($args)
    method delete (line 81) | public function delete($args)
    method get (line 103) | public function get($args)
    method get_by_slug (line 114) | public function get_by_slug($args)
    method get_all (line 125) | public function get_all()
    method get_count (line 146) | public function get_count()
    method get_post_count (line 151) | public function get_post_count($id)
    method get_autoinc (line 161) | private function get_autoinc()
    method set_autoinc (line 166) | private function set_autoinc($value = 0)
    method get_items (line 171) | private function get_items($node)

FILE: admin/kernel/db/db_comments.class.php
  class DB_COMMENTS (line 12) | class DB_COMMENTS {
    method DB_COMMENTS (line 34) | function DB_COMMENTS($file, $settings)
    method savetofile (line 57) | public function savetofile()
    method get_last_insert_id (line 62) | public function get_last_insert_id()
    method add (line 73) | public function add($args)
    method get (line 136) | public function get($args)
    method get_list_by_post (line 148) | public function get_list_by_post($args)
    method get_list_by_page (line 161) | public function get_list_by_page($args)
    method get_last (line 174) | public function get_last($amount)
    method delete (line 190) | public function delete($args)
    method delete_all_by_post (line 202) | public function delete_all_by_post($args)
    method get_count (line 212) | public function get_count()
    method get_settings (line 217) | public function get_settings()
    method set_settings (line 233) | public function set_settings($args)
    method approve (line 243) | public function approve($args)
    method unapprove (line 248) | public function unapprove($args)
    method spam (line 253) | public function spam($args)
    method rename_by_position (line 263) | private function rename_by_position($id, $position, $string)
    method get_autoinc (line 282) | private function get_autoinc()
    method set_autoinc (line 287) | private function set_autoinc($value = 0)
    method set_file (line 292) | private function set_file($id)
    method set_files (line 300) | private function set_files()
    method set_files_by_post (line 308) | private function set_files_by_post($id_post, $type='NULL')
    method get_list_by (line 314) | private function get_list_by($page_number, $amount)
    method get_items (line 336) | private function get_items($file)

FILE: admin/kernel/db/db_notifications.class.php
  class DB_NOTIFICATIONS (line 12) | class DB_NOTIFICATIONS {
    method DB_NOTIFICATIONS (line 28) | function DB_NOTIFICATIONS($file, $settings)
    method savetofile (line 46) | public function savetofile()
    method add (line 51) | public function add($category, $send_email, $args=array())
    method get_all (line 135) | public function get_all()

FILE: admin/kernel/db/db_pages.class.php
  class DB_PAGES (line 12) | class DB_PAGES {
    method DB_PAGES (line 32) | function DB_PAGES($file)
    method add (line 61) | public function add($args)
    method set (line 128) | public function set($args)
    method get (line 198) | public function get($args)
    method delete (line 234) | public function delete($args)
    method savetofile (line 257) | public function savetofile()
    method get_last_insert_id (line 266) | public function get_last_insert_id()
    method get_all (line 278) | public function get_all()
    method get_list_by_page_more_drafts (line 296) | public function get_list_by_page_more_drafts($args)
    method get_drafts (line 314) | public function get_drafts($args)
    method get_count (line 329) | public function get_count()
    method get_autoinc (line 338) | public function get_autoinc()
    method slug_get (line 355) | private function slug_get($id)
    method slug_generator (line 373) | private function slug_generator($slug)
    method slug_exists (line 393) | private function slug_exists($slug)
    method slug_add (line 412) | private function slug_add($id, $slug)
    method slug_delete (line 424) | private function slug_delete($id)
    method set_autoinc (line 438) | private function set_autoinc($value = 0)
    method set_file (line 450) | private function set_file($id)
    method set_files (line 466) | private function set_files()
    method set_files_by_published (line 476) | private function set_files_by_published()
    method set_files_by_draft (line 486) | private function set_files_by_draft()
    method get_items (line 499) | private function get_items($file)
    method get_list_by (line 527) | private function get_list_by()

FILE: admin/kernel/db/db_posts.class.php
  class DB_POSTS (line 12) | class DB_POSTS {
    method DB_POSTS (line 32) | function DB_POSTS($file)
    method savetofile (line 57) | public function savetofile()
    method get_last_insert_id (line 66) | public function get_last_insert_id()
    method add (line 78) | public function add($args)
    method set (line 156) | public function set($args)
    method get (line 235) | public function get($args)
    method delete (line 271) | public function delete($args)
    method get_all (line 294) | public function get_all()
    method get_list_by_page (line 312) | public function get_list_by_page($args)
    method get_list_by_page_more_drafts (line 330) | public function get_list_by_page_more_drafts($args)
    method get_drafts (line 348) | public function get_drafts($args)
    method get_list_by_category (line 366) | public function get_list_by_category($args)
    method get_count (line 381) | public function get_count()
    method get_autoinc (line 390) | public function get_autoinc()
    method slug (line 395) | public function slug($id_post, $slug)
    method prev_next_post (line 402) | public function prev_next_post($id_post)
    method slug_get (line 445) | private function slug_get($id)
    method slug_generator (line 463) | private function slug_generator($slug)
    method slug_exists (line 483) | private function slug_exists($slug)
    method slug_add (line 502) | private function slug_add($id, $slug)
    method slug_delete (line 514) | private function slug_delete($id)
    method rename (line 528) | private function rename($id, $rename)
    method rename_by_position (line 543) | private function rename_by_position($id, $position, $string)
    method set_autoinc (line 562) | private function set_autoinc($value = 0)
    method set_file (line 568) | private function set_file($id)
    method set_files (line 581) | private function set_files()
    method set_files_by_published (line 588) | private function set_files_by_published()
    method set_files_by_draft (line 595) | private function set_files_by_draft()
    method set_files_by_category (line 602) | private function set_files_by_category($id_cat)
    method get_items (line 610) | private function get_items($file)
    method get_list_by (line 667) | private function get_list_by($page_number, $post_per_page)
    method get_full_list (line 691) | private function get_full_list()

FILE: admin/kernel/db/db_settings.class.php
  class DB_SETTINGS (line 12) | class DB_SETTINGS {
    method DB_SETTINGS (line 27) | function DB_SETTINGS($file)
    method savetofile (line 44) | public function savetofile()
    method get (line 49) | public function get()
    method set (line 110) | public function set($args)
    method get_language (line 120) | public function get_language()
    method get_base_path (line 125) | public function get_base_path()
    method get_languages (line 130) | public function get_languages()
    method get_themes (line 147) | public function get_themes()

FILE: admin/kernel/db/db_tags.class.php
  class DB_TAGS (line 12) | class DB_TAGS {
    method DB_TAGS (line 27) | function DB_TAGS($file)
    method add (line 44) | public function add($args)
    method link (line 63) | public function link($args)
    method get (line 78) | public function get($args)
    method get_id (line 99) | public function get_id($args)
    method get_by_idpost (line 110) | public function get_by_idpost($args)
    method add_tags (line 128) | public function add_tags($args)
    method delete_links (line 143) | public function delete_links($args)
    method get_all_posts (line 157) | public function get_all_posts($args)
    method get_cloud (line 178) | public function get_cloud()
    method savetofile (line 200) | public function savetofile()
    method get_autoinc (line 210) | private function get_autoinc()
    method set_autoinc (line 215) | private function set_autoinc($value = 1)
    method recondition (line 221) | private function recondition($tags)

FILE: admin/kernel/db/db_users.class.php
  class DB_USERS (line 12) | class DB_USERS {
    method DB_USERS (line 27) | function DB_USERS($file)
    method blacklist (line 44) | public function blacklist()
    method set_blacklist (line 70) | public function set_blacklist()
    method add (line 122) | public function add($args)
    method get (line 143) | public function get($args)
    method set (line 157) | public function set($args)
    method is_valid (line 172) | public function is_valid($args)
    method savetofile (line 177) | public function savetofile()

FILE: admin/kernel/db/nbxml.class.php
  class NBXML (line 12) | class NBXML extends SimpleXMLElement
    method addGodChild (line 15) | public function addGodChild($name, $private_key)
    method addChild (line 29) | public function addChild($name, $value='', $namespace='')
    method addAttribute (line 48) | public function addAttribute($name, $value='', $namespace='')
    method getAttribute (line 56) | public function getAttribute($name)
    method setChild (line 61) | public function setChild($name, $value)
    method getChild (line 69) | public function getChild($name)
    method is_set (line 77) | public function is_set($name)
    method cast (line 82) | public function cast($type, $data)

FILE: admin/kernel/defensio/Defensio.php
  class Defensio (line 16) | class Defensio
    method __construct (line 31) | public function __construct($api_key, $client_id = self::CLIENT_ID)
    method getApiKey (line 48) | public function getApiKey()
    method getUser (line 58) | public function getUser()
    method postDocument (line 70) | public function postDocument($params)
    method getDocument (line 83) | public function getDocument($signature)
    method putDocument (line 97) | public function putDocument($signature, $params)
    method getBasicStats (line 109) | public function getBasicStats()
    method getExtendedStats (line 121) | public function getExtendedStats($params)
    method postProfanityFilter (line 136) | public function postProfanityFilter($data)
    method handlePostDocumentAsyncCallback (line 147) | public static function handlePostDocumentAsyncCallback($data=NULL)
    method parseResult (line 161) | private static function parseResult($result, $throw_on_failure=TRUE, $...

FILE: admin/kernel/defensio/lib/DefensioRestClient.php
  class Defensio_REST_Client (line 4) | class Defensio_REST_Client
    method __construct (line 10) | public function __construct($host, $use_sockets = TRUE, $http_version ...
    method post (line 22) | public function post($path, $data = Array())
    method put (line 32) | public function put($path, $data = Array())
    method delete (line 41) | public function delete($path)
    method get (line 50) | public function get($path)
    method do_request (line 60) | private function do_request($verb, $path,  $data = Array(), $timeout =...
    method do_request_with_curl (line 65) | private function do_request_with_curl($verb, $path, $data, $timeout = ...
    method do_request_with_sockets (line 105) | private function do_request_with_sockets($verb, $path,  $data = Array(...

FILE: admin/kernel/defensio/lib/exceptions.php
  class DefensioError (line 2) | class DefensioError                extends Exception     { public $http_...
  class DefensioFail (line 3) | class DefensioFail                 extends DefensioError { public $defen...
  class DefensioUnexpectedHTTPStatus (line 4) | class DefensioUnexpectedHTTPStatus extends DefensioError { }
  class DefensioInvalidKey (line 5) | class DefensioInvalidKey           extends DefensioError { }
  class DefensioEmptyCallbackData (line 6) | class DefensioEmptyCallbackData    extends DefensioError { }
  class DefensioConnectionError (line 7) | class DefensioConnectionError      extends DefensioError { public $error...
  class DefensioConnectionTimeout (line 8) | class DefensioConnectionTimeout   extends DefensioConnectionError{ }

FILE: admin/kernel/helpers/blog.class.php
  class Blog (line 12) | class Blog {
    method url (line 14) | public static function url($relative = true)
    method css (line 22) | public static function css($files, $path=HTML_THEME_CSS)
    method javascript (line 34) | public static function javascript($files, $path=HTML_THEME_JS)
    method jquery (line 46) | public static function jquery($path=JS_JQUERY)
    method favicon (line 53) | public static function favicon()
    method name (line 58) | public static function name()
    method slogan (line 65) | public static function slogan()
    method footer (line 72) | public static function footer()
    method language (line 79) | public static function language()
    method locale (line 88) | public static function locale()
    method meta_tags (line 95) | public static function meta_tags()

FILE: admin/kernel/helpers/category.class.php
  class Category (line 12) | class Category {
    method id (line 14) | public static function id()
    method name (line 21) | public static function name()

FILE: admin/kernel/helpers/cookie.class.php
  class Cookie (line 12) | class Cookie {
    method get (line 14) | public static function get($name)
    method add (line 24) | public static function add($name, $value, $expire = 525600)
    method is_set (line 29) | public static function is_set($name)

FILE: admin/kernel/helpers/crypt.class.php
  class Crypt (line 12) | class Crypt {
    method encrypt (line 15) | public static function encrypt($string, $key)
    method decrypt (line 30) | public static function decrypt($string, $key)
    method get_hash (line 44) | public static function get_hash($string, $salt = '$#!')

FILE: admin/kernel/helpers/date.class.php
  class Date (line 12) | class Date {
    method set_locale (line 14) | public static function set_locale($string)
    method set_timezone (line 25) | public static function set_timezone($string)
    method get_timezones (line 32) | public static function get_timezones()
    method unixstamp (line 58) | public static function unixstamp()
    method format (line 64) | public static function format($time, $format)
    method format_gmt (line 72) | public static function format_gmt($time, $format)
    method atom (line 79) | public static function atom($time)

FILE: admin/kernel/helpers/email.class.php
  class Email (line 12) | class Email {
    method send (line 14) | public static function send($args)

FILE: admin/kernel/helpers/filesystem.class.php
  class Filesystem (line 12) | class Filesystem {
    method get_images (line 14) | public static function get_images($regex)
    method ls (line 26) | public static function ls($path, $file_expression = NULL, $ext, $flag_...

FILE: admin/kernel/helpers/html.class.php
  class Html (line 12) | class Html {
    method get_attributes (line 14) | private static function get_attributes($array = array())
    method h1 (line 35) | public static function h1($array = array())
    method h2 (line 42) | public static function h2($array = array())
    method h3 (line 49) | public static function h3($array = array())
    method h4 (line 56) | public static function h4($array = array())
    method blockquote (line 63) | public static function blockquote($array = array())
    method p (line 70) | public static function p($array = array())
    method separator (line 77) | public static function separator($array = array(), $top=false, $hidden...
    method form_open (line 98) | public static function form_open($array = array())
    method form_close (line 106) | public static function form_close()
    method input (line 111) | public static function input($array = array())
    method checkbox (line 118) | public static function checkbox($array = array(), $checked = false)
    method radio (line 128) | public static function radio($array = array(), $checked = false)
    method textarea (line 138) | public static function textarea($array = array())
    method label (line 145) | public static function label($array = array())
    method select (line 152) | public static function select($array = array(), $options = array(), $s...
    method div (line 171) | public static function div($array = array())
    method div_open (line 178) | public static function div_open($array = array())
    method div_close (line 185) | public static function div_close()
    method article_open (line 190) | public static function article_open($array = array())
    method article_close (line 197) | public static function article_close()
    method header_open (line 202) | public static function header_open($array = array())
    method header_close (line 209) | public static function header_close()
    method link (line 214) | public static function link($array = array())
    method span (line 221) | public static function span($array = array())
    method img (line 228) | public static function img($array = array())
    method ul (line 235) | public static function ul($array = array())
    method banner (line 242) | public static function banner($msg, $success, $error)

FILE: admin/kernel/helpers/image.class.php
  class Image (line 12) | class Image {
    method get_gravatar (line 24) | public static function get_gravatar($email, $s = 80, $d = 'mm', $r = 'g')

FILE: admin/kernel/helpers/language.class.php
  class Language (line 12) | class Language {
    method get (line 16) | public function get($key)
    method set (line 28) | public function set($array)
    method add (line 36) | public function add($array)

FILE: admin/kernel/helpers/net.class.php
  class Net (line 12) | class Net {
    method get_user_ip (line 14) | public static function get_user_ip()
    method get_user_agent (line 29) | public static function get_user_agent()
    method check_http_code (line 34) | public static function check_http_code($url, $code)

FILE: admin/kernel/helpers/number.class.php
  class Number (line 12) | class Number {
    method random_number (line 14) | public static function random_number($min, $max)

FILE: admin/kernel/helpers/page.class.php
  class Page (line 12) | class Page {
    method title (line 14) | public static function title()
    method permalink (line 21) | public static function permalink($absolute=false)
    method published (line 28) | public static function published($format=false)
    method modified (line 38) | public static function modified($format=false)
    method content (line 48) | public static function content()

FILE: admin/kernel/helpers/pager.class.php
  class Pager (line 12) | class Pager {
    method href_newer (line 14) | public static function href_newer()
    method href_older (line 21) | public static function href_older()
    method num_posts (line 28) | public static function num_posts()
    method num_pages (line 35) | public static function num_pages()
    method current (line 42) | public static function current()
    method next (line 49) | public static function next()
    method prev (line 56) | public static function prev()
    method next_link (line 63) | public static function next_link($text=NULL)
    method prev_link (line 78) | public static function prev_link($text=NULL)
    method home_link (line 93) | public static function home_link($text=NULL)

FILE: admin/kernel/helpers/plugin.class.php
  class Plugin (line 12) | class Plugin {
    method title (line 14) | public static function title()

FILE: admin/kernel/helpers/post.class.php
  class Post (line 12) | class Post {
    method title (line 14) | public static function title()
    method description (line 21) | public static function description()
    method comments (line 28) | public static function comments()
    method num_comments (line 38) | public static function num_comments()
    method category (line 45) | public static function category($field=false)
    method read_more (line 64) | public static function read_more()
    method allow_comments (line 71) | public static function allow_comments()
    method permalink (line 78) | public static function permalink($absolute=false)
    method tags (line 85) | public static function tags($return2array=false)
    method comment_count_link (line 103) | public static function comment_count_link()
    method tweet_link (line 131) | public static function tweet_link()
    method twitter (line 139) | public static function twitter($text=false)
    method facebook (line 149) | public static function facebook($text=false)
    method linkedin (line 159) | public static function linkedin($title=false, $text=false)
    method googleplus (line 170) | public static function googleplus($text=false)
    method mailto (line 180) | public static function mailto($text=false)
    method published (line 190) | public static function published($format=false)
    method modified (line 200) | public static function modified($format=false)
    method content (line 210) | public static function content($full=false)

FILE: admin/kernel/helpers/redirect.class.php
  class Redirect (line 12) | class Redirect {
    method url (line 14) | public static function url($html_location)
    method controller (line 25) | public static function controller($base, $controller, $action, $parame...

FILE: admin/kernel/helpers/resize.class.php
  class Resize (line 12) | class Resize {
    method setImage (line 20) | public function setImage($fileName, $newWidth, $newHeight, $option="au...
    method saveImage (line 32) | public function saveImage($savePath, $imageQuality="100", $force_jpg=f...
    method openImage (line 83) | private function openImage($file)
    method resizeImage (line 107) | private function resizeImage($newWidth, $newHeight, $option)
    method getDimensions (line 127) | private function getDimensions($newWidth, $newHeight, $option)
    method getSizeByFixedHeight (line 164) | private function getSizeByFixedHeight($newHeight)
    method getSizeByFixedWidth (line 171) | private function getSizeByFixedWidth($newWidth)
    method getSizeByAuto (line 178) | private function getSizeByAuto($newWidth, $newHeight)
    method getOptimalCrop (line 211) | private function getOptimalCrop($newWidth, $newHeight)
    method crop (line 229) | private function crop($optimalWidth, $optimalHeight, $newWidth, $newHe...

FILE: admin/kernel/helpers/session.class.php
  class Session (line 12) | class Session {
    method init (line 14) | public static function init()
    method get (line 25) | public static function get($name)
    method set (line 33) | public static function set($key, $value)
    method generateFormToken (line 38) | public static function generateFormToken()
    method getFormToken (line 45) | public static function getFormToken()
    method validFormToken (line 50) | public static function validFormToken($token)
    method printFormToken (line 57) | public static function printFormToken()
    method get_error (line 62) | public static function get_error()
    method get_last_comment_at (line 72) | public static function get_last_comment_at()
    method get_last_session_at (line 82) | public static function get_last_session_at()
    method get_fail_session (line 92) | public static function get_fail_session()
    method get_comment (line 102) | public static function get_comment($field)
    method set_comment (line 110) | public static function set_comment($field, $data)
    method get_alert (line 115) | public static function get_alert()
    method set_error (line 121) | public static function set_error($boolean = true)
    method set_last_comment_at (line 126) | public static function set_last_comment_at($time)
    method set_last_session_at (line 131) | public static function set_last_session_at($time)
    method set_fail_session (line 136) | public static function set_fail_session($amount)
    method set_alert (line 141) | public static function set_alert($text = '')

FILE: admin/kernel/helpers/social.class.php
  class Social (line 12) | class Social {
    method twitter_share (line 14) | public static function twitter_share($args = array())
    method facebook_share (line 23) | public static function facebook_share($args = array())
    method facebook_like (line 32) | public static function facebook_like($args = array())

FILE: admin/kernel/helpers/text.class.php
  class Text (line 12) | class Text {
    method unserialize (line 14) | public static function unserialize($string)
    method ajax_header (line 27) | public static function ajax_header($tmp)
    method clean_magic_quotes (line 37) | public static function clean_magic_quotes($args)
    method cut_text (line 48) | public static function cut_text($text, $maxlength)
    method cut_words (line 53) | public static function cut_words($text, $count)
    method replace (line 67) | public static function replace($search, $replace, $string)
    method strip_spaces (line 73) | public static function strip_spaces($string)
    method strip_quotes (line 79) | public static function strip_quotes($text)
    method clean_non_alphanumeric (line 86) | function clean_non_alphanumeric($string)
    method is_substring (line 96) | public static function is_substring($string, $substring)
    method not_empty (line 104) | public static function not_empty($string)
    method is_empty (line 109) | public static function is_empty($string)
    method compare (line 117) | public static function compare($value1, $value2)
    method clean_url (line 123) | public static function clean_url($text, $spaces='-', $translit=false)
    method str2lower (line 157) | public static function str2lower($string)
    method random_text (line 165) | public static function random_text($length)
    method replace_assoc (line 176) | public static function replace_assoc(array $replace, $text)

FILE: admin/kernel/helpers/url.class.php
  class Url (line 12) | class Url {
    method category (line 14) | public static function category($slug, $absolute=false)
    method tag (line 30) | public static function tag($slug, $absolute=false)
    method post (line 46) | public static function post($post, $absolute=false)
    method page (line 62) | public static function page($page, $absolute=false)
    method atom (line 78) | public static function atom()
    method sitemap (line 92) | public static function sitemap()

FILE: admin/kernel/helpers/validation.class.php
  class Validation (line 12) | class Validation {
    method ip (line 14) | public static function ip($ip)
    method mail (line 19) | public static function mail($mail)
    method int (line 24) | public static function int($int)
    method sanitize_float (line 35) | public static function sanitize_float($value)
    method sanitize_int (line 41) | public static function sanitize_int($value)
    method sanitize_email (line 51) | public static function sanitize_email($value)
    method sanitize_url (line 56) | public static function sanitize_url($value)
    method sanitize_html (line 62) | public static function sanitize_html($text)

FILE: admin/kernel/helpers/video.class.php
  class Video (line 12) | class Video {
    method video_get_info (line 16) | public static function video_get_info($url, $width = 640, $height = 360)
    method video_get_youtube (line 30) | private static function video_get_youtube($url, $width = 640, $height ...
    method video_get_vimeo (line 46) | private static function video_get_vimeo($url, $width = 640, $height = ...

FILE: admin/kernel/plugin.class.php
  class Plugin (line 12) | class Plugin {
    method __construct (line 30) | function __construct()
    method install (line 40) | public function install($position = 0)
    method uninstall (line 73) | public function uninstall()
    method is_installed (line 85) | public function is_installed()
    method init_db (line 90) | public function init_db()
    method database (line 103) | public function database($field)
    method get_field_db (line 109) | public function get_field_db($name)
    method set_fields_db (line 115) | public function set_fields_db($array = array())
    method set_slug_name (line 128) | public function set_slug_name($name)
    method get_slug_name (line 136) | public function get_slug_name()
    method set_attributes (line 141) | public function set_attributes($args)
    method get_name (line 150) | public function get_name()
    method get_description (line 155) | public function get_description()
    method get_author (line 160) | public function get_author()
    method get_version (line 165) | public function get_version()
    method get_url (line 170) | public function get_url()
    method get_dir_name (line 175) | public function get_dir_name()
    method set_lang (line 180) | public function set_lang($array)
    method language (line 186) | public function language($key)
    method boot (line 196) | public function boot()
    method blog_head (line 201) | public function blog_head()
    method blog_body (line 206) | public function blog_body()
    method dashboard_head (line 211) | public function dashboard_head()
    method dashboard_body (line 216) | public function dashboard_body()
    method dashboard_config (line 221) | public function dashboard_config()

FILE: admin/templates/easy4/css/icons/lte-ie7.js
  function addIcon (line 4) | function addIcon(el, entity) {

FILE: bludit.php
  function post_to_json (line 25) | function post_to_json($post, $tojson=true)

FILE: themes/note-2/js/scripts.js
  function r (line 3) | function r(a){var b,c=a.getAttribute&&a.getAttribute("data-language")||0...
  function C (line 3) | function C(a){var b=r(a)||r(a.parentNode);if(!b){var c=/\blang(?:uage)?-...
  function D (line 3) | function D(a,b){for(var c in f[d]){c=parseInt(c,10);if(a==c&&b==f[d][c]?...
  function s (line 4) | function s(a,b){return'<span class="'+a.replace(/\./g," ")+(m?" "+m:"")+...
  function t (line 4) | function t(a,b,c,i){var e=a.exec(c);if(e){++u;!b.name&&"string"==typeof ...
  function w (line 5) | function w(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);retur...
  function x (line 6) | function x(a,b,c){function i(b,l){l<b.length?t(b[l].pattern,b[l],a,funct...
  function E (line 6) | function E(a,b){function c(a,b,i,f){if(i<b.length){++y;var h=b[i],m=j[d]...
  function o (line 6) | function o(a,b,c){var d=n[b]||[],e=n[z]||[],b=A[b]?d:d.concat(e);x(a.rep...
  function p (line 7) | function p(a,b,c){if(b<a.length){var d=a[b],e=C(d);return!(-1<(" "+d.cla...
  function B (line 7) | function B(a,b){var a=a&&"function"==typeof a.getElementsByTagName?a:doc...

FILE: themes/techie/js/sidebar.js
  function toggleSidebar (line 3) | function toggleSidebar() {

FILE: themes/techie/js/taglist.js
  function toggleTags (line 1) | function toggleTags(element) {

FILE: update.php
  function add_if_not (line 150) | function add_if_not($obj, $name, $value)
Condensed preview — 495 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,387K chars).
[
  {
    "path": ".gitignore",
    "chars": 90,
    "preview": ".DS_Store\n.htaccess\ncontent/tmp/*\ncontent/public/*\ncontent/private/*\nthemes/hellophotos/*\n"
  },
  {
    "path": "COPYRIGHT.txt",
    "chars": 1272,
    "preview": "All Nibbleblog code is Copyright 2009 - 2015 by Diego Ignacio Gabriel Najar Carrascal.\n\nThis program is free software; y"
  },
  {
    "path": "LICENSE.txt",
    "chars": 35148,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 297,
    "preview": "[Nibbleblog](http://www.nibbleblog.com/)\n================================================\n\n> Nibbleblog is no longer dev"
  },
  {
    "path": "admin/ajax/categories.php",
    "chars": 812,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\nif( $_POST['action']=='d"
  },
  {
    "path": "admin/ajax/comments.php",
    "chars": 964,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\nif( $_POST['action']=='d"
  },
  {
    "path": "admin/ajax/mobile.php",
    "chars": 1557,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\n\n\n// ============================================="
  },
  {
    "path": "admin/ajax/pages.php",
    "chars": 644,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\nif( $_POST['action']=='d"
  },
  {
    "path": "admin/ajax/posts.php",
    "chars": 700,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\nif( $_POST['action']=='d"
  },
  {
    "path": "admin/ajax/posts_get_video_info.php",
    "chars": 351,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\n$error = Video::video_ge"
  },
  {
    "path": "admin/ajax/security.bit",
    "chars": 248,
    "preview": "<?php\n\nif(!isset($Login))\n\texit('<error><![CDATA[1]]></error><alert><![CDATA[Nibbleblog security error(512)]]></alert>')"
  },
  {
    "path": "admin/ajax/settings.php",
    "chars": 602,
    "preview": "<?php header(\"Content-Type: text/xml\");\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\nif($_POST['action']=='se"
  },
  {
    "path": "admin/ajax/uploader.php",
    "chars": 2454,
    "preview": "<?php header('Content-Type: application/json');\n\nrequire('../boot/ajax.bit');\nrequire('security.bit');\n\n// Filename\n$fil"
  },
  {
    "path": "admin/boot/admin.bit",
    "chars": 657,
    "preview": "<?php\n// =====================================================================\n//\tRULES\n// ============================="
  },
  {
    "path": "admin/boot/ajax.bit",
    "chars": 430,
    "preview": "<?php\n// =====================================================================\n//\tRULES\n// ============================="
  },
  {
    "path": "admin/boot/blog.bit",
    "chars": 767,
    "preview": "<?php\n// =====================================================================\n//\tRULES\n// ============================="
  },
  {
    "path": "admin/boot/feed.bit",
    "chars": 468,
    "preview": "<?php\n// =====================================================================\n//\tRULES\n// ============================="
  },
  {
    "path": "admin/boot/rules/1-fs_php.bit",
    "chars": 3102,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n * (boolean) $session_started\n\n*/\n// ====="
  },
  {
    "path": "admin/boot/rules/10-pager.bit",
    "chars": 2090,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $url\n * $settings\n * $_DB_POST\n\n * Return\n * (array) "
  },
  {
    "path": "admin/boot/rules/10-seo.bit",
    "chars": 711,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $settings\n\n * Return\n * (array) $seo\n*/\n\n\t$seo['site_"
  },
  {
    "path": "admin/boot/rules/10-session.bit",
    "chars": 148,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\nif( !isset($_SESSION['nibbleblog'])"
  },
  {
    "path": "admin/boot/rules/11-admin.bit",
    "chars": 7128,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\n// ================================"
  },
  {
    "path": "admin/boot/rules/11-security.bit",
    "chars": 416,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\n// Prevent CSRF\nif( ($_SERVER['REQU"
  },
  {
    "path": "admin/boot/rules/2-objects.bit",
    "chars": 3796,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $session_started\n\n * Return\n * (object) $Login\n * (ob"
  },
  {
    "path": "admin/boot/rules/3-variables.bit",
    "chars": 3382,
    "preview": "<?php\n/*\n* Nibbleblog\n* http://www.nibbleblog.com\n\n* Require\n* $_DB_CATEGORIES\n* $_DB_SETTINGS\n\n* Return\n* (array) $sett"
  },
  {
    "path": "admin/boot/rules/4-blacklist.bit",
    "chars": 175,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\nif($_DB_USERS->blacklist())\n\texit('"
  },
  {
    "path": "admin/boot/rules/4-remove_magic.bit",
    "chars": 795,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $_POST\n\n * Return\n * (array) $_POST\n*/\n\n// =========="
  },
  {
    "path": "admin/boot/rules/5-regional.bit",
    "chars": 470,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $settings\n\n * Return\n * (boolean) $translit_enable\n*/"
  },
  {
    "path": "admin/boot/rules/5-url.bit",
    "chars": 1869,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $_GET\n\n * Return\n * (array) $url\n*/\n\n// ============="
  },
  {
    "path": "admin/boot/rules/8-posts_pages.bit",
    "chars": 3933,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $url\n * $settings\n * $_DB_CATEGORIES\n * $_DB_POST\n * "
  },
  {
    "path": "admin/boot/rules/8-posts_pages_feed.bit",
    "chars": 1870,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n\n * Return\n\n*/\n\n// ====================================="
  },
  {
    "path": "admin/boot/rules/8-posts_pages_sitemap.bit",
    "chars": 865,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n\n * Return\n\n*/\n\n// ====================================="
  },
  {
    "path": "admin/boot/rules/98-blog.bit",
    "chars": 2925,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\n// ================================"
  },
  {
    "path": "admin/boot/rules/98-comments.bit",
    "chars": 1250,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\nif($_SERVER['REQUEST_METHOD'] == 'P"
  },
  {
    "path": "admin/boot/rules/98-constants.bit",
    "chars": 875,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\n// ================================"
  },
  {
    "path": "admin/boot/rules/98-plugins.bit",
    "chars": 2647,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n * $settings\n\n * Return\n * (array) $plugins\n * (array) $"
  },
  {
    "path": "admin/boot/rules/99-misc.bit",
    "chars": 112,
    "preview": "<?php\n/*\n * Nibbleblog\n * http://www.nibbleblog.com\n\n * Require\n *\n\n * Return\n *\n*/\n\n// Add your rules here!\n\n?>"
  },
  {
    "path": "admin/boot/sitemap.bit",
    "chars": 434,
    "preview": "<?php\n// =====================================================================\n//\tRULES\n// ============================="
  },
  {
    "path": "admin/controllers/categories/edit.bit",
    "chars": 1014,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/categories/list.bit",
    "chars": 754,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/comments/list.bit",
    "chars": 530,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/comments/settings.bit",
    "chars": 526,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/dashboard/view.bit",
    "chars": 531,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/page/edit.bit",
    "chars": 1745,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/page/list.bit",
    "chars": 747,
    "preview": "<?php\n\n// =====================================================================\n//\tGET\n// =============================="
  },
  {
    "path": "admin/controllers/page/new.bit",
    "chars": 1556,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/plugins/config.bit",
    "chars": 2056,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/plugins/install.bit",
    "chars": 549,
    "preview": "<?php\n\n// ============================================================================\n//\tVARIABLES\n// ================="
  },
  {
    "path": "admin/controllers/plugins/list.bit",
    "chars": 356,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/plugins/uninstall.bit",
    "chars": 355,
    "preview": "<?php\n\n// ============================================================================\n//\tVARIABLES\n// ================="
  },
  {
    "path": "admin/controllers/post/edit.bit",
    "chars": 3125,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/post/list.bit",
    "chars": 524,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/post/new.bit",
    "chars": 2079,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/settings/advanced.bit",
    "chars": 441,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/settings/general.bit",
    "chars": 412,
    "preview": "<?php\n\n// =====================================================================\n//\tPOST\n// ============================="
  },
  {
    "path": "admin/controllers/settings/image.bit",
    "chars": 570,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/settings/notifications.bit",
    "chars": 352,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/settings/regional.bit",
    "chars": 740,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/settings/seo.bit",
    "chars": 352,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/settings/themes.bit",
    "chars": 886,
    "preview": "<?php\n\n// ============================================================================\n//\tGET\n// ======================="
  },
  {
    "path": "admin/controllers/settings/username.bit",
    "chars": 1583,
    "preview": "<?php\n\n// ============================================================================\n//\tPOST\n// ======================"
  },
  {
    "path": "admin/controllers/user/forgot.bit",
    "chars": 1484,
    "preview": "<?php\n\n// =====================================================================\n//\tGET\n// =============================="
  },
  {
    "path": "admin/controllers/user/login.bit",
    "chars": 1502,
    "preview": "<?php\n\n// ============================================================================\n//\tCONTROLLER\n// ================"
  },
  {
    "path": "admin/controllers/user/logout.bit",
    "chars": 75,
    "preview": "<?php\n\n$Login->logout();\n\nRedirect::controller('admin','user','login');\n\n?>"
  },
  {
    "path": "admin/controllers/user/send_forgot.bit",
    "chars": 1164,
    "preview": "<?php\n\n// =====================================================================\n//\tGET\n// =============================="
  },
  {
    "path": "admin/js/ajax_form.bit",
    "chars": 1240,
    "preview": "<?php\n\n\t$action = isset($javascript['action'])? $javascript['action'] : 'set';\n\n?>\n\n<script>\n\n$(document).ready(function"
  },
  {
    "path": "admin/js/functions.js",
    "chars": 902,
    "preview": "\nfunction empty(text)\n{\n\treturn($.trim(text).length < 1);\n}\n\nfunction not_empty(text)\n{\n\treturn( !empty(text) );\n}\n\nfunc"
  },
  {
    "path": "admin/js/jquery/jquery.js",
    "chars": 83615,
    "preview": "/*! jQuery v2.1.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */\n!function(a,b){\"object\"==typeof modul"
  },
  {
    "path": "admin/js/reveal/jquery.reveal.js",
    "chars": 4744,
    "preview": "/*\n * jQuery Reveal Plugin 1.0\n * www.ZURB.com\n * Copyright 2010, ZURB\n * Free to use under the MIT license.\n * http://w"
  },
  {
    "path": "admin/js/system.php",
    "chars": 836,
    "preview": "<?php\n\nHeader(\"content-type: application/x-javascript\");\n\nrequire('../boot/rules/1-fs_php.bit');\nrequire('../boot/rules/"
  },
  {
    "path": "admin/js/tinymce/langs/de_DE.js",
    "chars": 7293,
    "preview": "tinymce.addI18n('de',{\n\"Cut\": \"Ausschneiden\",\n\"Heading 5\": \"\\u00dcberschrift 5\",\n\"Header 2\": \"\\u00dcberschrift 2\",\n\"Your"
  },
  {
    "path": "admin/js/tinymce/langs/es_ES.js",
    "chars": 6109,
    "preview": "tinymce.addI18n('es',{\n\"Cut\": \"Cortar\",\n\"Header 2\": \"Header 2 \",\n\"Your browser doesn't support direct access to the clip"
  },
  {
    "path": "admin/js/tinymce/langs/fr_FR.js",
    "chars": 6400,
    "preview": "tinymce.addI18n('fr_FR',{\n\"Cut\": \"Couper\",\n\"Header 2\": \"En-t\\u00eate 2\",\n\"Your browser doesn't support direct access to "
  },
  {
    "path": "admin/js/tinymce/langs/it_IT.js",
    "chars": 5988,
    "preview": "tinymce.addI18n('it',{\n\"Cut\": \"Taglia\",\n\"Header 2\": \"Header 2\",\n\"Your browser doesn't support direct access to the clipb"
  },
  {
    "path": "admin/js/tinymce/langs/nl_NL.js",
    "chars": 6203,
    "preview": "tinymce.addI18n('nl',{\n\"Cut\": \"Knippen\",\n\"Header 2\": \"Kop 2\",\n\"Your browser doesn't support direct access to the clipboa"
  },
  {
    "path": "admin/js/tinymce/langs/pl_PL.js",
    "chars": 6849,
    "preview": "tinymce.addI18n('pl',{\n\"Cut\": \"Wytnij\",\n\"Header 2\": \"Nag\\u0142\\u00f3wek 2\",\n\"Your browser doesn't support direct access "
  },
  {
    "path": "admin/js/tinymce/langs/pt_PT.js",
    "chars": 6913,
    "preview": "tinymce.addI18n('pt_PT',{\n\"Cut\": \"Cortar\",\n\"Header 2\": \"Cabe\\u00e7alho 2\",\n\"Your browser doesn't support direct access t"
  },
  {
    "path": "admin/js/tinymce/langs/ru_RU.js",
    "chars": 17812,
    "preview": "tinymce.addI18n('ru',{\n\"Cut\": \"\\u0412\\u044b\\u0440\\u0435\\u0437\\u0430\\u0442\\u044c\",\n\"Header 2\": \"\\u0417\\u0430\\u0433\\u043e\\"
  },
  {
    "path": "admin/js/tinymce/langs/vi_VI.js",
    "chars": 7568,
    "preview": "tinymce.addI18n('vi_VN',{\n\"Cut\": \"C\\u1eaft\",\n\"Header 2\": \"Ti\\u00eau \\u0111\\u1ec1 2\",\n\"Your browser doesn't support direc"
  },
  {
    "path": "admin/js/tinymce/langs/zh_CN.js",
    "chars": 8059,
    "preview": "tinymce.addI18n('zh_CN',{\n\"Cut\": \"\\u526a\\u5207\",\n\"Heading 5\": \"\\u6807\\u98985\",\n\"Header 2\": \"\\u6807\\u98982\",\n\"Your browse"
  },
  {
    "path": "admin/js/tinymce/langs/zh_TW.js",
    "chars": 7504,
    "preview": "tinymce.addI18n('zh_TW',{\n\"Cut\": \"\\u526a\\u4e0b\",\n\"Header 2\": \"\\u6a19\\u984c 2\",\n\"Your browser doesn't support direct acce"
  },
  {
    "path": "admin/js/tinymce/plugins/visualblocks/css/visualblocks.css",
    "chars": 4824,
    "preview": ".mce-visualblocks p {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repea"
  },
  {
    "path": "admin/js/tinymce/skins/lightgray/fonts/readme.md",
    "chars": 67,
    "preview": "Icons are generated and provided by the http://icomoon.io service.\n"
  },
  {
    "path": "admin/kernel/api/comment.class.php",
    "chars": 5710,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/api/login.class.php",
    "chars": 5635,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_categories.class.php",
    "chars": 4153,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_comments.class.php",
    "chars": 8879,
    "preview": "<?php\n\n/*\n* Nibbleblog -\n* http://www.nibbleblog.com\n* Author Diego Najar\n\n* All Nibbleblog code is released under the G"
  },
  {
    "path": "admin/kernel/db/db_notifications.class.php",
    "chars": 4100,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_pages.class.php",
    "chars": 10962,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_posts.class.php",
    "chars": 15370,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_settings.class.php",
    "chars": 5577,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_tags.class.php",
    "chars": 5273,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/db_users.class.php",
    "chars": 4346,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/db/nbxml.class.php",
    "chars": 2135,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/defensio/Defensio.php",
    "chars": 7728,
    "preview": "<?php\n/*\n * Defensio-PHP 2.0\n * PHP wrapper library for Defensio API 2.0\n * Requires PHP 5.x or better\n * PHP version 5\n"
  },
  {
    "path": "admin/kernel/defensio/lib/DefensioRestClient.php",
    "chars": 5538,
    "preview": "<?php\nrequire_once('exceptions.php');\n\nclass Defensio_REST_Client\n{\n    public $host;\n    public $http_version;\n    publ"
  },
  {
    "path": "admin/kernel/defensio/lib/exceptions.php",
    "chars": 541,
    "preview": "<?php\nclass DefensioError                extends Exception     { public $http_status; };\nclass DefensioFail             "
  },
  {
    "path": "admin/kernel/helpers/blog.class.php",
    "chars": 3160,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/category.class.php",
    "chars": 386,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/cookie.class.php",
    "chars": 539,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/crypt.class.php",
    "chars": 1030,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/date.class.php",
    "chars": 1887,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/email.class.php",
    "chars": 855,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/filesystem.class.php",
    "chars": 1245,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/html.class.php",
    "chars": 5489,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/image.class.php",
    "chars": 904,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/language.class.php",
    "chars": 683,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/net.class.php",
    "chars": 1140,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/number.class.php",
    "chars": 301,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/page.class.php",
    "chars": 923,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/pager.class.php",
    "chars": 1666,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/plugin.class.php",
    "chars": 295,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/post.class.php",
    "chars": 5015,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/redirect.class.php",
    "chars": 713,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/resize.class.php",
    "chars": 6269,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/session.class.php",
    "chars": 2773,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/social.class.php",
    "chars": 1310,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/text.class.php",
    "chars": 3892,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/url.class.php",
    "chars": 1779,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/validation.class.php",
    "chars": 1318,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/helpers/video.class.php",
    "chars": 1838,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/kernel/plugin.class.php",
    "chars": 3841,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "admin/templates/easy4/css/icons/Read Me.txt",
    "chars": 342,
    "preview": "To modify your generated font, use the *dev.svg* file, located in the *fonts* folder in this package. You can import thi"
  },
  {
    "path": "admin/templates/easy4/css/icons/index.html",
    "chars": 5961,
    "preview": "<!doctype html>\n<html>\n<head>\n<title>Your Font/Glyphs</title>\n<link rel=\"stylesheet\" href=\"style.css\" />\n<!--[if lte IE "
  },
  {
    "path": "admin/templates/easy4/css/icons/license.txt",
    "chars": 564,
    "preview": "Icon Set:\tFont Awesome -- http://fortawesome.github.com/Font-Awesome/\nLicense:\tSIL -- http://scripts.sil.org/cms/scripts"
  },
  {
    "path": "admin/templates/easy4/css/icons/lte-ie7.js",
    "chars": 1043,
    "preview": "/* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */\n\nwindow.onload = function() {"
  },
  {
    "path": "admin/templates/easy4/css/icons/style.css",
    "chars": 1835,
    "preview": "@font-face {\n\tfont-family: 'icomoon';\n\tsrc:url('fonts/icomoon.eot');\n\tsrc:url('fonts/icomoon.eot?#iefix') format('embedd"
  },
  {
    "path": "admin/templates/easy4/css/main.css",
    "chars": 14491,
    "preview": "/*====================================================================*/\n/* BODY\n/*====================================="
  },
  {
    "path": "admin/templates/easy4/css/nb_code.css",
    "chars": 1072,
    "preview": "/*====================================================================*/\n/* NIBBLEBLOG CODE\n/*=========================="
  },
  {
    "path": "admin/templates/easy4/css/nb_media.css",
    "chars": 3279,
    "preview": "/*====================================================================*/\n/* NIBBLEBLOG MODAL\n/*========================="
  },
  {
    "path": "admin/templates/easy4/css/normalize.css",
    "chars": 1729,
    "preview": "/*! normalize.css v2.0.1 | MIT License | git.io/normalize */\narticle,aside,details,figcaption,figure,footer,header,hgrou"
  },
  {
    "path": "admin/templates/easy4/css/tinymce.css",
    "chars": 607,
    "preview": "/*====================================================================*/\n/* NIBBLEBLOG + TINYMCE\n/*====================="
  },
  {
    "path": "admin/templates/easy4/includes/sidebar.bit",
    "chars": 1345,
    "preview": "<?php\n\n$sidebar_links = array(\n\tarray(\n\t\t'value'=>$_LANG['PUBLISH'],\n\t\t'href'=>HTML_PATH_ROOT.'admin.php?controller=post"
  },
  {
    "path": "admin/templates/easy4/includes/toolbar.bit",
    "chars": 2604,
    "preview": "<?php\n\n$toolbar_links = array();\n\nif(in_array($layout['id_sidebar'],array(2,3,4,5)))\n{\n\t$toolbar_links = array(\n\t\tarray("
  },
  {
    "path": "admin/templates/easy4/index.bit",
    "chars": 2720,
    "preview": "<!DOCTYPE HTML>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta name='robots' content='noindex,nofollow' >\n\n\t<title>Nibbleb"
  },
  {
    "path": "admin/templates/login/css/main.css",
    "chars": 2735,
    "preview": "/* ============================== */\n/* BODY */\n/* ============================== */\nbody {\n\tfont-family: helvetica,aria"
  },
  {
    "path": "admin/templates/login/index.bit",
    "chars": 1068,
    "preview": "<!DOCTYPE HTML>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta name='robots' content='noindex,nofollow' />\n\n\t<title>Nibble"
  },
  {
    "path": "admin/views/categories/edit.bit",
    "chars": 1360,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// NAME\n\t$value = isset($cate"
  },
  {
    "path": "admin/views/categories/list.bit",
    "chars": 2458,
    "preview": "<?php\n\n\t// NEW CATEGORY\n\techo Html::separator( array('style'=>'margin-top: 0;', 'content'=>$_LANG['NEW_CATEGORY']), true"
  },
  {
    "path": "admin/views/comments/list.bit",
    "chars": 3049,
    "preview": "<?php\n\nif(empty($comments))\n{\n\techo Html::p( array('class'=>'empty', 'content'=>$_LANG['THERE_ARE_NO_PUBLISHED_COMMENTS'"
  },
  {
    "path": "admin/views/comments/settings.bit",
    "chars": 5205,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\techo Html::separator(array('c"
  },
  {
    "path": "admin/views/dashboard/drafts.bit",
    "chars": 638,
    "preview": "<?php\n\necho Html::div_open( array('class'=>'dashboard_box') );\n\necho Html::div( array('class'=>'dashboard_title', 'conte"
  },
  {
    "path": "admin/views/dashboard/last_comments.bit",
    "chars": 793,
    "preview": "<?php\n\necho Html::div_open( array('class'=>'dashboard_box') );\n\necho Html::div( array('class'=>'dashboard_title', 'conte"
  },
  {
    "path": "admin/views/dashboard/notifications.bit",
    "chars": 1844,
    "preview": "<?php\n\necho Html::div_open( array('class'=>'dashboard_box') );\n\necho Html::div( array('class'=>'dashboard_title', 'conte"
  },
  {
    "path": "admin/views/dashboard/quick_start.bit",
    "chars": 1265,
    "preview": "<?php\n\necho Html::div_open( array('class'=>'dashboard_box') );\n\necho Html::div( array('class'=>'dashboard_title', 'conte"
  },
  {
    "path": "admin/views/dashboard/view.bit",
    "chars": 385,
    "preview": "<?php\n\n// LEFT SIDE\necho Html::div_open( array('class'=>'dashboard_left') );\n\n\t// Quick start\n\tinclude('quick_start.bit'"
  },
  {
    "path": "admin/views/page/includes/buttons.bit",
    "chars": 362,
    "preview": "<?php\n\necho Html::div_open( array('class'=>'form_block') );\n\techo Html::input( array('id'=>'js_button_add', 'name'=>'but"
  },
  {
    "path": "admin/views/page/includes/content.bit",
    "chars": 3118,
    "preview": "<?php\n$value = isset($ctrlv['page']['content']) ? htmlspecialchars($ctrlv['page']['content']) : '';\n\necho Html::div_open"
  },
  {
    "path": "admin/views/page/includes/description.bit",
    "chars": 428,
    "preview": "<?php\n\n$value = isset($ctrlv['page']['description']) ? $ctrlv['page']['description'] : '';\n\necho Html::div_open( array('"
  },
  {
    "path": "admin/views/page/includes/keywords.bit",
    "chars": 492,
    "preview": "<?php\n\n$value = isset($ctrlv['page']['keywords']) ? $ctrlv['page']['keywords'] : '';\n\necho Html::div_open( array('class'"
  },
  {
    "path": "admin/views/page/includes/nb_code.bit",
    "chars": 1647,
    "preview": "<div id=\"nb_code_modal\" class=\"reveal-modal\">\n\n\t<h2 class=\"title\">Nibbleblog Code</h2>\n\t<?php\n\t\t$lang_code = array('gene"
  },
  {
    "path": "admin/views/page/includes/nb_media.bit",
    "chars": 4326,
    "preview": "<?php\n\n$file_list = Filesystem::get_images('*_nbmedia*');\n\n?>\n\n<input id=\"media_input_file\" type=\"file\" class=\"hidden\" s"
  },
  {
    "path": "admin/views/page/includes/position.bit",
    "chars": 375,
    "preview": "<?php\n\n$value = isset($ctrlv['page']['position']) ? $ctrlv['page']['position'] : '0';\n\necho Html::div_open( array('class"
  },
  {
    "path": "admin/views/page/includes/slug.bit",
    "chars": 835,
    "preview": "<?php\n\n$value = isset($ctrlv['page']['slug']) ? $ctrlv['page']['slug'] : '';\n\necho Html::div_open( array('class'=>'form_"
  },
  {
    "path": "admin/views/page/includes/title.bit",
    "chars": 318,
    "preview": "<?php\n\n$value = isset($ctrlv['page']['title']) ? $ctrlv['page']['title'] : '';\n\necho Html::div_open( array('class'=>'for"
  },
  {
    "path": "admin/views/page/list.bit",
    "chars": 2439,
    "preview": "<?php\n\nif(empty($ctrlv['page_list']))\n{\n\techo Html::p( array('class'=>'empty', 'content'=>$_LANG['THERE_ARE_NO_PAGES']) "
  },
  {
    "path": "admin/views/page/new.bit",
    "chars": 563,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// TITLE\n\tinclude('includes/t"
  },
  {
    "path": "admin/views/plugins/config.bit",
    "chars": 728,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post', 'enctype'=>'multipart/form-data', "
  },
  {
    "path": "admin/views/plugins/list.bit",
    "chars": 1278,
    "preview": "<?php\n\necho Html::separator( array('content'=>$_LANG['INSTALLED_PLUGINS']), true);\n\nforeach($plugins_installed as $obj)\n"
  },
  {
    "path": "admin/views/post/edit.bit",
    "chars": 698,
    "preview": "<?php\n\n\techo Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t\t// TITLE\n\t\tinclude('include"
  },
  {
    "path": "admin/views/post/includes/allow_comments.bit",
    "chars": 594,
    "preview": "<?php\n\tif( isset($post_edit['allow_comments']) ) {\n\t\t$value = $post_edit['allow_comments'];\n\t}\n\telse {\n\t\t$tmp = $_DB_COM"
  },
  {
    "path": "admin/views/post/includes/buttons.bit",
    "chars": 364,
    "preview": "<?php\n\techo Html::div_open( array('class'=>'form_block') );\n\t\techo Html::input( array('id'=>'js_button_add', 'name'=>'bu"
  },
  {
    "path": "admin/views/post/includes/categories.bit",
    "chars": 321,
    "preview": "<?php\n\t$value = isset($post_edit['id_cat']) ? $post_edit['id_cat'] : '0';\n\n\techo Html::div_open( array('class'=>'form_bl"
  },
  {
    "path": "admin/views/post/includes/content.bit",
    "chars": 3116,
    "preview": "<?php\n$value = isset($post_edit['content'][0]) ? htmlspecialchars($post_edit['content'][0]) : '';\n\necho Html::div_open( "
  },
  {
    "path": "admin/views/post/includes/description.bit",
    "chars": 423,
    "preview": "<?php\n\t$value = isset($post_edit['description']) ? $post_edit['description'] : '';\n\n\techo Html::div_open( array('class'="
  },
  {
    "path": "admin/views/post/includes/nb_code.bit",
    "chars": 1647,
    "preview": "<div id=\"nb_code_modal\" class=\"reveal-modal\">\n\n\t<h2 class=\"title\">Nibbleblog Code</h2>\n\t<?php\n\t\t$lang_code = array('gene"
  },
  {
    "path": "admin/views/post/includes/nb_media.bit",
    "chars": 4326,
    "preview": "<?php\n\n$file_list = Filesystem::get_images('*_nbmedia*');\n\n?>\n\n<input id=\"media_input_file\" type=\"file\" class=\"hidden\" s"
  },
  {
    "path": "admin/views/post/includes/publish_date.bit",
    "chars": 854,
    "preview": "<?php\n\techo Html::div_open( array('class'=>'form_block', 'hidden'=>( !$settings['advanced_post_options'] )));\n\t\techo Htm"
  },
  {
    "path": "admin/views/post/includes/quote.bit",
    "chars": 282,
    "preview": "<?php\n\t$value = isset($post_edit['quote']) ? $post_edit['quote'] : '';\n\n\techo Html::div_open( array('class'=>'form_block"
  },
  {
    "path": "admin/views/post/includes/slug.bit",
    "chars": 831,
    "preview": "<?php\n\t$value = isset($post_edit['slug']) ? $post_edit['slug'] : '';\n\n\techo Html::div_open( array('class'=>'form_block',"
  },
  {
    "path": "admin/views/post/includes/tags.bit",
    "chars": 526,
    "preview": "<?php\n\n\t$value = '';\n\n\tif(!empty($post_edit['tags']))\n\t{\n\t\t$value = implode(', ', array_map('array_pop', $post_edit['tag"
  },
  {
    "path": "admin/views/post/includes/title.bit",
    "chars": 309,
    "preview": "<?php\n\n$value = isset($post_edit['title']) ? $post_edit['title'] : '';\n\necho Html::div_open( array('class'=>'form_block'"
  },
  {
    "path": "admin/views/post/list.bit",
    "chars": 2287,
    "preview": "<?php\n\nif(empty($post_list))\n{\n\techo Html::p( array('class'=>'empty', 'content'=>$_LANG['THERE_ARE_NO_POSTS']) );\n}\nelse"
  },
  {
    "path": "admin/views/post/new_quote.bit",
    "chars": 593,
    "preview": "<?php\n\n\techo Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t\t// QUOTE\n\t\tinclude('include"
  },
  {
    "path": "admin/views/post/new_simple.bit",
    "chars": 620,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// TITLE\n\tinclude('includes/t"
  },
  {
    "path": "admin/views/post/new_video.bit",
    "chars": 2327,
    "preview": "<?php\n\n\techo Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t\t// VIDEO URL\n\t\techo Html::d"
  },
  {
    "path": "admin/views/settings/general.bit",
    "chars": 4037,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\techo Html::separator( array('"
  },
  {
    "path": "admin/views/settings/image.bit",
    "chars": 3738,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\techo Html::separator( array('"
  },
  {
    "path": "admin/views/settings/notifications.bit",
    "chars": 3220,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\techo Html::separator( array('"
  },
  {
    "path": "admin/views/settings/regional.bit",
    "chars": 2713,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t\t// LANGUAGE\n\t\techo Html::div"
  },
  {
    "path": "admin/views/settings/seo.bit",
    "chars": 5337,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// Site\n\techo Html::separator"
  },
  {
    "path": "admin/views/settings/themes.bit",
    "chars": 932,
    "preview": "<?php\n\nforeach($themes_list as $theme)\n{\n\t$class = '';\n\n\tif($theme['dir']==$settings['theme'])\n\t\t$class='theme-installed"
  },
  {
    "path": "admin/views/settings/username.bit",
    "chars": 2365,
    "preview": "<?php\n\necho Html::separator( array('style'=>'margin-top: 0;', 'content'=>$_LANG['CHANGE_USERNAME']), true);\n\necho Html::"
  },
  {
    "path": "admin/views/user/forgot.bit",
    "chars": 763,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// NEW PASSWORD\n\techo Html::d"
  },
  {
    "path": "admin/views/user/login.bit",
    "chars": 1127,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\t// USERNAME\n\techo Html::div_o"
  },
  {
    "path": "admin/views/user/send_forgot.bit",
    "chars": 305,
    "preview": "<?php\n\necho Html::form_open( array('id'=>'js_form', 'name'=>'form', 'method'=>'post') );\n\n\techo Html::div_open( array('c"
  },
  {
    "path": "admin.php",
    "chars": 748,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "bludit.php",
    "chars": 3673,
    "preview": "<?php\nheader('content-type: application/json; charset=utf-8');\nheader(\"access-control-allow-origin: *\");\n\n/*\n * Nibblebl"
  },
  {
    "path": "feed.php",
    "chars": 2072,
    "preview": "<?php\nheader(\"Content-type: text/xml; charset=utf-8\");\n\nrequire('admin/boot/feed.bit');\n\n// Get the last update (the dat"
  },
  {
    "path": "index.php",
    "chars": 766,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "install.php",
    "chars": 21282,
    "preview": "<?php\n\n/*\n * Nibbleblog -\n * http://www.nibbleblog.com\n * Author Diego Najar\n\n * All Nibbleblog code is released under t"
  },
  {
    "path": "languages/ca_ES.bit",
    "chars": 18142,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Català',\n\t'english'=>'Catalan',\n\t'last_update'=>'21/05/2014',\n\t'author"
  },
  {
    "path": "languages/cs_CZ.bit",
    "chars": 16676,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Česky',\n\t'czech'=>'čeština',\n\t'last_update'=>'05/09/2016',\n\t'author'=>"
  },
  {
    "path": "languages/da_DK.bit",
    "chars": 17547,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Dansk - Danmark',\n\t'english'=>'Danish',\n\t'last_update'=>'21/08/2014',\n"
  },
  {
    "path": "languages/de_DE.bit",
    "chars": 17723,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Deutsch - Deutsch',\n\t'english'=>'German',\n\t'last_update'=>'02/02/2014'"
  },
  {
    "path": "languages/en_US.bit",
    "chars": 17325,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'English - United States',\n\t'english'=>'English',\n\t'last_update'=>'20/0"
  },
  {
    "path": "languages/es_ES.bit",
    "chars": 18251,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Español - Español',\n\t'english'=>'Spanish',\n\t'last_update'=>'27/09/2016"
  },
  {
    "path": "languages/fa_IR.bit",
    "chars": 17104,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Farsi(فارسی) - Iran',\n\t'farsi'=>'Farsi',\n\t'last_update'=>'12/22/2014',"
  },
  {
    "path": "languages/fr_FR.bit",
    "chars": 18941,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Français - Français',\n\t'english'=>'French',\n\t'last_update'=>'10/02/201"
  },
  {
    "path": "languages/it_IT.bit",
    "chars": 18359,
    "preview": "<?php\n\n$_LANG_CONFIG['DATA'] = array(\n\t'native'=>'Italiano - Italiano',\n\t'english'=>'Italian',\n\t'last_update'=>'02/02/20"
  }
]

// ... and 295 more files (download for full content)

About this extraction

This page contains the full source code of the dignajar/nibbleblog GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 495 files (1.2 MB), approximately 385.2k tokens, and a symbol index with 510 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!