Seditio Source
Root |
./othercms/b2evolution_7.2.3/skins_fallback_v5/_module_form.disp.php
<?php
/**
 * This is the template that displays different modules forms.
 *
 * This file is not meant to be called directly.
 * It is meant to be called by an include in the main.page.php template.
 *
 * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.
 * See also {@link https://github.com/b2evolution/b2evolution}.
 *
 * @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license}
 *
 * @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}.
 *
 * @package evoskins
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

global
$Session, $modules;

// get requested module name
$module_name = param( 'mname', 'string', true );

foreach(
$modules as $module )
{
    if(
$module == $module_name )
    {
// the requested module was founded
       
$Module = & $GLOBALS[$module.'_Module'];
        if(
method_exists( $Module, 'display_form' ) )
        {    
// Module has display_form function, we can call it
           
$Module->display_form();
            break;
        }
    }
   
// if the requested module doesn't exists don't display anything
}

?>