ponepaste/public/discover.php

18 lines
520 B
PHP
Raw Normal View History

2021-07-10 19:18:17 +01:00
<?php
2022-07-30 17:55:17 -04:00
/** @noinspection PhpDefineCanBeReplacedWithConstInspection */
define('IN_PONEPASTE', 1);
require_once(__DIR__ . '/../includes/common.php');
2021-07-10 19:18:17 +01:00
2021-08-29 01:26:29 -04:00
use PonePaste\Models\Paste;
2022-08-27 02:48:10 -04:00
$popular_pastes = Paste::getMostViewed();
$monthly_popular_pastes = Paste::getMonthPopular();
$recent_pastes = Paste::getRecent();
$updated_pastes = Paste::getRecentlyUpdated();
$random_pastes = Paste::getRandom();
2021-08-22 21:45:26 -04:00
$page_template = 'discover';
2021-08-26 05:35:21 -04:00
$page_title = 'Discover';
2021-08-22 21:45:26 -04:00
2022-07-30 17:55:17 -04:00
require_once(__DIR__ . '/../theme/' . $default_theme . '/common.php');