public function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/MessageStatisticsPlugin/';
     $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
     $this->settings = array('statistics_export_all_messages' => array('value' => true, 'description' => s("On the Campaigns tab, whether to export all campaigns. If 'No' then only those currently listed will be exported."), 'type' => 'boolean', 'allowempty' => true, 'category' => 'Campaign Statistics'));
     parent::__construct();
 }
 public function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/' . self::PLUGIN . '/';
     $this->settings = array('viewbrowser_link' => array('value' => s('View in browser'), 'description' => s('The text of the link'), 'type' => 'text', 'allowempty' => false, 'category' => 'View in Browser'), 'viewbrowser_attributes' => array('value' => s(''), 'description' => s('Additional attributes for the html <a> element'), 'type' => 'text', 'allowempty' => true, 'category' => 'View in Browser'), 'viewbrowser_anonymous' => array('value' => false, 'description' => s('Whether the plugin should provide an anonymous page'), 'type' => 'boolean', 'allowempty' => false, 'category' => 'View in Browser'), 'viewbrowser_plugins' => array('description' => s('Plugins to be used when creating the email. Usually leave this unchanged.'), 'type' => 'textarea', 'value' => "ContentAreas\nconditionalPlaceholderPlugin\nRssFeedPlugin\nViewBrowserPlugin", 'allowempty' => true, 'category' => 'View in Browser'));
     parent::__construct();
     $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
 }
Exemplo n.º 3
0
 public function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/' . __CLASS__ . '/';
     parent::__construct();
     if (!Sql_Table_exists($GLOBALS['table_prefix'] . 'restapi_request_log')) {
         saveConfig(md5('plugin-restapi-initialised'), false, 0);
         $this->initialise();
     }
 }
 function __construct()
 {
     parent::__construct();
     $this->coderoot = dirname(__FILE__) . '/AttributeChangerPlugin/';
     require_once dirname(__FILE__) . '/AttributeChangerPlugin/Single_Session.php';
     $this->attribute_changer_tablename = $GLOBALS['table_prefix'] . 'plugins_attribute_changer_plugin';
     $this->AttributeChangerData = array('tables' => array('user' => $GLOBALS['tables']['user'], 'attribute' => $GLOBALS['tables']['attribute'], 'user_attribute' => $GLOBALS['tables']['user_attribute']), 'table_prefix' => $GLOBALS['table_prefix'], 'atribute_value_table_prefix' => $GLOBALS['table_prefix'] . "listattr_", 'case_array' => array('textarea' => 'case_1', 'textline' => 'case_1', 'hidden' => 'case_1', 'date' => 'case_1', 'checkbox' => 'case_1', 'radio' => 'case_2', 'select' => 'case_2', 'checkboxgroup' => 'case_3'), 'attribute_changer_tablename' => $GLOBALS['table_prefix'] . 'plugins_attribute_changer_plugin', 'attribute_changer_table_structure' => array("id" => array("integer not null primary key auto_increment", "ID"), "adminid" => array("integer not null", "adminid"), "value" => array('longtext', '')), 'displayAmounts' => array(10 => 10, 100 => 100, 1000 => 1000, 10000 => 10000, 'all' => 'all'), 'PLUGIN_CLASS_DIR' => dirname(__FILE__), 'www_files_dir' => '/lists/admin/plugins/AttributeChangerPlugin/', 'PLUGIN_FILES_DIR' => dirname(__FILE__) . '/AttributeChangerPlugin/', 'temp_uploads_dir' => dirname(__FILE__) . '/AttributeChangerPlugin/temp_table_uploads');
     $GLOBALS['AttributeChangerPlugin'] = $this;
 }
 public function __construct()
 {
     $this->kcEnabled = defined('UPLOADIMAGES_DIR') && UPLOADIMAGES_DIR !== false;
     $this->coderoot = dirname(__FILE__) . self::CODE_DIR;
     $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
     $this->settings = array('ckeditor_path' => array('value' => PLUGIN_ROOTDIR . self::CODE_DIR . 'ckeditor', 'description' => 'Path to CKeditor', 'type' => 'text', 'allowempty' => 0, 'category' => 'CKEditor'), 'ckeditor_config_path' => array('value' => '', 'description' => 'Path to CKeditor custom configuration file', 'type' => 'text', 'allowempty' => 1, 'category' => 'CKEditor'), 'ckeditor_width' => array('value' => 600, 'description' => 'Width in px of CKeditor Area', 'type' => 'integer', 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category' => 'CKEditor'), 'ckeditor_height' => array('value' => 600, 'description' => 'Height in px of CKeditor Area', 'type' => 'integer', 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category' => 'CKEditor'), 'ckeditor_fulltemplate' => array('description' => 'Allow templates to be edited as full HTML pages', 'type' => 'boolean', 'value' => '1', 'allowempty' => true, 'category' => 'CKEditor'), 'ckeditor_fullmessage' => array('description' => 'Allow messages to be edited as full HTML pages', 'type' => 'boolean', 'value' => '0', 'allowempty' => true, 'category' => 'CKEditor'));
     if ($this->kcEnabled) {
         $this->settings += array('kcfinder_path' => array('value' => PLUGIN_ROOTDIR . self::CODE_DIR . 'kcfinder', 'description' => 'Path to KCFinder', 'type' => 'text', 'allowempty' => 0, 'category' => 'CKEditor'), 'kcfinder_uploaddir' => array('value' => '', 'description' => 'File system path to the upload image directory. Usually leave this empty.', 'type' => 'text', 'allowempty' => 1, 'category' => 'CKEditor'), 'kcfinder_image_directory' => array('value' => 'image', 'description' => 'Name of the image subdirectory of the file upload directory', 'type' => 'text', 'allowempty' => 0, 'category' => 'CKEditor'), 'kcfinder_files_directory' => array('value' => 'files', 'description' => 'Name of the files subdirectory of the file upload directory', 'type' => 'text', 'allowempty' => 0, 'category' => 'CKEditor'), 'kcfinder_flash_directory' => array('value' => 'flash', 'description' => 'Name of the flash subdirectory of the file upload directory', 'type' => 'text', 'allowempty' => 0, 'category' => 'CKEditor'));
     }
     parent::__construct();
 }
    public function __construct()
    {
        $this->elEnabled = defined('UPLOADIMAGES_DIR') && UPLOADIMAGES_DIR !== false;
        $this->coderoot = dirname(__FILE__) . self::CODE_DIR;
        $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
        $tinyMCEPath = substr(PLUGIN_ROOTDIR, 0, 1) == '/' ? PLUGIN_ROOTDIR : $GLOBALS['pageroot'] . '/admin/' . PLUGIN_ROOTDIR;
        $tinyMCEPath .= self::CODE_DIR . 'tinymce';
        $elPath = substr(PLUGIN_ROOTDIR, 0, 1) == '/' ? PLUGIN_ROOTDIR : $GLOBALS['pageroot'] . '/admin/' . PLUGIN_ROOTDIR;
        $elPath .= self::CODE_DIR . 'elfinder';
        $this->settings = array('tinymce_path' => array('value' => $tinyMCEPath, 'description' => 'path to TinyMCE', 'type' => 'text', 'allowempty' => 0, 'category' => 'TinyMCE'), 'tinymce_config' => array('value' => '', 'description' => 'Custom configuration settings', 'type' => 'textarea', 'allowempty' => 1, 'category' => 'TinyMCE'), 'tinymce_width' => array('value' => 600, 'description' => 'Width in px of TinyMCE window', 'type' => 'integer', 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category' => 'TinyMCE'), 'tinymce_height' => array('value' => 600, 'description' => 'Height in px of TinyMCE window', 'type' => 'integer', 'allowempty' => 0, 'min' => 100, 'max' => 800, 'category' => 'TinyMCE'));
        $this->settings['tinymce_config']['value'] = <<<END
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image",
plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ]
END;
        if ($this->elEnabled) {
            $this->settings += array('elfinder_path' => array('value' => $elPath, 'description' => 'path to elFinder', 'type' => 'text', 'allowempty' => 0, 'category' => 'TinyMCE'));
        }
        parent::__construct();
    }
 function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/inlineImagePlugin/';
     if (!is_dir($this->coderoot)) {
         mkdir($this->coderoot);
     }
     $imagedir = $this->coderoot . "images/";
     if (!is_dir($imagedir)) {
         mkdir($imagedir);
     }
     if (file_exists($this->coderoot . 'ldaimages.php')) {
         // Do we have the pages for our version 1?
         // Remove old pages
         unlink($this->coderoot . 'edit.php');
         unlink($this->coderoot . 'ldaimages.php');
         // Remove old image files as well
         $files = glob($this->coderoot . 'images/*.*');
         foreach ($files as $f) {
             unlink($f);
         }
     }
     parent::__construct();
 }
 public function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/' . __CLASS__ . '/';
     parent::__construct();
     $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
 }