PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

formLogin.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/auth/formLogin.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
?>
<main class="prompt">
	<h1><?= _t('gen.auth.login') ?></h1>

	<?php if (!max_registrations_reached()) { ?>
		<div class="link-registration">
			<a href="<?= _url('auth', 'register') ?>"><?= _t('gen.auth.registration.ask') ?></a>
		</div>
	<?php } ?>

	<form id="crypto-form" method="post" action="<?= _url('auth', 'login') ?>">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
		<input type="hidden" name="original_request" value="<?= Minz_Url::serialize(Minz_Request::originalRequest())?>" />

		<div class="form-group">
			<label for="username"><?= _t('gen.auth.username') ?></label>
			<input type="text" id="username" name="username" autocomplete="username" size="16" required="required"
				pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autofocus="autofocus" autocapitalize="off" />
		</div>

		<div class="form-group">
			<label for="passwordPlain"><?= _t('gen.auth.password') ?></label>
			<div class="stick">
				<input type="password" id="passwordPlain" required="required" />
				<button type="button" class="btn toggle-password" data-toggle="passwordPlain"><?= _i('key') ?></button>
			</div>
			<input type="hidden" id="challenge" name="challenge" />
			<noscript><strong><?= _t('gen.js.should_be_activated') ?></strong></noscript>
		</div>

		<div class="form-group">
			<label class="checkbox" for="keep_logged_in">
				<input type="checkbox" name="keep_logged_in" id="keep_logged_in" value="1" />
				<?= _t('gen.auth.keep_logged_in', $this->cookie_days) ?>
			</label>
		</div>

		<div class="form-group form-group-actions">
			<button id="loginButton" type="submit" class="btn btn-important" disabled="disabled">
				<?= _t('gen.auth.login') ?>
			</button>
		</div>
	</form>
</main>

<footer class="main-footer">
	<a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a>
	<?php if (file_exists(TOS_FILENAME)) { ?>
		| <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
	<?php } ?>
</footer>
index.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/auth/index.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
	$this->partial('aside_configure');
?>
<main class="post">
	<div class="link-back-wrapper">
		<a class="link-back" href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
	</div>

	<h1><?= _t('gen.menu.authentication') ?></h1>
	<form method="post" action="<?= _url('auth', 'index') ?>">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />

		<div class="form-group">
			<label class="group-name" for="auth_type"><?= _t('admin.auth.type') ?></label>
			<div class="group-controls">
				<select id="auth_type" name="auth_type" required="required" data-leave-validation="<?= FreshRSS_Context::systemConf()->auth_type ?>">
					<?php if (!in_array(FreshRSS_Context::systemConf()->auth_type, ['form', 'http_auth', 'none'], true)) { ?>
						<option selected="selected"></option>
					<?php } ?>
					<option value="form"<?= FreshRSS_Context::systemConf()->auth_type === 'form' ? ' selected="selected"' : '',
						cryptAvailable() ? '' : ' disabled="disabled"' ?>><?= _t('admin.auth.form') ?></option>
					<option value="http_auth"<?= FreshRSS_Context::systemConf()->auth_type === 'http_auth' ? ' selected="selected"' : '' ?>>
						<?= _t('admin.auth.http') ?> (REMOTE_USER = '<?= httpAuthUser() ?>')</option>
					<option value="none"<?= FreshRSS_Context::systemConf()->auth_type === 'none' ? ' selected="selected"' : '' ?>><?= _t('admin.auth.none') ?></option>
				</select>
			</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="1"<?=
						FreshRSS_Context::systemConf()->allow_anonymous ? ' checked="checked"' : '',
						FreshRSS_Auth::accessNeedsAction() ? '' : ' disabled="disabled"' ?> data-leave-validation="<?= FreshRSS_Context::systemConf()->allow_anonymous ?>"/>
					<?= _t('admin.auth.allow_anonymous', FreshRSS_Context::systemConf()->default_user) ?>
				</label>
			</div>
		</div>

		<div class="form-group">
			<div class="group-controls">
				<label class="checkbox" for="anon_refresh">
					<input type="checkbox" name="anon_refresh" id="anon_refresh" value="1"<?=
						FreshRSS_Context::systemConf()->allow_anonymous_refresh ? ' checked="checked"' : '',
						FreshRSS_Auth::accessNeedsAction() ? '' : ' disabled="disabled"' ?> data-leave-validation="<?= FreshRSS_Context::systemConf()->allow_anonymous_refresh ?>"/>
					<?= _t('admin.auth.allow_anonymous_refresh') ?>
				</label>
			</div>
		</div>

		<div class="form-group">
			<div class="group-controls">
				<label class="checkbox" for="unsafe_autologin">
					<input type="checkbox" name="unsafe_autologin" id="unsafe_autologin" value="1"<?=
						FreshRSS_Context::systemConf()->unsafe_autologin_enabled ? ' checked="checked"' : '',
						FreshRSS_Auth::accessNeedsAction() ? '' : ' disabled="disabled"' ?> data-leave-validation="<?= FreshRSS_Context::systemConf()->unsafe_autologin_enabled ?>"/>
					<?= _t('admin.auth.unsafe_autologin') ?>
					<kbd><?= Minz_Url::display(array('c' => 'auth', 'a' => 'login', 'params' => array('u' => 'alice', 'p' => '1234')), 'html', true) ?></kbd>
				</label>
			</div>
		</div>

		<div class="form-group">
			<div class="group-controls">
				<label class="checkbox" for="api_enabled">
					<input type="checkbox" name="api_enabled" id="api_enabled" value="1"<?=
						FreshRSS_Context::systemConf()->api_enabled ? ' checked="checked"' : '',
						FreshRSS_Auth::accessNeedsLogin() ? '' : ' disabled="disabled"' ?> data-leave-validation="<?= FreshRSS_Context::systemConf()->api_enabled ?>"/>
					<?= _t('admin.auth.api_enabled') ?>
				</label>
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important"><?= _t('gen.action.submit') ?></button>
				<button type="reset" class="btn"><?= _t('gen.action.cancel') ?></button>
			</div>
		</div>
	</form>
