assign( 'modList', modClass::list_dir('api/modules') ); $code = file_get_contents( 'api/modules/' . $_GET[ 'id' ] . '/index.php' ); $smarty->assign( 'codePHP', $code ); $code=(file_exists("skin/" . $_SERVER['SERVER_NAME'] . '/inc/mod/' . $_GET['id'] . '/index.html'))?file_get_contents( "skin/" . $_SERVER['SERVER_NAME'] . '/inc/mod/' . $_GET['id'] . '/index.html' ):$code = file_get_contents( 'api/modules/' . $_GET[ 'id' ] . '/index.html' ); $smarty->assign( 'codeHTML', base64_encode( $code ) ); $code = file_get_contents( 'api/modules/' . $_GET[ 'id' ] . '/ajax.php' ); $smarty->assign( 'codeAJAX', $code ); $code = file_get_contents( 'api/modules/' . $_GET[ 'id' ] . '/mod.js' ); $smarty->assign( 'codeJS', $code ); /* $smarty->assign( 'categoryList', modClass::getListPages( $_GET[ 'id' ] ) ); $smarty->assign( 'all_cats', modClass::getAllListPages() ); if ( $_GET[ 'id' ] )$smarty->assign( 'thisCategoryInfo', modClass::getCategoryInfo() ); */ /*---------------------------------------------------------------------- 07.10.2022 Подключаемые области ----------------------------------------------------------------------*/ /*$smarty->assign( 'cat_list', 'api/modules/' . $_GET[ 'mod' ] . '/cat_list.html' ); $smarty->assign( 'pages_list', 'api/modules/' . $_GET[ 'mod' ] . '/pages_list.html' ); $smarty->assign( 'modal_new_cat', 'api/modules/' . $_GET[ 'mod' ] . '/modal_new_cat.html' ); $smarty->assign( 'modal_del_page', 'api/modules/' . $_GET[ 'mod' ] . '/modal_del_page.html' );*/ ?>