Hello,
I want to know if it's possible to include a php file or php syntax on a page like that:
<xf:if is="{{ $xf.visitor.isMemberOf(5) }}">
include 'mypage.php';
<xf:else />
Sorry But you have not buy this product yet
</xf:if>
Thank in advance
I have try to add this in the controller:
protected function preDispatchController($action, ParameterBag $params)
{
$rootDir = $_SERVER['DOCUMENT_ROOT'];
require($rootDir . '/test.php');
if ($res['status']!=true)
{
return $this->noPermission()...
Hello ,
I need to add a license system for my add-on for avoir share and i just need to add this on my add-on :
require_once '../test.php';
$api = new LicenseBoxAPI();
$res = $api->verify_license();
if($res['status']!=true){
die('Your license is invalid, please contact support.');
}
But i...