11 $action->parent->AddCssRef(
"CORE:welcome.css",
true);
12 $action->lay->set(
"thisyear", strftime(
"%Y", time()));
17 $fext =
$action->getLayoutFile(
"externals-dev.xml");
18 $action->lay->set(
"HAVE_EXTERNALS",
false);
20 if (file_exists($fext)) {
22 foreach ($fdata as $k => $v) {
23 $action->lay->set(
"HAVE_EXTERNALS",
true);
24 $ds = explode(
"#", $v);
32 $action->lay->setBlockData(
"EXTERNALS", $trd);
35 $query->basic_elem->sup_where = array(
38 "tag!='CORE' or tag is null"
47 foreach (
$list as $k => $appli) {
48 if ($appli[
"access_free"] ==
"N") {
49 $action->log->debug(
"Access not free for :" . $appli[
"name"]);
54 $queryact->AddQuery(
"id_application=" . $appli[
"id"]);
55 $queryact->AddQuery(
"root='Y'");
56 $listact = $queryact->Query(0, 0,
"TABLE");
57 $root_acl_name = $listact[0][
"acl"];
58 if (!
$action->HasPermission($root_acl_name, $appli[
"id"]))
continue;
64 $lapps[$ap][
"name"] = $appli[
"name"];
65 $lapps[$ap][
"desc"] =
$action->text($appli[
"description"]);
66 $lapps[$ap][
"sname"] =
$action->text($appli[
"short_name"]);
67 $lapps[$ap][
"icon"] =
$action->GetImageUrl($appli[
"icon"]);
68 if ($lapps[$ap][
"icon"] ==
"CORE/Images/noimage.png") $lapps[$ap][
"icon"] = $appli[
"name"] .
"/Images/" . $appli[
"icon"];
72 $action->lay->set(
"appsdev", count($lapps) > 0);
73 $action->lay->setBlockData(
"apps", $lapps);