Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
welcome.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 
7 function welcome(Action &$action)
8 {
9 
10  $action->parent->AddCssRef("CORE:welcome.css", true);
11  $action->lay->set("thisyear", strftime("%Y", time()));
12  $action->lay->set("version", $action->GetParam("VERSION"));
13  $action->lay->set("userRealName", $action->user->firstname . " " . $action->user->lastname);
14  $action->lay->set("userDomain", getParam("CORE_CLIENT"));
15  $action->lay->set("isAdmin", (file_exists('admin.php') && $action->canExecute("CORE_ADMIN_ROOT", "CORE_ADMIN") === ''));
16 
17 }
welcome(Action &$action)
Definition: welcome.php:7
global $action
canExecute($actname, $appid="")
getParam($name, $def="")
must be in core or global type
Definition: Lib.Common.php:193
← centre documentaire © anakeen