PHP Classes

File: htdocs/modules/protector/mytrustdirname.php

Recommend this page to a friend!
  Classes of Michael Beck   Xoops 2.5   htdocs/modules/protector/mytrustdirname.php   Download  
File: htdocs/modules/protector/mytrustdirname.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 7 years ago
Size: 553 bytes
 

Contents

Class file image Download
<?php
// edit for xoops 2.4 core by phppp and trabis
defined('XOOPS_TRUST_PATH') || exit('set XOOPS_TRUST_PATH in mainfile.php');

$mytrustdirname = 'protector';

include_once
XOOPS_TRUST_PATH . '/modules/' . $mytrustdirname . '/class/registry.php';
$registry = ProtectorRegistry::getInstance();
$registry->setEntry('mydirname', basename(__DIR__));
$registry->setEntry('mydirpath', __DIR__);
$registry->setEntry('mytrustdirname', $mytrustdirname);
$registry->setEntry('language', empty($xoopsConfig['language']) ? 'english' : $xoopsConfig['language']);