<?php
/******************************************************************************/
//                                                                            //
//                             InstantCMS v1.10                               //
//                        http://www.instantcms.ru/                           //
//                                                                            //
//                   written by InstantCMS Team, 2007-2012                    //
//                produced by InstantSoft, (www.instantsoft.ru)               //
//                                                                            //
//                        LICENSED BY GNU/GPL v2                              //
//                                                                            //
/******************************************************************************/

function mod_template($module_id){

    $smarty = cmsCore::getInstance()->initSmarty('modules', 'mod_template.tpl');
    $smarty->assign('current_template', (isset($_SESSION['template']) ? $_SESSION['template'] : ''));
    $smarty->assign('templates', cmsCore::getDirsList('/templates'));
    $smarty->display('mod_template.tpl');

    return true;

}
?>