Beispiel #1
0
  | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See  |
  | the License for the specific language governing rights and           |
  | limitations under the License.                                       |
  +----------------------------------------------------------------------+
  | The Original Code is: Elastix Open Source.                           |
  | The Initial Developer of the Original Code is PaloSanto Solutions    |
  +----------------------------------------------------------------------+
  $Id: frameRight.php,v 1.1.1.1 2007/07/06 21:31:56 gcarrillo Exp $ */
include_once "../libs/misc.lib.php";
include_once "../configs/default.conf.php";
load_default_timezone();
session_name("elastixSession");
session_start();
// Load smarty
$arrConf['mainTheme'] = load_theme($arrConf['basePath'] . "/");
$smarty = getSmarty($arrConf['mainTheme']);
$smarty->assign("THEMENAME", $arrConf['mainTheme']);
// Nombres válidos de módulos son alfanuméricos y subguión
if (!preg_match('/^\\w+$/', $_GET['id_nodo'])) {
    unset($_GET['id_nodo']);
}
if (!empty($_GET['id_nodo'])) {
    $idMenuMostrar = $_GET['id_nodo'];
    if (!empty($_GET['name_nodo'])) {
        $smarty->assign("node_name", htmlentities($_GET['name_nodo'], ENT_COMPAT, 'UTF-8'));
    }
    // Si no existe el archivo de ayuda y se trata de un menu "padre",
    // muestro el menu hijo que encuentre primero
    /*
        $resArchivoExiste = existeArchivoAyuda($idMenuMostrar); 
        if($resArchivoExiste == 3 || $resArchivoExiste == 4) {
Beispiel #2
0
 /**
  * Constructor.
  *
  */
 function __construct()
 {
     if ($this->name === null) {
         $r = null;
         if (!preg_match('/(.*)Controller/i', get_class($this), $r)) {
             die(__("Controller::__construct() : Can not get or parse my own class name, exiting."));
         }
         $this->name = $r[1];
     }
     $this->smarty = getSmarty();
     if ($this->viewPath == null) {
         $this->viewPath = Inflector::underscore($this->name);
     }
     $this->modelClass = Inflector::classify($this->name);
     $this->modelKey = Inflector::underscore($this->modelClass);
     $this->Component =& new Component();
     $childMethods = get_class_methods($this);
     $parentMethods = get_class_methods('Controller');
     foreach ($childMethods as $key => $value) {
         $childMethods[$key] = strtolower($value);
     }
     foreach ($parentMethods as $key => $value) {
         $parentMethods[$key] = strtolower($value);
     }
     $this->methods = array_diff($childMethods, $parentMethods);
     parent::__construct();
 }