core/api/modules/blog/index.php

14 lines
538 B
PHP

<?php
ini_set( 'display_errors', 0 );
/*
Получаем список блогов
*/
$blogList=\DB::getAll("SELECT `title`, `id`, `t`, `user_id`, `txt` FROM `pages` WHERE `category`=1 AND `status`=1 ORDER BY RAND() LIMIT 100 ");
$smarty->assign('blogList', $blogList);
$smarty -> assign( 'editor_js', '<script language="javascript" type="text/javascript" src="/api/soft/tinymce/4.3.12/tinymce.min.js"></script><script language="javascript" type="text/javascript" src="/api/soft/tinymce/4.3.12/load.php"></script>');
?>