@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 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.mtpages.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$ require_once('block.mtentries.php'); function smarty_block_mtpages($args, $content, &$ctx, &$repeat) { $args['class'] = 'page'; if (isset($args['include_subfolders']) && $args['include_subfolders'] == 1) { $args['include_subcategories'] = 1; } if (isset($args['folder'])) { $args['category'] = $args['folder']; } if(isset($args['no_folder'])) { $folders =& $ctx->mt->db->fetch_folders(array("blog_id" => $ctx->stash('blog_id'))); $not_folder = ''; if (isset($folders)) { foreach ($folders as $folder) { if ($not_folder == '') { $not_folder = $folder['category_label']; } else { $not_folder = $not_folder.' OR '.$folder['category_label']; } } } if ($not_folder != '') { $args['category'] = "NOT ($not_folder)"; } } $localvars = array('current_timestamp', 'current_timestamp_end', 'current_archive_type'); $ctx->localize($localvars); $out = smarty_block_mtentries($args, $content, $ctx, $repeat); $ctx->restore($localvars); return $out; } ?>