Úterý, Únor 16, 2021

PHP tag

Ukázky použití pluginu inlinephp

[ exec]$datum = StrFTime("%d.%m.%Y %H:%M:%S", Time());
echo($datum);[/exec]

[ exec]$ip = $_SERVER['HTTP_CLIENT_IP'] ? $_SERVER['HTTP_CLIENT_IP'] : ($_SERVER['HTTP_X_FORWARDED_FOR'] ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']);
echo "IP: ".($ip);[/exec]

[ exec]header('Refresh: 60');[/exec]

[ exec]
echo "random ".(rand(10,100))."<br>";
echo "PHP ".PHP_VERSION."<br>";
echo "FLATPRESS ".$smarty.SYSTEM_VER."<br>";
$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
echo $locale."<br>";
echo dirname( __FILE__ )."<br>";
[/exec]

[ exec]echo password_hash("loginpassword", PASSWORD_DEFAULT);[/exec]

you can run file: /fp-plugins/locale.php
[ exec]require_once('../locale.php');[/exec]

Add random “Lorem ipsum” z https://loripsum.net/api/5/medium
Parametery jsou (short, medium, long, verylong)

$themeReplace['description'] = file_get_contents('http://loripsum.net/api');

12.06.2024 17:22:31

IP: 3.236.83.14

Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs3/mohelnocz/home/www/flatpress/fp-content/cache/e93fccb09cf8b04111b9595da102f3f4^%%7B^7B6^7B6DF3F1%%comments.tpl.php:10) in /web/htdocs3/mohelnocz/home/www/flatpress/fp-plugins/inlinephp/exec_php.php5(4) : eval()’d code on line 1

random 61
PHP 7.4.6
FLATPRESS 1.2.beta1
en_US
/web/htdocs3/mohelnocz/home/www/flatpress/fp-plugins/inlinephp

$2y$10$hwzgLFXW7rKJMuGA07tWb.y5XBYtdvXAYQPOKd2z48L2fysE2rap2

Přidat komentář

Pro přidání komentáře vyplňte formulář níže