2
# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
3
# This program is distributed under the terms of the
4
# GNU General Public License, version 2.
8
function smarty_function_mtsignoutlink($args, &$ctx) {
11
$entry = $ctx->stash('entry');
12
require_once "function.mtcgipath.php";
13
$path = smarty_function_mtcgipath($args, $ctx);
14
if (isset($args['no_static']) && ($args['no_static'] == 1)) {
17
$url = $args['static'];
18
if (isset($url) && ($url != '1')) {
19
$static_arg = "&static=" . urlencode($url);
20
} else if (isset($url) && ($url == 1)) {
21
$static_arg = "&static=1";
23
$static_arg = "&static=0";
27
$path = $path . $ctx->mt->config('CommentScript') .
28
'?__mode=handle_sign_in' .
32
$path .= '&entry_id=' . $entry['entry_id'];