aboutsummaryrefslogtreecommitdiff
path: root/templates/about.tpl.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 10:53:10 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 10:53:10 +0000
commitfc5091f407e785799f9cf9ef684f47a2ae298358 (patch)
tree3e44e83ad3dc9cb59d2e96383a6baa4a9f4b6bdd /templates/about.tpl.php
parent67eb6784d56640dca9eb3752c5407f7ce73e160f (diff)
downloadsemanticscuttle-fc5091f407e785799f9cf9ef684f47a2ae298358.tar.gz
semanticscuttle-fc5091f407e785799f9cf9ef684f47a2ae298358.tar.bz2
Interface fix: hide semanticscuttle version for non-admin (preventing some crackers' scripts)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@154 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/about.tpl.php')
-rw-r--r--templates/about.tpl.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/about.tpl.php b/templates/about.tpl.php
index 59e2b54..7ff11ad 100644
--- a/templates/about.tpl.php
+++ b/templates/about.tpl.php
@@ -1,5 +1,9 @@
<?php
$this->includeTemplate($GLOBALS['top_include']);
+
+$userservice =& ServiceFactory::getServiceInstance('UserService');
+$currentUser = $userservice->getCurrentUser();
+$currentUserId = $userservice->getCurrentUserId();
?>
<ul>
@@ -13,7 +17,12 @@ $this->includeTemplate($GLOBALS['top_include']);
<ul>
<li><a href="http://sourceforge.net/projects/semanticscuttle/">Semantic Scuttle</a> <?php echo T_('is licensed under the ');?> <a href="http://www.gnu.org/copyleft/gpl.html"><acronym title="GNU\'s Not Unix">GNU</acronym> General Public License</a> (<?php echo T_('you can freely host it on your own web server.'); ?>)</li>
<li><?php echo sprintf(T_('%1$s supports most of the <a href="http://del.icio.us/doc/api">del.icio.us <abbr title="Application Programming Interface">API</abbr></a>. Almost all of the neat tools made for that system can be modified to work with %1$s instead. If you find a tool that won\'t let you change the API address, ask the creator to add this setting. You never know, they might just do it.'), $GLOBALS['sitename']); ?></li>
+
+
+
+<?php if(!is_null($currentUser) && $userservice->isAdmin($currentUserId)): ?>
<li>SemanticScuttle v0.90</li>
+<?php endif ?>
</ul>
<?php