Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56906975
header.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1020 B
Referenced Files
None
Subscribers
None
header.php
View Options
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Controller for header (called on every regular page)
*
* @package ObsidianWorkspaces
* @subpackage Controllers
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
//
// Gets header resources
//
$workspaces
=
$CurrentUser
->
get_workspaces
();
$workspaces_count
=
count
(
$workspaces
);
//
// HTML output
//
//Gets header information
$smarty
->
assign
(
'current_username'
,
$CurrentUser
->
name
);
$smarty
->
assign
(
'ip'
,
$CurrentUser
->
session
[
'session_ip'
]);
$smarty
->
assign
(
'workspaces'
,
$workspaces
);
$smarty
->
assign
(
'workspaces_count'
,
$workspaces_count
);
//Prints the template
$smarty
->
display
(
'header.tpl'
);
/**
* This constant indicates the header have been printed
*/
define
(
'HEADER_PRINTED'
,
true
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 12, 14:43 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4233406
Default Alt Text
header.php (1020 B)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment