@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
php
/
lib
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/php/lib/block.mtcategories.php
<?php # Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id: block.mtcategories.php 1174 2008-01-08 21:02:50Z bchoate $ function smarty_block_mtcategories($args, $content, &$ctx, &$repeat) { // status: incomplete // parameters: show_empty $localvars = array('_categories', '_categories_counter', 'category', 'inside_mt_categories', 'entries', '_categories_glue', 'blog_id', 'blog'); if (!isset($content)) { $ctx->localize($localvars); $args['blog_id'] = $ctx->stash('blog_id'); $categories = $ctx->mt->db->fetch_categories($args); $glue = $args['glue']; $ctx->stash('_categories_glue', $glue); $ctx->stash('_categories', $categories); $ctx->stash('inside_mt_categories', 1); $ctx->stash('show_empty', isset($args['show_empty']) ? $args['show_empty'] : '0'); $counter = 0; } else { $categories = $ctx->stash('_categories'); $counter = $ctx->stash('_categories_counter'); $glue = $ctx->stash('_categories_glue'); } if ($counter < count($categories)) { $category = $categories[$counter]; $ctx->stash('category', $category); $ctx->stash('entries', null); $ctx->stash('_categories_counter', $counter + 1); $ctx->stash('blog_id', $category['category_blog_id']); $ctx->stash('ArchiveListHeader', $counter == 0); $ctx->stash('ArchiveListFooter', $counter+1 == count($categories)); $ctx->stash('blog', $ctx->mt->db->fetch_blog($category['category_blog_id'])); if ($counter > 0) $content = $content . $glue; $repeat = true; } else { $ctx->restore($localvars); $repeat = false; } return $content; } ?>