projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename redirect function into http_redirect.
[platal.git]
/
plugins
/
block.min_auth.php
diff --git
a/plugins/block.min_auth.php
b/plugins/block.min_auth.php
index
613bde0
..
5caa432
100644
(file)
--- a/
plugins/block.min_auth.php
+++ b/
plugins/block.min_auth.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
6
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-33,8
+33,8
@@
function smarty_block_min_auth($params, $content, &$smarty)
if( empty($content) || empty($params['level'] ))
return;
if( ($params['level'] == 'public') ||
if( empty($content) || empty($params['level'] ))
return;
if( ($params['level'] == 'public') ||
- ($params['level'] == 'cookie' && logged()) ||
- ($params['level'] == 'auth' && identified()) )
+ ($params['level'] == 'cookie' &&
S::
logged()) ||
+ ($params['level'] == 'auth' &&
S::
identified()) )
return $content;
}
?>
return $content;
}
?>