</main>
logout.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/auth/logout.phtml'
View Content
register.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/auth/register.phtml'
View Content
<?php
	declare(strict_types=1);
	/** @var FreshRSS_View $this */
?>
<main class="prompt">
	<h1><?= _t('gen.auth.registration') ?></h1>

	<form method="post" action="<?= _url('user', 'create') ?>">
		<input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />

		<div class="form-group">
			<label for="new_user_language"><?= _t('admin.user.language') ?></label>
			<select name="new_user_language" id="new_user_language">
			<?php $languages = Minz_Translate::availableLanguages(); ?>
			<?php foreach ($languages as $lang) { ?>
			<option value="<?= $lang ?>"<?= $this->preferred_language === $lang ? ' selected="selected"' : '' ?>><?= _t('gen.lang.' . $lang) ?></option>
			<?php } ?>
			</select>
		</div>

		<div class="form-group">
			<label for="new_user_timezone"><?= _t('conf.display.timezone') ?></label>
			<select name="new_user_timezone" id="new_user_timezone">
			<?php $timezones = array_merge([''], DateTimeZone::listIdentifiers()); ?>
			<?php foreach ($timezones as $timezone): ?>
			<option value="<?= $timezone ?>"<?= $timezone === '' ? ' selected="selected"' : '' ?>>
				<?= $timezone == '' ? _t('gen.short.by_default') . ' (' . FreshRSS_Context::defaultTimeZone() . ')' : $timezone ?>
			</option>
			<?php endforeach; ?>
			</select>
		</div>

		<div class="form-group">
			<label for="new_user_name"><?= _t('gen.auth.username') ?></label>
			<input id="new_user_name" name="new_user_name" type="text" size="16" required="required" autocomplete="off"
				pattern="<?= FreshRSS_user_Controller::USERNAME_PATTERN ?>" autocapitalize="off" />
			<p class="help"><?= _i('help') ?> <?= _t('gen.auth.username.format') ?></p>
		</div>

		<?php if ($this->show_email_field) { ?>
			<div class="form-group">
				<label for="new_user_email">
					<?= _t('gen.auth.email') ?>
				</label>
				<input id="new_user_email" name="new_user_email" type="email" required="required" />
			</div>
		<?php } ?>

		<div class="form-group">
			<label for="new_user_passwordPlain"><?= _t('gen.auth.password') ?></label>
			<div class="stick">
				<input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" required="required" autocomplete="new-password" pattern=".{7,}" />
				<button type="button" class="btn toggle-password" data-toggle="new_user_passwordPlain"><?= _i('key') ?></button>
			</div>
			<noscript><b><?= _t('gen.js.should_be_activated') ?></b></noscript>
			<p class="help"><?= _i('help') ?> <?= _t('gen.auth.password.format') ?></p>

		</div>

		<?php if ($this->show_tos_checkbox) { ?>
			<div class="form-group">
				<label class="checkbox" for="accept-tos">
					<input type="checkbox" name="accept_tos" id="accept-tos" value="1" required="required" />
					<?= _t('gen.auth.accept_tos', _url('index', 'tos')) ?>
				</label>
			</div>
		<?php } ?>

		<div class="form-group form-group-actions">
			<?php
				$redirect_url = urlencode(Minz_Url::display(
					array('c' => 'index', 'a' => 'index'),
					'php', true
				));
			?>
			<input type="hidden" name="r" value="<?= $redirect_url ?>" />

			<button type="submit" class="btn btn-important"><?= _t('gen.action.create') ?></button>

			<a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.cancel') ?></a>
		</div>
	</form>
</main>

<footer class="main-footer">
	<a href="<?= _url('index', 'about') ?>"><?= _t('gen.freshrss.about') ?></a>
	<?php if (file_exists(TOS_FILENAME)) { ?>
		| <a href="<?= _url('index', 'tos') ?>"><?= _t('index.tos.title')?></a>
	<?php } ?>
</footer>