Beispiel #1
0
 /**
  * Initialise the plugin
  */
 function init()
 {
     parent::init();
     // Set javascript file array
     $this->script(array('browser'), 'plugins');
     $this->css(array('browser'), 'plugins');
     $this->loadExtensions();
 }
Beispiel #2
0
 /**
  * Initialise the plugin
  */
 function init()
 {
     $this->checkPlugin() or die('Restricted access');
     parent::init();
     // Set javascript file array
     $this->script(array('browser'), 'plugins');
     $this->css(array('browser'), 'plugins');
     $this->loadExtensions();
 }
Beispiel #3
0
 public function init()
 {
     if (Manager::$init != true) {
         Manager::$init = true;
         add_filter('plugin_action_links_wpdemo/wpdemo.php', array($this, 'addLinks'));
         add_action('admin_notices', array($this, 'addNotices'));
         add_action('admin_post_wpdemo_remove_instances', array($this, 'removeInstancesNow'));
     }
 }
Beispiel #4
0
 /**
  * Initialise the plugin
  */
 function init()
 {
     parent::init();
     // Setup plugin XHR callback functions
     $this->setXHR(array($this, 'getDimensions'));
     // Set javascript file array
     $this->script(array('imgmanager'), 'plugins');
     // Set css file array
     $this->css(array('imgmanager'), 'plugins');
     // Load extensions if any
     $this->loadExtensions();
 }
 /**
  * Initialise the plugin
  */
 function init()
 {
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
     parent::init();
     // Setup plugin XHR callback functions
     $this->setXHR(array($this, 'getDimensions'));
     // Set javascript file array
     $this->script(array('imgmanager'), 'plugins');
     // Set css file array
     $this->css(array('imgmanager'), 'plugins');
     // Load extensions if any
     $this->loadExtensions();
 }
Beispiel #6
0
<?php

// Diretorio do script corrente
$dir = dirname(__FILE__);
// Path do Maestro
$dir = strstr($dir, "maestro", true) . "maestro";
// Configura��o para tratamento de erros
ini_set("error_reporting", E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set("log_errors", "on");
ini_set("error_log", $dir . "core/var/log/php_error.log");
// Inclus�o do framework
$conf = $dir . '/core/conf/conf.php';
require_once $dir . '/core/classes/manager.php';
set_error_handler('Manager::errorHandler');
// Endereco do servico a ser executado
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . 'exemplos/data/dadosPessoaByNome';
// Inicializa��o do framework
Manager::init($conf, $dir);