+.idea
.DS_Store
.vagrant
app/assets/*
+++ /dev/null
-!.htaccess
+++ /dev/null
-Order deny,allow
-Deny from all
@define ('DEFAULT_THEME', 'baggy');
@define ('THEME', ROOT . '/themes');
-@define ('LOCALE', ROOT . '/src/Wallabag/Wallabag/Resources/translations/locale');
+@define ('LOCALE', ROOT . '/src/Wallabag/Wallabag/Resources/translations');
@define ('CACHE', ROOT . '/app/cache');
@define ('PAGINATION', '12');
"phpunit/phpunit": "~3.7"
},
"autoload": {
- "psr-0": { "Wallabag\\Wallabag": "src/" }
+ "psr-4": { "Wallabag\\": "src/Wallabag" }
},
"config": {
"bin-dir": "bin"
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "hash": "7915fd3c1343f447145fb167b0bb4d36",
+ "hash": "6fa216371c9d7577a117526db6f07407",
"packages": [
{
"name": "ezyang/htmlpurifier",
namespace Wallabag\Wallabag;
+use \PDO;
+
class Database {
var $handle;
namespace Wallabag\Wallabag;
+use \Session;
+
class Language
{
protected $wallabag;
$pocheUser = Session::getParam('poche_user');
$language = (is_null($pocheUser) ? LANG : $pocheUser->getConfigValue('language'));
- @putenv('LC_ALL=' . $language);
+ putenv('LC_ALL=' . $language);
setlocale(LC_ALL, $language);
bindtextdomain($language, LOCALE);
textdomain($language);
namespace Wallabag\Wallabag;
+use \Twig_Environment;
+use \Session;
+use \Twig_Loader_Chain;
+use \Twig_Loader_Filesystem;
+use \Twig_Extensions_Extension_I18n;
+use \Twig_SimpleFilter;
+
class Template extends Twig_Environment
{
protected $wallabag;
$this->addExtension(new Twig_Extensions_Extension_I18n());
# filter to display domain name of an url
- $filter = new Twig_SimpleFilter('getDomain', 'Tools::getDomain');
+ $filter = new Twig_SimpleFilter('getDomain', 'Wallabag\\Wallabag\\Tools::getDomain');
$this->addFilter($filter);
# filter for reading time
- $filter = new Twig_SimpleFilter('getReadingTime', 'Tools::getReadingTime');
+ $filter = new Twig_SimpleFilter('getReadingTime', 'Wallabag\\Wallabag\\Tools::getReadingTime');
$this->addFilter($filter);
}
namespace Wallabag\Wallabag;
+use \RecursiveIteratorIterator;
+use \RecursiveDirectoryIterator;
+
final class Tools
{
/**
namespace Wallabag\Wallabag;
+use \Paginator;
+use \Session;
+use \Messages;
+use \FeedWriter;
+
class Wallabag
{
/**
{
Tools::initPhp();
- $pocheUser = Session::getParam('poche_user');
+ $pocheUser = \Session::getParam('poche_user');
if ($pocheUser && $pocheUser != array()) {
$this->user = $pocheUser;
<dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd>
<dt>{% trans "Version" %}</dt>
- <dd>{{ constant('POCHE') }}</dd>
+ <dd>{{ constant('WALLABAG') }}</dd>
</dl>
<p>{% trans "wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted." %}</p>
<h2>{% trans "Upgrading wallabag" %}</h2>
<ul>
- <li>{% trans "Installed version" %}: <strong>{{ constant('POCHE') }}</strong></li>
+ <li>{% trans "Installed version" %}: <strong>{{ constant('WALLABAG') }}</strong></li>
<li>{% trans "Latest stable version" %}: {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent stable version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_prod }})</li>
{% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "Latest dev version" %}: {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent development version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_dev }}){% endif %}</li>
</ul>
--- /dev/null
+../../themes/default/public
\ No newline at end of file
<footer class="w600p center mt3 mb3 smaller txtright">
<p>{% trans "powered by" %} <a href="http://wallabag.org">wallabag</a></p>
- {% if constant('DEBUG_POCHE') == 1 %}<p><strong>{% trans "debug mode is on so cache is off." %} {% trans "your wallabag version:" %}{{constant('POCHE')}}. {% trans "storage:" %} {{constant('STORAGE')}}</strong></p>{% endif %}
+ {% if constant('DEBUG_POCHE') == 1 %}<p><strong>{% trans "debug mode is on so cache is off." %} {% trans "your wallabag version:" %}{{constant('WALLABAG')}}. {% trans "storage:" %} {{constant('STORAGE')}}</strong></p>{% endif %}
</footer>
\ No newline at end of file
<dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd>
<dt>{% trans "Version" %}</dt>
- <dd>{{ constant('POCHE') }}</dd>
+ <dd>{{ constant('WALLABAG') }}</dd>
</dl>
<p>{% trans "wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted." %}</p>
<h2>{% trans "Upgrading wallabag" %}</h2>
<ul>
- <li>{% trans "Installed version" %}: <strong>{{ constant('POCHE') }}</strong></li>
+ <li>{% trans "Installed version" %}: <strong>{{ constant('WALLABAG') }}</strong></li>
<li>{% trans "Latest stable version" %}: {{ prod }}. {% if compare_prod == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent stable version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_prod }})</li>
{% if constant('DEBUG_POCHE') == 1 %}<li>{% trans "Latest dev version" %}: {{ dev }}. {% if compare_dev == -1 %}<strong><a href="http://wallabag.org/">{% trans "A more recent development version is available." %}</a></strong>{% else %}{% trans "You are up to date." %}{% endif %} ({% trans "Last check:" %} {{ check_time_dev }}){% endif %}</li>
</ul>
define ('WALLABAG', '2.0.0-alpha');
+use Wallabag\Wallabag\Wallabag;
+
require_once '../app/check_essentials.php';
require_once '../app/check_setup.php';
require_once '../app/config/global.inc.php';
Session::init();
// Let's rock !
-$wallabag = new Wallabag\Wallabag\Wallabag();
+$wallabag = new Wallabag();
$wallabag->run();
\ No newline at end of file
--- /dev/null
+../../themes/_global/public
\ No newline at end of file
--- /dev/null
+../../themes/baggy/public
\ No newline at end of file
--- /dev/null
+../../themes/dark/public
\ No newline at end of file
--- /dev/null
+../../themes/default/public
\ No newline at end of file
--- /dev/null
+../../themes/dmagenta/public
\ No newline at end of file
--- /dev/null
+../../themes/solarized/public
\ No newline at end of file
--- /dev/null
+../../themes/solarized-dark/public
\ No newline at end of file