PHP Classes

File: application/views/admincp/pluginRunFunc.php

Recommend this page to a friend!
  Classes of Minh Tien   Noblesse CMS   application/views/admincp/pluginRunFunc.php   Download  
File: application/views/admincp/pluginRunFunc.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Noblesse CMS
Content management system with custom plugins
Author: By
Last change:
Date: 9 years ago
Size: 316 bytes
 

Contents

Class file image Download
<?php
if(file_exists($filePath))
{


    if(!
preg_match('/\//i', $func))
    {
        if(!
function_exists($func))
        {
            include(
$filePath);
        }
       
       
$func();
    }
    else
    {
       
$filePath=dirname($filePath).'/';

       
$filePath.=$func;

       
// die($filePath);

       
if(file_exists($filePath))
        {
            include(
$filePath);
        }
    }

}

?>