removed TEMPLATE_SWITCH
This commit is contained in:
@@ -200,8 +200,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/category.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/category.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -416,8 +416,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/comments.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/comments.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -80,8 +80,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/configuration.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/configuration.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -421,8 +421,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/entries.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/entries.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -8,8 +8,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
serendipity_smarty_init();
|
||||
}
|
||||
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/entries_overview.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/entries_overview.inc.tpl";
|
||||
$serendipity['smarty']->display('file:'. $tfile);
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
@@ -8,8 +8,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
serendipity_smarty_init();
|
||||
}
|
||||
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/export.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/export.inc.tpl";
|
||||
$serendipity['smarty']->display('file:'. $tfile);
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
@@ -126,8 +126,7 @@ if ($serendipity['GET']['adminAction'] == 'edit' || isset($_POST['NEW'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/groups.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/groups.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -734,8 +734,7 @@ $data['get']['fid'] = $serendipity['GET']['fid']; // don't trust {$smarty.get.va
|
||||
$data['get']['only_path'] = $serendipity['GET']['only_path']; // we dont need other GET vars in images.inc.tpl
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/images.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/images.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -259,8 +259,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/import.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/import.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -385,8 +385,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/installer.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/installer.inc.tpl";
|
||||
|
||||
ob_start();
|
||||
include $tfile;
|
||||
|
@@ -41,8 +41,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/overview.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/overview.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -119,8 +119,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/personal.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/personal.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -423,8 +423,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/plugins.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/plugins.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
@@ -191,8 +191,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/templates.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/templates.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -1,207 +0,0 @@
|
||||
{if $post_save}
|
||||
{if $new}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />
|
||||
{$CONST.CATEGORY_SAVED}
|
||||
</div>
|
||||
{/if}
|
||||
{if $edit}
|
||||
{if isset($editPermission) && $editPermission == false}
|
||||
<div class="serendipityAdminMsgError msg_error">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />
|
||||
{$CONST.PERM_DENIED}
|
||||
</div>
|
||||
{else}
|
||||
{if $subcat}
|
||||
{$subcat}
|
||||
{else}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />
|
||||
{$CONST.CATEGORY_SAVED}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $doDelete}
|
||||
{if $deleteSuccess}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />
|
||||
{if $remainingCat}
|
||||
{$CONST.CATEGORY_DELETED_ARTICLES_MOVED|sprintf:$remainingCat:$cid}
|
||||
{else}
|
||||
{$cid|string_format:"{$CONST.CATEGORY_DELETED}"}
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="serendipityAdminMsgError msg_error">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />
|
||||
{$CONST.INVALID_CATEGORY}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $delete}
|
||||
{if $deletePermission == true}
|
||||
<form method="POST" name="serendipityCategory" action="?serendipity[adminModule]=category&serendipity[adminAction]=doDelete&serendipity[cid]={$cid}">
|
||||
{$formToken}
|
||||
<h3>{$categoryName|escape:"html"}</h3>
|
||||
{$CONST.CATEGORY_REMAINING}:
|
||||
<select name="serendipity[cat][remaining_catid]">
|
||||
<option value="0">- {$CONST.NO_CATEGORY} -</option>
|
||||
{foreach $cats as $cat_data}
|
||||
<option value="{$cat_data.categoryid}">{$cat_data.category_name|escape:"html"}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="REMOVE" value="{$CONST.GO}" class="serendipityPrettyButton input_button">
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if (! $post_save) && ($edit || $new)}
|
||||
{if $edit}
|
||||
<strong>{$category_name|escape:"html"|string_format:"{$CONST.EDIT_THIS_CAT}"}</strong>
|
||||
{/if}
|
||||
<form method="POST" name="serendipityCategory">
|
||||
{$formToken}
|
||||
<table cellpadding="5" width="100%">
|
||||
<tr>
|
||||
<td>{$CONST.NAME}</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[cat][name]" value="{$this_cat.category_name|default:""|escape:"html"}" /></td>
|
||||
<td rowspan="5" align="center" valign="middle" width="200" style="border: 1px solid #ccc">
|
||||
<img src="{$this_cat.category_icon|default:""|escape:"html"}" id="imagepreview" {if ! $this_cat.category_icon} style="display: none" {/if} />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{$CONST.DESCRIPTION}</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[cat][description]" value="{$this_cat.category_description|default:""|escape:"html"}" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>{$CONST.IMAGE}</td>
|
||||
<td>
|
||||
<script type="text/javascript" language="JavaScript" src="serendipity_editor.js"></script>
|
||||
<input class="input_textbox" type="text" id="img_icon" name="serendipity[cat][icon]" value="{$this_cat.category_icon|default:""|escape:"html"}" onchange="document.getElementById('imagepreview').src = this.value; document.getElementById('imagepreview').style.display = '';" />
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
var img_icon = document.getElementById('img_icon');
|
||||
var imgBtn = document.createElement('div');
|
||||
imgBtn.id = "category_ml_popup";
|
||||
imgBtn.innerHTML = '<input type="button" name="insImage" value="{$CONST.IMAGE}" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[htmltarget]=img_icon&serendipity[filename_only]=true\', \'ImageSel\', \'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1\');" class="serendipityPrettyButton input_button" />';
|
||||
img_icon.parentNode.insertBefore(imgBtn, img_icon.nextSibling);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="read_authors">{$CONST.PERM_READ}</label></td>
|
||||
<td>
|
||||
<select size="6" id="read_authors" multiple="multiple" name="serendipity[cat][read_authors][]">
|
||||
<option value="0" {if $selectAllReadAuthors}selected="selected"{/if}>{$CONST.ALL_AUTHORS}</option>
|
||||
{foreach $groups as $group}
|
||||
<option value="{$group.confkey}"
|
||||
{if isset($read_groups.{$group.confkey})}
|
||||
selected="selected"
|
||||
{/if} >
|
||||
{$group.confvalue|escape:"html"}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="write_authors"><{$CONST.PERM_WRITE}</label></td>
|
||||
<td>
|
||||
<select size="6" id="write_authors" multiple="multiple" name="serendipity[cat][write_authors][]">
|
||||
<option value="0" {if $selectAllReadAuthors}selected="selected"{/if}>{$CONST.ALL_AUTHORS}</option>
|
||||
{foreach $groups as $group}
|
||||
<option value="{$group.confkey}" {if isset($read_groups.{$group.confkey})} selected="selected" {/if} > {$group.confvalue|escape:"html"}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="parent_cat">{$CONST.PARENT_CATEGORY}</label></td>
|
||||
<td>
|
||||
<select id="parent_cat" name="serendipity[cat][parent_cat]">
|
||||
<option value="0" {if $cid == 0} selected="selected" {/if}>[ {$CONST.NO_CATEGORY} ]</option>
|
||||
{foreach $categories as $cat}
|
||||
{* We can't be our own parent, the universe will collapse *}
|
||||
{if $cat.categoryid == $cid}{continue}{/if}
|
||||
<option value="{$cat.categoryid}" {if $this_cat.parentid == $cat.categoryid} selected="selected"{/if} >
|
||||
{for $i=1 to $cat.depth} {/for} $cat.category_name
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><{$CONST.CATEGORY_HIDE_SUB}<br /><em>{$CONST.CATEGORY_HIDE_SUB_DESC}</em></td>
|
||||
<td valign="top">
|
||||
<input class="input_radio" type="radio" name="serendipity[cat][hide_sub]" value="0"
|
||||
{if $this_cat.hide_sub == 0}
|
||||
checked="checked"
|
||||
{/if}
|
||||
id="hide_sub_no" />
|
||||
<label for="hide_sub_no">
|
||||
{$CONST.NO}
|
||||
</label>
|
||||
<input class="input_radio" type="radio" name="serendipity[cat][hide_sub]" value="1" {if $this_cat.hide_sub== 1} checked="checked"{/if} id="hide_sub_yes" /> <label for="hide_sub_yes">{$CONST.YES}</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div><input type="submit" name="SAVE" value="{$save}" class="serendipityPrettyButton input_button" /></div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
{if $view}
|
||||
{if is_array($viewCats)}
|
||||
{$CONST.CATEGORY_INDEX}:
|
||||
{else}
|
||||
<div align="center">- {$CONST.NO_CATEGORIES} -</div>
|
||||
{/if}
|
||||
<br /><br />
|
||||
<table cellspacing="0" cellpadding="4" width="100%" border=0>
|
||||
{foreach $viewCategories as $category}
|
||||
<tr>
|
||||
<td width="16">
|
||||
<a title="{$CONST.EDIT}" href="?serendipity[adminModule]=category&serendipity[adminAction]=edit&serendipity[cid]={$category.categoryid}">
|
||||
<img src="{serendipity_getFile file='admin/img/edit.png'}" border="0" alt="{$CONST.EDIT}" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="16">
|
||||
<a title="{$CONST.DELETE}" href="?serendipity[adminModule]=category&serendipity[adminAction]=delete&serendipity[cid]={$category.categoryid}">
|
||||
<img src="{serendipity_getFile file='admin/img/delete.png'}" border="0" alt="{$CONST.DELETE}" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="16">
|
||||
{if $category.category_icon}
|
||||
<img src="{serendipity_getFile file='admin/img/thumbnail.png'}" alt="" />
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
<td width="300" style="padding-left: {$category.depth*15+20}px">
|
||||
<img src="{serendipity_getFile file='admin/img/folder.png'}" style="vertical-align: bottom;">
|
||||
{$category.category_name|escape:"html"}
|
||||
</td>
|
||||
<td>
|
||||
{$category.category_description|escape:"html"}
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $category.authorid == 0}
|
||||
{$CONST.ALL_AUTHORS}
|
||||
{else}
|
||||
{$category.realname|escape:"html"}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="6" align="right">
|
||||
<a href="?serendipity[adminModule]=category&serendipity[adminAction]=new" class="serendipityPrettyButton input_button">{$CONST.CREATE_NEW_CAT}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
@@ -1,202 +0,0 @@
|
||||
{if !empty($errormsg)}
|
||||
<p class="serendipityAdminMsgNote msg_notice"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />{$errormsg}</p>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
var view_full = '{$CONST.VIEW_FULL}';
|
||||
var view_hide = '{$CONST.HIDE}';
|
||||
</script>
|
||||
<script src="serendipity_editor.js"></script>
|
||||
|
||||
<form action="" method="GET" style="margin: 0">
|
||||
{$formtoken}
|
||||
<input type="hidden" name="serendipity[adminModule]" value="comments" />
|
||||
<input type="hidden" name="serendipity[page]" value="{$page}" />
|
||||
<table class="serendipity_admin_filters" width="100%">
|
||||
<tr>
|
||||
<td colspan="6" class="serendipity_admin_filters_headline"><strong>{$CONST.FILTERS}</strong> - {$CONST.FIND_COMMENTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$CONST.AUTHOR}:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][author]" size="15" value="{$get.filter.author|escape}" /></td>
|
||||
<td>{$CONST.EMAIL}:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][email]" size="15" value="{$get.filter.email|escape}" /></td>
|
||||
<td>{$CONST.URL}:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][url]" size="15" value="{$get.filter.url|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IP:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][ip]" size="15" value="{$get.filter.ip|escape}" /></td>
|
||||
<td>{$CONST.CONTENT}:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][body]" size="15" value="{$get.filter.body|escape}" /></td>
|
||||
<td>{$CONST.REFERER}:</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[filter][referer]" size="15" value="{$get.filter.referer|escape}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$CONST.COMMENTS}:</td>
|
||||
<td>
|
||||
{* Smarty 3 does support ternary syntax e.g. {('N'==$foo)?'Yes':'No'} *}
|
||||
<select name="serendipity[filter][perpage]">
|
||||
{foreach $filter_vals AS $filter}
|
||||
<option value="{$filter}" {($commentsPerPage == $filter) ? ' selected="selected"' : ''}>{$filter}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td>{$CONST.COMMENTS_FILTER_SHOW}:</td>
|
||||
<td>
|
||||
<select name="serendipity[filter][show]">
|
||||
<option value="all"{if $get.filter.show == 'all'} selected="selected"{/if}>{$CONST.COMMENTS_FILTER_ALL}</option>
|
||||
<option value="approved"{if $get.filter.show == 'approved'} selected="selected"{/if}>{$CONST.COMMENTS_FILTER_APPROVED_ONLY}</option>
|
||||
<option value="pending"{if $get.filter.show == 'pending'} selected="selected"{/if}>{$CONST.COMMENTS_FILTER_NEED_APPROVAL}</option>
|
||||
<option value="confirm"{if $get.filter.show == 'confirm'} selected="selected"{/if}>{$CONST.COMMENTS_FILTER_NEED_CONFIRM}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>{$CONST.TYPE}</td>
|
||||
<td>
|
||||
<select name="serendipity[filter][type]">
|
||||
<option value="">{$CONST.COMMENTS_FILTER_ALL}</option>
|
||||
<option value="NORMAL"{if $c_type == 'NORMAL'} selected="selected"{/if}>{$CONST.COMMENTS}</option>
|
||||
<option value="TRACKBACK"{if $c_type == 'TRACKBACK'} selected="selected"{/if}>{$CONST.TRACKBACKS}</option>
|
||||
<option value="PINGBACK"{if $c_type == 'PINGBACK'} selected="selected"{/if}>{$CONST.PINGBACKS}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6" align="right"><input type="submit" name="submit" value=" - {$CONST.GO} - " class="serendipityPrettyButton input_button" /> {serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<hr noshade="noshade" /><br />
|
||||
|
||||
{if !is_array($sql)}
|
||||
<div align="center">- {$CONST.NO_COMMENTS} -</div>
|
||||
<div align="center">- Return to default comment list <a href="serendipity_admin.php?serendipity[adminModule]=comments">"here"</a>. -</div>
|
||||
{else}
|
||||
|
||||
<form action="" method="POST" name="formMultiDelete" id="formMultiDelete">
|
||||
{$formtoken}
|
||||
<input type="hidden" name="serendipity[formAction]" value="multiDelete" />
|
||||
<table width="100%" cellpadding="3" border="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="100%" cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
{if ( $page != 1 && $page <= $pages )}
|
||||
<a href="{$linkPrevious}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/previous.png'}" />{$CONST.PREVIOUS}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">{$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments}</td>
|
||||
<td align="right">
|
||||
{if $page != $pages}
|
||||
<a href="{$linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{serendipity_getFile file='admin/img/next.png'}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if is_array($comments)}
|
||||
{* see dashboard PoC :: block_comments_pending.tpl or block_comments.tpl as example *}
|
||||
{foreach $comments AS $comment}
|
||||
<tr>
|
||||
<td class="{$comment.header_class}">
|
||||
{if !empty($comment.header_class)}
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />
|
||||
{/if}
|
||||
<a name="c{$comment.id}"></a>{* NOTE: a $comment.pubdate with 'c' is available *}
|
||||
{($comment.type == 'NORMAL') ? $CONST.COMMENT : (($comment.type == 'TRACKBACK') ? $CONST.TRACKBACK : $CONST.PINGBACK )} #{$comment.id}, {$CONST.IN_REPLY_TO} <strong><a href="{$comment.entry_url}">{$comment.title|escape}</a></strong>{$CONST.ON} {$comment.timestamp|@formatTime:'%b %e %Y, %H:%M'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="serendipity_admin_list_item {$comment.class}" id="comment_{$comment.id}">
|
||||
<table width="100%" cellspacing="0" cellpadding="3" border="0">
|
||||
<tr>
|
||||
<td rowspan="3" width="20" align="center"><input class="input_checkbox" type="checkbox" name="serendipity[delete][{$comment.id}]" value="{$comment.entry_id}" onclick="highlightComment('comment_{$comment.id}', this.checked)" tabindex="{$i}" /></td>
|
||||
<td width="40%"><strong>{$CONST.AUTHOR}</strong>: {$comment.author|escape|truncate:30:"…"} {$comment.action_author}</td>
|
||||
<td><strong>{$CONST.EMAIL}</strong>:
|
||||
{if empty($comment.email)} N/A {else}
|
||||
<a href="mailto:{$comment.email|escape}" title="{$comment.email|escape}">{$comment.email|escape|truncate:30:"…"}</a>
|
||||
{if $comment.subscribed == 'true'} <span class="serendipity_subscription_on">({$CONST.ACTIVE_COMMENT_SUBSCRIPTION})</span>{/if}
|
||||
{/if}
|
||||
{$comment.action_email}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%"><strong>IP</strong>:
|
||||
{if empty($comment.ip)} 0.0.0.0 {else} {$comment.ip|escape} {/if}
|
||||
{$comment.action_ip}
|
||||
</td>
|
||||
<td><strong>{$CONST.URL}</strong>:
|
||||
{if empty($comment.url)} N/A {else} <a href="{$comment.url|escape}" title="{$comment.url|escape}" target="_blank">{$comment.url|escape|truncate:30:"…"}</a> {/if}
|
||||
{$comment.action_url}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%"> </td>
|
||||
<td><strong>{$CONST.REFERER}</strong>:
|
||||
{if empty($comment.referer)} N/A {else} <a href="{$comment.referer|escape}" title="{$comment.referer|escape}" target="_blank">{$comment.referer|escape|truncate:30:"…"}</a> {/if}
|
||||
{$comment.action_referer}
|
||||
</td>
|
||||
<tr>
|
||||
<td style="border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC" colspan="3">
|
||||
<div id="{$comment.id}_summary">{$comment.summary}</div>
|
||||
<div id="{$comment.id}_full" style="display: none">{$comment.fullBody}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if ($comment.status == 'pending') || ($comment.status == 'confirm')}
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=approve&serendipity[id]={$comment.id}&{$urltoken}" class="serendipityIconLink" title="{$CONST.APPROVE}"><img src="{serendipity_getFile file='admin/img/accept.png'}" alt="{$CONST.APPROVE}" />{$CONST.APPROVE}</a>
|
||||
{/if}
|
||||
{if ($comment.status == 'approved')}
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=pending&serendipity[id]={$comment.id}&{$urltoken}" class="serendipityIconLink" title="{$CONST.SET_TO_MODERATED}"><img src="{serendipity_getFile file='admin/img/clock.png'}" alt="{$CONST.SET_TO_MODERATED}" />{$CONST.SET_TO_MODERATED}</a>
|
||||
{/if}
|
||||
{if $comment.excerpt}
|
||||
<a href="#c{$comment.id}" onclick="FT_toggle({$comment.id}); return false;" title="{$CONST.VIEW}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/zoom.png'}" alt="{$CONST.TOGGLE_ALL}" /><span id="{$comment.id}_text">{$CONST.TOGGLE_ALL}</span></a>
|
||||
{/if}
|
||||
<a target="_blank" href="{$comment.entrylink}" title="{$CONST.VIEW}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/zoom.png'}" alt="{$CONST.VIEW}" />{$CONST.VIEW}</a>
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=edit&serendipity[id]={$comment.id}&serendipity[entry_id]={$comment.entry_id}&{$urltoken}" title="{$CONST.EDIT}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/edit.png'}" alt="{$CONST.EDIT}" />{$CONST.EDIT}</a>
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=delete&serendipity[id]={$comment.id}&serendipity[entry_id]={$comment.entry_id}&{$urltoken}" onclick='return confirm("{($CONST.COMMENT_DELETE_CONFIRM|sprintf:$comment.id:$comment.author)|escape}")' title="{$CONST.DELETE}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/delete.png'}" alt="{$CONST.DELETE}" />{$CONST.DELETE}</a>
|
||||
<a target="_blank" onclick="cf = window.open(this.href, 'CommentForm', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1'); cf.focus(); return false;" href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=reply&serendipity[id]={$comment.id}&serendipity[entry_id]={$comment.entry_id}&serendipity[noBanner]=true&serendipity[noSidebar]=true&{$urltoken}" title="{$CONST.REPLY}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/user_editor.png'}" alt="{$CONST.REPLY}" />{$CONST.REPLY}</a>
|
||||
{$comment.action_more}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><hr noshade="noshade" /></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/if}{* array $comments end *}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" name="toggle" value="{$CONST.INVERT_SELECTIONS}" onclick="invertSelection()" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="toggle" value="{$CONST.DELETE_SELECTED_COMMENTS}" onclick="return confirm('{$CONST.COMMENTS_DELETE_CONFIRM}')" tabindex="{($i+1)}" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="serendipity[togglemoderate]" value="{$CONST.MODERATE_SELECTED_COMMENTS}" class="serendipityPrettyButton input_button" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" cellpadding="3" border="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="100%" cellspacing="5" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
{if ( $page != 1 && $page <= $pages )}
|
||||
<a href="{$linkPrevious}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/previous.png'}" />{$CONST.PREVIOUS}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td align="center">{$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments}</td>
|
||||
<td align="right">
|
||||
{if $page != $pages}
|
||||
<a href="{$linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{serendipity_getFile file='admin/img/next.png'}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
{/if} {* if no comments else comments end *}
|
@@ -1,31 +0,0 @@
|
||||
{if $installAction == "check"}
|
||||
{if $diagnosticError}
|
||||
{$CONST.DIAGNOSTIC_ERROR}
|
||||
<div class="serendipityAdminMsgError msg_error">-
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />
|
||||
{foreach $res as $r}
|
||||
{$r} <br />
|
||||
{/foreach}
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
{else}
|
||||
{if $htaccessRewrite}
|
||||
{$CONST.ATTEMPT_WRITE_FILE|sprintf:"{$serendipityPath}htaccess"}
|
||||
{if is_array($res)}
|
||||
{foreach $res as $r}
|
||||
{$r} <br />
|
||||
{/foreach}
|
||||
{else}
|
||||
{$CONST.DONE} <br />
|
||||
{/if}
|
||||
{/if}
|
||||
<br />
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.WRITTEN_N_SAVED}
|
||||
</div>
|
||||
{/if}
|
||||
{else}
|
||||
{$config}
|
||||
{/if}
|
@@ -1,252 +0,0 @@
|
||||
{if $drawList}
|
||||
|
||||
<div class="serendipity_admin_list">
|
||||
|
||||
<form action="?" method="get">
|
||||
<input type="hidden" name="serendipity[action]" value="admin" />
|
||||
<input type="hidden" name="serendipity[adminModule]" value="entries" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="editSelect" />
|
||||
<table width="100%" class="serendipity_admin_filters">
|
||||
<tr>
|
||||
<td class="serendipity_admin_filters_headline" colspan="6"><strong>{$CONST.FILTERS}</strong> - {$CONST.FIND_ENTRIES}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="80">{$CONST.AUTHOR}</td>
|
||||
<td valign="top">
|
||||
<select name="serendipity[filter][author]">
|
||||
<option value="">--</option>
|
||||
{if is_array($users)}
|
||||
{foreach $users AS $user}
|
||||
{if isset($user.artcount) && $user.artcount < 1}{continue}{/if}
|
||||
<option value="{$user.authorid}" {(isset($get.filter.author) && ($get.filter.author == $user.authorid)) ? 'selected="selected"' : ''}>{$user.realname|escape}</option>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</select>
|
||||
<select name="serendipity[filter][isdraft]">
|
||||
<option value="all">{$CONST.COMMENTS_FILTER_ALL}</option>
|
||||
<option value="draft" {(isset($get.filter.isdraft) && ($get.filter.isdraft == 'draft') ? 'selected="selected"' : '')}>{$CONST.DRAFT}</option>
|
||||
<option value="publish" {(isset($get.filter.isdraft) && ($get.filter.isdraft == 'publish') ? 'selected="selected"' : '')}>{$CONST.PUBLISH}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="top" width="80">{$CONST.CATEGORY}</td>
|
||||
<td valign="top">
|
||||
<select name="serendipity[filter][category]">
|
||||
<option value="">--</option>
|
||||
{foreach $categories as $cat}
|
||||
<option value="{$cat.categoryid}"{($get.filter.category == $cat.categoryid) ? ' selected="selected"' : ''}>{' '|str_repeat:$cat.depth} {$cat.category_name|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td valign="top" width="80">{$CONST.CONTENT}</td>
|
||||
<td valign="top"><input class="input_textbox" size="10" type="text" name="serendipity[filter][body]" value="{(isset($get.filter.body)) ? "{$get.filter.body|escape}" : ''}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="serendipity_admin_filters_headline" colspan="6"><strong>{$CONST.SORT_ORDER}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$CONST.SORT_BY}
|
||||
</td>
|
||||
<td>
|
||||
<select name="serendipity[sort][order]">
|
||||
{foreach $sort_order as $so_key => $so_val}
|
||||
<option value="{$so_key}" {(isset($get.sort.order) && ($get.sort.order == $so_key) ? 'selected="selected"': '')}>{$so_val}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td>{$CONST.SORT_ORDER}</td>
|
||||
<td>
|
||||
<select name="serendipity[sort][ordermode]">
|
||||
<option value="DESC" {(isset($get.sort.ordermode) && ($get.sort.ordermode == 'DESC') ? 'selected="selected"' : '')}>{$CONST.SORT_ORDER_DESC}</option>
|
||||
<option value="ASC" {(isset($get.sort.ordermode) && ($get.sort.ordermode == 'ASC') ? 'selected="selected"' : '')}>{$CONST.SORT_ORDER_ASC}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>{$CONST.ENTRIES_PER_PAGE}</td>
|
||||
<td>
|
||||
<select name="serendipity[sort][perPage]">
|
||||
{foreach $per_page AS $per_page_nr}
|
||||
<option value="{$per_page_nr}" {((isset($get.sort.perPage) && ($get.sort.perPage == $per_page_nr)) ? 'selected="selected"' : '')}>{$per_page_nr}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="6"><input type="submit" name="go" value="{$CONST.GO}" class="serendipityPrettyButton input_button" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
{if $is_entries}
|
||||
|
||||
<table class="serendipity_admin_list" cellpadding="5" width="100%">
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
{if $offSet > 0}
|
||||
<a href="{$linkPrevious}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/previous.png'}" />{$CONST.PREVIOUS}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $count > $perPage}
|
||||
<a href="{$linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{serendipity_getFile file='admin/img/next.png'}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<script type="text/javascript" language="JavaScript" src="{serendipity_getFile file='admin/admin_scripts.js'}"></script>
|
||||
|
||||
<form action="?" method="post" name="formMultiDelete" id="formMultiDelete">
|
||||
{$formtoken}
|
||||
<input type="hidden" name="serendipity[action]" value="admin" />
|
||||
<input type="hidden" name="serendipity[adminModule]" value="entries" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="multidelete" />
|
||||
|
||||
{foreach $entries as $entry}
|
||||
{if ($entry@index > $perPage)}{continue}{/if}
|
||||
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_{($entry@index % 2) ? 'even' : 'uneven'}">
|
||||
|
||||
<table width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{if (!$showFutureEntries) && ($entry.timestamp >= $serverOffsetHour)}<a href="#" title="{$CONST.ENTRY_PUBLISHED_FUTURE}" onclick="alert(this.title)"><img src="{serendipity_getFile file='admin/img/clock_future.png'}" alt="*" style="border: 0px none ; vertical-align: bottom;" /></a> {else}{/if}{if $entry.ep_is_sticky} {$CONST.STICKY_POSTINGS}: {/if}{if $entry.isdraft}{$CONST.DRAFT}: {/if}<a href="?serendipity[action]=admin&serendipity[adminModule]=entries&serendipity[adminAction]=edit&serendipity[id]={$entry.id}" title="#{$entry.id}">{$entry.title|escape|truncate:50:"…"}</a></strong>
|
||||
</td>
|
||||
<td align="right">
|
||||
{* Find out if the entry has been modified later than 30 minutes after creation *}
|
||||
{$entry.timestamp|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"} {if $entry.timestamp <= ($entry.last_modified - (60*30))}<a href="#" title="{$CONST.LAST_UPDATED}: {$entry.last_modified|@formatTime:"{$CONST.DATE_FORMAT_SHORT}"}" onclick="alert(this.title)"><img src="{serendipity_getFile file='admin/img/clock.png'}" alt="*" style="border: 0px none ; vertical-align: bottom;" /></a>{else}{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$CONST.POSTED_BY} {$entry.author|escape}
|
||||
{if count($entry.cats)}
|
||||
{$CONST.IN}
|
||||
{foreach $entry.cats AS $cat}
|
||||
{$cat}{if (count($entry.cats) > 1) && !$cat@last}, {/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $entry.preview || (!$showFutureEntries && ($entry.timestamp >= $serverOffsetHour))}
|
||||
<a href="{$entry.preview_link}" title="{$CONST.PREVIEW} #{$entry.id}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/zoom.png'}" alt="{$CONST.PREVIEW}" />{$CONST.PREVIEW}</a>
|
||||
{else}
|
||||
<a href="{$entry.archive_link}" title="{$CONST.VIEW} #{$entry.id}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/zoom.png'}" alt="{$CONST.VIEW}" />{$CONST.VIEW}</a>
|
||||
{/if}
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=entries&serendipity[adminAction]=edit&serendipity[id]={$entry.id}" title="{$CONST.EDIT} #{$entry.id}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/edit.png'}" alt="{$CONST.EDIT}" />{$CONST.EDIT}</a>
|
||||
<a href="?serendipity[action]=admin&serendipity[adminModule]=entries&serendipity[adminAction]=delete&serendipity[id]={$entry.id}&{$urltoken}" title="{$CONST.DELETE} #{$entry.id}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/delete.png'}" alt="{$CONST.DELETE}" />{$CONST.DELETE}</a>
|
||||
<input class="input_checkbox" type="checkbox" name="serendipity[multiDelete][]" value="{$entry.id}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{/foreach}
|
||||
|
||||
{/if} {* end is_entries *}
|
||||
|
||||
<table class="serendipity_admin_list" cellpadding="5" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
{if $offSet > 0}
|
||||
<a href="{$linkPrevious}" class="serendipityIconLink"><img src="{serendipity_getFile file='admin/img/previous.png'}" />{$CONST.PREVIOUS}</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td align="right">
|
||||
{if $count > $perPage}
|
||||
<a href="{$linkNext}" class="serendipityIconLinkRight">{$CONST.NEXT}<img src="{serendipity_getFile file='admin/img/next.png'}" /></a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="serendipity_admin_list" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td align="right">
|
||||
<input type="button" name="toggle" value="{$CONST.INVERT_SELECTIONS}" onclick="invertSelection()" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="toggle" value="{$CONST.DELETE_SELECTED_ENTRIES}" class="serendipityPrettyButton input_button" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_{(($entry@index+1) % 2) ? 'even' : 'uneven'}">
|
||||
<table width="100%" cellspacing="0" cellpadding="3">
|
||||
<tr>
|
||||
<td>
|
||||
<form action="?" method="get">
|
||||
<input type="hidden" name="serendipity[action]" value="admin" />
|
||||
<input type="hidden" name="serendipity[adminModule]" value="entries" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="editSelect" />
|
||||
{$CONST.EDIT_ENTRY}: #<input class="input_textbox" type="text" size="3" name="serendipity[id]" /> <input type="submit" name="serendipity[editSubmit]" value="{$CONST.GO}" class="serendipityPrettyButton input_button" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div><!-- // div.serendipity_admin_list drawList end -->
|
||||
|
||||
{/if}{* $drawList end *}
|
||||
{if $no_entries}
|
||||
|
||||
<div class="serendipity_admin_list">
|
||||
|
||||
{* We've got nothing *}
|
||||
<table class="serendipity_admin_list" cellpadding="0" width="100%">
|
||||
|
||||
<tr>
|
||||
<td align="center" class="serendipityAdminMsgNote msg_notice">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />
|
||||
{$CONST.NO_ENTRIES_TO_PRINT}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</div><!-- // div.serendipity_admin_list no entries end -->
|
||||
|
||||
{/if}
|
||||
|
||||
{if $switched_output}
|
||||
{if ($get.adminAction && $dateval)}
|
||||
{$CONST.DATE_INVALID}
|
||||
<br />
|
||||
{/if}
|
||||
{if ($get.adminAction && $use_legacy)}
|
||||
{if $is_draft}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />{$CONST.IFRAME_SAVE_DRAFT}</div><br />
|
||||
{/if}
|
||||
{if $is_iframe}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />{$CONST.IFRAME_SAVE}</div><br />
|
||||
{/if}
|
||||
{if $is_iframepreview}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />{$CONST.IFRAME_PREVIEW}</div><br />
|
||||
{/if}
|
||||
{/if}
|
||||
{if ($is_doDelete || $is_doMultiDelete )}
|
||||
{foreach $del_entry AS $delent}
|
||||
{$delent}
|
||||
<br />
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if ( $is_delete || $is_multidelete )}
|
||||
{* delent and ripent look like $CONST.DELETE_SURE|sprintf:"$del_entry_id - $del_entry_title" *}
|
||||
{foreach $rip_entry AS $ripent}
|
||||
{$ripent}
|
||||
<br />
|
||||
{/foreach}
|
||||
<br />
|
||||
<br />
|
||||
<div>
|
||||
<a href="{$smarty.server.HTTP_REFERER|escape}" class="serendipityPrettyButton input_button">{$CONST.NOT_REALLY}</a>
|
||||
{' '|str_repeat:10}
|
||||
<a href="{$newLoc}" class="serendipityPrettyButton input_button">{$CONST.DUMP_IT}</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
@@ -1,3 +0,0 @@
|
||||
|
||||
{$CONST.WELCOME_BACK} {$smarty.session.serendipityUser|escape}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
<div>
|
||||
<a href="{$serendipityBaseURL}rss.php?version=2.0&all=1" class="serendipityPrettyButton input_button">{$CONST.EXPORT_FEED}</a>
|
||||
</div>
|
@@ -1,190 +0,0 @@
|
||||
{if $delete_yes}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img style="height: 22px; width: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.DELETED_GROUP|sprintf:"{$group_id|escape:"html"}":"{$group.name|escape:"html"}"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $save_new}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img style="height: 22px; width: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.CREATED_GROUP|sprintf:"{$group_id|escape:"html"}":"{$group.name|escape:"html"}"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $save_edit}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img style="height: 22px; width: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.MODIFIED_GROUP|sprintf:"{$name|escape:"html"}"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !$delete}
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td><strong>{$CONST.GROUP}</strong></td>
|
||||
<td width="200"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
{foreach $groups as $group}
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_{if $group@iteration is even} even {else} uneven {/if}">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>{$group.name|escape:"html"}</td>
|
||||
<td width="200" align="right">
|
||||
<a href="?serendipity[adminModule]=groups&serendipity[adminAction]=edit&serendipity[group]={$group.id}" title="{$CONST.EDIT} {$group.name|escape:"html"}" class="serendipityIconLink">
|
||||
<img src="{serendipity_getFile file="admin/img/edit.png"}" alt="{$CONST.EDIT} {$group.name|escape:"html"}" />
|
||||
{$CONST.EDIT}
|
||||
</a>
|
||||
<a href="?{$deleteFormToken}&serendipity[adminModule]=groups&serendipity[adminAction]=delete&serendipity[group]={$group.id}" title="{$CONST.DELETE} {$group.name|escape:"html"}" class="serendipityIconLink">
|
||||
<img src="{serendipity_getFile file="admin/img/delete.png"}" alt="{$CONST.DELETE} {$group.name|escape:"html"}" />
|
||||
{$CONST.DELETE}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{if $start}
|
||||
<tr>
|
||||
<td colspan="3" align="right">
|
||||
<form action="?serendipity[adminModule]=groups" method="post">
|
||||
<input type="submit" name="NEW" value="{$CONST.CREATE_NEW_GROUP}" class="serendipityPrettyButton input_button" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if $edit || $new}
|
||||
<br />
|
||||
<br />
|
||||
<hr noshade="noshade">
|
||||
<form action="?serendipity[adminModule]=groups" method="post">
|
||||
{$formToken}
|
||||
<div>
|
||||
<h3>
|
||||
{if $edit}
|
||||
{$CONST.EDIT}
|
||||
<input type="hidden" name="serendipity[group]" value="{$from.id}" />
|
||||
{else}
|
||||
{$CONST.CREATE}
|
||||
{/if}
|
||||
</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td>{$CONST.NAME}</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[name]" value="{$from.name|escape:"html"}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">{$CONST.USERCONF_GROUPS}</td>
|
||||
<td>
|
||||
<select name="serendipity[members][]" multiple="multiple" size="5">
|
||||
{foreach $allusers as $user}
|
||||
<option value="{$user.authorid}" {if isset($selected.{$user.authorid})} selected="selected"{/if} >{$user.realname|escape:"html"}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
{foreach $perms as $perm}
|
||||
{if {{$perm@key}|truncate:"2":""} == "f_"}{continue}{/if}
|
||||
|
||||
{if !isset($section)}
|
||||
{$section=$perm@key}
|
||||
{/if}
|
||||
|
||||
{if $section != {$perm@key} && {{$perm@key}|truncate:"{$section|count_characters}":""} == $section}
|
||||
{$indent=" "}
|
||||
{$indentB=""}
|
||||
{else}
|
||||
{if $section != {$perm@key}}
|
||||
{$indent="<br />"}
|
||||
{$indentB="<br />"}
|
||||
{$section="{$perm@key}"}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if !$perm.permission}
|
||||
<tr>
|
||||
<td>{$indent} {$perm.permission_name|escape:"html"}</td>
|
||||
<td>{$indentB} {(isset($from.{$perm@key}) && $from.{$perm@key} == "true") ? $CONST.YES : $CONST.NO} </td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr>
|
||||
<td>{$indent} <label for="{{$perm@key}|escape:"html"}">{$perm.permission_name|escape:"html"}</label></td>
|
||||
<td>{$indentB} <input class="input_checkbox" id="{{$perm@key}|escape:"html"}" type="checkbox" name="serendipity[{{$perm@key}|escape:"html"}]" value="true" {if isset({$from.{$perm@key}}) && {$from.{$perm@key}} == "true"} checked="checked" {/if} /></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{if $enablePluginACL}
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">{$CONST.PERMISSION_FORBIDDEN_PLUGINS}</td>
|
||||
<td>
|
||||
<select name="serendipity[forbidden_plugins][]" multiple="multiple" size="5">
|
||||
{foreach $allplugins as $plugin}
|
||||
<option value="{{$plugin@key}|escape:"url"} {if $plugin.has_permission == false} selected="selected" {/if} >{$plugin.b->properties.name|escape:"html"}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">{$CONST.PERMISSION_FORBIDDEN_HOOKS}</td>
|
||||
<td>
|
||||
<select name="serendipity[forbidden_hooks][]" multiple="multiple" size="5">
|
||||
{foreach $allhooks as $hook}
|
||||
<option value="{{$hook@key}|escape:"url"}" {$hook.has_permission == false} 'selected="selected"}>{{$hook@key}|escape:"html"}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">{$CONST.PERMISSION_FORBIDDEN_ENABLE_DESC}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{if $edit}
|
||||
<input type="submit" name="SAVE_EDIT" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" />
|
||||
{$CONST.WORD_OR} -
|
||||
<input type="submit" name="SAVE_NEW" value="{$CONST.CREATE_NEW_GROUP}" class="serendipityPrettyButton input_button" />
|
||||
{else}
|
||||
<input type="submit" name="SAVE_NEW" value="{$CONST.CREATE_NEW_GROUP}" class="serendipityPrettyButton input_button" />
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
{else}
|
||||
{if $delete}
|
||||
<form action="?serendipity[adminModule]=groups" method="post">
|
||||
<div>
|
||||
{$CONST.DELETE_GROUP|sprintf:"{$group_id}":"{$group.name|escape:"html"}"}
|
||||
<br /><br />
|
||||
{$formToken}
|
||||
<input type="hidden" name="serendipity[group]" value="{$group_id|escape:"html"}" />
|
||||
<input type="submit" name="DELETE_YES" value="{$CONST.DUMP_IT}" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="NO" value="{$CONST.NOT_REALLY}" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
@@ -1,347 +0,0 @@
|
||||
|
||||
{if $case_imgedit}
|
||||
<div class="warning js_warning"><em>{$CONST.PREFERENCE_USE_JS_WARNING}</em></div>
|
||||
{** Let the IMGEditor do its magic. It will parse its results straightly into a template variable array.
|
||||
serendipity_smarty_fetch('IMGEDIT', $img->output_template);
|
||||
**}
|
||||
{/if}
|
||||
|
||||
{if $case_sync}
|
||||
{if !$perm_adminImagesSync}
|
||||
<div class="warning"><em>{$CONST.PERM_DENIED}</em></div>
|
||||
{else}
|
||||
|
||||
<div class="serendipityAdminMsgNote">{$CONST.WARNING_THIS_BLAHBLAH|replace:'\\n':'<br />'}</div>
|
||||
<form method="POST" action="serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=doSync">
|
||||
<p>
|
||||
<fieldset>
|
||||
<legend>{$CONST.SYNC_OPTION_LEGEND}</legend>
|
||||
<input type="radio" name="serendipity[deleteThumbs]" value="no" checked="checked" id="keepthumbs" />
|
||||
<label for="keepthumbs">{$CONST.SYNC_OPTION_KEEPTHUMBS}</label><br />
|
||||
<input type="radio" name="serendipity[deleteThumbs]" value="check" id="sizecheckthumbs" />
|
||||
<label for="sizecheckthumbs">{$CONST.SYNC_OPTION_SIZECHECKTHUMBS}</label><br />
|
||||
<input type="radio" name="serendipity[deleteThumbs]" value="yes" />
|
||||
<label for="deletethumbs">{$CONST.SYNC_OPTION_DELETETHUMBS}</label><br />
|
||||
</fieldset>
|
||||
</p>
|
||||
<input name="doSync" value="{$CONST.CREATE_THUMBS}" class="serendipityPrettyButton input_button" type="submit" />
|
||||
<a href="serendipity_admin.php" class="serendipityPrettyButton">{$CONST.ABORT_NOW}</a>
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_doSync}
|
||||
{if !$perm_adminImagesSync}
|
||||
<div class="warning"><em>{$CONST.PERM_DENIED}</em></div>
|
||||
{else}
|
||||
|
||||
<p class="image_synch"><b>{$CONST.SYNCING}</b></p><br />
|
||||
|
||||
{$print_SYNC_DONE}
|
||||
|
||||
<p class="image_resize"><b>{$CONST.RESIZING}</b></p><br />
|
||||
|
||||
{$print_RESIZE_DONE}
|
||||
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_delete}
|
||||
<div class="image_notify_delete">{$CONST.ABOUT_TO_DELETE_FILE|sprintf:"$file"}</div>
|
||||
<form method="get" id="delete_image">
|
||||
<div>
|
||||
<a href="{$newLoc}" class="serendipityPrettyButton input_button">{$CONST.DUMP_IT}</a>
|
||||
|
||||
<a href="{$abortLoc}" class="serendipityPrettyButton input_button">{$CONST.ABORT_NOW}</a>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
{if $switched_output}
|
||||
<form method="get" id="delete_images">
|
||||
{if ( $is_delete || $is_multidelete )}
|
||||
<p><span class="msg_notice">{$CONST.ABOUT_TO_DELETE_FILES}</span></p>
|
||||
{foreach $rip_image AS $ripimg}
|
||||
<span class="msg_dialog_ripentry">{$ripimg}</span><br />
|
||||
{/foreach}
|
||||
<ul class="dialog_delrip">
|
||||
<li><a class="link_abort" href="{$smarty.server.HTTP_REFERER|escape}">{$CONST.NOT_REALLY}</a></li>
|
||||
<li><a class="link_confirm" href="{$newLoc}">{$CONST.DUMP_IT}</a></li>
|
||||
</ul>
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
{if $case_rename}
|
||||
{if $go_back}
|
||||
<br />
|
||||
<input type="button" onclick="history.go(-1);" value="{$CONST.BACK}" class="serendipityPrettyButton input_button" />
|
||||
{else}
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
location.href="?serendipity[adminModule]=images&serendipity[adminAction]=default";
|
||||
</script>
|
||||
<noscript>
|
||||
<a href="?serendipity[adminModule]=images&serendipity[adminAction]=default">{$CONST.DONE}</a>
|
||||
</noscript>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_properties}
|
||||
{** serendipity_showPropertyForm($new_media) **}
|
||||
{/if}
|
||||
|
||||
{if $case_add}
|
||||
{if $smarty.post.adminSubAction == 'properties'}
|
||||
<script language="javascript" type="text/javascript">
|
||||
location.href="?serendipity[adminModule]=images&serendipity[adminAction]=default";
|
||||
</script>
|
||||
<noscript>
|
||||
<a href="?serendipity[adminModule]=images&serendipity[adminAction]=default">{$CONST.DONE}</a>
|
||||
</noscript>
|
||||
{else}
|
||||
{** showMediaLibrary($messages) **}
|
||||
{$showML_add}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_directoryDoDelete}
|
||||
{if $print_DIRECTORY_WRITE_ERROR}{$print_DIRECTORY_WRITE_ERROR}{/if}
|
||||
{if $ob_serendipity_killPath}{$ob_serendipity_killPath}{/if}
|
||||
{if $print_ERROR_NO_DIRECTORY}{$print_ERROR_NO_DIRECTORY}{/if}
|
||||
{** serendipity_plugin_api::hook_event('backend_directory_delete', $new_dir); **}
|
||||
{/if}
|
||||
|
||||
{if $case_directoryEdit}
|
||||
|
||||
{if !empty($smarty.post.save)}
|
||||
{if $ob_serendipity_moveMediaDirectory}{$ob_serendipity_moveMediaDirectory}{/if}
|
||||
<div>{$print_CONST.SETTINGS_SAVED_AT}</div>
|
||||
{/if}
|
||||
|
||||
<div class="image_directory_edit"><strong>{$CONST.MANAGE_DIRECTORIES}</strong></div>
|
||||
<br />
|
||||
<form id="image_directory_edit_form" method="POST" action="?serendipity[adminModule]=images&serendipity[adminAction]=directoryEdit&serendipity[dir]={$dir|escape:'html'}">
|
||||
{$formtoken}
|
||||
<input type="hidden" name="serendipity[oldDir]" value="{$use_dir}" />
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<td width="100"><strong>{$CONST.NAME}</strong></td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[newDir]" value="{$use_dir}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="read_authors">{$CONST.PERM_READ}</label></td>
|
||||
<td>
|
||||
<select size="6" id="read_authors" multiple="multiple" name="serendipity[read_authors][]">
|
||||
<option value="0" {if $rgroups}selected="selected"{/if}>{$CONST.ALL_AUTHORS}</option>
|
||||
{foreach $groups AS $group}
|
||||
<option value="{$group.confkey}" {if isset($read_groups.{$group.confkey})}selected="selected"{/if}>{$group.confvalue|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="write_authors">{$CONST.PERM_WRITE}</label></td>
|
||||
<td>
|
||||
<select size="6" id="write_authors" multiple="multiple" name="serendipity[write_authors][]">
|
||||
<option value="0" {if $wgroups}selected="selected"{/if}>{$CONST.ALL_AUTHORS}</option>
|
||||
{foreach $groups AS $group}
|
||||
<option value="{$group.confkey}" {if isset($write_groups.{$group.confkey})}selected="selected"{/if}>{$group.confvalue|escape:'html'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input class="input_checkbox" id="setchild" value="true" type="checkbox" name="serendipity[update_children]" {if !empty($smarty.post.update_children) == 'on'}checked="checked"{/if} /> <label for="setchild">{$CONST.PERM_SET_CHILD}</label>
|
||||
<td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<div align="center">
|
||||
<input name="serendipity[save]" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" type="submit" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $case_directoryDelete}
|
||||
|
||||
<div class="image_directory_delete"><strong>{$CONST.DELETE_DIRECTORY}</strong></div>
|
||||
<div class="image_directory_delete_desc">{$CONST.DELETE_DIRECTORY_DESC}</div>
|
||||
<br />
|
||||
<br />
|
||||
<form id="image_directory_delete_form" method="POST" action="?serendipity[adminModule]=images&serendipity[adminAction]=directoryDoDelete&serendipity[dir]={$dir|escape:'html'}">
|
||||
{$formtoken}
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<td width="100"><strong>{$CONST.NAME}</strong></td>
|
||||
<td>{$basename_dir}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input class="input_checkbox" type="checkbox" name="serendipity[nuke]" value="true" style="margin: 0"> {$CONST.FORCE_DELETE}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<div align="center">
|
||||
{$CONST.CONFIRM_DELETE_DIRECTORY|sprintf:$dir|escape:'html'}<br />
|
||||
<input name="SAVE" value="{$CONST.DELETE_DIRECTORY}" class="serendipityPrettyButton input_button" type="submit" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $case_directoryDoCreate}
|
||||
{** serendipity_plugin_api::hook_event('backend_directory_create', $nd); **}
|
||||
{if $print_DIRECTORY_CREATED}{$print_DIRECTORY_CREATED}{/if}
|
||||
{if $print_DIRECTORY_WRITE_ERROR}{$print_DIRECTORY_WRITE_ERROR}{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_directoryCreate}
|
||||
<div class="image_directory_create"><strong>{$CONST.CREATE_DIRECTORY}</strong></div>
|
||||
<div class="image_directory_create_desc">{$CONST.CREATE_DIRECTORY_DESC}</div>
|
||||
<br />
|
||||
<br />
|
||||
<form id="image_directory_create_form" method="POST" action="?serendipity[step]=directoryDoCreate&serendipity[adminModule]=images&serendipity[adminAction]=directoryDoCreate">
|
||||
{$formtoken}
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<td>{$CONST.NAME}</td>
|
||||
<td><input class="input_textbox" type="text" name="serendipity[name]" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$CONST.PARENT_DIRECTORY}</td>
|
||||
<td>
|
||||
<select name="serendipity[parent]">
|
||||
<option value="">{$CONST.BASE_DIRECTORY}</option>
|
||||
{foreach $folders as $folder}
|
||||
<option {if $folder.relpath == $get.only_path}selected="selected"{/if} value="{$folder.relpath}">{' '|str_repeat:($folder.depth*2)} {$folder.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{** IS this **}
|
||||
{serendipity_hookPlugin hookAll=true hook="backend_directory_createoptions" addData=$folders}
|
||||
{** the right smarty template translation for
|
||||
<?php serendipity_plugin_api::hook_event('backend_directory_createoptions', $folders); ?> **}
|
||||
</table>
|
||||
<div>
|
||||
<input name="SAVE" value="{$CONST.CREATE_DIRECTORY}" class="serendipityPrettyButton input_button" type="submit">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $case_directorySelect}
|
||||
|
||||
<div class="image_directory_list">{$CONST.DIRECTORIES_AVAILABLE}</div>
|
||||
<br />
|
||||
<table id="image_directory_listing" border="0" cellspacing="0" cellpadding="4" width="100%">
|
||||
<tr>
|
||||
<td colspan="4"><strong>{$CONST.BASE_DIRECTORY}</strong></td>
|
||||
</tr>
|
||||
{foreach $folders as $folder}
|
||||
<tr>
|
||||
<td width="16"><a href="?serendipity[adminModule]=images&serendipity[adminAction]=directoryEdit&serendipity[dir]={$folder.relpath|escape:'html'}"><img src="{serendipity_getFile file='admin/img/edit.png'}" border="0" alt="{$CONST.EDIT}" /></a></td>
|
||||
<td width="16"><a href="?serendipity[adminModule]=images&serendipity[adminAction]=directoryDelete&serendipity[dir]={$folder.relpath|escape:'html'}"><img src="{serendipity_getFile file='admin/img/delete.png'}" alt="{$CONST.DELETE}" border="0"></a></td>
|
||||
<td style="padding-left: {$folder.depth*10}">{$folder.name}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<br />
|
||||
<div><a href="?serendipity[adminModule]=images&serendipity[adminAction]=directoryCreate" class="serendipityPrettyButton input_button">{$CONST.CREATE_NEW_DIRECTORY}</a></div>
|
||||
|
||||
{/if}
|
||||
|
||||
{if $case_addSelect}
|
||||
{** smarty display 'admin/media_upload.tpl' **}
|
||||
{/if}
|
||||
|
||||
{if $case_rotateCW}
|
||||
{if $rotate_img_done}
|
||||
<script language="javascript" type="text/javascript">
|
||||
location.href="{$adminFile_redirect}";
|
||||
</script>
|
||||
<noscript><a href="{$adminFile_redirect}">{$CONST.DONE}</a></noscript>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_rotateCCW}
|
||||
{if $rotate_img_done}
|
||||
<script language="javascript" type="text/javascript">
|
||||
location.href="{$adminFile_redirect}";
|
||||
</script>
|
||||
<noscript><a href="{$adminFile_redirect}">{$CONST.DONE}</a></noscript>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $case_scale}
|
||||
{if $print_SCALING_IMAGE}{$print_SCALING_IMAGE}{/if}
|
||||
{if $print_serendipity_scaleImg}{$print_serendipity_scaleImg}<br />{/if}
|
||||
{$CONST.DONE}<br />
|
||||
{** Forward user to overview (we don't want the user's back button to rename things again) **}
|
||||
<script language="javascript" type="text/javascript">
|
||||
location.href="?serendipity[adminModule]=images&serendipity[adminAction]=default";
|
||||
</script>
|
||||
<noscript><a href="?serendipity[adminModule]=images&serendipity[adminAction]=default">{$CONST.DONE}</a></noscript>
|
||||
{/if}
|
||||
|
||||
{if $case_scaleSelect}
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
function rescale(dim, newval) {ldelim}
|
||||
var originalWidth = {$img_width};
|
||||
var originalHeight = {$img_height};
|
||||
var ratio = originalHeight/originalWidth;
|
||||
var trans = new Array();
|
||||
trans['width'] = new Array('serendipity[height]', ratio);
|
||||
trans['height'] = new Array('serendipity[width]', 1/ratio);
|
||||
|
||||
if (document.serendipityScaleForm.elements['auto'].checked == true) {ldelim}
|
||||
document.serendipityScaleForm.elements[trans[dim][0]].value=Math.round(trans[dim][1]*newval);
|
||||
{rdelim}
|
||||
|
||||
document.getElementsByName('serendipityScaleImg')[0].style.width =
|
||||
document.serendipityScaleForm.elements['serendipity[width]'].value+'px';
|
||||
|
||||
document.getElementsByName('serendipityScaleImg')[0].style.height =
|
||||
document.serendipityScaleForm.elements['serendipity[height]'].value+'px';
|
||||
|
||||
{rdelim}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
{if $print_RESIZE_BLAHBLAH}{$print_RESIZE_BLAHBLAH}{/if}
|
||||
{if $print_ORIGINAL_SIZE}{$print_ORIGINAL_SIZE}{/if}
|
||||
{$CONST.HERE_YOU_CAN_ENTER_BLAHBLAH}
|
||||
|
||||
<form name="serendipityScaleForm" action="?" method="GET">
|
||||
<div>
|
||||
{$CONST.NEWSIZE}
|
||||
{$formtoken}
|
||||
<input type="hidden" name="serendipity[adminModule]" value="images" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="scale" />
|
||||
<input type="hidden" name="serendipity[fid]" value="{$get.fid}" />
|
||||
|
||||
<input class="input_textbox" type="text" size="4" name="serendipity[width]" onchange="rescale('width' , value);" value="{$img_width}" />
|
||||
<input class="input_textbox" type="text" size="4" name="serendipity[height]" onchange="rescale('height', value);" value="{$img_height}" />
|
||||
<br />
|
||||
|
||||
{$CONST.KEEP_PROPORTIONS}:
|
||||
<!-- <input type='button' value='preview'>-->
|
||||
<input class="input_checkbox" type="checkbox" name="auto" checked="checked" /><br />
|
||||
<input type="button" name="scale" value="{$CONST.IMAGE_RESIZE}" onclick="if (confirm('{$CONST.REALLY_SCALE_IMAGE}')) document.serendipityScaleForm.submit();" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<img src="{$file}" name="serendipityScaleImg" style="width: {$img_width}px; height: {$img_height}px;" alt="" />
|
||||
|
||||
{/if}
|
||||
|
||||
{if $case_default}
|
||||
{if $showML_def}{$showML_def}{/if}
|
||||
{/if}
|
@@ -1,58 +0,0 @@
|
||||
{if $importForm}
|
||||
{if $die}
|
||||
FAILURE: Unable to require import module, possible syntax error?
|
||||
{else}
|
||||
{if $validateData}
|
||||
{$CONST.IMPORT_STARTING}<br />
|
||||
{if $result != true}
|
||||
{$CONST.IMPORT_FAILED}: {$result}<br />
|
||||
{else}
|
||||
{$CONST.IMPORT_DONE}<br />
|
||||
{/if}
|
||||
{else}
|
||||
{$CONST.IMPORT_PLEASE_ENTER}
|
||||
<br />
|
||||
<form action="" method="POST" enctype="multipart/form-data">
|
||||
{$formToken}
|
||||
<table cellpadding="3" cellspacing="2">
|
||||
{foreach $fields as $field}
|
||||
<tr>
|
||||
<td>{$field.text}</td>
|
||||
<td>{$field.guessedInput}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{if $notes}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<b>{$CONST.IMPORT_NOTES}</b><br />
|
||||
{$notes}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td colspan="2" align="right"><input type="submit" value="{$CONST.IMPORT_NOW}" class="serendipityPrettyButton input_button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{$CONST.IMPORT_WELCOME}.<br />
|
||||
{$CONST.IMPORT_WHAT_CAN}. <br />
|
||||
<br />
|
||||
{$CONST.IMPORT_SELECT}:<br />
|
||||
<br />
|
||||
<form action="" method="GET">
|
||||
<input type="hidden" name="serendipity[adminModule]" value="import">
|
||||
{$formToken}
|
||||
<strong>{$CONST.IMPORT_WEBLOG_APP}: </strong>
|
||||
<select name="serendipity[importFrom]">
|
||||
{foreach $list as $v => $k}
|
||||
<option value="{$v}">{$k}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" value="{$CONST.GO}" class="serendipityPrettyButton input_button">
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
@@ -1,289 +0,0 @@
|
||||
{* From configuration to install *}
|
||||
{if $is_errors && is_array($errors)}
|
||||
|
||||
{foreach $errors AS $error}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$error}</div>
|
||||
{/foreach}
|
||||
|
||||
{/if}
|
||||
|
||||
{if $getstepint0}
|
||||
|
||||
{$CONST.WELCOME_TO_INSTALLATION}.
|
||||
<br />{$CONST.FIRST_WE_TAKE_A_LOOK}.
|
||||
<br />{$print_ERRORS_ARE_DISPLAYED_IN}.
|
||||
<br />
|
||||
<br>
|
||||
<div align="center">- {$CONST.PRE_INSTALLATION_REPORT|sprintf:$s9yversion} -</div><br />
|
||||
|
||||
<div align="center">
|
||||
<table class="serendipity_admin_list_item serendipity_admin_list_item_even" width="90%" align="center">
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight: bold">{$CONST.INTEGRITY}</td>
|
||||
</tr>
|
||||
{foreach $installerResultDiagnose_CHECKSUMS AS $cksum}
|
||||
<tr>
|
||||
<td colspan="2">{$cksum}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<table class="serendipity_admin_list_item serendipity_admin_list_item_even" width="90%" align="center">
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight: bold">{$CONST.PHP_INSTALLATION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$CONST.OPERATING_SYSTEM}</td>
|
||||
<td>{$php_uname}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$CONST.WEBSERVER_SAPI}</td>
|
||||
<td>{$php_sapi_name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PHP version >= 5.2.6</td>
|
||||
<td width="200">{$installerResultDiagnose_VERSION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Database extensions</td>
|
||||
<td width="200">{$installerResultDiagnose_DBTYPE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Session extension</td>
|
||||
<td width="200">{$installerResultDiagnose_SESSION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PCRE extension</td>
|
||||
<td width="200">{$installerResultDiagnose_PCRE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GDlib extension</td>
|
||||
<td width="200">{$installerResultDiagnose_GD}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>OpenSSL extension</td>
|
||||
<td>{$installerResultDiagnose_OPENSSL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>mbstring extension</td>
|
||||
<td width="200">{$installerResultDiagnose_MBSTR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>iconv extension</td>
|
||||
<td width="200">{$installerResultDiagnose_ICONV}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>zlib extension</td>
|
||||
<td width="200">{$installerResultDiagnose_ZLIB}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Imagemagick binary </td>
|
||||
<td>{$installerResultDiagnose_IM}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="serendipity_admin_list_item serendipity_admin_list_item_even" width="90%" align="center">
|
||||
<tr>
|
||||
<td colspan="3" style="font-weight: bold">{$CONST.PHPINI_CONFIGURATION}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td width="150"><em>{$CONST.RECOMMENDED}</em></td>
|
||||
<td width="150"><em>{$CONST.ACTUAL}</em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>safe_mode</td>
|
||||
<td width="150"><strong>OFF</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SSM}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>register_globals</td>
|
||||
<td width="150"><strong>OFF</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SRG}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>magic_quotes_gpc</td>
|
||||
<td width="150"><strong>OFF</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SMQG}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>magic_quotes_runtime</td>
|
||||
<td width="150"><strong>OFF</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SMQR}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>session.use_trans_sid</td>
|
||||
<td width="150"><strong>OFF</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SSUTS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>allow_url_fopen</td>
|
||||
<td width="150"><strong>ON</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SAUF}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>file_uploads</td>
|
||||
<td width="150"><strong>ON</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SFU}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>post_max_size</td>
|
||||
<td width="150"><strong>10M</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SPMS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>upload_max_filesize</td>
|
||||
<td width="150"><strong>10M</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SUMF}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>memory_limit</td>
|
||||
<td width="150"><strong>{($CONST.PHP_INT_SIZE == 4) ? '8M' : '16M'}</strong></td>
|
||||
<td width="150">{$installerResultDiagnose_SML}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="serendipity_admin_list_item serendipity_admin_list_item_even" width="90%" align="center">
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight: bold">{$CONST.PERMISSIONS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top">{$basedir}</td>
|
||||
<td width="200">
|
||||
{foreach $installerResultDiagnose_WRITABLE AS $fwrite}
|
||||
{$fwrite}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top">{$basedir}{$CONST.PATH_SMARTY_COMPILE}</td>
|
||||
<td width="200">
|
||||
{foreach $installerResultDiagnose_COMPILE AS $compile}
|
||||
{$compile}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top">{$basedir}archives/</td>
|
||||
<td width="200">
|
||||
{foreach $installerResultDiagnose_ARCHIVES AS $archives}
|
||||
{$archives}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align: top">{$basedir}plugins/</td>
|
||||
<td width="200">
|
||||
{foreach $installerResultDiagnose_PLUGINS AS $plugins}
|
||||
{$plugins}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $is_dir_uploads}
|
||||
<tr>
|
||||
<td style="vertical-align: top">{$basedir}uploads/</td>
|
||||
<td width="200">
|
||||
{foreach $installerResultDiagnose_UPLOADS AS $uploads}
|
||||
{$uploads}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $is_imb_executable}
|
||||
<tr>
|
||||
<td style="vertical-align: top">Execute Imagemagick binary </td>
|
||||
<td>
|
||||
{foreach $installerResultDiagnose_IMB AS $im_binary}
|
||||
{$im_binary}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{if $showWritableNote}
|
||||
<div class="serendipityAdminMsgNote msg_notice"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />{$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'}</div>
|
||||
{/if}
|
||||
|
||||
<div align="center">
|
||||
{if $errorCount > 0}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$CONST.PROBLEM_DIAGNOSTIC}</div>
|
||||
<h2><a href="serendipity_admin.php">{$CONST.RECHECK_INSTALLATION}</a></h2>
|
||||
{else}
|
||||
{$CONST.SELECT_INSTALLATION_TYPE}:
|
||||
<h2><a href="?serendipity[step]=2a">{$CONST.SIMPLE_INSTALLATION}</a> - <a href="?serendipity[step]=2b">{$CONST.EXPERT_INSTALLATION}</a></h2>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</div> <!-- // div end -->
|
||||
|
||||
{elseif $s9yGETstep == '2a'}
|
||||
<form action="?" method="post">
|
||||
<input type="hidden" name="serendipity[step]" value="{$s9yGETstep}">
|
||||
<input type="hidden" name="serendipity[getstep]" value="3">
|
||||
{if $ob_serendipity_printConfigTemplate}{$ob_serendipity_printConfigTemplate}{/if}
|
||||
<div align="center"><input name="submit" type="submit" value="{$CONST.COMPLETE_INSTALLATION}" class="serendipityPrettyButton input_button"></div>
|
||||
</form>
|
||||
|
||||
{elseif $s9yGETstep == '2b'}
|
||||
<form action="?" method="post">
|
||||
<input type="hidden" name="serendipity[step]" value="{$s9yGETstep}">
|
||||
<input type="hidden" name="serendipity[getstep]" value="3">
|
||||
{if $ob_serendipity_printConfigTemplate}{$ob_serendipity_printConfigTemplate}{/if}
|
||||
<div align="center"><input name="submit" type="submit" value="{$CONST.COMPLETE_INSTALLATION}" class="serendipityPrettyButton input_button"></div>
|
||||
</form>
|
||||
|
||||
{elseif $getstepint3}
|
||||
|
||||
{$CONST.CHECK_DATABASE_EXISTS}…
|
||||
{if is_array($authors_query)}
|
||||
<strong>{$CONST.THEY_DO}</strong>, {$CONST.WONT_INSTALL_DB_AGAIN}
|
||||
<br />
|
||||
<br />
|
||||
{else}
|
||||
<strong>{$CONST.THEY_DONT}</strong>
|
||||
<br />
|
||||
|
||||
{$CONST.CREATE_DATABASE}
|
||||
{if $install_DB}
|
||||
<strong>{$CONST.DONE}</strong><br />
|
||||
{/if}
|
||||
|
||||
{$CONST.CREATING_PRIMARY_AUTHOR|sprintf:"{$smarty.post.user|escape}"}…
|
||||
{if $add_authors}
|
||||
<strong>{$CONST.DONE}</strong><br />
|
||||
{/if}
|
||||
|
||||
{$CONST.SETTING_DEFAULT_TEMPLATE}…
|
||||
{if $set_template_vars}
|
||||
<strong>{$CONST.DONE}</strong><br />
|
||||
{/if}
|
||||
|
||||
{$CONST.INSTALLING_DEFAULT_PLUGINS}…
|
||||
{if $register_default_plugins}
|
||||
<strong>{$CONST.DONE}</strong><br />
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{$CONST.ATTEMPT_WRITE_FILE|sprintf:'.htaccess'}…
|
||||
{if $errors_sif === true}
|
||||
<strong>{$CONST.DONE}</strong><br />
|
||||
{else}
|
||||
<strong>{$CONST.FAILED}</strong><br />
|
||||
{foreach $errors_sif AS $error_f}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$error_f}</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{if $s9y_installed}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />{$CONST.SERENDIPITY_INSTALLED}</div>
|
||||
<div align="center" style="font-size: large"><a href="{$smarty.post.serendipityHTTPPath}">{$CONST.VISIT_BLOG_HERE}</a></div>
|
||||
<div align="center">{$CONST.THANK_YOU_FOR_CHOOSING}</div>
|
||||
{else}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$CONST.ERROR_DETECTED_IN_INSTALL}</div>
|
||||
{/if}
|
||||
|
||||
{/if}{* getstepint3 end *}
|
@@ -1,204 +0,0 @@
|
||||
{* serendipity_plugins_admin.inc.php::serendipity_plugin_config() - the OUT_STACK loop *}
|
||||
{if $ctype == 'seperator'}
|
||||
<tr>
|
||||
<td colspan="2"><hr noshade="noshade" size="1" /></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'select'}
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: top"><strong>{$cname}</strong>
|
||||
{if $cdesc != ''}
|
||||
<br><span style="color: #5E7A94; font-size: 8pt;"> {$cdesc}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: middle" width="250">
|
||||
<div>
|
||||
<select class="direction_{$lang_direction}" name="serendipity[{$postKey}][{$config_item}]{($is_multi_select) ? '[]' : ''}" {($is_multi_select) ? 'multiple="multiple"' : ''} {($is_multi_select && ($select_size > 0)) ? "size='{$select_size}'" : ''}>
|
||||
{foreach $select AS $select_value => $select_desc}
|
||||
{assign var="id" value="{$config_item|escape}_{$select_value|escape}"}
|
||||
<!-- case select assign id={$id} -->
|
||||
<option value="{$select_value}" {(in_array($select_value, $selected_options) || in_array($select_value, $pre_selected)) ? 'selected="selected"' : ''} title="{$select_desc|escape}">
|
||||
{$select_desc|escape}
|
||||
</option>
|
||||
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'radio'}
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: top"><strong>{$cname}</strong>
|
||||
{if $cdesc != ''}
|
||||
<br /><span style="color: #5E7A94; font-size: 8pt;"> {$cdesc}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: middle;" width="250">
|
||||
{foreach $radio_button AS $r}
|
||||
{if $r['counter'] == 1}
|
||||
<div class="clearfix">
|
||||
{/if}
|
||||
<input class="direction_{$lang_direction} input_radio" type="radio" id="serendipity_plugin_{$r['id']}" name="serendipity[{$postKey}][{$config_item}]" value="{$r['value']}" {(!empty($r['checked'])) ? 'checked="checked"' : ''} title="{$r['index']|escape}" />
|
||||
<label for="serendipity_plugin_{$r['id']}">{$r['index']}{* escapement is already done *}</label>
|
||||
{if ($r['counter'] == $per_row)}
|
||||
{assign var="r" value="counter[0]"}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'string'}
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #000000">
|
||||
<strong>{$cname}</strong>
|
||||
<br><span style="color: #5E7A94; font-size: 8pt;"> {$cdesc}</span>
|
||||
</td>
|
||||
<td style="border-bottom: 1px solid #000000" width="250">
|
||||
<div>
|
||||
<input class="direction_{$lang_direction} input_textbox" type="{$input_type}" name="serendipity[{$postKey}][{$config_item}]" value="{$hvalue}" size="30" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if (($ctype == 'html') || ($ctype == 'text'))}
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$cname}</strong>
|
||||
<span style="color: #5E7A94; font-size: 8pt;"> {$cdesc}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div>
|
||||
<textarea class="direction_{$lang_direction}" style="width: 100%" id="nuggets{$elcount}" name="serendipity[{$postKey}][{$config_item}]" rows="{$text_rows}" cols="80">{$hvalue}</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'content'}
|
||||
<tr>
|
||||
<td colspan="2">{$cbag_default}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'custom'}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="hidden" id="config_{$postKey}_{$config_item}" name="serendipity[{$postKey}][{$config_item}]" value="{$hvalue}" size="30" />
|
||||
{$cbag_custom}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'hidden'}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input class="direction_{$lang_direction}" type="hidden" name="serendipity[{$postKey}][{$config_item}]" value="{$cbag_value}" />
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'media'}
|
||||
{if !$mediajs_output}
|
||||
<script type="text/javascript" language="JavaScript" src="serendipity_editor.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="{serendipity_getFile file='admin/image_selector.js'}"></script>
|
||||
{/if}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<strong>{$cname}</strong>
|
||||
<br /><span style="color: #5E7A94; font-size: 8pt;">{$cdesc}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #000000">
|
||||
<div id="{$config_item}_preview" style="background-image: url({$value}); width: {$preview_width}; height: {$preview_height}; background-repeat: no-repeat;"> </div>
|
||||
</td>
|
||||
<td style="border-bottom: 1px solid #000000">
|
||||
<input class="input_textbox" type="text" id="serendipity[{$postKey}][{$config_item}]" name="serendipity[{$postKey}][{$config_item}]" value="{$value}" onchange="change_preview('{$config_item}')"/>
|
||||
<br /><a href="#" onclick="choose_media('serendipity[{$postKey}][{$config_item}]')">{$CONST.MEDIA_LIBRARY}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $ctype == 'sequence'}
|
||||
{if !$sequencejs_output}
|
||||
<script src="{serendipity_getFile file='dragdrop.js'}" type="text/javascript"></script>
|
||||
{/if}
|
||||
<tr>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: top">
|
||||
<strong>{$cname}</strong>
|
||||
<br /><span style="color: #5E7A94; font-size: 8pt;">{$cdesc}</span>
|
||||
</td>
|
||||
<td style="border-bottom: 1px solid #000000; vertical-align: middle">
|
||||
<input type="hidden" name="serendipity[{$postKey}][{$config_item}]" id="{$config_item}_value" value="{$value}" />
|
||||
<noscript>
|
||||
<!-- Replace standard submit button when using up/down submits -->
|
||||
<input type="hidden" name="SAVECONF" value="Save" />
|
||||
</noscript>
|
||||
<ol id="{$config_item}" class="sequence_container pluginmanager_container">
|
||||
{foreach $order_id as $orid}
|
||||
<li id="{$orid['id']}" class="sequence_item pluginmanager_item_even">
|
||||
<div id="g{$orid['id']}" class="pluginmanager_grablet sequence_grablet"><a href="#"></a></div>
|
||||
{if $checkable}
|
||||
<input type="checkbox" onclick="sort_{$config_item}_Sequence();" name="serendipity[{$postKey}][activate][{$config_item}][{$orid['id']}]" {(in_array($orid['id'], $store_order)) ? ' checked="checked" ' : ''} value="true" id="activate_{$orid['id']}" />
|
||||
{/if}
|
||||
<span>{$items[{$orid['id']}]['display']}</span>
|
||||
{if isset($items[{$orid['id']}]['img'])}
|
||||
<img src="{$items[{$orid['id']}]['img']}" />
|
||||
{/if}
|
||||
<noscript><div>
|
||||
{if ($orid['sort_idx'] == 0)}
|
||||
|
||||
{else}
|
||||
<button id="{$postKey}_{$config_item}_{$orid['sort_idx']}_up" type="submit" name="serendipity[{$postKey}][override][{$config_item}]" value="{$orid['oneup']}">
|
||||
<img src="{serendipity_getFile file='admin/img/uparrow.png'}" alt="Move Up" />
|
||||
</button>
|
||||
{/if}
|
||||
{if ($orid['sort_idx'] == $last)}
|
||||
|
||||
{else}
|
||||
<button id="{$postKey}_{$config_item}_{$orid['sort_idx']}_down" type="submit" name="serendipity[{$postKey}][override][{$config_item}]" value="{$orid['onedown']}">
|
||||
<img src="{serendipity_getFile file='admin/img/downarrow.png'}" alt="Move Down" />
|
||||
</button>
|
||||
{/if}
|
||||
</div></noscript>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{if isset($no_sequence)}
|
||||
{$no_sequence}
|
||||
{/if}
|
||||
{*** Smarty 3 has a new auto literal option which is enabled by default.
|
||||
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;'
|
||||
AS tests have proofed, ending javascript delimiters " } ;" and " };" and even "};" work fine as well. So back to origin. ***}
|
||||
<script type="text/javascript">
|
||||
function sort_{$config_item}_Sequence() {
|
||||
//var seq = DragDrop.serData('{$config_item}_group', null);
|
||||
var seq = DragDrop.serData(null, '{$config_item}');
|
||||
var start = seq.indexOf("(");
|
||||
var end = seq.indexOf(")");
|
||||
seq = seq.slice((start + 1), end);
|
||||
checkable_seq = seq.split(",");
|
||||
out_seq = '';
|
||||
for (i in checkable_seq) {
|
||||
if (document.getElementById('activate_' + checkable_seq[i]) && !document.getElementById('activate_' + checkable_seq[i]).checked) {
|
||||
continue;
|
||||
} else {
|
||||
if (out_seq != '') {
|
||||
out_seq += ',';
|
||||
}
|
||||
out_seq += checkable_seq[i];
|
||||
}
|
||||
}
|
||||
var order = document.getElementById("{$config_item}_value");
|
||||
order.value = out_seq;
|
||||
}
|
||||
|
||||
function init_{$config_item}_Sequence() {
|
||||
var lst = document.getElementById("{$config_item}");
|
||||
DragDrop.makeListContainer(lst, '{$config_item}_group');
|
||||
lst.onDragOut = function() {
|
||||
sort_{$config_item}_Sequence();
|
||||
};
|
||||
}
|
||||
addLoadEvent(init_{$config_item}_Sequence);
|
||||
</script>
|
||||
</td>
|
||||
{/if}
|
@@ -1,13 +0,0 @@
|
||||
{if $output.show_links}
|
||||
<div class="{$output.links_css}">
|
||||
<p class="further_links_head">{$output.links_title}</p>
|
||||
<ul>
|
||||
{foreach $output.links AS $link}
|
||||
<li>{$link}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<p class="further_links_foot" style="display: none"></p>
|
||||
</div>
|
||||
{/if}
|
||||
<h3 class="serendipityWelcomeBack">{$output.welcome}</h3>
|
||||
{$output.more}
|
@@ -1,19 +0,0 @@
|
||||
{if $adminAction == "save"}
|
||||
{if $not_authorized}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL}</div>
|
||||
{elseif $empty_username}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.USERCONF_CHECK_USERNAME_ERROR}</div>
|
||||
{elseif $password_check_fail}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.USERCONF_CHECK_PASSWORD_ERROR}</div>
|
||||
{else}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />{$CONST.MODIFIED_USER|sprintf:"{$realname|escape:"html"}"} ?></div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
<form action="?serendipity[adminModule]=personal&serendipity[adminAction]=save" method="post">
|
||||
{$formToken}
|
||||
{$config}
|
||||
<div align="right">
|
||||
<input class="serendipityPrettyButton input_button" type="submit" name="SAVE" value="{$CONST.SAVE}" /></div>
|
||||
</form>
|
@@ -1,206 +0,0 @@
|
||||
{if $plugin_to_conf}
|
||||
{if is_array($save_errors)}
|
||||
<div class="serendipityAdminMsgError msg_error">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />
|
||||
{$CONST.ERROR}:<br />
|
||||
<ul>
|
||||
{foreach $save_errors as $save_error}
|
||||
<li> $save_error </li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{elseif $saveconf}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.DONE}: {$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"}
|
||||
</div>
|
||||
{/if}
|
||||
<form method="post" name="serendipityPluginConfigure">
|
||||
{$formToken}
|
||||
<table cellpadding="5" style="border: 1px dashed" width="90%" align="center">
|
||||
<tr>
|
||||
<th width="100">{$CONST.NAME}</th>
|
||||
<td>{$name} (<em>{$class}</em>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="vertical-align: top">{$CONST.DESCRIPTION}</th>
|
||||
<td>
|
||||
{$desc}
|
||||
{if ! empty($documentation) }
|
||||
<br /><a href="{$documentation|escape:"html"}">{$CONST.PLUGIN_DOCUMENTATION}</a>
|
||||
{/if}
|
||||
{if $changelog}
|
||||
<br /><a href="plugins/{$plugin->act_pluginPath}/ChangeLog">{$CONST.PLUGIN_DOCUMENTATION_CHANGELOG}</a>
|
||||
{/if}
|
||||
{if $documentation_local}
|
||||
<br /><a href="plugins/{$plugin->act_pluginPath}{$documentation}">{$CONST.PLUGIN_DOCUMENTATION_LOCAL}</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if !empty($license)}
|
||||
<tr>
|
||||
<th>{$CONST.MEDIA_PROPERTY_COPYRIGHT}</th>
|
||||
<td>{$license}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
<br />
|
||||
{$config}
|
||||
</form>
|
||||
|
||||
{elseif $adminAction == "addnew"}
|
||||
{if $type == "event"}
|
||||
<h2>{$CONST.EVENT_PLUGINS}</h2>
|
||||
{else}
|
||||
<h2>{$CONST.SIDEBAR_PLUGINS}</h2>
|
||||
{/if}
|
||||
<br />
|
||||
{foreach $errorstack as $e_idx => $e_name}
|
||||
{$CONST.ERROR}: {$e_name}<br />
|
||||
{/foreach}
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
{foreach $pluggroups AS $pluggroup => $groupstack}
|
||||
{if empty($pluggroup)}
|
||||
<tr>
|
||||
<td colspan="2" class="serendipity_pluginlist_header">
|
||||
<form action="serendipity_admin.php" method="get">
|
||||
{$formToken}
|
||||
<input type="hidden" name="serendipity[adminModule]" value="plugins" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="addnew" />
|
||||
<input type="hidden" name="serendipity[type]" value="{$type|escape:"html"}" />
|
||||
{$CONST.FILTERS}
|
||||
<select name="serendipity[only_group]">
|
||||
{foreach $groupnames as $available_group => $available_name}
|
||||
<option value="{$available_group}" {if $only_group == $available_group} selected="selected"{/if}>{$available_name}</option>
|
||||
{/foreach}
|
||||
<option value="ALL" {if $only_group == ALL} selected="selected"{/if}>{$CONST.ALL_CATEGORIES}</option>
|
||||
<option value="UPGRADE" {if $only_group == UPGRADE} selected="selected"{/if}>{$CONST.WORD_NEW}</option>
|
||||
</select>
|
||||
<input class="serendipityPrettyButton input_button" type="submit" value="{$CONST.GO}" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{if !empty($only_group)}{continue}{/if}
|
||||
{elseif !empty($only_group) && $pluggroup != $only_group}{continue}{else}
|
||||
<tr>
|
||||
<td colspan="2" class="serendipity_pluginlist_section"><strong>{foreach $groupnames as $available_group => $available_name}{if $pluggroup == $available_group}{$available_name}{/if}{/foreach}</strong></td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<td><strong>Plugin</strong></td>
|
||||
<td width="100" align="center"><strong>Action</strong></td>
|
||||
</tr>
|
||||
{foreach $groupstack as $plug}
|
||||
<tr id="serendipity_plugin_{$plug.class_name}">
|
||||
<td colspan="2" onmouseout="document.getElementById('serendipity_plugin_{$plug.class_name}').className='';" onmouseover="document.getElementById('serendipity_plugin_{$plug.class_name}').className='serendipity_PluginAdminHighlight';">
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><strong>{$plug.name}</strong></td>
|
||||
<td width="100" align="center" valign="middle" rowspan="3">
|
||||
{if isset($requirements_failures.{$plug.class_name})}
|
||||
<span style="color: #cccccc">
|
||||
{$CONST.UNMET_REQUIREMENTS|sprintf:"{if $requirements_failures.{$plug.class_name}.s9y}s9y $plug.requirements..serendipity,{/if} {if $requirements_failures.{$plug.class_name}.php}PHP $plug.requirements.php,{/if} {if $requirements_failures.{$plug.class_name}.smarty}Smarty $plug.requirements.smarty{/if}"}
|
||||
</span>
|
||||
{elseif $plug['upgradable'] == true}
|
||||
<a href="?serendipity[adminModule]=plugins&serendipity[pluginPath]={$plug.pluginPath}&serendipity[install_plugin]={$plug.plugin_class}{if isset($plug['customURI'])}{$plug.customURI}{/if}">
|
||||
<img src="{serendipity_getFile file="admin/img/upgrade_now.png"}" title="{$CONST.UPGRADE}" alt="{$CONST.UPGRADE}" border="0" />
|
||||
</a>
|
||||
{elseif $plug.installable == true}
|
||||
<a href="?serendipity[adminModule]=plugins&serendipity[pluginPath]={$plug.pluginPath}&serendipity[install_plugin]={$plug.plugin_class}{if isset($plug.customURI)}{$plug.customURI}{/if}">
|
||||
<img src="{if !empty($plug.pluginlocation) && $plug.pluginlocation != 'local'} {serendipity_getFile file="admin/img/install_now_{$plug.pluginlocation|lower}.png"}{else}{serendipity_getFile file="admin/img/install_now.png"}{/if}" title="{$CONST.INSTALL}" alt="{$CONST.INSTALL}" border="0" />
|
||||
</a>
|
||||
{else}
|
||||
<span style="color: #cccccc">{$CONST.ALREADY_INSTALLED}</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 10px">{$plug.description}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 10px; font-size: x-small">({$plug.class_name})
|
||||
{if ! empty($plug.author)}
|
||||
{$CONST.AUTHOR}: {$plug.author}
|
||||
{/if}
|
||||
|
||||
{if ! empty($plug.version)}
|
||||
{$CONST.VERSION}: {$plug.version}
|
||||
{/if}
|
||||
|
||||
{if ! empty($plug.website)}
|
||||
<a href="{$plug.website|escape:"html"}">{$CONST.PLUGIN_DOCUMENTATION}</a>
|
||||
{/if}
|
||||
|
||||
{if ! empty($plug.local_documentation)}
|
||||
<a href="{$plug.local_documentation|escape:"html"}">{$CONST.PLUGIN_DOCUMENTATION_LOCAL}</a>
|
||||
{/if}
|
||||
|
||||
{if ! empty($plug.changelog)}
|
||||
<a href="{$plug.changelog|escape:"html"}">{$CONST.PLUGIN_DOCUMENTATION_CHANGELOG}</a>
|
||||
{/if}
|
||||
|
||||
{if ! empty({$plug.upgrade_version}) && $plug.upgrade_version != $plug.version}
|
||||
{$CONST.UPGRADE_TO_VERSION|sprintf:"{$plug.upgrade_version}"}
|
||||
{/if}
|
||||
|
||||
{if ! empty($plug.pluginlocation) && $plug.pluginlocation != 'local'}
|
||||
({$plug.pluginlocation|escape:"html"})
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
<tr>
|
||||
<td colspan="2" align="right">{$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:$count_pluginstack}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
{if $save}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.DONE}:{$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"}</div>
|
||||
{/if}
|
||||
<div>{$CONST.BELOW_IS_A_LIST_OF_INSTALLED_PLUGINS}</div>
|
||||
{if $eyecandy}
|
||||
<script src="{serendipity_getFile file="dragdrop.js"}" type="text/javascript"></script>
|
||||
<div class="warning js_warning"><em>{$CONST.PREFERENCE_USE_JS_WARNING}</em></div>
|
||||
{/if}
|
||||
<br />
|
||||
|
||||
|
||||
<h3>{$CONST.SIDEBAR_PLUGINS}</h3>
|
||||
<a href="?serendipity[adminModule]=plugins&serendipity[adminAction]=addnew" class="serendipityIconLink">
|
||||
<img src="{serendipity_getFile file="admin/img/install.png"}" style="border: 0px none; vertical-align: middle; display: inline;" alt="" />
|
||||
{$CONST.CLICK_HERE_TO_INSTALL_PLUGIN|sprintf:"{$CONST.SIDEBAR_PLUGIN}"}
|
||||
</a>
|
||||
{$backend_plugins_sidebar_header}
|
||||
{$sidebar_plugins}
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<h3>{$CONST.EVENT_PLUGINS}</h3>
|
||||
<a href="?serendipity[adminModule]=plugins&serendipity[adminAction]=addnew&serendipity[type]=event" class="serendipityIconLink">
|
||||
<img src="{serendipity_getFile file="admin/img/install.png"}" style="border: 0px none ; vertical-align: middle; display: inline;" alt="" />
|
||||
{{$CONST.CLICK_HERE_TO_INSTALL_PLUGIN}|sprintf:"{$CONST.EVENT_PLUGIN}"}
|
||||
</a>
|
||||
{$backend_plugins_event_header}
|
||||
{$event_plugins}
|
||||
|
||||
{if $memsnaps}
|
||||
<h3>Memory Usage</h3>
|
||||
<div>
|
||||
<pre>{$memSnaps|print_r}</pre>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -1,88 +0,0 @@
|
||||
{* serendipity_plugins_admin.inc.php::serendipity_plugin_config() *}
|
||||
|
||||
<script type="text/javascript">
|
||||
var const_view = '{$CONST.VIEW_FULL}';
|
||||
var const_hide = '{$CONST.HIDE}';
|
||||
var img_plus = '{serendipity_getFile file="img/plus.png"}';
|
||||
var img_minus = '{serendipity_getFile file="img/minus.png"}';
|
||||
</script>
|
||||
|
||||
{if $allow_admin_scripts}
|
||||
<script type="text/javascript" language="JavaScript" src="{serendipity_getFile file='admin/admin_scripts.js'}"></script>
|
||||
{/if}
|
||||
|
||||
{if $showSubmit_head}
|
||||
<div style="margin: 0px auto 0px 0px; text-align: right">
|
||||
<input type="submit" name="SAVECONF" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $showTable}
|
||||
<table id="serendipity_plugin_config" border="0" cellspacing="0" cellpadding="3" width="100%">
|
||||
{/if}
|
||||
{if is_array($config_groups)}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div align="right">
|
||||
<a style="border:0; text-decoration: none" href="#" onClick="showConfigAll({sizeof($config_groups)}); return false" title="{$CONST.TOGGLE_ALL}"><img src="{serendipity_getFile file="img/plus.png"}" id="optionall" alt="+/-" border="0" /> {$CONST.TOGGLE_ALL}</a></a><br />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{foreach $config_groups AS $config_header => $config_groupkeys}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h2>
|
||||
<a style="border:0; text-decoration: none;" href="#" onClick="showConfig('el{$config_groupkeys@iteration}'); return false" title="{$CONST.TOGGLE_OPTION}"><img src="{serendipity_getFile file="img/plus.png"}" id="optionel{$config_groupkeys@iteration}" alt="+/-" border="0" />
|
||||
{$config_header}
|
||||
</a>
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table class="plugin_optiongroup" id="el{$config_groupkeys@iteration}" border="0" cellspacing="0" cellpadding="3" width="100%">
|
||||
{foreach $config_groupkeys AS $config_groupkey}
|
||||
{$OUT_STACK[$config_groupkey]}
|
||||
{/foreach}
|
||||
</table>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
document.getElementById('el{$config_groupkeys@iteration}').style.display = "none";
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr><td colspan="2" style="height: 100px" id="configuration_footer"> </td></tr>
|
||||
{/if} {* foreach config_groups end *}
|
||||
|
||||
{foreach $OUT_STACK_REST as $out_stack_config_item}
|
||||
{$out_stack_config_item}
|
||||
{/foreach}
|
||||
|
||||
{if $showTable}
|
||||
</table>
|
||||
<br />
|
||||
{/if}
|
||||
{* $serendipity_printConfigJS *}{* outsourced to templates/default/admin/admin_scripts.js - see passed vars on top *}
|
||||
{if $showSubmit_foot}
|
||||
<div style="padding-left: 20px">
|
||||
<input type="submit" name="SAVECONF" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
{/if}
|
||||
{if $showExample}
|
||||
<div>
|
||||
{$plugin_example}
|
||||
</div>
|
||||
{/if}
|
||||
{if $spawnNuggets}
|
||||
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
|
||||
{if ($ev['skip_nuggets'] === false)}
|
||||
<script type="text/javascript">
|
||||
function Spawnnugget() {
|
||||
/* blar */
|
||||
{foreach $htmlnugget AS $htmlnuggetid}
|
||||
Spawnnuggets('{$htmlnuggetid}');
|
||||
{/foreach}
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
@@ -1,22 +0,0 @@
|
||||
{* functions_plugins_admin.inc.php::function ownership() *}
|
||||
|
||||
{if $show_ownership}
|
||||
{if $is_plugin_owner}
|
||||
<select name="serendipity[ownership][{$name}]">
|
||||
<option value="0">{$CONST.ALL_AUTHORS}</option>
|
||||
{/if}
|
||||
|
||||
{foreach $users AS $user}
|
||||
{if (!$is_plugin_owner && ($user['authorid'] == $authorid))}
|
||||
{assign var="realname" value="{$user['realname']|escape}"}
|
||||
{elseif $is_plugin_owner}
|
||||
<option value="{$user['authorid']}"{($user['authorid'] == $authorid) ? ' selected="selected"' : ''}>{$user['realname']|escape}</option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{if $is_plugin_owner}
|
||||
</select>
|
||||
{else}
|
||||
{(empty($realname)) ? $CONST.ALL_AUTHORS : $realname}
|
||||
{/if}
|
||||
{/if}
|
@@ -1,93 +0,0 @@
|
||||
{* functions_plugins_admin.inc.php::function_show_plugins() including output of functions_plugins_admin.inc.php::function ownership() *}
|
||||
|
||||
{if !$eyecandy}
|
||||
<form action="?serendipity[adminModule]=plugins" method="post">
|
||||
{elseif !$event_only}
|
||||
{*
|
||||
Smarty 3 has a new auto literal option which is enabled by default.
|
||||
When the { is followed by a space it's not interpreted as smarty delimiter but literal.
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
function templatePluginMoverInit() {
|
||||
|
||||
{foreach $plugin_placements AS $sidebar}
|
||||
|
||||
{($is_first) ? 'var ' : ''}list = document.getElementById("{$sidebar}_col");
|
||||
DragDrop.makeListContainer(list, 'g1');
|
||||
list.onDragOver = function() { this.style["border"] = "1px solid #4d759b"; };
|
||||
list.onDragOut = function() { this.style["border"] = "none"; };
|
||||
{assign var="is_first" value=false}
|
||||
|
||||
{/foreach}
|
||||
|
||||
}
|
||||
addLoadEvent(templatePluginMoverInit);
|
||||
</script>
|
||||
|
||||
<form action="?serendipity[adminModule]=plugins" method="post" onsubmit="pluginMovergetSort(); return true">
|
||||
<input type="hidden" name="serendipity[pluginorder]" id="order" value="" />
|
||||
|
||||
{else}
|
||||
<script type="text/javascript">addLoadEvent(pluginMoverInitEvent);</script>
|
||||
<form action="?serendipity[adminModule]=plugins" method="post" onsubmit="pluginMovergetSortEvent(); return true">
|
||||
<input type="hidden" name="serendipity[pluginorder]" id="eventorder" value="" />
|
||||
{/if}
|
||||
|
||||
{$serendipity_setFormToken}
|
||||
|
||||
<table class="pluginmanager" border="0" cellpadding="5" cellspacing="3" width="100%">
|
||||
<tr>
|
||||
|
||||
{foreach $placement as $plugin_placement}
|
||||
<td class="pluginmanager_side pluginmanager_{($event_only) ? 'event' : 'sidebar'}">
|
||||
<div class="heading">{$plugin_placement['ptitle']}</div>
|
||||
<ol id="{$plugin_placement['pid']}_col" class="pluginmanager_container">
|
||||
|
||||
{foreach $plugin_placement['plugin_data'] as $plugin_data}
|
||||
|
||||
<li class="pluginmanager_item_{cycle values="even,uneven"}" id="{$plugin_data['css_key']}">
|
||||
<div id="g{$plugin_data['css_key']}" class="pluginmanager_grablet">
|
||||
<a href="#" id="grab{$plugin_data['css_key']}"></a>
|
||||
</div>
|
||||
{if $plugin_data['is_plugin_editable']}
|
||||
<input class="input_checkbox" type="checkbox" name="serendipity[plugin_to_remove][]" value="{$plugin_data['name']}" />
|
||||
{/if}
|
||||
|
||||
{if $plugin_data['can_configure']}
|
||||
<a class="pluginmanager_configure" href="?serendipity[adminModule]=plugins&serendipity[plugin_to_conf]={$plugin_data['key']}"><img src="{serendipity_getFile file='admin/img/configure.png'}" style="border: 0; vertical-align: bottom;" alt="[C]" /></a>
|
||||
{/if}
|
||||
|
||||
<span class="pluginmanager_title">
|
||||
{if $plugin_data['can_configure']}
|
||||
<a title="{$plugin_data['name']}" href="?serendipity[adminModule]=plugins&serendipity[plugin_to_conf]={$plugin_data['key']}">{$plugin_data['title']}</a>
|
||||
{else}
|
||||
{$plugin_data['title']}
|
||||
{/if}
|
||||
</span><br />
|
||||
<div class="pluginmanager_description" style="font-size: 8pt">{$plugin_data['desc']}</div>
|
||||
<div class="pluginmanager_ownership">
|
||||
{$plugin_data['ownership']}
|
||||
</div>
|
||||
{($eyecandy) ? '<noscript>' : ''}
|
||||
<div class="pluginmanager_place">{$plugin_data['place']}</div>
|
||||
<div class="pluginmanager_move">{$plugin_data['moveup']} {$plugin_data['movedown']}</div>
|
||||
{($eyecandy) ? '</noscript>' : ''}
|
||||
</li>
|
||||
|
||||
{/foreach}
|
||||
|
||||
</ol>
|
||||
</td>
|
||||
{/foreach}
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" align="right">{$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:$total}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<div>
|
||||
<input type="submit" name="REMOVE" title="{$CONST.DELETE}" value="{$CONST.REMOVE_TICKED_PLUGINS}" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="SAVE" title="{$CONST.SAVE_CHANGES_TO_LAYOUT}" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
</form>
|
@@ -1,83 +0,0 @@
|
||||
{if $adminAction == "install"}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />
|
||||
{$install_template|string_format:"{$CONST.TEMPLATE_SET}"}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $deprecated}
|
||||
<div class="serendipityAdminMsgNote msg_notice">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />
|
||||
{$CONST.WARNING_TEMPLATE_DEPRECATED}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h3> {$CONST.STYLE_OPTIONS} ({$cur_template})</h3>
|
||||
|
||||
{if $has_config}
|
||||
{if $adminAction == "configure"}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />
|
||||
{$CONST.DONE}: {$save_time}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action="serendipity_admin.php">
|
||||
<input type="hidden" name="serendipity[adminModule]" value="templates" />
|
||||
<input type="hidden" name="serendipity[adminAction]" value="configure" />
|
||||
{$form_token}
|
||||
{$configuration}
|
||||
</form><br />
|
||||
{else}
|
||||
<p>{$CONST.STYLE_OPTIONS_NONE}</p>
|
||||
{/if}
|
||||
<br />
|
||||
<h3>{$CONST.SELECT_TEMPLATE}</h3>
|
||||
|
||||
{foreach $templates as $template=>$info}
|
||||
{if $info.info.engine == "yes"}{continue}{/if}
|
||||
{if !empty($template)}
|
||||
{if $template@iteration is even}
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_even">
|
||||
{else}
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_uneven">
|
||||
{/if}
|
||||
<table width="100%" id="serendipity_theme_{$template}">
|
||||
<tr>
|
||||
<td colspan="2"><span class="serendipityTemplateSelectName"><strong>{$info.info.name}</strong></span></td>
|
||||
<td valign="middle" align="center" width="70" rowspan="2">
|
||||
{if $template != $cur_template}
|
||||
{if !$info.unmetRequirements}
|
||||
<a href="?serendipity[adminModule]=templates&serendipity[adminAction]=install&serendipity[theme]={$template}{$info.info.customURI}">
|
||||
<img src="{serendipity_getFile file="admin/img/install_now{$info.info.customIcon}.png"}" alt="{$CONST.SET_AS_TEMPLATE}" title="{$CONST.SET_AS_TEMPLATE}" border="0" />
|
||||
</a>
|
||||
{else}
|
||||
<span class="serendipityTemplateSelectUnmetRequirements" style="color: #cccccc">{$info.unmetRequirements}></span>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="100" style="padding-left: 10px">
|
||||
{if $info.fullsize_preview}
|
||||
<a href="{$info.fullsize_preview}" target="_blank">
|
||||
{if $info.preview}
|
||||
<img src="{$info.preview}" width="100" style="border: 1px #000000 solid" />
|
||||
{else}
|
||||
|
||||
{/if}
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td valign="top">
|
||||
<span class="serendipityTemplateSelectDetails">{$CONST.AUTHOR}: {$info.info.author}</span><br />
|
||||
<span class="serendipityTemplateSelectDetails">{$CONST.LAST_UPDATED}: {$info.info.date}</span><br />
|
||||
<span class="serendipityTemplateSelectDetails">{$CONST.CUSTOM_ADMIN_INTERFACE}: {$info.info.custom_admin_interface}</span><br />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
@@ -1,140 +0,0 @@
|
||||
{if ($get.action == 'ignore')}
|
||||
{* Todo: Don't know what to put here? *}
|
||||
|
||||
{elseif ($get.action == 'upgrade')}
|
||||
|
||||
{foreach $call_tasks AS $ctask}
|
||||
{if $is_callable_task}
|
||||
{$ctasks}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
{if $errors}
|
||||
{$CONST.DIAGNOSTIC_ERROR}<br /><br />
|
||||
<div class="serendipityAdminMsgError msg_error">- <img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{foreach $errors AS $implode_err}{$implode_err}{if (count($errors) > 1) && !$implode_err@last}<br /> {/if}{/foreach}</div><br /><br />
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
||||
{if (($showAbort && $get.action == 'ignore') || $get.action == 'upgrade')}
|
||||
|
||||
{if $get.action == 'ignore'}
|
||||
{$CONST.SERENDIPITY_UPGRADER_YOU_HAVE_IGNORED}
|
||||
{elseif $get.action == 'upgrade'}
|
||||
<div class="serendipityAdminMsgSuccess msg_success"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_success.png'}" alt="" />{$CONST.SERENDIPITY_UPGRADER_NOW_UPGRADED|sprintf:$s9y_version}</div>
|
||||
{/if}
|
||||
<br />
|
||||
{if $return_here}
|
||||
<div align="center">{$print_UPGRADER_RETURN_HERE}</div>
|
||||
{* could also be used as: <div align="center">{$CONST.SERENDIPITY_UPGRADER_RETURN_HERE|sprintf:"<a href='$serendipityHTTPPath'>":'</a>'}</div> *}
|
||||
{/if}
|
||||
{else}
|
||||
<h2>{$CONST.SERENDIPITY_UPGRADER_WELCOME}</h2>
|
||||
{$CONST.SERENDIPITY_UPGRADER_PURPOSE|sprintf:$s9y_version_installed}<br />
|
||||
{$CONST.SERENDIPITY_UPGRADER_WHY|sprintf:$s9y_version}
|
||||
<br />{$CONST.FIRST_WE_TAKE_A_LOOK}.
|
||||
|
||||
<br /><br />
|
||||
<div align="center">{$result_diagnose}.<br />
|
||||
|
||||
<div align="center">
|
||||
<table class="serendipity_admin_list_item serendipity_admin_list_item_even" width="90%" align="center">
|
||||
{if $checksums}
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight: bold">{$CONST.INTEGRITY}</td>
|
||||
</tr>
|
||||
|
||||
{** upgraderResultDiagnoseX looks like <span class="serendipityAdminMsgSuccessInstall" style="color: green/orange/red; font-weight: bold">'. $s .'</span> **}
|
||||
{** if known, class name color will be added for the inline style into php file **}
|
||||
|
||||
<tr>
|
||||
<td width="200">
|
||||
{foreach $upgraderResultDiagnose1 AS $urd1}
|
||||
{$urd1}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="font-weight: bold">{$CONST.PERMISSIONS}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$basedir}</td>
|
||||
<td width="200">
|
||||
{foreach $upgraderResultDiagnose2 AS $urd2}
|
||||
{$urd2}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$basedir}{$CONST.PATH_SMARTY_COMPILE}</td>
|
||||
<td width="200">
|
||||
{foreach $upgraderResultDiagnose3 AS $urd3}
|
||||
{$urd3}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{if $isdir_uploadpath}
|
||||
<tr>
|
||||
<td>{$basedir}{$uploadHTTPPath}</td>
|
||||
<td width="200">
|
||||
{foreach $upgraderResultDiagnose4 AS $urd4}
|
||||
{$urd4}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{if $showWritableNote}
|
||||
<div class="serendipityAdminMsgNote msg_notice"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_note.png'}" alt="" />{$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'}</div>
|
||||
{/if}
|
||||
|
||||
{if ($errorCount > 0)}
|
||||
<div align="center">
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$CONST.PROBLEM_DIAGNOSTIC}</div>
|
||||
<h2><a href="serendipity_admin.php">{$CONST.RECHECK_INSTALLATION}</a></h2>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if ($errorCount < 1)}
|
||||
{if (sizeof($sqlfiles) > 0)}
|
||||
<br />
|
||||
<h3>{$database_update_types}:</h3>
|
||||
{$CONST.SERENDIPITY_UPGRADER_FOUND_SQL_FILES}:<br />
|
||||
{if is_array($sqlfiles) && !empty($sqlfiles)}
|
||||
{foreach $sqlfiles as $sqlfile}
|
||||
<div style="padding-left: 5px"><strong>{$sqlfile}</strong></div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/if}
|
||||
<br />
|
||||
|
||||
<h3>{$CONST.SERENDIPITY_UPGRADER_VERSION_SPECIFIC}:</h3>
|
||||
|
||||
{if is_array($tasks) && !empty($tasks)}
|
||||
{foreach $tasks as $task}
|
||||
<div><strong>{$task.version} - {$task.title}</strong></div>
|
||||
<div style="padding-left: 5px">{$task.desc|nl2br}</div><br />
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
||||
{if ($taskCount == 0)}
|
||||
{$CONST.SERENDIPITY_UPGRADER_NO_VERSION_SPECIFIC}
|
||||
{/if}
|
||||
|
||||
<br /><br />
|
||||
<hr noshade="noshade">
|
||||
{if (($taskCount > 0) || (sizeof($sqlfiles) > 0))}
|
||||
<strong>{$CONST.SERENDIPITY_UPGRADER_PROCEED_QUESTION}</strong>
|
||||
<br /><br /><a href="{$upgradeLoc}" class="serendipityPrettyButton input_button">{$CONST.SERENDIPITY_UPGRADER_PROCEED_DOIT}</a> {if $showAbort}<a href="{$abortLoc}" class="serendipityPrettyButton">{$CONST.SERENDIPITY_UPGRADER_PROCEED_ABORT}</a>{/if}
|
||||
{else}
|
||||
<strong>{$CONST.SERENDIPITY_UPGRADER_NO_UPGRADES}</strong>
|
||||
<br /><br /><a href="{$upgradeLoc}" class="serendipityPrettyButton input_button">{$CONST.SERENDIPITY_UPGRADER_CONSIDER_DONE}</a>
|
||||
{/if}
|
||||
|
||||
{/if} {* errorCount end *}
|
||||
{/if}{* showAbort else end *}
|
@@ -1,153 +0,0 @@
|
||||
{if $delete_yes}
|
||||
{if $no_delete_permission}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED}</div>
|
||||
{else}
|
||||
{if $no_delete_permission_userlevel}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL}</div>
|
||||
{else}
|
||||
{if $delete_permission}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.DELETED_USER|sprintf:"{$user|escape:"html"}":"{$realname|escape:"html"}"}
|
||||
</div>
|
||||
{else}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL}</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $save_new}
|
||||
{if $no_save_permission}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED}</div>
|
||||
{else}
|
||||
{if $no_group_selected}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.WARNING_NO_GROUPS_SELECTED}</div>
|
||||
{/if}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.CREATED_USER|sprintf:"# {$user|escape:"html"}":"{$realname|escape:"html"}"}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $save_edit}
|
||||
{if $no_edit_permission}
|
||||
<div class="serendipityAdminMsgError msg_error">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />
|
||||
{$CONST.CREATE_NOT_AUTHORIZED}
|
||||
</div>
|
||||
{else}
|
||||
{if $no_edit_permission_userlevel}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL}</div>
|
||||
{else}
|
||||
{if $no_group_selected}
|
||||
<div class="serendipityAdminMsgError msg_error"><img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_error.png"}" alt="" />{$CONST.WARNING_NO_GROUPS_SELECTED}</div>
|
||||
{/if}
|
||||
<div class="serendipityAdminMsgSuccess msg_success">
|
||||
<img class="img_error" src="{serendipity_getFile file="admin/img/admin_msg_success.png"}" alt="" />
|
||||
{$CONST.MODIFIED_USER|sprintf:"{$realname|escape:"html"}"}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $delete == false}
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td><strong>{$CONST.USER}</strong></td>
|
||||
<td width="100" align="center"><strong>{$CONST.USER_LEVEL}</strong></td>
|
||||
<td width="300"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
{foreach $users as $user}
|
||||
{if $user.isEditable}
|
||||
<div class="serendipity_admin_list_item serendipity_admin_list_item_{if $group@iteration is even} even {else} uneven {/if}">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
{* TODO: Add username to list once tom figures out how to fix uneven rowstyles *}
|
||||
<td><img src="{if $user.userlevel >= {$CONST.USERLEVEL_ADMIN}}
|
||||
{serendipity_getFile file="admin/img/user_admin.png"}
|
||||
{else}
|
||||
{if $user.userlevel >= {$CONST.USERLEVEL_CHIEF}}
|
||||
{serendipity_getFile file="admin/img/user_chief.png"}
|
||||
{else}
|
||||
{serendipity_getFile file="admin/img/user_editor.png"}
|
||||
{/if}
|
||||
{/if}" alt="" style="border: 0px none ; vertical-align: bottom; display: inline;" />{$user.realname|escape:"html"}</td>
|
||||
<td width="100" align="center">{$user.userlevel}</td>
|
||||
<td width="300" align="right">
|
||||
<a target="_blank" href="{$user.authorUrl}" title="{$CONST.PREVIEW} {$user.realname}" class="serendipityIconLink">
|
||||
<img src="{serendipity_getFile file="admin/img/zoom.png"}" alt="{$CONST.PREVIEW}" />{$CONST.PREVIEW}</a>
|
||||
<a href="?serendipity[adminModule]=users&serendipity[adminAction]=edit&serendipity[userid]={$user.authorid}#editform" title="{$CONST.EDIT} {$user.realname|escape:"html"}" class="serendipityIconLink"><img src="{serendipity_getFile file="admin/img/edit.png"}" alt="{$CONST.EDIT} {$user.realname|escape:"html"}" />{$CONST.EDIT}</a>
|
||||
<a href="?{$urlFormToken}&serendipity[adminModule]=users&serendipity[adminAction]=delete&serendipity[userid]=$user.authorid" title="{$CONST.DELETE} {$user.realname|escape:"html"}" class="serendipityIconLink"><img src="{serendipity_getFile file="admin/img/delete.png"}" alt="{$CONST.DELETE} {$user.realname|escape:"html"}" />{$CONST.DELETE}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td>
|
||||
</tr>
|
||||
{if $new}
|
||||
<tr>
|
||||
<td colspan="3" align="right">
|
||||
<form action="?serendipity[adminModule]=users" method="post">
|
||||
<input type="submit" name="NEW" value="{$CONST.CREATE_NEW_USER}" class="serendipityPrettyButton input_button" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if $show_form}
|
||||
<br />
|
||||
<br />
|
||||
<hr noshade="noshade">
|
||||
<form action="?serendipity[adminModule]=users#editform" method="post">
|
||||
{$formToken}
|
||||
<div>
|
||||
<h3>
|
||||
{if $adminAction == "edit"}
|
||||
<a id="editform"></a>
|
||||
{if $no_create_permission}
|
||||
<strong>{$CONST.CREATE_NOT_AUTHORIZED}</strong><br />
|
||||
{$CONST.EDIT}
|
||||
{else}
|
||||
{if $create_permission}
|
||||
{$CONST.EDIT}
|
||||
<input type="hidden" name="serendipity[user]" value="{$from.authorid}" />
|
||||
{else}
|
||||
<strong>{$CONST.CREATE_NOT_AUTHORIZED}</strong><br />
|
||||
{$CONST.EDIT}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{$CONST.CREATE}
|
||||
{/if}
|
||||
</h3>
|
||||
|
||||
{$config}
|
||||
|
||||
{if $adminAction == "edit"}
|
||||
<input type="submit" name="SAVE_EDIT" value="{$CONST.SAVE}" class="serendipityPrettyButton input_button" />
|
||||
{else}
|
||||
<input type="submit" name="SAVE_NEW" value="{$CONST.CREATE_NEW_USER}" class="serendipityPrettyButton input_button" />
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
{else}
|
||||
{if $delete}
|
||||
<form action="?serendipity[adminModule]=users" method="post">
|
||||
<div>
|
||||
{$CONST.DELETE_USER|sprintf:"{$userid}":"{$realname|escape:"html"}"}
|
||||
<br /><br />
|
||||
{$formToken}
|
||||
<input type="hidden" name="serendipity[user]" value="{$userid}" />
|
||||
<input type="submit" name="DELETE_YES" value="{$CONST.DUMP_IT}" class="serendipityPrettyButton input_button" />
|
||||
<input type="submit" name="NO" value="{$CONST.NOT_REALLY}" class="serendipityPrettyButton input_button" />
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
@@ -385,8 +385,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
#$serendipity['smarty']->registerPlugin('function', 'serendipity_upgraderResultDiagnose', 'serendipity_smarty_backend_upgraderResultDiagnose');
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/upgrader.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/upgrader.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
|
||||
echo $content;
|
||||
|
||||
|
@@ -251,8 +251,7 @@ if (!is_object($serendipity['smarty'])) {
|
||||
}
|
||||
|
||||
$serendipity['smarty']->assign($data);
|
||||
$tpldir = ( !defined('SWITCH_TEMPLATE_VERSION') ) ? 'tplold' : 'tpl';
|
||||
$tfile = dirname(__FILE__) . "/$tpldir/users.inc.tpl";
|
||||
$tfile = dirname(__FILE__) . "/tpl/users.inc.tpl";
|
||||
$content = $serendipity['smarty']->fetch('file:'. $tfile);
|
||||
echo $content;
|
||||
|
||||
|
Reference in New Issue
Block a user