summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-27 19:23:11 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-12-27 19:23:11 +0100
commit9f52ab97cb947944546917623d8fe0999d8bda9b (patch)
tree711f1e2b99278fbb4f0be5c8f387633767b5ebb7
parenta1249e56a7151ea20f64ac3091c0a3383d21049c (diff)
Début 0.8-dev
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126
-rw-r--r--README.md4
-rwxr-xr-xapp/Controllers/configureController.php93
-rw-r--r--app/i18n/en.php10
-rw-r--r--app/i18n/fr.php11
-rw-r--r--app/layout/aside_configure.phtml13
-rw-r--r--app/layout/header.phtml4
-rw-r--r--app/views/configure/archiving.phtml47
-rw-r--r--app/views/configure/display.phtml73
-rw-r--r--app/views/configure/users.phtml72
-rw-r--r--constants.php2
10 files changed, 217 insertions, 112 deletions
diff --git a/README.md b/README.md
index 1f1ab35c3..f20f870dd 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@ Il se veut léger et facile à prendre en main tout en étant un outil puissant
* Site officiel : http://freshrss.org
* Démo : http://marienfressinaud.fr/projets/freshrss/
* Développeur : Marien Fressinaud <dev@marienfressinaud.fr>
-* Version actuelle : 0.7-beta3
-* Date de publication 2014-01-xx
+* Version actuelle : 0.8-dev
+* Date de publication 2014-xx-xx
* License [GNU AGPL 3](http://www.gnu.org/licenses/agpl-3.0.html)
![Logo de FreshRSS](http://marienfressinaud.fr/data/images/freshrss/freshrss_title.png)
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 762134dd0..5fa686ccc 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -159,11 +159,6 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$onread_jump_next = Minz_Request::param ('onread_jump_next', 'no');
$lazyload = Minz_Request::param ('lazyload', 'no');
$sort = Minz_Request::param ('sort_order', 'DESC');
- $old = Minz_Request::param ('old_entries', 3);
- $keepHistoryDefault = Minz_Request::param('keep_history_default', 0);
- $mail = Minz_Request::param ('mail_login', false);
- $anon = Minz_Request::param ('anon_access', 'no');
- $token = Minz_Request::param ('token', $current_token);
$openArticle = Minz_Request::param ('mark_open_article', 'no');
$openSite = Minz_Request::param ('mark_open_site', 'no');
$scroll = Minz_Request::param ('mark_scroll', 'no');
@@ -189,11 +184,6 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->conf->_onread_jump_next ($onread_jump_next);
$this->view->conf->_lazyload ($lazyload);
$this->view->conf->_sortOrder ($sort);
- $this->view->conf->_oldEntries ($old);
- $this->view->conf->_keepHistoryDefault($keepHistoryDefault);
- $this->view->conf->_mailLogin ($mail);
- $this->view->conf->_anonAccess ($anon);
- $this->view->conf->_token ($token);
$this->view->conf->_markWhen (array (
'article' => $openArticle,
'site' => $openSite,
@@ -219,14 +209,9 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
'default_view' => $this->view->conf->defaultView (),
'auto_load_more' => $this->view->conf->autoLoadMore (),
'display_posts' => $this->view->conf->displayPosts (),
- 'onread_jump_next' => $this->view->conf->onread_jump_next (),
+ 'onread_jump_next' => $this->view->conf->onread_jump_next (),
'lazyload' => $this->view->conf->lazyload (),
'sort_order' => $this->view->conf->sortOrder (),
- 'old_entries' => $this->view->conf->oldEntries (),
- 'keep_history_default' => $this->view->conf->keepHistoryDefault(),
- 'mail_login' => $this->view->conf->mailLogin (),
- 'anon_access' => $this->view->conf->anonAccess (),
- 'token' => $this->view->conf->token (),
'mark_when' => $this->view->conf->markWhen (),
'theme' => $this->view->conf->theme (),
'topline_read' => $this->view->conf->toplineRead () ? 'yes' : 'no',
@@ -261,11 +246,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$this->view->themes = FreshRSS_Themes::get();
- Minz_View::prependTitle (Minz_Translate::t ('general_and_reading_management') . ' - ');
-
- $entryDAO = new FreshRSS_EntryDAO ();
- $this->view->nb_total = $entryDAO->count ();
- $this->view->size_total = $entryDAO->size ();
+ Minz_View::prependTitle (Minz_Translate::t ('reading_configuration') . ' - ');
}
public function sharingAction () {
@@ -410,4 +391,74 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
Minz_View::prependTitle (Minz_Translate::t ('shortcuts_management') . ' - ');
}
+
+ public function usersAction() {
+ if (Minz_Request::isPost()) {
+ $current_token = $this->view->conf->token();
+
+ $mail = Minz_Request::param('mail_login', false);
+ $anon = Minz_Request::param('anon_access', 'no');
+ $token = Minz_Request::param('token', $current_token);
+ $this->view->conf->_mailLogin($mail);
+ $this->view->conf->_anonAccess($anon);
+ $this->view->conf->_token($token);
+
+ $values = array(
+ 'mail_login' => $this->view->conf->mailLogin(),
+ 'anon_access' => $this->view->conf->anonAccess(),
+ 'token' => $this->view->conf->token(),
+ );
+
+ $confDAO = new FreshRSS_ConfigurationDAO();
+ $confDAO->update($values);
+ Minz_Session::_param('conf', $this->view->conf);
+ Minz_Session::_param('mail', $this->view->conf->mailLogin());
+
+ // notif
+ $notif = array(
+ 'type' => 'good',
+ 'content' => Minz_Translate::t('configuration_updated')
+ );
+ Minz_Session::_param('notification', $notif);
+
+ Minz_Request::forward(array('c' => 'configure', 'a' => 'users'), true);
+ }
+
+ Minz_View::prependTitle(Minz_Translate::t ('users') . ' - ');
+ }
+
+ public function archivingAction () {
+ if (Minz_Request::isPost()) {
+ $old = Minz_Request::param('old_entries', 3);
+ $keepHistoryDefault = Minz_Request::param('keep_history_default', 0);
+
+ $this->view->conf->_oldEntries($old);
+ $this->view->conf->_keepHistoryDefault($keepHistoryDefault);
+
+ $values = array(
+ 'old_entries' => $this->view->conf->oldEntries(),
+ 'keep_history_default' => $this->view->conf->keepHistoryDefault(),
+ );
+
+ $confDAO = new FreshRSS_ConfigurationDAO();
+ $confDAO->update($values);
+ Minz_Session::_param('conf', $this->view->conf);
+ Minz_Session::_param('mail', $this->view->conf->mailLogin ());
+
+ // notif
+ $notif = array(
+ 'type' => 'good',
+ 'content' => Minz_Translate::t('configuration_updated')
+ );
+ Minz_Session::_param('notification', $notif);
+
+ Minz_Request::forward(array('c' => 'configure', 'a' => 'archiving'), true);
+ }
+
+ Minz_View::prependTitle(Minz_Translate::t('archiving_configuration') . ' - ');
+
+ $entryDAO = new FreshRSS_EntryDAO();
+ $this->view->nb_total = $entryDAO->count();
+ $this->view->size_total = $entryDAO->size();
+ }
}
diff --git a/app/i18n/en.php b/app/i18n/en.php
index f74a7f198..a1ab4a025 100644
--- a/app/i18n/en.php
+++ b/app/i18n/en.php
@@ -8,7 +8,7 @@ return array (
'search_short' => 'Search',
'configuration' => 'Configuration',
- 'general_and_reading' => 'General and reading',
+ 'users' => 'Users',
'categories' => 'Categories',
'category' => 'Category',
'shortcuts' => 'Shortcuts',
@@ -68,7 +68,6 @@ return array (
'feed_updated' => 'Feed has been updated',
'rss_feed_management' => 'RSS feeds management',
'configuration_updated' => 'Configuration has been updated',
- 'general_and_reading_management'=> 'General and reading management',
'sharing_management' => 'Sharing options management',
'bad_opml_file' => 'Your OPML file is invalid',
'shortcuts_updated' => 'Shortcuts have been updated',
@@ -157,15 +156,16 @@ return array (
'no_selected_feed' => 'No feed selected.',
'think_to_add' => 'Think to add RSS feeds!',
- 'general_configuration' => 'General configuration',
- 'language' => 'Language',
- 'month' => 'months',
+ 'current_user' => 'Current user',
'default_user' => 'Username of the default user (maximum 16 alphanumeric characters)',
'persona_connection_email' => 'Login mail address (use <a href="https://persona.org/">Mozilla Persona</a>)',
'allow_anonymous' => 'Allow anonymous reading',
'auth_token' => 'Authentication token',
'explain_token' => 'Allows to access RSS output without authentication.<br />%s?token=%s',
'login_configuration' => 'Login',
+
+ 'language' => 'Language',
+ 'month' => 'months',
'archiving_configuration' => 'Archiving',
'delete_articles_every' => 'Remove articles after',
'purge_now' => 'Purge now',
diff --git a/app/i18n/fr.php b/app/i18n/fr.php
index f9c4d00cc..f4e9d109c 100644
--- a/app/i18n/fr.php
+++ b/app/i18n/fr.php
@@ -8,7 +8,7 @@ return array (
'search_short' => 'Rechercher',
'configuration' => 'Configuration',
- 'general_and_reading' => 'Général et lecture',
+ 'users' => 'Utilisateurs',
'categories' => 'Catégories',
'category' => 'Catégorie',
'shortcuts' => 'Raccourcis',
@@ -68,7 +68,6 @@ return array (
'feed_updated' => 'Le flux a été mis à jour',
'rss_feed_management' => 'Gestion des flux RSS',
'configuration_updated' => 'La configuration a été mise à jour',
- 'general_and_reading_management'=> 'Gestion générale et affichage',
'sharing_management' => 'Gestion des options de partage',
'bad_opml_file' => 'Votre fichier OPML n’est pas valide',
'shortcuts_updated' => 'Les raccourcis ont été mis à jour',
@@ -157,16 +156,16 @@ return array (
'no_selected_feed' => 'Aucun flux sélectionné.',
'think_to_add' => 'Pensez à en ajouter !',
- 'general_configuration' => 'Configuration générale',
- 'language' => 'Langue',
-
- 'month' => 'mois',
+ 'current_user' => 'Utilisateur actuel',
'default_user' => 'Nom de l’utilisateur par défaut (16 caractères alphanumériques maximum)',
'persona_connection_email' => 'Adresse courriel de connexion (utilise <a href="https://persona.org/">Mozilla Persona</a>)',
'allow_anonymous' => 'Autoriser la lecture anonyme',
'auth_token' => 'Jeton d’identification',
'explain_token' => 'Permet d’accéder à la sortie RSS sans besoin de s’authentifier.<br />%s?output=rss&token=%s',
'login_configuration' => 'Identification',
+
+ 'language' => 'Langue',
+ 'month' => 'mois',
'archiving_configuration' => 'Archivage',
'delete_articles_every' => 'Supprimer les articles après',
'purge_now' => 'Purger maintenant',
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml
index aa46af95d..89f63e36c 100644
--- a/app/layout/aside_configure.phtml
+++ b/app/layout/aside_configure.phtml
@@ -1,8 +1,13 @@
-<div class="nav nav-list aside">
+<ul class="nav nav-list aside">
<li class="nav-header"><?php echo Minz_Translate::t ('configuration'); ?></li>
-
+ <li class="item<?php echo Minz_Request::actionName () == 'users' ? ' active' : ''; ?>">
+ <a href="<?php echo _url ('configure', 'users'); ?>"><?php echo Minz_Translate::t ('users'); ?></a>
+ </li>
<li class="item<?php echo Minz_Request::actionName () == 'display' ? ' active' : ''; ?>">
- <a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Minz_Translate::t ('general_and_reading'); ?></a>
+ <a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Minz_Translate::t ('reading_configuration'); ?></a>
+ </li>
+ <li class="item<?php echo Minz_Request::actionName () == 'archiving' ? ' active' : ''; ?>">
+ <a href="<?php echo _url ('configure', 'archiving'); ?>"><?php echo Minz_Translate::t ('archiving_configuration'); ?></a>
</li>
<li class="item<?php echo Minz_Request::actionName () == 'sharing' ? ' active' : ''; ?>">
<a href="<?php echo _url ('configure', 'sharing'); ?>"><?php echo Minz_Translate::t ('sharing'); ?></a>
@@ -10,4 +15,4 @@
<li class="item<?php echo Minz_Request::actionName () == 'shortcut' ? ' active' : ''; ?>">
<a href="<?php echo _url ('configure', 'shortcut'); ?>"><?php echo Minz_Translate::t ('shortcuts'); ?></a>
</li>
-</div>
+</ul>
diff --git a/app/layout/header.phtml b/app/layout/header.phtml
index 6cb1380a3..bba22508e 100644
--- a/app/layout/header.phtml
+++ b/app/layout/header.phtml
@@ -57,7 +57,9 @@
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li>
<li class="dropdown-header"><?php echo Minz_Translate::t ('configuration'); ?></li>
- <li class="item"><a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Minz_Translate::t ('general_and_reading'); ?></a></li>
+ <li class="item"><a href="<?php echo _url ('configure', 'users'); ?>"><?php echo Minz_Translate::t ('users'); ?></a></li>
+ <li class="item"><a href="<?php echo _url ('configure', 'display'); ?>"><?php echo Minz_Translate::t ('reading_configuration'); ?></a></li>
+ <li class="item"><a href="<?php echo _url ('configure', 'archiving'); ?>"><?php echo Minz_Translate::t ('archiving_configuration'); ?></a></li>
<li class="item"><a href="<?php echo _url ('configure', 'sharing'); ?>"><?php echo Minz_Translate::t ('sharing'); ?></a></li>
<li class="item"><a href="<?php echo _url ('configure', 'shortcut'); ?>"><?php echo Minz_Translate::t ('shortcuts'); ?></a></li>
<li class="separator"></li>
diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml
new file mode 100644
index 000000000..e4aacc7c6
--- /dev/null
+++ b/app/views/configure/archiving.phtml
@@ -0,0 +1,47 @@
+<?php $this->partial('aside_configure'); ?>
+
+<div class="post">
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo Minz_Translate::t('back_to_rss_feeds'); ?></a>
+
+ <form method="post" action="<?php echo _url('configure', 'archiving'); ?>">
+ <legend><?php echo Minz_Translate::t('archiving_configuration'); ?></legend>
+ <p><?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('archiving_configuration_help'); ?></p>
+
+ <div class="form-group">
+ <label class="group-name" for="old_entries"><?php echo Minz_Translate::t('delete_articles_every'); ?></label>
+ <div class="group-controls">
+ <input type="number" id="old_entries" name="old_entries" min="1" max="1200" value="<?php echo $this->conf->oldEntries(); ?>" /> <?php echo Minz_Translate::t('month'); ?>
+   <a class="btn confirm" href="<?php echo _url('entry', 'purge'); ?>"><?php echo Minz_Translate::t('purge_now'); ?></a>
+ </div>
+ </div>
+ <div class="form-group">
+ <label class="group-name" for="keep_history_default"><?php echo Minz_Translate::t('keep_history'), ' ', Minz_Translate::t('by_feed'); ?>(<?php echo Minz_Translate::t('by_default'); ?>)</label>
+ <div class="group-controls">
+ <select class="number" name="keep_history_default" id="keep_history_default"><?php
+ foreach (array(-3 => '', 0 => '0', 10 => '10', 50 => '50', 100 => '100', 500 => '500', 1000 => '1 000', 5000 => '5 000', 10000 => '10 000', -1 => '∞') as $v => $t) {
+ echo '<option value="' . $v . ($this->conf->keepHistoryDefault() == $v ? '" selected="selected' : '') . '">' . $t . ' </option>';
+ }
+ ?></select>
+ </div>
+ </div>
+
+ <div class="form-group form-actions">
+ <div class="group-controls">
+ <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t('save'); ?></button>
+ <button type="reset" class="btn"><?php echo Minz_Translate::t('cancel'); ?></button>
+ </div>
+ </div>
+
+ <legend><?php echo Minz_Translate::t ('advanced'); ?></legend>
+ <div class="form-group">
+ <label class="group-name"></label>
+ <div class="group-controls">
+ <p><?php echo $this->nb_total; ?> <?php echo Minz_Translate::t('articles') ?>, <?php echo formatBytes($this->size_total); ?>.</p>
+ <p><a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
+ <?php echo Minz_Translate::t('optimize_bdd'); ?>
+ </a></p>
+ <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('optimize_todo_sometimes'); ?>
+ </div>
+ </div>
+ </form>
+</div>
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index fca533752..800181659 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -4,7 +4,7 @@
<a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
<form method="post" action="<?php echo _url ('configure', 'display'); ?>">
- <legend><?php echo Minz_Translate::t ('general_configuration'); ?></legend>
+ <legend><?php echo Minz_Translate::t ('theme'); ?></legend>
<div class="form-group">
<label class="group-name" for="language"><?php echo Minz_Translate::t ('language'); ?></label>
@@ -38,65 +38,6 @@
</div>
</div>
- <legend><?php echo Minz_Translate::t ('login_configuration'); ?></legend>
-
- <div class="form-group">
- <label class="group-name" for="mail_login"><?php echo Minz_Translate::t ('persona_connection_email'); ?></label>
- <?php $mail = $this->conf->mailLogin (); ?>
- <div class="group-controls">
- <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>" />
- <noscript><b><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></b></noscript>
- <label class="checkbox" for="anon_access">
- <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess () == 'yes' ? ' checked="checked"' : ''; ?> />
- <?php echo Minz_Translate::t ('allow_anonymous'); ?>
- </label>
- </div>
- </div>
-
- <div class="form-group">
- <label class="group-name" for="token"><?php echo Minz_Translate::t ('auth_token'); ?></label>
- <?php $token = $this->conf->token (); ?>
- <div class="group-controls">
- <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>"/>
- <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
- </div>
- </div>
-
- <div class="form-group form-actions">
- <div class="group-controls">
- <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
- <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
- </div>
- </div>
-
- <legend><?php echo Minz_Translate::t ('archiving_configuration'); ?></legend>
- <p><?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('archiving_configuration_help'); ?></p>
-
- <div class="form-group">
- <label class="group-name" for="old_entries"><?php echo Minz_Translate::t ('delete_articles_every'); ?></label>
- <div class="group-controls">
- <input type="number" id="old_entries" name="old_entries" min="1" max="1200" value="<?php echo $this->conf->oldEntries (); ?>" /> <?php echo Minz_Translate::t ('month'); ?>
-   <a class="btn confirm" href="<?php echo _url('entry', 'purge'); ?>"><?php echo Minz_Translate::t('purge_now'); ?></a>
- </div>
- </div>
- <div class="form-group">
- <label class="group-name" for="keep_history_default"><?php echo Minz_Translate::t('keep_history'), ' ', Minz_Translate::t('by_feed'); ?> (<?php echo Minz_Translate::t('by_default'); ?>)</label>
- <div class="group-controls">
- <select class="number" name="keep_history_default" id="keep_history_default"><?php
- foreach (array(-3 => '', 0 => '0', 10 => '10', 50 => '50', 100 => '100', 500 => '500', 1000 => '1 000', 5000 => '5 000', 10000 => '10 000', -1 => '∞') as $v => $t) {
- echo '<option value="' . $v . ($this->conf->keepHistoryDefault() == $v ? '" selected="selected' : '') . '">' . $t . ' </option>';
- }
- ?></select>
- </div>
- </div>
-
- <div class="form-group form-actions">
- <div class="group-controls">
- <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
- <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
- </div>
- </div>
-
<legend><?php echo Minz_Translate::t ('reading_configuration'); ?></legend>
<div class="form-group">
@@ -246,17 +187,5 @@
<button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
</div>
</div>
-
- <legend><?php echo Minz_Translate::t ('advanced'); ?></legend>
- <div class="form-group">
- <label class="group-name"></label>
- <div class="group-controls">
- <p><?php echo $this->nb_total; ?> <?php echo Minz_Translate::t('articles') ?>, <?php echo formatBytes($this->size_total); ?>.</p>
- <p><a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
- <?php echo Minz_Translate::t('optimize_bdd'); ?>
- </a></p>
- <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('optimize_todo_sometimes'); ?>
- </div>
- </div>
</form>
</div>
diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtml
new file mode 100644
index 000000000..a8e2deea1
--- /dev/null
+++ b/app/views/configure/users.phtml
@@ -0,0 +1,72 @@
+<?php $this->partial('aside_configure'); ?>
+
+<div class="post">
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo Minz_Translate::t('back_to_rss_feeds'); ?></a>
+
+ <form method="post" action="<?php echo _url('configure', 'users'); ?>">
+ <legend><?php echo Minz_Translate::t('users'); ?></legend>
+
+ <div class="form-group">
+ <label class="group-name" for="current_user">Current user</label>
+ <div class="group-controls">
+ <input id="current_user" type="text" readonly="readonly" value="<?php echo Minz_Configuration::currentUser(); ?>" />
+ <code>$_SERVER['REMOTE_USER'] = <?php echo isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : ''; ?></code>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="anon_access">
+ <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess() == 'yes' ? ' checked="checked"' : ''; ?> />
+ <?php echo Minz_Translate::t('allow_anonymous'); ?>
+ </label>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="group-name" for="auth_type">Authentification method</label>
+ <div class="group-controls">
+ <select id="auth_type" name="auth_type">
+ <option value="none">None (dangerous)</option>
+ <option value="http_auth">HTTP Auth ($_SERVER['REMOTE_USER'])</option>
+ <option value="persona">Mozilla Persona</option>
+ </select>
+ (selector not implemented yet)
+ </div>
+ </div>
+
+ <div class="form-group form-actions">
+ <div class="group-controls">
+ <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t('save'); ?></button>
+ <button type="reset" class="btn"><?php echo Minz_Translate::t('cancel'); ?></button>
+ </div>
+ </div>
+
+ <legend><?php echo Minz_Translate::t('login_configuration'); ?></legend>
+
+ <div class="form-group">
+ <label class="group-name" for="mail_login"><?php echo Minz_Translate::t('persona_connection_email'); ?></label>
+ <?php $mail = $this->conf->mailLogin(); ?>
+ <div class="group-controls">
+ <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>" />
+ <noscript><b><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></b></noscript>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label class="group-name" for="token"><?php echo Minz_Translate::t('auth_token'); ?></label>
+ <?php $token = $this->conf->token(); ?>
+ <div class="group-controls">
+ <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Minz_Translate::t('blank_to_disable'); ?>"/>
+ <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
+ </div>
+ </div>
+
+ <div class="form-group form-actions">
+ <div class="group-controls">
+ <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t('save'); ?></button>
+ <button type="reset" class="btn"><?php echo Minz_Translate::t('cancel'); ?></button>
+ </div>
+ </div>
+ </form>
+</div>
diff --git a/constants.php b/constants.php
index 0c7adc57e..a7c96f47b 100644
--- a/constants.php
+++ b/constants.php
@@ -1,5 +1,5 @@
<?php
-define('FRESHRSS_VERSION', '0.7-beta3');
+define('FRESHRSS_VERSION', '0.8-dev');
define('FRESHRSS_WEBSITE', 'http://freshrss.org');
// Constantes de chemins