Search results

  1. misses_mandy_1998

    Trying to protect the Admin.php

    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) {...
  2. misses_mandy_1998

    Using Xenforo 2 permissions outside of the installation

    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 {...
Top