19 include_once (
'Class.QueryDb.php');
20 include_once (
'Class.Application.php');
27 $query->basic_elem->sup_where = array(
33 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/subwindow.js");
34 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/resizeimg.js");
35 $action->parent->AddJsRef(
$action->GetParam(
"CORE_JSURL") .
"/AnchorPosition.js");
37 $iz =
$action->getParam(
"CORE_ICONSIZE");
40 $action->lay->set(
"wtitle", 180);
43 $action->lay->set(
"wtitle", 150);
45 $action->lay->set(
"izpx", $izpx);
46 $action->lay->set(
"izbpx", $izpx + 10);
51 foreach (
$list as $k => $appli) {
53 if ($appli[
"access_free"] ==
"N") {
54 $action->log->debug(
"Access not free for :" . $appli[
"name"]);
61 $queryact->AddQuery(
"id_application=" . $appli[
"id"]);
62 $queryact->AddQuery(
"root='Y'");
63 $listact = $queryact->Query(0, 0,
"TABLE");
64 $root_acl_name = $listact[0][
"acl"];
65 if (!
$action->HasPermission($root_acl_name, $appli[
"id"]))
continue;
71 $appli[
"description"] =
$action->text($appli[
"description"]);
72 $appli[
"descriptionsla"] = addslashes($appli[
"description"]);
73 if ($appli[
"machine"] !=
"") $appli[
"pubdir"] =
"http://" . $appli[
"machine"] .
"/what";
74 else $appli[
"pubdir"] =
$action->getParam(
"CORE_PUBURL");
76 $appli[
"iconsrc"] =
$action->GetImageUrl($appli[
"icon"]);
77 if ($appli[
"iconsrc"] ==
"CORE/Images/noimage.png") $appli[
"iconsrc"] = $appli[
"name"] .
"/Images/" . $appli[
"icon"];
83 $action->lay->set(
"DATE", strftime(
"%a %d %B %Y %H:%M", time()));
87 $action->lay->SetBlockData(
"FUNCTION", $tab);
92 if (isset($_GET[
"capp"]))
$app->Set($_GET[
"capp"],
$action->parent);
95 $action->lay->set(
"APP_TITLE", _(
$app->description));
98 $action->lay->set(
"sid", session_id());
100 $jslauch =
$action->GetLayoutFile(
"lauch_action.js");
102 $action->parent->AddJsCode($lay->gen());
104 if (
$action->parent->exists(
"FREEGATE") && (
$action->getParam(
"GATE_USEOLD") !=
"yes")) {
105 $action->lay->setblockdata(
"FREEGATE", array(
111 $action->lay->setblockdata(
"NOFREEGATE", array(
127 $action->lay->set(
"ONOUT",
$action->parent->GetImageUrl(
"bblue.gif"));
128 $action->lay->set(
"ONOVER",
$action->parent->GetImageUrl(
"bgreen.gif"));
129 $action->lay->set(
"ALTLOGINOUT",
"login");
130 $action->lay->set(
"ACTION",
"");
131 $action->lay->set(
"anim",
"true");
134 $action->lay->set(
"ONOUT",
$action->parent->GetImageUrl(
"bgreen.gif"));
135 $action->lay->set(
"ONOVER",
$action->parent->GetImageUrl(
"bred.gif"));
136 $action->lay->set(
"ALTLOGINOUT",
"logout");
137 $action->lay->set(
"ACTION",
"LOGOUT");
139 $action->lay->set(
"anim",
"false");