forked from Adleraci/adlerka.top
Update meme voting
This commit is contained in:
parent
c4a79c9435
commit
f3657fd341
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
require_once 'secrets/config.php';
|
require_once 'secrets/config.php';
|
||||||
require_once 'lib/config.php';
|
require_once 'lib/config.php';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Random\RandomException;
|
use Random\RandomException;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
function loadRouterConfig(): array
|
function loadRouterConfig(): array
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
function doDynamicStyling() :string
|
function doDynamicStyling() :string
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
function runEndpoint($endpoint_file): ?array
|
function runEndpoint($endpoint_file): ?array
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
function inlineLocalStylesFromHref($inputString): string
|
function inlineLocalStylesFromHref($inputString): string
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
require_once "lib/upload.php";
|
require_once "lib/upload.php";
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
|
|
||||||
function getDynamicMetadata($file): array{
|
function getDynamicMetadata($file): array{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
function getNewsArticles() :array
|
function getNewsArticles() :array
|
||||||
{
|
{
|
||||||
global $mysqli;
|
global $mysqli;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
require_once "lib/dynamic_style.php";
|
require_once "lib/dynamic_style.php";
|
||||||
require_once "lib/script_data.php";
|
require_once "lib/script_data.php";
|
||||||
function renderDynamicPage($page_file): array
|
function renderDynamicPage($page_file): array
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
|
|
||||||
function initRouter(): array
|
function initRouter(): array
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
function generateScriptData($phpArray):string {
|
function generateScriptData($phpArray):string {
|
||||||
// Check if the array is associative and single-level
|
// Check if the array is associative and single-level
|
||||||
if (is_array($phpArray) && count($phpArray) > 0 && count(array_filter(array_keys($phpArray), 'is_string')) === count($phpArray)) {
|
if (is_array($phpArray) && count($phpArray) > 0 && count(array_filter(array_keys($phpArray), 'is_string')) === count($phpArray)) {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
function makePathSafe($userInput): string
|
function makePathSafe($userInput): string
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/meme.php";
|
require_once "lib/meme.php";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/newsarticle.php";
|
require_once "lib/newsarticle.php";
|
||||||
|
Loading…
Reference in New Issue
Block a user