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();
 }
 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;
 }
예제 #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();
     }
 }
 public function activate()
 {
     parent::activate();
     if (CHECK_REFERRER) {
         global $allowed_referrers;
         if (!isset($allowed_referrers)) {
             $allowed_referrers = array();
         }
         $cas_host = getConfig('cas_host');
         if ($cas_host) {
             $allowed_referrers[] = $cas_host;
         }
     }
     if (isset($_GET['ticket'])) {
         self::login();
     }
 }
예제 #5
0
파일: message.php 프로젝트: juvenal/PHPlist
<p>Im Nachrichtentext k&ouml;nnen Sie Platzhalter benutzen, welche dann beim Versand durch die Daten des jeweiligen Empf&auml;ngers ersetzt werden.</p>

<p>Platzhalter haben die Form <b>[EIN_TEXT]</b>, wobei EIN_TEXT der Name eines im System definierten Attributs sein muss.
Wenn es beispielsweise ein Attribut "Vorname" gibt, so f&uuml;gen Sie den Platzhalter [VORNAME] an jener Stelle
in den Nachrichtentext ein, an welcher der Vorname des jeweiligen Empf&auml;ngers erscheinen soll.
</p>

<p>Zur Zeit sind folgende Attribute im System definiert:

<?php 
print listPlaceHolders();
if (phplistPlugin::isEnabled('rssmanager')) {
    ?>
  <p>Sie k&ouml;nnen Templates definieren f&uuml;r Nachrichten, die Meldungen aus RSS-Feeds enthalten.
  Zu diesem Zweck wechseln Sie zuerst auf das Register "Termine" und definieren dort,
  wie h&auml;ufig eine Nachricht mit den neuen Meldungen aus dem RSS-Feed verschickt werden soll.
  Die Nachricht wird dann f&uuml;r den Versand von RSS-Meldungen an diejenigen Abonnenten benutzt,
  welche die entsprechende Frequenz gew&auml;hlt haben.
  Verwenden Sie anschliessend den Platzhalter [RSS] in Ihrer Nachricht,
  um die RSS-Meldungen an der gew&uuml;nschten Stelle einzuf&uuml;gen.</p>
<?php 
}
?>

<p>Um eine ganze Web-Seite als Nachricht zu versenden benutzen Sie den folgenden Platzhalter:<br/>
<b>[URL:</b>http://www.domain.com/verzeichnis/datei.html<b>]</b></p>

<p>Sie k&ouml;nnen auch elementare Abonnenten-Daten (aber keine Attributwerte) in die URL integrieren:</br>
<b>[URL:</b>http://www.domain.com/benutzerprofil.php?email=<b>[</b>email<b>]]</b><br/>
</p>
 function upgrade($previous)
 {
     parent::upgrade($previous);
     return true;
 }
예제 #7
0
 function fckphplist()
 {
     parent::phplistplugin();
     $this->coderoot = dirname(__FILE__) . '/fckphplist/';
 }
 public function restapi_test()
 {
     parent::phplistplugin();
     $this->coderoot = dirname(__FILE__) . '/restapi_test/';
 }
예제 #9
0
 function restapi2()
 {
     parent::phplistplugin();
     // Set path to plugin folder
     $this->coderoot = dirname(__FILE__) . '/restapi2/';
 }
 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 activate()
 {
     global $public_scheme, $pageroot;
     parent::activate();
     $this->linkText = getConfig('viewbrowser_link');
     $this->rootUrl = sprintf('%s://%s%s/', $public_scheme, getConfig('website'), $pageroot);
 }
    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 initialise()
 {
     /* Make sure database is up to date */
     global $table_prefix;
     $imgtbl = $this->tables['image'];
     $msgtbl = $this->tables['msg'];
     if (Sql_Table_exists($imgtbl) && !Sql_Table_Column_Exists($imgtbl, "cksum") || Sql_Table_exists($msgtbl) && !Sql_Table_Column_Exists($msgtbl, "original")) {
         // Have old database tables?
         // Drop the old tables
         Sql_Drop_Table($imgtbl);
         Sql_Drop_Table($msgtbl);
         // Flag the plugin as not intialized so that the parent will create the new tables
         $entry = md5('plugin-inlineImagePlugin-initialised');
         $query = sprintf("delete from %s where item='%s'", $GLOBALS["tables"]["config"], $entry);
         Sql_Query($query);
         // Force reloading of config arrays, so that our parent sees the plugin
         // as not initialized.
         unset($_SESSION['config']);
         unset($GLOBALS['config']);
         unset($_SESSION["dbtables"]);
         // Empty the cache that still contains our table names
     }
     parent::initialise();
 }
예제 #14
0
 * 
 * This file is a part of MessageStatisticsPlugin.
 *
 * This plugin is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * This plugin is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * @category  phplist
 * @package   MessageStatisticsPlugin
 * @author    Duncan Cameron
 * @copyright 2011-2012 Duncan Cameron
 * @license   http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3
 * @version   SVN: $Id: main.php 665 2012-03-14 09:59:09Z Duncan $
 * @link      http://forums.phplist.com/viewtopic.php?f=7&t=35427
 */
/**
 * This file is the entry code invoked by phplist
 * 
 * @category  phplist
 * @package   MessageStatisticsPlugin
 */
if (!phplistPlugin::isEnabled('CommonPlugin')) {
    echo "phplist-plugin-common must be installed and enabled to use this plugin";
    return;
}
CommonPlugin_Main::run(new MessageStatisticsPlugin_ControllerFactory());
 public function __construct()
 {
     $this->coderoot = dirname(__FILE__) . '/' . __CLASS__ . '/';
     parent::__construct();
     $this->version = is_file($f = $this->coderoot . self::VERSION_FILE) ? file_get_contents($f) : '';
 }