Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
footer.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Footer window
9  *
10  * @author Anakeen 2000
11  * @version $Id: footer.php,v 1.3 2005/02/17 07:54:22 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage CORE
15  */
16 /**
17  */
18 // -----------------------------------
19 function footer(&$action)
20 {
21  // -----------------------------------
22  $action->parent->AddJsRef($action->GetParam("CORE_JSURL") . "/subwindow.js");
23 
24  $plugzone = $action->getParam("CORE_PLUGZONE");
25 
26  $action->lay->set("plugzone", "");
27  if ($plugzone != "") {
28  if (preg_match("/([A-Z]+):([^:]+)/", $plugzone, $reg)) {
29  $appplug = $reg[1];
30  $actplug = $reg[2];
31  if ($idappplug = $action->parent->Exists($appplug)) {
32  $permission = new Permission($action->dbaccess, array(
33  $action->user->id,
34  $idappplug
35  ));
36 
37  if ($permission->isAffected() && (count($permission->privileges) > 0)) {
38  // can see the plug
39  $action->lay->set("plugzone", "[ZONE $plugzone]");
40  }
41  }
42  }
43  }
44 }
45 // EOF
← centre documentaire © anakeen - published under CC License - Dynacase