PHP Classes

File: contents/plugins/bbcodeHide/index.php

Recommend this page to a friend!
  Classes of Minh Tien   Noblesse CMS   contents/plugins/bbcodeHide/index.php   Download  
File: contents/plugins/bbcodeHide/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change: Improve system
Date: 8 years ago
Size: 347 bytes
 

Contents

Class file image Download
<?php

Plugins
::install('install_bbcodeHide');

function
install_bbcodeHide()
{

   
Shortcode::add('hide','parse_bbcodeHide');


}


function
parse_bbcodeHide($loadData=array())
{
    if(!isset(
$_SESSION['userid']))
    {
        return
'<p><i>This content hidden with guest. You must login to see this content!</i></p>';
    }

    return
$loadData['value'];
   
}

?>