core/api/modules/blog/index.php

14 lines
538 B
PHP
Raw Normal View History

2022-12-11 13:55:49 +05:00
<?php
2023-05-03 14:51:58 +05:00
ini_set( 'display_errors', 0 );
2022-12-11 13:55:49 +05:00
/*
2023-05-03 14:51:58 +05:00
Получаем список блогов
2022-12-11 13:55:49 +05:00
2023-05-03 14:51:58 +05:00
*/
2022-12-11 13:55:49 +05:00
2023-05-03 14:51:58 +05:00
$blogList=\DB::getAll("SELECT `title`, `id`, `t`, `user_id`, `txt` FROM `pages` WHERE `category`=1 AND `status`=1 ORDER BY RAND() LIMIT 100 ");
2022-12-11 13:55:49 +05:00
2023-05-03 14:51:58 +05:00
$smarty->assign('blogList', $blogList);
2022-12-11 13:55:49 +05:00
2023-05-03 14:51:58 +05:00
$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>');
2022-12-11 13:55:49 +05:00
?>