commit
967dff535d
57 changed files with 314 additions and 183 deletions
@ -1,33 +1,34 @@ |
||||
<div class="prompt"> |
||||
<h1><?php echo _t('gen.auth.registration'); ?></h1>
|
||||
<h1><?php echo _t('gen.auth.registration'); ?></h1>
|
||||
|
||||
<form method="post" action="<?php echo _url('user', 'create'); ?>">
|
||||
<div> |
||||
<label class="group-name" for="new_user_name"><?php echo _t('gen.auth.username'), '<br />', _i('help'), ' ', _t('gen.auth.username.format'); ?></label>
|
||||
<input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="[0-9a-zA-Z]{1,16}" /> |
||||
</div> |
||||
<form method="post" action="<?php echo _url('user', 'create'); ?>">
|
||||
<input type="hidden" name="_csrf" value="<?php echo FreshRSS_Auth::csrfToken(); ?>" />
|
||||
<div> |
||||
<label class="group-name" for="new_user_name"><?php echo _t('gen.auth.username'), '<br />', _i('help'), ' ', _t('gen.auth.username.format'); ?></label>
|
||||
<input id="new_user_name" name="new_user_name" type="text" size="16" required="required" maxlength="16" autocomplete="off" pattern="[0-9a-zA-Z]{1,16}" /> |
||||
</div> |
||||
|
||||
<div> |
||||
<label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'), '<br />', _i('help'), ' ', _t('gen.auth.password.format'); ?></label>
|
||||
<div class="stick"> |
||||
<input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="off" pattern=".{7,}" /> |
||||
<a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
|
||||
</div> |
||||
<noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
|
||||
</div> |
||||
<div> |
||||
<label class="group-name" for="new_user_passwordPlain"><?php echo _t('gen.auth.password'), '<br />', _i('help'), ' ', _t('gen.auth.password.format'); ?></label>
|
||||
<div class="stick"> |
||||
<input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="off" pattern=".{7,}" /> |
||||
<a class="btn toggle-password" data-toggle="new_user_passwordPlain"><?php echo _i('key'); ?></a>
|
||||
</div> |
||||
<noscript><b><?php echo _t('gen.js.should_be_activated'); ?></b></noscript>
|
||||
</div> |
||||
|
||||
<div> |
||||
<?php |
||||
$redirect_url = urlencode(Minz_Url::display( |
||||
array('c' => 'index', 'a' => 'index'), |
||||
'php', true |
||||
)); |
||||
?> |
||||
<input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
|
||||
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
|
||||
<a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
|
||||
</div> |
||||
</form> |
||||
<div> |
||||
<?php |
||||
$redirect_url = urlencode(Minz_Url::display( |
||||
array('c' => 'index', 'a' => 'index'), |
||||
'php', true |
||||
)); |
||||
?> |
||||
<input type="hidden" name="r" value="<?php echo $redirect_url; ?>" />
|
||||
<button type="submit" class="btn btn-important"><?php echo _t('gen.action.create'); ?></button>
|
||||
<a class="btn" href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.cancel'); ?></a>
|
||||
</div> |
||||
</form> |
||||
|
||||
<p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
|
||||
<p><a href="<?php echo _url('index', 'about'); ?>"><?php echo _t('gen.freshrss.about'); ?></a></p>
|
||||
</div> |
||||
|
@ -1,17 +1,16 @@ |
||||
<?php |
||||
header('Content-Type: application/json; charset=UTF-8'); |
||||
|
||||
if (Minz_Request::param('is_favorite', true)) { |
||||
Minz_Request::_param('is_favorite', 0); |
||||
} else { |
||||
Minz_Request::_param('is_favorite', 1); |
||||
} |
||||
|
||||
$url = Minz_Url::display(array( |
||||
$url = array( |
||||
'c' => Minz_Request::controllerName(), |
||||
'a' => Minz_Request::actionName(), |
||||
'params' => Minz_Request::params(), |
||||
)); |
||||
'params' => Minz_Request::fetchGET(), |
||||
); |
||||
|
||||
$url['params']['is_favorite'] = Minz_Request::param('is_favorite', true) ? '0' : '1'; |
||||
|
||||
FreshRSS::loadStylesAndScripts(); |
||||
echo json_encode(array('url' => str_ireplace('&', '&', $url), 'icon' => _i(Minz_Request::param('is_favorite') ? 'non-starred' : 'starred'))); |
||||
echo json_encode(array( |
||||
'url' => str_ireplace('&', '&', Minz_Url::display($url)), |
||||
'icon' => _i($url['params']['is_favorite'] === '1' ? 'non-starred' : 'starred') |
||||
)); |
||||
|
@ -1,17 +1,16 @@ |
||||
<?php |
||||
header('Content-Type: application/json; charset=UTF-8'); |
||||
|
||||
if (Minz_Request::param('is_read', true)) { |
||||
Minz_Request::_param('is_read', 0); |
||||
} else { |
||||
Minz_Request::_param('is_read', 1); |
||||
} |
||||
|
||||
$url = Minz_Url::display(array( |
||||
$url = array( |
||||
'c' => Minz_Request::controllerName(), |
||||
'a' => Minz_Request::actionName(), |
||||
'params' => Minz_Request::params(), |
||||
)); |
||||
'params' => Minz_Request::fetchGET(), |
||||
); |
||||
|
||||
$url['params']['is_read'] = Minz_Request::param('is_read', true) ? '0' : '1'; |
||||
|
||||
FreshRSS::loadStylesAndScripts(); |
||||
echo json_encode(array('url' => str_ireplace('&', '&', $url), 'icon' => _i(Minz_Request::param('is_read') ? 'unread' : 'read'))); |
||||
echo json_encode(array( |
||||
'url' => str_ireplace('&', '&', Minz_Url::display($url)), |
||||
'icon' => _i($url['params']['is_read'] === '1' ? 'unread' : 'read') |
||||
)); |
||||
|
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 210 KiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue