misses_mandy_1998

Using Xenforo 2 permissions outside of the installation

misses_mandy_1998

Member
Reputation: 2%
I have a script coded to delete files
/public_html/delete_files_panel.php

I have already included the xenforo library in my script
PHP:
You must log in to view
(2 lines)

i want to restrict access to the PHP code based on Xenforo permissions, any idea how to achieve this?

PHP:
You must log in to view
(11 lines)
 
@xenvn
I get

An exception occurred: [Error] Call to a member function hasPermission() on bool in delete_files_panel.php on line 19


PHP:
You must log in to view
(19 lines)

Anything wrong with this?
 
Last edited:
Top