Exemplo n.º 1
0
 $smarty->assign('boards', $boards);
 $smarty->assign('is_admin', is_admin());
 $smarty->assign('password', $password);
 $smarty->assign('upload_types', $upload_types);
 $smarty->assign('pages', $pages = range(1, $page_max));
 $smarty->assign('pages_count', count($pages));
 $smarty->assign('page', $page);
 $smarty->assign('goto', $_SESSION['goto']);
 $smarty->assign('macrochan_tags', $macrochan_tags);
 $smarty->assign('ib_name', Config::IB_NAME);
 $smarty->assign('enable_macro', is_macrochan_enabled($board));
 $smarty->assign('enable_youtube', is_youtube_enabled($board));
 $smarty->assign('enable_search', Config::ENABLE_SEARCH);
 $smarty->assign('enable_captcha', is_captcha_enabled($board));
 $smarty->assign('captcha', Config::CAPTCHA);
 $smarty->assign('enable_translation', is_translation_enabled($board));
 $smarty->assign('enable_geoip', is_geoip_enabled($board));
 $smarty->assign('enable_shi', is_shi_enabled($board));
 $smarty->assign('enable_postid', is_postid_enabled($board));
 $smarty->assign('ATTACHMENT_TYPE_FILE', Config::ATTACHMENT_TYPE_FILE);
 $smarty->assign('ATTACHMENT_TYPE_LINK', Config::ATTACHMENT_TYPE_LINK);
 $smarty->assign('ATTACHMENT_TYPE_VIDEO', Config::ATTACHMENT_TYPE_VIDEO);
 $smarty->assign('ATTACHMENT_TYPE_IMAGE', Config::ATTACHMENT_TYPE_IMAGE);
 $smarty->assign('name', $_SESSION['name']);
 isset($_SESSION['oekaki']) && $smarty->assign('oekaki', $_SESSION['oekaki']);
 $smarty->assign('is_board_view', true);
 $smarty->assign('MAX_FILE_SIZE', Config::MAX_FILE_SIZE);
 //event_daynight($smarty);
 $threads_html = '';
 $simple_posts_html = '';
 foreach ($threads as $t) {
Exemplo n.º 2
0
/**
 * 
 */
function post_moderate_generate_html($smarty, &$post, $posts_attachments, $attachments, $author_admin)
{
    $post_attachments = wrappers_attachments_get_by_post($smarty, $post['board'], $post, $posts_attachments, $attachments);
    $post['ip'] = long2ip($post['ip']);
    $smarty->assign('post', $post);
    $smarty->assign('author_admin', $author_admin);
    $smarty->assign('attachments', $post_attachments);
    $smarty->assign('enable_translation', is_translation_enabled($post['board']));
    return $smarty->fetch('reports_post.tpl');
}