2013-02-18 03:48:21 +01:00
< div class = " page-header " >
2015-01-13 22:03:24 +01:00
< h2 >< ? = $title ?> </h2>
< nav >
< ul >
< li class = " active " >< a href = " ?action=config " >< ? = t ( 'general' ) ?> </a></li>
< li >< a href = " ?action=services " >< ? = t ( 'external services' ) ?> </a></li>
< li >< a href = " ?action=api " >< ? = t ( 'api' ) ?> </a></li>
< li >< a href = " ?action=database " >< ? = t ( 'database' ) ?> </a></li>
< li >< a href = " ?action=help " >< ? = t ( 'help' ) ?> </a></li>
< li >< a href = " ?action=about " >< ? = t ( 'about' ) ?> </a></li>
</ ul >
</ nav >
2013-02-18 03:48:21 +01:00
</ div >
2013-03-27 02:54:26 +01:00
< section >
2015-01-29 03:57:34 +01:00
< form method = " post " action = " ?action=config " autocomplete = " off " id = " config-form " >
2013-02-18 03:48:21 +01:00
2014-12-24 21:58:24 +01:00
< h3 >< ? = t ( 'Authentication' ) ?> </h3>
2015-01-29 03:57:34 +01:00
< div class = " options " >
< ? = Helper\form_hidden ( 'csrf' , $values ) ?>
< ? = Helper\form_label ( t ( 'Username' ), 'username' ) ?>
< ? = Helper\form_text ( 'username' , $values , $errors , array ( 'required' )) ?> <br/>
2013-02-18 03:48:21 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Password' ), 'password' ) ?>
< ? = Helper\form_password ( 'password' , $values , $errors ) ?> <br/>
2013-02-18 03:48:21 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Confirmation' ), 'confirmation' ) ?>
< ? = Helper\form_password ( 'confirmation' , $values , $errors ) ?> <br/>
</ div >
2013-04-13 03:08:55 +02:00
2014-12-24 21:58:24 +01:00
< h3 >< ? = t ( 'Application' ) ?> </h3>
2015-01-29 03:57:34 +01:00
< div class = " options " >
< ? = Helper\form_label ( t ( 'Timezone' ), 'timezone' ) ?>
< ? = Helper\form_select ( 'timezone' , $timezones , $values , $errors ) ?> <br/>
2014-02-26 01:03:46 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Language' ), 'language' ) ?>
< ? = Helper\form_select ( 'language' , $languages , $values , $errors ) ?> <br/>
2013-02-18 03:48:21 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Theme' ), 'theme' ) ?>
< ? = Helper\form_select ( 'theme' , $theme_options , $values , $errors ) ?> <br/>
2014-12-24 21:58:24 +01:00
2015-01-29 03:57:34 +01:00
< ? php if ( ENABLE_AUTO_UPDATE ) : ?>
< ? = Helper\form_label ( t ( 'Auto-Update URL' ), 'auto_update_url' ) ?>
2015-01-30 01:54:40 +01:00
< ? = Helper\form_text ( 'auto_update_url' , $values , $errors , array ( 'required' )) ?> <br/>
2015-01-29 03:57:34 +01:00
< ? php endif ?>
2014-12-24 21:58:24 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_checkbox ( 'debug_mode' , t ( 'Enable debug mode' ), 1 , isset ( $values [ 'debug_mode' ]) && $values [ 'debug_mode' ] == 1 ) ?> <br/>
2014-12-24 21:58:24 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_checkbox ( 'image_proxy' , t ( 'Enable image proxy' ), 1 , isset ( $values [ 'image_proxy' ]) && $values [ 'image_proxy' ] == 1 ) ?>
< div class = " form-help " >< ? = t ( 'Avoid mixed content warnings with HTTPS' ) ?> </div>
</ div >
2014-12-16 02:38:35 +01:00
2015-01-29 03:57:34 +01:00
< h3 >< ? = t ( 'Reading' ) ?> </h3>
< div class = " options " >
< ? = Helper\form_label ( t ( 'Remove automatically read items' ), 'autoflush' ) ?>
< ? = Helper\form_select ( 'autoflush' , $autoflush_read_options , $values , $errors ) ?> <br/>
2013-05-23 13:44:45 +02:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Remove automatically unread items' ), 'autoflush_unread' ) ?>
< ? = Helper\form_select ( 'autoflush_unread' , $autoflush_unread_options , $values , $errors ) ?> <br/>
2013-07-06 16:50:37 +02:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Items per page' ), 'items_per_page' ) ?>
< ? = Helper\form_select ( 'items_per_page' , $paging_options , $values , $errors ) ?> <br/>
2013-09-19 03:02:46 +02:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Default sorting order for items' ), 'items_sorting_direction' ) ?>
< ? = Helper\form_select ( 'items_sorting_direction' , $sorting_options , $values , $errors ) ?> <br/>
2014-05-29 16:57:23 +02:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Display items on lists' ), 'items_display_mode' ) ?>
< ? = Helper\form_select ( 'items_display_mode' , $display_mode , $values , $errors ) ?> <br/>
2013-12-23 19:33:16 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'When there is nothing to read, redirect me to this page' ), 'redirect_nothing_to_read' ) ?>
< ? = Helper\form_select ( 'redirect_nothing_to_read' , $redirect_nothing_to_read_options , $values , $errors ) ?> <br/>
2015-01-29 02:17:02 +01:00
2015-01-29 03:57:34 +01:00
< ? = Helper\form_label ( t ( 'Refresh interval in minutes for unread counter' ), 'frontend_updatecheck_interval' ) ?>
< ? = Helper\form_number ( 'frontend_updatecheck_interval' , $values , $errors , array ( 'min="0"' )) ?> <br/>
2014-03-30 21:59:26 +02:00
2015-01-29 23:28:18 +01:00
< ? = Helper\form_checkbox ( 'original_marks_read' , t ( 'Original link marks article as read' ), 1 , isset ( $values [ 'original_marks_read' ]) && $values [ 'original_marks_read' ] == 1 ) ?> <br/>
2015-01-29 03:57:34 +01:00
< ? = Helper\form_checkbox ( 'nocontent' , t ( 'Do not fetch the content of articles' ), 1 , isset ( $values [ 'nocontent' ]) && $values [ 'nocontent' ] == 1 ) ?> <br/>
< ? = Helper\form_checkbox ( 'favicons' , t ( 'Download favicons' ), 1 , isset ( $values [ 'favicons' ]) && $values [ 'favicons' ] == 1 ) ?> <br/>
2015-08-02 18:20:38 +02:00
>
2015-01-29 03:57:34 +01:00
</ div >
2014-12-24 23:54:27 +01:00
2013-02-18 03:48:21 +01:00
< div class = " form-actions " >
2013-06-15 02:42:09 +02:00
< input type = " submit " value = " <?= t('Save') ?> " class = " btn btn-blue " />
2013-02-18 03:48:21 +01:00
</ div >
2013-03-24 15:33:20 +01:00
</ form >
2013-03-27 02:54:26 +01:00
</ section >
2013-03-24 15:33:20 +01:00
< div class = " page-section " >
2014-11-08 02:37:12 +01:00
< h2 >< ? = t ( 'Advanced' ) ?> </h2>
2013-03-24 15:33:20 +01:00
</ div >
2015-01-17 23:15:47 +01:00
< section class = " panel panel-danger " >
2014-11-08 02:37:12 +01:00
< ul >
2015-01-03 23:39:00 +01:00
< li >< a href = " ?action=generate-tokens&csrf=<?= $values['csrf'] ?> " >< ? = t ( 'Generate new tokens' ) ?> </a> (<?= t('Miniflux API') ?>, <?= t('Fever API') ?>, <?= t('Bookmarklet') ?>, <?= t('Bookmark RSS Feed') ?>)</li>
2015-01-11 01:51:27 +01:00
< ? php if ( ENABLE_AUTO_UPDATE ) : ?>
2014-11-08 16:07:24 +01:00
< li >< a href = " ?action=confirm-auto-update " >< ? = t ( 'Update Miniflux' ) ?> </a> (<?= t('Don\'t forget to backup your database') ?>)</li>
2015-01-11 01:51:27 +01:00
< ? php endif ?>
2014-11-08 02:37:12 +01:00
</ ul >
2013-09-07 04:57:09 +02:00
</ section >