I run Arch Linux VPS is there a repository for php7.4-fpm? I already looked at the Wiki and searched google I cant find any. if I use
sudo pacman -S php php-apache php-gd php-intl php-mcrypt php-sqlite php-xsl php-zip it wants to install php8.2 I'm running xf2.1 (I don't wanna upgrade at the...
If you guys have nginx web server use this :)
location ~/admin\.php$ {
auth_basic "Staff Only";
auth_basic_user_file /etc/nginx/.htpasswd;
try_files $uri =404;
fastcgi_index index.php;
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https...
It keeps redirecting me to login even though i input the correct details. Any help
$username = 'test';
$password = 's3453gddff_gf';
if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW'])
|| $_SERVER['PHP_AUTH_USER'] !== $username || $_SERVER['PHP_AUTH_PW'] !== $password) {...
@xenvn
I get
An exception occurred: [Error] Call to a member function hasPermission() on bool in delete_files_panel.php on line 19
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
if (\XF::requestUrlMatchesApi())
{
\XF::runApp('XF\Api\App');
}
else
{...
I have a script coded to delete files
/public_html/delete_files_panel.php
I have already included the xenforo library in my script
$dir = __DIR__;
require($dir . '/src/XF.php');
i want to restrict access to the PHP code based on Xenforo permissions, any idea how to achieve this?
try {...