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`).

actualize.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/javascript/actualize.phtml'
View Content
<?php
declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */

$categories = [];
foreach ($this->categories as $category) {
	$categories[] = [
		'url' => Minz_Url::display(['c' => 'category', 'a' => 'refreshOpml', 'params' => ['id' => $category->id(), 'ajax' => '1']], 'php'),
		'title' => $category->name(),
	];
}

$feeds = [];
foreach ($this->feeds as $feed) {
	$feeds[] = [
		'url' => Minz_Url::display(['c' => 'feed', 'a' => 'actualize', 'params' => ['id' => $feed->id(), 'ajax' => '1']], 'php'),
		'title' => $feed->name(),
	];
}
echo json_encode([
	'categories' => $categories,
	'feeds' => $feeds,
	'feedback_no_refresh' => _t('feedback.sub.feed.no_refresh'),
	'feedback_actualize' => _t('feedback.sub.actualize'),
]);
nbUnreadsPerFeed.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/javascript/nbUnreadsPerFeed.phtml'
View Content
<?php
declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */

$result = array(
	'feeds' => array(),
	'tags' => array(),
);
foreach ($this->categories as $cat) {
	foreach ($cat->feeds() as $feed) {
		$result['feeds'][$feed->id()] = $feed->nbNotRead();
	}
}
foreach ($this->tags as $tag) {
	$result['tags'][$tag->id()] = $tag->nbUnread();
}
echo json_encode($result);
nonce.phtml
wget 'https://lists2.roe3.org/FreshRSS/app/views/javascript/nonce.phtml'
View Content
<?php
declare(strict_types=1);
/** @var FreshRSS_ViewJavascript $this */
echo json_encode(array('salt1' => $this->salt1, 'nonce' => $this->nonce));