@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb012 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/function.mtentryauthorlink.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: function.mtentryauthorlink.php 1174 2008-01-08 21:02:50Z bchoate $ function smarty_function_mtentryauthorlink($args, &$ctx) { $entry = $ctx->stash('entry'); if (!$entry) return ''; $type = $args['type']; $displayname = $entry['author_nickname']; if (isset($args['show_email'])) $show_email = $args['show_email']; else $show_email = 0; if (isset($args['show_url'])) $show_url = $args['show_url']; else $show_url = 1; # Open the link in a new window if requested (with new_window="1"). $target = $args['new_window'] ? ' target="_blank"' : ''; if (!$type) { if ($show_url && $entry['author_url'] && ($displayname != '')) { $type = 'url'; } elseif ($show_email && $entry['author_email'] && ($displayname != '')) { $type = 'email'; } } if ($type == 'url') { if ($entry['author_url'] && ($displayname != '')) { return sprintf('<a href="%s"%s>%s</a>', $entry['author_url'], $target, $displayname); } } elseif ($type == 'email') { if ($entry['author_email'] && ($displayname != '')) { $str = "mailto:" . $entry['author_email']; if ($args['spam_protect']) $str = spam_protect($str); return sprintf('<a href="%s">%s</a>', $str, $displayname); } } elseif ($type == 'archive') { require_once("function.mtarchivelink.php"); $link = smarty_function_mtarchivelink(array('type' => 'Author'), $ctx); if ($link) { return sprintf('<a href="%s"%s>%s</a>', $link, $target, $displayname); } } return $displayname; } ?>