callback to a php file

S3CR3T

Member
Registered
Joined
Dec 27, 2021
Messages
17
Points
13

Reputation:

Code:
include "security/config.php";
include "security/project-security.php";

I am installing Project Security (codecanyon) to my xenforo and I just need to know where I can place the above code for it to load on every page.
 

O3S

Member
Registered
Joined
Aug 25, 2020
Messages
7
Points
13

Reputation:

I'm not sure, but you could try on the file...
/src/XF/Template/Compiler/Tag/Head.php


Could you add above all the following line:
PHP:
<?php
include "security/config.php";
include "security/project-security.php";
?>

You could try this, I recommend making it a test forum...as I'm not sure if it works
 

S3CR3T

Member
Registered
Joined
Dec 27, 2021
Messages
17
Points
13

Reputation:

I'm not sure, but you could try on the file...
/src/XF/Template/Compiler/Tag/Head.php


Could you add above all the following line:
PHP:
<?php
include "security/config.php";
include "security/project-security.php";
?>

You could try this, I recommend making it a test forum...as I'm not sure if it works
O3SI'm afraid this doesn't seem to work. Any other suggestions?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

S3CR3T

Member
Registered
Joined
Dec 27, 2021
Messages
17
Points
13

Reputation:

what do you mean with do not work, is it not included or added to the page?
BattleKingIt doesn't make any changes and there is no data importing to the admin panel of the Project Security. Now when I put just

include "security/config.php";
include "security/project-security.php";

into the config.php file, the connection works fine but the forum throws a error 500 and I can't access the forum at all.
 

shqawe

Well-known member
Registered
Joined
Jun 30, 2019
Messages
63
Points
28

Reputation:

@S3CR3T You can't include any file like that in xenforo you need to make an addon to integrate your script with xenforo otherwise your forum will fall down.
 

S3CR3T

Member
Registered
Joined
Dec 27, 2021
Messages
17
Points
13

Reputation:

@S3CR3T You can't include any file like that in xenforo you need to make an addon to integrate your script with xenforo otherwise your forum will fall down.
shqaweI was reading on Google and found that Xenforo actually introduced a way to have php files load from templates. I'm just trying to figure that out.
 
View previous replies…

shqawe

Well-known member
Registered
Joined
Jun 30, 2019
Messages
63
Points
28

Reputation:

I was reading on Google and found that Xenforo actually introduced a way to have php files load from templates. I'm just trying to figure that out.
S3CR3TAs i know you can't. You should to make an addon for that. Because xenforo load all variables from src subfolders like addons or vendor folders to templates you can take a look to below link for more information
xenforo . com/docs/dev/lets-build-an-add-on/
 

S3CR3T

Member
Registered
Joined
Dec 27, 2021
Messages
17
Points
13

Reputation:

As i know you can't. You should to make an addon for that. Because xenforo load all variables from src subfolders like addons or vendor folders to templates you can take a look to below link for more information
xenforo . com/docs/dev/lets-build-an-add-on/
shqaweI've requested a refund for that software; not sure if I will get it.

Is there an addon that is already built for xenforo that blocks TOR, VPN and proxies?
 

jim

Well-known member
Registered
Joined
Aug 20, 2021
Messages
114
Points
38

Reputation:

I've requested a refund for that software; not sure if I will get it.

Is there an addon that is already built for xenforo that blocks TOR, VPN and proxies?
S3CR3TDragonByte Security: Can Block TOR exit nodes
Proxy Check: blocks VPN and proxies
 
Top