Changeset 836 in ExiteCMS


Ignore:
Timestamp:
09/23/07 23:49:33 (4 years ago)
Author:
hverton
Message:

changed copyright notice
added Smarty buttonlink function, to replace image buttons by real buttons using a locale for the button text

Location:
modules/common
Files:
11 added
3 deleted
68 edited

Legend:

Unmodified
Added
Removed
  • modules/common/ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
    1210| the included gpl.txt file or visit http://gnu.org  | 
    1311+----------------------------------------------------*/ 
    14 if (eregi("ad_side_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     12if (eregi("ad_side_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1513 
    1614// do not display this panel when in an admin module 
  • modules/common/ad_side_panel/php-files/modules/ad_side_panel/module_installer.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
     
    2829$mod_developer = "WanWizard"; 
    2930$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     31$mod_weburl = "http://exitecms.exite.eu/"; 
    3132$mod_type = "P"; 
     33 
     34/*---------------------------------------------------+ 
     35| Module administration panel installation details   | 
     36+----------------------------------------------------*/ 
     37 
     38$mod_folder = "ad_side_panel"; 
     39// no administration module for this plugin 
    3240 
    3341/*---------------------------------------------------+ 
     
    3543+----------------------------------------------------*/ 
    3644 
    37 // check for a minumum version of the PLi-Fusion engine 
     45// check for a minumum version of the ExiteCMS engine 
    3846if (str_replace(".", "", $settings['version']) < 700) { 
    3947    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4048} 
    41 // check for a maximum version of the PLi-Fusion engine 
     49// check for a maximum version of the ExiteCMS engine 
    4250if (str_replace(".", "", $settings['version']) > 700) { 
    4351    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4755    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4856} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "ad_side_panel"; 
    55 // no administration module for this plugin 
    5657 
    5758/*---------------------------------------------------+ 
  • modules/common/birthday_panel/php-files/modules/birthday_panel/birthday_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
    1210| the included gpl.txt file or visit http://gnu.org  | 
    1311+----------------------------------------------------*/ 
    14 if (eregi("birthday_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     12if (eregi("birthday_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1513 
    1614// load the locale for this panel 
  • modules/common/birthday_panel/php-files/modules/birthday_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "birthday_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "birthday_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/donations/php-files/modules/donations/admin_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/donations/php-files/modules/donations/donors.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/donations/php-files/modules/donations/index.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/donations/php-files/modules/donations/module_installer.php

    r815 r836  
    3131$mod_version = "1.0.0";                                 // module version number 
    3232$mod_developer = "WanWizard";                           // author's name 
    33 $mod_email = "wanwizard@gmail.com";                     // author's email address 
    34 $mod_weburl = "http://www.pli-images.org/pli-fusion/";  // author's website 
     33$mod_email = "wanwizard@gmail.com"; 
     34$mod_weburl = "http://exitecms.exite.eu/"; 
    3535$mod_type = "M"; 
    36  
    37 /*---------------------------------------------------+ 
    38 | Version and revision control                       | 
    39 +----------------------------------------------------*/ 
    40  
    41 // check for a minumum version of the PLi-Fusion engine 
    42 if (str_replace(".", "", $settings['version']) < 700) { 
    43     $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    44 } 
    45 // check for a maximum version of the PLi-Fusion engine 
    46 if (str_replace(".", "", $settings['version']) > 700) { 
    47     $mod_errors .= sprintf($locale['mod002'], '7.00'); 
    48 } 
    49 // check for a specific revision number range that is supported 
    50 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
    51     $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    52 } 
    5336 
    5437/*---------------------------------------------------+ 
     
    6144$mod_admin_rights = "wD";                               // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 
    6245$mod_admin_page = 4;                                    // admin page this panel has to be placed on 
     46 
     47/*---------------------------------------------------+ 
     48| Version and revision control                       | 
     49+----------------------------------------------------*/ 
     50 
     51// check for a minumum version of the ExiteCMS engine 
     52if (str_replace(".", "", $settings['version']) < 700) { 
     53    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
     54} 
     55// check for a maximum version of the ExiteCMS engine 
     56if (str_replace(".", "", $settings['version']) > 700) { 
     57    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     58} 
     59// check for a specific revision number range that is supported 
     60if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
     61    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
     62} 
    6363 
    6464/*---------------------------------------------------+ 
  • modules/common/donations/php-files/modules/donations/notify.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/donations/php-files/modules/donations/thanks.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/download_bars_panel/php-files/modules/download_bars_panel/download_bars_panel.php

    r765 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
    1210| the included gpl.txt file or visit http://gnu.org  | 
    1311+----------------------------------------------------*/ 
    14 if (eregi("download_bars_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     12if (eregi("download_bars_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1513 
    1614// array's to store the variables for this panel 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_add_geoip.php

    r764 r836  
    11 <?php 
    22/*---------------------------------------------------+ 
     3| ExiteCMS Content Management System                 | 
     4+----------------------------------------------------+ 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
     7+----------------------------------------------------+ 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
     9| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
     11| Released under the terms & conditions of v2 of the | 
     12| GNU General Public License. For details refer to   | 
     13| the included gpl.txt file or visit http://gnu.org  | 
    314| PHP-Fusion 6 Content Management System Infusion 
    415+----------------------------------------------------+ 
     
    617| fetch and process the downloads of the PLi download 
    718| sites 
    8 +----------------------------------------------------+ 
    9 | Copyright © 2006 WanWizard 
    10 | http://www.pli-images.org/ 
    1119+----------------------------------------------------*/ 
    1220 
     
    4149while(!file_exists($webroot."includes/core_functions.php")) {  
    4250    $webroot .= '../';  
    43     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion core modules!');  
     51    if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!');  
    4452} 
    4553require_once $webroot."includes/core_functions.php"; 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_add_img.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PHP-Fusion 6 Content Management System Infusion 
     3| ExiteCMS Content Management System                 | 
     4+----------------------------------------------------+ 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
     7+----------------------------------------------------+ 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
     9| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
     11| Released under the terms & conditions of v2 of the | 
     12| GNU General Public License. For details refer to   | 
     13| the included gpl.txt file or visit http://gnu.org  | 
    414+----------------------------------------------------+ 
    515| downloadstats.php 
    616| fetch and process the downloads of the PLi download 
    717| sites 
    8 +----------------------------------------------------+ 
    9 | Copyright © 2006 WanWizard 
    10 | http://www.pli-images.org/ 
    1118+----------------------------------------------------*/ 
    1219 
     
    4451while(!file_exists($webroot."includes/core_functions.php")) {  
    4552    $webroot .= '../';  
    46     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion core modules!');  
     53    if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!');  
    4754} 
    4855require_once $webroot."includes/core_functions.php"; 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_geoip.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PHP-Fusion 6 Content Management System Infusion 
     3| ExiteCMS Content Management System                 | 
     4+----------------------------------------------------+ 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
     7+----------------------------------------------------+ 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
     9| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
     11| Released under the terms & conditions of v2 of the | 
     12| GNU General Public License. For details refer to   | 
     13| the included gpl.txt file or visit http://gnu.org  | 
    414+----------------------------------------------------+ 
    515| downloadstats.php 
    616| fetch and process the downloads of the PLi download 
    717| sites 
    8 +----------------------------------------------------+ 
    9 | Copyright © 2006 WanWizard 
    10 | http://www.pli-images.org/ 
    1118+----------------------------------------------------*/ 
    1219 
     
    4148while(!file_exists($webroot."includes/core_functions.php")) {  
    4249    $webroot .= '../';  
    43     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion core modules!');  
     50    if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!');  
    4451} 
    4552require_once $webroot."includes/core_functions.php"; 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_process.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PHP-Fusion 6 Content Management System Infusion 
     3| ExiteCMS Content Management System                 | 
     4+----------------------------------------------------+ 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
     7+----------------------------------------------------+ 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
     9| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
     11| Released under the terms & conditions of v2 of the | 
     12| GNU General Public License. For details refer to   | 
     13| the included gpl.txt file or visit http://gnu.org  | 
    414+----------------------------------------------------+ 
    515| downloadstats.php 
    616| fetch and process the downloads of the PLi download 
    717| sites 
    8 +----------------------------------------------------+ 
    9 | Copyright © 2006 WanWizard 
    10 | http://www.pli-images.org/ 
    1118+----------------------------------------------------*/ 
    1219 
     
    4451while(!file_exists($webroot."includes/core_functions.php")) {  
    4552    $webroot .= '../';  
    46     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion core modules!');  
     53    if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!');  
    4754} 
    4855require_once $webroot."includes/core_functions.php"; 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/download_statistics_panel.php

    r783 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/geomapping.php

    r768 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/forum_threads_list_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("forum_threads_list_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("forum_threads_list_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617// load the forum functions include 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "forum_threads_list_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "forum_threads_list_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/my_posts.php

    r770 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/my_threads.php

    r770 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/new_posts.php

    r775 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/new_posts_detail.php

    r770 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/templates/modules.forum_threads_list_panel.tpl

    r791 r836  
    1919<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'> 
    2020    <tr> 
    21         {if $smarty.const.THEME_WIDTH == "100%"}<td class='tbl2'><b>{$locale.030}</b></td>{/if} 
     21        {if $smarty.const.THEME_WIDTH == "100%" || $smarty.const.THEME_WIDTH > "990"}<td class='tbl2'><b>{$locale.030}</b></td>{/if} 
    2222        <td class='tbl2'><b>{$locale.031}</b></td> 
    2323        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.032}</b></td> 
     
    2727    {section name=entry loop=$threadlist}    
    2828    <tr> 
    29         {if $smarty.const.THEME_WIDTH == "100%"} 
     29        {if $smarty.const.THEME_WIDTH == "100%" || $smarty.const.THEME_WIDTH > "990"} 
    3030            <td width='45%' class='{cycle values="tbl1,tbl2" advance=false}'><a href='{$smarty.const.FORUM}viewforum.php?forum_id={$threadlist[entry].forum_id}' title='{$threadlist[entry].forum_name}'>{$threadlist[entry].forum_name}</a></td> 
    3131            <td width='55%' class='{cycle values="tbl1,tbl2" advance=false}'><a href='{$smarty.const.FORUM}viewthread.php?forum_id={$threadlist[entry].forum_id}&amp;thread_id={$threadlist[entry].thread_id}&amp;pid={$threadlist[entry].last_id}#post_{$threadlist[entry].last_id}' title='{$threadlist[entry].thread_subject}'>{$threadlist[entry].thread_subject|truncate:40}{$threadlist[entry].fpm_append}</a></td> 
     
    4848    <tr> 
    4949        <td align='center' colspan='6' class='tbl1'> 
    50             <a href='{$smarty.const.MODULES}forum_threads_list_panel/my_threads.php'>{$locale.026}</a> | 
    51             <a href='{$smarty.const.MODULES}forum_threads_list_panel/my_posts.php'>{$locale.027}</a> | 
    52             <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts.php'>{$locale.028}({$locale.031})</a> | 
    53             <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts_detail.php'>{$locale.028}</a> 
     50            {buttonlink name=$locale.026 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/my_threads.php"}&nbsp; 
     51            {buttonlink name=$locale.027 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/my_posts.php"}&nbsp; 
     52            {buttonlink name=$locale.028|cat:" ("|cat:$locale.031|cat:")" link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts.php"}&nbsp; 
     53            {buttonlink name=$locale.028 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts_detail.php"} 
    5454        </td> 
    5555    </tr> 
  • modules/common/forum_threads_panel/php-files/modules/forum_threads_panel/forum_threads_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("forum_threads_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("forum_threads_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617define('NEWEST_THREADS', 5); 
  • modules/common/forum_threads_panel/php-files/modules/forum_threads_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "forum_threads_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "forum_threads_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/gallery/php-files/modules/gallery/albums.php

    r833 r836  
    186186if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { 
    187187 
    188     $displayName = $gallery->user->displayName(); 
    189     $adminCommands .= sprintf(gTranslate('core', "Welcome, %s"), $displayName) . "&nbsp;&nbsp;<br>"; 
     188//  $displayName = $gallery->user->displayName(); 
     189//  $adminCommands .= sprintf(gTranslate('core', "Welcome, %s"), $displayName) . "&nbsp;&nbsp;<br>"; 
    190190} 
    191191 
     
    201201 
    202202if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { 
    203     if ($gallery->user->isAdmin()) { 
     203/*    if ($gallery->user->isAdmin()) { 
    204204 
    205205        $iconText = getIconText('unsortedList.gif', gTranslate('core', "Administer startpage")); 
     
    216216        } 
    217217    } 
    218  
     218*/ 
    219219    if ($gallery->userDB->canModifyUser()) { 
    220220        $iconText = getIconText('yast_sysadmin.gif', gTranslate('core', "Preferences")); 
  • modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/User.php

    r833 r836  
    2121 */ 
    2222 
    23 /* This class is written for phpBB2 and provides full integration of the phpbb users database 
     23/* This class is written for ExiteCMS and provides full integration of the users database 
    2424 * Instead of using or duplicating memberships manually in Gallery. 
    2525 * 
    26  * Gallery <-> phpBB2 integration ver. (www.snailsource.com) 
    27  * Written by Martin Smallridge       <info@snailsource.com> 
     26 * Gallery <-> ExiteCMS integration 
     27 * Written by Harro 'WanWizard' Verton  <wanwizard@gmail.com> 
    2828 * 
    29  * This file was modified for official integration into Gallery 1.4.3 by 
    30  * Jens Tkotz 
    3129*/ 
    3230 
    33 class phpbb_User extends Abstract_User { 
     31class ExiteCMS_User extends Abstract_User { 
    3432    var $db; 
    3533 
    36     function phpbb_User() { 
    37         global $gallery, $userdata; 
    38         $this->db = $gallery->database{"phpbb"}; 
     34    function ExiteCMS_User() { 
     35        global $gallery; 
     36        $this->db = $gallery->database{"ExiteCMS"}; 
    3937    } 
    4038 
    4139    function loadByUid($uid) { 
    42         global $userdata, $table_prefix; 
    43         $sql = "SELECT username, user_email FROM ".$table_prefix."users WHERE user_id='$uid'"; 
    44         $results = $this->db->query($sql); 
    45         $row = $this->db->fetch_row($results); 
    46         $this->username = $row[0]; 
    47         $this->fullname = $row[0]; 
    48         $this->email = $row[1]; 
    49         $this->uid = $uid; 
    50  
    51         if ($userdata['user_level'] == '1') { 
    52             $this->isAdmin = 1; 
    53             $this->canCreateAlbums = 1; 
     40        global $db_prefix; 
     41        if ($row = dbarray(dbquery("SELECT user_name, user_fullname, user_email FROM ".$db_prefix."users WHERE user_id='$uid'"))) { 
     42            $this->username = $row['user_name']; 
     43            $this->fullname = $row['user_fullname']; 
     44            $this->email = $row['user_email']; 
     45            $this->uid = $uid; 
     46         
     47            // WANWIZARD => Needs to be a group membership check 
     48            if (iSUPERADMIN) { 
     49                $this->isAdmin = 1; 
     50                $this->canCreateAlbums = 1; 
     51            } 
     52        } else { 
     53            $this->uid = -1; 
    5454        } 
    5555    } 
    5656 
    5757    function loadByUserName($uname) { 
    58         global $userdata, $table_prefix; 
    59         $results = $this->db->query("SELECT user_id, user_email FROM ".$table_prefix."users WHERE username='$uname'"); 
    60         $row = $this->db->fetch_row($results); 
    61         $this->uid = $row[0]; 
    62         $uid = $row[0]; 
    63         $this->fullname = $uname; 
    64         $this->email = $row[1]; 
    65         $this->username = $uname; 
    66  
    67         if ($userdata['user_level'] == '1') { 
    68             $this->isAdmin = 1; 
    69             $this->canCreateAlbums = 1; 
     58        global $db_prefix; 
     59        if ($row = dbarray(dbquery("SELECT user_id, user_fullname, user_email FROM ".$db_prefix."users WHERE user_name='$uname'"))) { 
     60            $this->uid = $row['user_id']; 
     61            $this->fullname = $row['user_fullname']; 
     62            $this->email = $row['user_email']; 
     63            $this->username = $uname; 
     64         
     65            // WANWIZARD => Needs to be a group membership check 
     66            if (iSUPERADMIN) { 
     67                $this->isAdmin = 1; 
     68                $this->canCreateAlbums = 1; 
     69            } 
     70        } else { 
     71            $this->uid = -1; 
    7072        } 
    7173    } 
  • modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php

    r833 r836  
    2121 */ 
    2222 
    23 /* This class is written for phpBB2 and provides full integration of the phpbb users database 
     23/* This class is written for ExiteCMS and provides full integration of the users database 
    2424 * Instead of using or duplicating memberships manually in Gallery. 
    2525 * 
    26  * Gallery <-> phpBB2 integration ver. (www.snailsource.com) 
    27  * Written by Martin Smallridge       <info@snailsource.com> 
     26 * Gallery <-> ExiteCMS integratio 
     27 * Written by Harro 'WanWizard' Verton <wanwizard@gmail.com> 
    2828 * 
    29  * This file was modified for official integration into Gallery 1.4.3 by 
    30  * Jens Tkotz 
    3129*/ 
    3230 
    33 class phpbb_UserDB extends Abstract_UserDB { 
     31class ExiteCMS_UserDB extends Abstract_UserDB { 
    3432    var $db; 
    3533 
    36     function phpbb_UserDB() { 
     34    function ExiteCMS_UserDB() { 
    3735        global $gallery; 
    38         $this->db = $gallery->database{"phpbb"}; 
     36        $this->db = $gallery->database{"ExiteCMS"}; 
    3937        $this->nobody = new NobodyUser(); 
    4038        $this->everybody = new EverybodyUser(); 
     
    4341 
    4442    function getUidList() { 
    45         global $table_prefix; 
     43        global $db_prefix; 
    4644        $uidList = array(); 
    4745        $db = $this->db; 
    4846 
    49         $result = $db->query("select user_id from ".$table_prefix."users"); 
     47        $result = dbquery("select user_id from ".$db_prefix."users"); 
    5048 
    51         while ($row = $db->fetch_row($result)) { 
    52             array_push($uidList, $row[0]); 
     49        while ($row = dbarray($result)) { 
     50            array_push($uidList, $row['user_id']); 
    5351        } 
    5452 
     
    7068        }  
    7169 
    72         $user = new phpbb_User(); 
     70        $user = new ExiteCMS_User(); 
    7371        $user->loadByUsername($username); 
    7472        return $user; 
     
    8785        }  
    8886 
    89         $user = new phpbb_User(); 
     87        $user = new ExiteCMS_User(); 
    9088        $user->loadByUid($uid); 
    9189        return $user; 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/album.footer.default

    r833 r836  
    1515          <td style="vertical-align: top"> 
    1616            <!-- The Gallery code version number, linked to the Gallery home page --> 
    17             <span class="fineprint"> 
     17            <span class="smallalt"> 
    1818        <?php print poweredBy() ?> 
    1919            </span> 
     
    3434          <!-- donation block --> 
    3535 
    36           <td width="300" align="right"> 
    37             <span class="fineprint">  
    38               Are you happy with Gallery?<br> 
    39           Make us happy too!  Donate!<br> 
    40           (only admins see this message and button)<br> 
    41             </span> 
    42           </td> 
    43           <td width="90" align="right"> 
    44             <a href="<?php echo $gallery->url ?>/donate.php?donate_tag=v<?php echo $gallery->version ?>"><img align="right" 
    45               src="<?php echo getImagePath('donate.jpg') ?>" width="88" height="31" border="0" ALT="<?php echo _("Donate to Gallery now!!") ?>"></a> 
    46           </td> 
    4736          <?php } ?> 
    4837        </tr> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/gallery.footer.default

    r833 r836  
    4040          <!-- donation block --> 
    4141 
    42           <td width="300" align="right"> 
    43             <span class="fineprint">  
    44               Are you happy with Gallery?<br> 
    45           Make us happy too!  Donate!<br> 
    46           (only admins see this message and button)<br> 
    47             </span> 
    48           </td> 
    49           <td width="90" align="right"> 
    50             <a href="<?php echo $gallery->url ?>/donate.php?donate_tag=v<?php echo $gallery->version ?>"><img align="right" 
    51               src="<?php echo getImagePath('donate.jpg') ?>" width="88" height="31" border="0" ALT="<?php echo _("Donate to Gallery now!!") ?>"></a> 
    52           </td> 
    5342          <?php } ?> 
    5443        </tr> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/general.footer.default

    r833 r836  
    2121global $validation_args; 
    2222?> 
     23    <hr /> 
    2324      <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 
    2425        <tr> 
     
    4041if ($gallery->user->isAdmin() ) { ?> 
    4142 
    42           <!-- donation block --> 
    43  
    44           <td width="300" align="right"> 
    45             <span class="fineprint">  
    46               Are you happy with Gallery?<br> 
    47           Make us happy too!  Donate!<br> 
    48           (only admins see this message and button)<br> 
    49             </span> 
    50           </td> 
    51           <td width="90" align="right"> 
    52             <a href="<?php echo $gallery->url ?>/donate.php?donate_tag=v<?php echo $gallery->version ?>"><img align="right" 
    53               src="<?php echo getImagePath('donate.jpg') ?>" width="88" height="31" border="0" ALT="<?php echo _("Donate to Gallery now!!") ?>"></a> 
    54           </td> 
    5543          <?php } ?> 
    5644        </tr> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/photo.footer.default

    r833 r836  
    1212includeTemplate('photo.footer.tpl'); 
    1313?> 
     14    <hr> 
    1415      <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 
    1516        <tr> 
     
    3334          <!-- donation block --> 
    3435 
    35           <td width="300" align="right"> 
    36             <span class="fineprint"> 
    37               Are you happy with Gallery?<br> 
    38           Make us happy too!  Donate!<br> 
    39           (only admins see this message and button)<br> 
    40             </span> 
    41           </td> 
    42           <td width="90" align="right"> 
    43             <a href="<?php echo $gallery->url ?>/donate.php?donate_tag=v<?php echo $gallery->version ?>"><img align="right" 
    44               src="<?php echo getImagePath('donate.jpg') ?>" width="88" height="31" border="0" ALT="<?php echo _("Donate to Gallery now!!") ?>"></a> 
    45           </td> 
    4636          <?php } ?> 
    4737        </tr> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/slideshow.footer.default

    r833 r836  
    1111includeTemplate('slideshow.footer.tpl'); 
    1212?> 
     13    <hr /> 
    1314      <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 
    1415        <tr> 
     
    3637          <!-- donation block --> 
    3738 
    38           <td width=300 align=right> 
    39             <span class="fineprint">  
    40               Are you happy with Gallery?<br> 
    41           Make us happy too!  Donate!<br> 
    42           (only admins see this message and button)<br> 
    43             </span> 
    44           </td> 
    45           <td width="90" align="right"> 
    46             <a href="<?php echo $gallery->url ?>/donate.php?donate_tag=v<?php echo $gallery->version ?>"><img align="right" 
    47               src="<?php echo getImagePath('donate.jpg') ?>" width="88" height="31" border="0" ALT="<?php echo _("Donate to Gallery now!!") ?>"></a> 
    48           </td> 
    4939          <?php } ?> 
    5040        </tr> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/wrapper.footer.default

    r833 r836  
    66global $GALLERY_EMBEDDED_INSIDE_TYPE; 
    77 
    8 switch($GALLERY_EMBEDDED_INSIDE_TYPE) { 
    9     case 'phpnuke': 
    10     case 'postnuke': 
    11     case 'cpgnuke': 
    12  
    13         /* 
    14          * We can control whether we see the right side blocks 
    15          * by setting the value of the $index variable.  To 
    16          * see the blocks, set $index to 1.  To hide them set 
    17          * $index to 0.  We default to 0 to leave more room for 
    18          * the photos.  If you change this value, you should 
    19          * also change it in wrapper.header 
    20          */ 
    21         global $index; 
    22         global $GALLERY_POSTNUKE_VERSION; 
    23         $index = 0; 
    24  
    25         CloseTable(); 
    26         include('footer.php'); 
    27     break; 
    28  
    29     case 'phpBB2': 
    30         /* 
    31         ** PhpBB2 doesn't require the OpenTable() function or any of the 
    32         ** other functions that are native to Nuke. 
    33         */ 
    34  
    35         global $phpbb_root_path; 
    36         global $userdata; 
    37         global $phpEx; 
    38         global $gen_simple_header; 
    39         global $template; 
    40         global $board_config; 
    41         global $db; 
    42         global $do_gzip_compress; 
    43         global $lang; 
    44  
    45         include (PHPBB_ROOT_PATH . "includes/page_tail.php"); 
    46     break; 
    47  
    48     case 'GeekLog': 
    49  
    50     /* 
    51     ** We can control whether we see the right side blocks 
    52     ** by setting passing a parameter to COM_siteFooter. 
    53     ** To see the blocks, pass true; to hide them pass false. 
    54     */ 
    55  
    56         echo COM_siteFooter( false ); 
    57     break; 
    58  
    59 } 
    608includeTemplate('footer.tpl'); 
    619 
     
    8533    echo infoLine($infoText, 'error'); 
    8634} 
     35 
     36// get the captured content 
     37$content =  ob_get_contents(); 
     38 
     39// make sure the content is not cached 
     40// header("Cache-Control: no-cache"); 
     41 
     42// clear the output buffer 
     43ob_end_clean(); 
     44 
     45// create the panel 
     46$variables = array(); 
     47$variables['html'] = $content; 
     48 
     49global $template_panels, $template_variables; 
     50 
     51$template_panels[] = array('type' => 'body', 'title' => 'Gallery', 'name' => 'gallery', 'template' => '_custom_html.tpl'); 
     52$template_variables['gallery'] = $variables; 
     53 
     54// and call the template engine to generate the page 
     55require_once PATH_THEME."/theme.php"; 
    8756?> 
  • modules/common/gallery/php-files/modules/gallery/html_wrap/wrapper.header.default

    r833 r836  
    5454    break; 
    5555 
     56    case 'ExiteCMS': 
     57        /* 
     58         * ExiteCMS uses a templating system and also owns the HEAD tags. 
     59         * Everything needed for integration is loaded in init.php 
     60         */ 
     61 
     62    break; 
     63 
    5664    case 'phpBB2': 
    5765        /* 
     
    101109 
    102110includeTemplate('header.tpl'); 
    103 ?>  
     111?> 
  • modules/common/gallery/php-files/modules/gallery/index.php

    r833 r836  
    2424// Hack prevention. 
    2525 
    26 /*---------------------------------------------------+ 
    27 | PLi-Fusion Content Management System               | 
    28 +----------------------------------------------------+ 
    29 | Integrated by WanWizard (wanwizard@gmail.com)      | 
    30 | http://www.pli-images.org/pli-fusion               | 
    31 +----------------------------------------------------*/ 
    32 require_once dirname(__FILE__)."/../../includes/core_functions.php"; 
    33 require_once PATH_ROOT."/includes/theme_functions.php"; 
    34  
    3526global $GALLERY_EMBEDDED_INSIDE; 
    3627global $GALLERY_EMBEDDED_INSIDE_TYPE; 
     
    5546    $include = "albums.php"; 
    5647} 
    57  
    58 // start capturing Gallery output 
    59 ob_start(); 
    6048 
    6149/* 
     
    146134    include(dirname(__FILE__) . "/$include"); 
    147135} 
    148  
    149 // get the captured content 
    150 $content =  ob_get_contents(); 
    151  
    152 // make sure the content is not cached 
    153 // header("Cache-Control: no-cache"); 
    154  
    155 // clear the output buffer 
    156 ob_end_clean(); 
    157  
    158 /**  
    159  * Output the page. 
    160  */ 
    161 if (substr($_SERVER["QUERY_STRING"], -4) == ".xml") { 
    162  
    163     echo $content; 
    164  
    165 } else { 
    166  
    167     // create the panel 
    168     $variables['html'] = $content; 
    169     $template_panels[] = array('type' => 'body', 'title' => 'Gallery', 'name' => 'gallery', 'template' => '_custom_html.tpl'); 
    170     $template_variables['gallery'] = $variables; 
    171  
    172     // and call the template engine to generate the page 
    173     require_once PATH_THEME."/theme.php"; 
    174 } 
    175136?> 
  • modules/common/gallery/php-files/modules/gallery/init.php

    r833 r836  
    3131    } 
    3232} 
     33 
     34/*---------------------------------------------------+ 
     35| ExiteCMS Content Management System                 | 
     36+----------------------------------------------------+ 
     37| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     38| for support, please visit http://exitecms.exite.eu | 
     39+----------------------------------------------------*/ 
     40require_once dirname(__FILE__)."/../../includes/core_functions.php"; 
     41require_once PATH_ROOT."/includes/theme_functions.php"; 
     42 
     43// start capturing all output 
     44ob_start(); 
    3345 
    3446/* 
     
    193205} 
    194206 
    195 if (isset($GALLERY_EMBEDDED_INSIDE)) { 
    196     /* Okay, we are embedded */ 
    197     switch($GALLERY_EMBEDDED_INSIDE_TYPE) { 
    198         case 'ExiteCMS': 
    199             //print_r($GLOBALS['board_config']['version']); 
    200             include_once(dirname(__FILE__) . "/classes/Database.php"); 
    201             include_once(dirname(__FILE__) . "/classes/database/mysql/Database.php"); 
    202             include_once(dirname(__FILE__) . "/classes/ExiteCMS/UserDB.php"); 
    203             include_once(dirname(__FILE__) . "/classes/ExiteCMS/User.php"); 
    204  
    205             $dbhost = $GLOBALS['db_host']; 
    206             $dbuser = $GLOBALS['db_user']; 
    207             $dbpasswd = $GLOBALS['db_passwd']; 
    208             $dbname = $GLOBALS['db_name']; 
    209  
    210             $gallery->database{"phpbb"} = new MySQL_Database($dbhost, $dbuser, $dbpasswd, $dbname); 
    211  
    212             //      $gallery->database{"phpbb"}->setTablePrefix($GLOBALS['table_prefix']); 
    213             $gallery->database{"prefix"} = $GLOBALS['table_prefix']; 
    214             /* Load our user database (and user object) */ 
    215             $gallery->userDB = new phpbb_UserDB; 
    216             if (isset($GLOBALS['userdata']) && isset($GLOBALS['userdata']['username'])) { 
    217                 $gallery->session->username = $GLOBALS['userdata']['username']; 
    218                 $gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username); 
    219             } 
    220             elseif ($gallery->session->username) { 
    221                 $gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username); 
    222             } 
    223  
    224             break; 
    225     } 
    226 } 
    227 else { 
    228     /* Standalone */ 
    229     include_once(dirname(__FILE__) . "/classes/gallery/UserDB.php"); 
    230     include_once(dirname(__FILE__) . "/classes/gallery/User.php"); 
    231  
    232     /* Load our user database (and user object) */ 
    233     $gallery->userDB = new Gallery_UserDB; 
    234  
    235     /* Load their user object with their username as the key */ 
    236     if (isset($gallery->session->username) && !empty($gallery->session->username)) { 
    237         $gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username); 
    238     } 
     207// ExiteCMS embedding 
     208$GALLERY_EMBEDDED_INSIDE = 'ExiteCMS'; 
     209 
     210include_once(dirname(__FILE__) . "/classes/Database.php"); 
     211include_once(dirname(__FILE__) . "/classes/database/mysql/Database.php"); 
     212include_once(dirname(__FILE__) . "/classes/ExiteCMS/UserDB.php"); 
     213include_once(dirname(__FILE__) . "/classes/ExiteCMS/User.php"); 
     214 
     215$dbhost = $GLOBALS['user_db_host']; 
     216$dbuser = $GLOBALS['user_db_user']; 
     217$dbpasswd = $GLOBALS['user_db_pass']; 
     218$dbname = $GLOBALS['user_db_name']; 
     219 
     220$gallery->database{"ExiteCMS"} = new MySQL_Database($dbhost, $dbuser, $dbpasswd, $dbname); 
     221 
     222$gallery->database{"prefix"} = $GLOBALS['user_db_prefix']; 
     223/* Load our user database (and user object) */ 
     224$gallery->userDB = new ExiteCMS_UserDB; 
     225if (isset($GLOBALS['userdata']) && isset($GLOBALS['userdata']['user_name'])) { 
     226    $gallery->session->username = $GLOBALS['userdata']['user_name']; 
     227    $gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username); 
     228} elseif ($gallery->session->username) { 
     229    $gallery->user = $gallery->userDB->getUserByUsername($gallery->session->username); 
    239230} 
    240231 
  • modules/common/gallery/php-files/modules/gallery/layout/breadcrumb.inc

    r833 r836  
    3838            $name = $gallery->user->getUsername(); 
    3939        } 
    40         echo "\t". '<td class="bread" height="18" style="text-align:'. langLeft() .'; padding-left: 5px; padding-right: 5px;">'. _("Logged in as:") .' '. $name .'</td>'; 
     40//      echo "\t". '<td class="bread" height="18" style="text-align:'. langLeft() .'; padding-left: 5px; padding-right: 5px;">'. _("Logged in as:") .' '. $name .'</td>'; 
    4141    } 
    4242    ?> 
  • modules/common/gallery/php-files/modules/gallery/lib/messages.php

    r833 r836  
    7272 
    7373    if ($gallery->session->offline) { 
    74         return sprintf(gTranslate('common', "Generated by %s v%s"), $link, $version); 
     74        return sprintf(gTranslate('common', "Generated by %s"), $link); 
     75//        return sprintf(gTranslate('common', "Generated by %s v%s"), $link, $version); 
    7576    } else { 
    76         return sprintf(gTranslate('common', "Powered by %s v%s"), $link, $version); 
     77        return sprintf(gTranslate('common', "Powered by %s"), $link); 
     78//        return sprintf(gTranslate('common', "Powered by %s v%s"), $link, $version); 
    7779    } 
    7880} 
  • modules/common/gallery/php-files/modules/gallery/rss.php

    r833 r836  
    270270 
    271271$xml_header = 'xml version="1.0"'; 
    272 if ($gallery->locale == 0) { 
    273     $gallery->locale = 'ISO-8859-1'; 
    274 } 
    275  
    276 echo '<' . '?xml version="1.0" encoding="' . $gallery->locale . '"?' . '>'; 
     272 
     273echo '<' . '?xml version="1.0" encoding="' . $GLOBALS['locale']['charset'] . '"?' . '>'; 
    277274 
    278275?> 
  • modules/common/gallery/php-files/modules/gallery/view_album.php

    r833 r836  
    606606    } 
    607607 
    608     $va_poll_box3 = sprintf(gTranslate('core', "To vote for an image, click on %s."), $options); 
    609     $va_poll_box3 .= ' '; 
    610     $va_poll_box3 .= sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."), "<b>".gTranslate('core', "Vote")."</b>"); 
    611     $va_poll_box3 .= ' '; 
     608    $va_poll_box3 = ""; 
     609//  $va_poll_box3 = sprintf(gTranslate('core', "To vote for an image, click on %s."), $options); 
     610//  $va_poll_box3 .= ' '; 
     611//  $va_poll_box3 .= sprintf(gTranslate('core', "You MUST click on %s for your vote to be recorded."), "<b>".gTranslate('core', "Vote")."</b>"); 
     612//  $va_poll_box3 .= ' '; 
    612613    if ($gallery->album->getPollType() == 'rank') { 
    613614        $voteCount = $gallery->album->getPollScale(); 
     
    617618    } 
    618619    else { 
    619         $va_poll_box3 .= gTranslate('core', "You can change your votes later, if you wish."); 
     620//      $va_poll_box3 .= gTranslate('core', "You can change your votes later, if you wish."); 
    620621    } 
    621622 
     
    623624    echo $va_poll_box3; 
    624625    echo "\n</div>\n"; 
    625 ?> 
    626     <div align="center"> 
    627         <input type=submit name="Vote" value="<?php print gTranslate('core', "Vote") ?>"> 
    628     </div> 
    629  
    630 <?php 
    631626} 
    632627?> 
     
    809804            // Caption itself 
    810805            echo "\n<div align=\"center\" class=\"modcaption\">\n"; 
     806            $capt = ""; 
    811807            $id = $gallery->album->getPhotoId($i); 
    812808            if ($gallery->album->isHidden($i) && !$gallery->session->offline) { 
    813                 echo "(" . gTranslate('core', "hidden") .")<br>"; 
     809                $capt .= ($capt == "" ? "" : "* ") . gTranslate('core', "hidden"); 
    814810            } 
    815811            $photo = $gallery->album->getPhoto($i); 
    816812            if ($gallery->user->canWriteToAlbum($gallery->album) && 
    817813              $photo->isHighlight() && !$gallery->session->offline) { 
    818                 echo "(" . gTranslate('core', "highlight") .")<br>"; 
    819             } 
     814                $capt .= ($capt == "" ? "" : " * ") . gTranslate('core', "hightlight"); 
     815            } 
     816            echo $capt,"<br>"; 
    820817            if (isset($myAlbum)) { 
    821818                $myDescription = $myAlbum->fields['description']; 
  • modules/common/last_seen_users_panel/php-files/modules/last_seen_users_panel/last_seen_users_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("last_seen_users_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("last_seen_users_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617// number of users to show in the panel 
  • modules/common/last_seen_users_panel/php-files/modules/last_seen_users_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "last_seen_users_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "last_seen_users_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/latest_articles_panel/php-files/modules/latest_articles_panel/latest_articles_panel.php

    r796 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("lastest_articles_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("lastest_articles_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617// number of articles to show in the panel 
  • modules/common/latest_articles_panel/php-files/modules/latest_articles_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "latest_articles_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "latest_articles_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/latest_news_panel/php-files/modules/latest_news_panel/latest_news_panel.php

    r796 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("lastest_news_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("lastest_news_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617// number of articles to show in the panel 
  • modules/common/latest_news_panel/php-files/modules/latest_news_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "latest_news_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "latest_news_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/login_panel/php-files/modules/login_panel/login_panel.php

    r764 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
    99| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
    1011| Released under the terms & conditions of v2 of the | 
    1112| GNU General Public License. For details refer to   | 
    1213| the included gpl.txt file or visit http://gnu.org  | 
    1314+----------------------------------------------------*/ 
    14 if (eregi("login_panel.php", $_SERVER['PHP_SELF']) || !defined('IN_FUSION')) die(); 
     15if (eregi("login_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 
    1516 
    1617// array's to store the variables for this panel 
  • modules/common/login_panel/php-files/modules/login_panel/module_installer.php

    r764 r836  
    2828$mod_developer = "WanWizard"; 
    2929$mod_email = "wanwizard@gmail.com"; 
    30 $mod_weburl = "http://www.pli-images.org/pli-fusion/"; 
     30$mod_weburl = "http://exitecms.exite.eu/"; 
    3131$mod_type = "P"; 
     32 
     33/*---------------------------------------------------+ 
     34| Module administration panel installation details   | 
     35+----------------------------------------------------*/ 
     36 
     37$mod_folder = "login_panel"; 
     38// no administration module for this plugin 
    3239 
    3340/*---------------------------------------------------+ 
     
    3542+----------------------------------------------------*/ 
    3643 
    37 // check for a minumum version of the PLi-Fusion engine 
     44// check for a minumum version of the ExiteCMS engine 
    3845if (str_replace(".", "", $settings['version']) < 700) { 
    3946    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    4047} 
    41 // check for a maximum version of the PLi-Fusion engine 
     48// check for a maximum version of the ExiteCMS engine 
    4249if (str_replace(".", "", $settings['version']) > 700) { 
    4350    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     
    4754    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    4855} 
    49  
    50 /*---------------------------------------------------+ 
    51 | Module administration panel installation details   | 
    52 +----------------------------------------------------*/ 
    53  
    54 $mod_folder = "login_panel"; 
    55 // no administration module for this plugin 
    5656 
    5757/*---------------------------------------------------+ 
  • modules/common/mail2forum/php-files/modules/mail2forum/locale/English.php

    r784 r836  
    7676$locale['m2f804'] = "M2F_INTERVAL to short to process all email. Choose a larger interval. If this error persists, please contact M2F"; 
    7777$locale['m2f805'] = "Cancelled by the system administrator"; 
    78 $locale['m2f811'] = "Sent using PLi-Fusion Mail2Forum: http://www.pli-images.org/pli-fusion"; 
    79 $locale['m2f812'] = "<a href='http://www.pli-images.org/pli-fusion'>Sent using PLi-Fusion Mail2Forum</a>"; 
     78$locale['m2f811'] = "Sent using ExiteCMS Mail2Forum: http://exitecms.exite.eu"; 
     79$locale['m2f812'] = "<a href='http://exitecms.exite.eu'>Sent using ExiteCMS</a>"; 
    8080$locale['m2f813'] = "Click here to go to this forum post"; 
    8181$locale['m2f814'] = "* *  * note: this is an edit of a previous post * * *"; 
     
    129129$locale['m2f951'] = "Subscriptions succesfully updated"; 
    130130// Subscription intro message 
    131 $locale['m2f990'] = "Mail-to-Forum is a PLi-Fusion installable module which binds the content of a forum with that of a mailing list.\n<ul> 
     131$locale['m2f990'] = "Mail-to-Forum is a ExiteCMS installable module which binds the content of a forum with that of a mailing list.\n<ul> 
    132132    <li>Any posts made in a designated forum will be automatically emailed to every member of the corresponding mailing list.\n 
    133133    <li>Any mail sent to the mailing list will be automatically added as posts to this forum.\n 
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_admin_panel.php

    r767 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_config.php

    r776 r836  
    2525// message for every attachment found, with one of the attachments linked to every message. 
    2626// 
    27 // The PLi-Fusion engine (which is a highly enhanced version of PHP-Fusion) supports multiple attachments per post. 
    28 // If you are interested in the PLi-Fusion version of the forum code, drop us a line... 
     27// The ExiteCMS engine supports multiple attachments per post. 
    2928// 
    3029// default: 1 
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_pop3.php

    r776 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion 7 Content Management System Infusion 
     3| ExiteCMS Content Management System                 | 
     4+----------------------------------------------------+ 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
     7+----------------------------------------------------+ 
     8| Some portions copyright 2002 - 2006 Nick Jones     | 
     9| http://www.php-fusion.co.uk/                       | 
     10+----------------------------------------------------+ 
     11| Released under the terms & conditions of v2 of the | 
     12| GNU General Public License. For details refer to   | 
     13| the included gpl.txt file or visit http://gnu.org  | 
    414+----------------------------------------------------+ 
    515| Mail2Forum - CLI POP3 processor 
    616| uses the POP3 and MIME classes from the PEAR library 
    7 +----------------------------------------------------+ 
    8 | Copyright © 2006-2007 WanWizard 
    9 | http://www.pli-images.org/PLi-Fusion/ 
    10 +----------------------------------------------------+ 
    11 | Released under the terms & conditions of v2 of the 
    12 | GNU General Public License. For details refer to 
    13 | the included gpl.txt file or visit http://gnu.org 
    1417+----------------------------------------------------*/ 
    1518if (isset($_SERVER['SERVER_SOFTWARE'])) { 
     
    3235while(!file_exists($webroot."includes/core_functions.php")) {  
    3336    $webroot .= '../';  
    34     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion document root!');  
     37    if (strlen($webroot)>100) die('Unable to find the ExiteCMS document root!');  
    3538} 
    3639require_once $webroot."includes/core_functions.php"; 
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php

    r776 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion 7 Content Management System Infusion 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Mail2Forum - CLI POP3 processor 
    6 | uses the POP3 and MIME classes from the PEAR library 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Copyright © 2006-2007 WanWizard 
    9 | http://www.pli-images.org/PLi-Fusion/ 
    10 +----------------------------------------------------+ 
    11 | Released under the terms & conditions of v2 of the 
    12 | GNU General Public License. For details refer to 
    13 | the included gpl.txt file or visit http://gnu.org 
     8| Released under the terms & conditions of v2 of the | 
     9| GNU General Public License. For details refer to   | 
     10| the included gpl.txt file or visit http://gnu.org  | 
    1411+----------------------------------------------------*/ 
    1512if (isset($_SERVER['SERVER_SOFTWARE'])) { 
     
    2724while(!file_exists($webroot."includes/core_functions.php")) {  
    2825    $webroot .= '../';  
    29     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion document root!');  
     26    if (strlen($webroot)>100) die('Unable to find the ExiteCMS document root!');  
    3027} 
    3128require_once $webroot."includes/core_functions.php"; 
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_subscriptions.php

    r767 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
  • modules/common/mail2forum/php-files/modules/mail2forum/module_installer.php

    r815 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
     
    3129$mod_version = $locale['m2fver'];                       // module version number 
    3230$mod_developer = "WanWizard";                           // author's name 
    33 $mod_email = "wanwizard@gmail.com";                     // author's email address 
    34 $mod_weburl = "http://www.pli-images.org/pli-fusion/";  // author's website 
     31$mod_email = "wanwizard@gmail.com"; 
     32$mod_weburl = "http://exitecms.exite.eu/"; 
    3533$mod_type = "M"; 
    36  
    37 /*---------------------------------------------------+ 
    38 | Version and revision control                       | 
    39 +----------------------------------------------------*/ 
    40  
    41 // check for a minumum version of the PLi-Fusion engine 
    42 if (str_replace(".", "", $settings['version']) < 700) { 
    43     $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    44 } 
    45 // check for a maximum version of the PLi-Fusion engine 
    46 if (str_replace(".", "", $settings['version']) > 700) { 
    47     $mod_errors .= sprintf($locale['mod002'], '7.00'); 
    48 } 
    49 // check for a specific revision number range that is supported 
    50 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
    51     $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    52 } 
    5334 
    5435/*---------------------------------------------------+ 
     
    6142$mod_admin_rights = "wA";                               // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 
    6243$mod_admin_page = 4;                                    // admin page this panel has to be placed on 
     44 
     45/*---------------------------------------------------+ 
     46| Version and revision control                       | 
     47+----------------------------------------------------*/ 
     48 
     49// check for a minumum version of the ExiteCMS engine 
     50if (str_replace(".", "", $settings['version']) < 700) { 
     51    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
     52} 
     53// check for a maximum version of the ExiteCMS engine 
     54if (str_replace(".", "", $settings['version']) > 700) { 
     55    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     56} 
     57// check for a specific revision number range that is supported 
     58if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
     59    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
     60} 
    6361 
    6462/*---------------------------------------------------+ 
  • modules/common/newsletters/php-files/modules/newsletters/module_installer.php

    r815 r836  
    3232$mod_folder = "newsletters";                            // sub-folder of the /modules folder 
    3333$mod_developer = "WanWizard";                           // author's name 
    34 $mod_email = "wanwizard@gmail.com";                     // author's email address 
    35 $mod_weburl = "http://www.pli-images.org/pli-fusion/";  // author's website 
     34$mod_email = "wanwizard@gmail.com"; 
     35$mod_weburl = "http://exitecms.exite.eu/"; 
    3636$mod_type = "M"; 
    37  
    38 /*---------------------------------------------------+ 
    39 | Version and revision control                       | 
    40 +----------------------------------------------------*/ 
    41  
    42 // check for a minumum version of the PLi-Fusion engine 
    43 if (str_replace(".", "", $settings['version']) < 700) { 
    44     $mod_errors .= sprintf($locale['mod001'], '7.00'); 
    45 } 
    46 // check for a maximum version of the PLi-Fusion engine 
    47 if (str_replace(".", "", $settings['version']) > 700) { 
    48     $mod_errors .= sprintf($locale['mod002'], '7.00'); 
    49 } 
    50 // check for a specific revision number range that is supported 
    51 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
    52     $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
    53 } 
    5437 
    5538/*---------------------------------------------------+ 
     
    6144$mod_admin_rights = "wC";                               // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 
    6245$mod_admin_page = 1;                                    // admin page this panel has to be placed on 
     46 
     47/*---------------------------------------------------+ 
     48| Version and revision control                       | 
     49+----------------------------------------------------*/ 
     50 
     51// check for a minumum version of the ExiteCMS engine 
     52if (str_replace(".", "", $settings['version']) < 700) { 
     53    $mod_errors .= sprintf($locale['mod001'], '7.00'); 
     54} 
     55// check for a maximum version of the ExiteCMS engine 
     56if (str_replace(".", "", $settings['version']) > 700) { 
     57    $mod_errors .= sprintf($locale['mod002'], '7.00'); 
     58} 
     59// check for a specific revision number range that is supported 
     60if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 
     61    $mod_errors .= sprintf($locale['mod003'], 0, 999999); 
     62} 
    6363 
    6464/*---------------------------------------------------+ 
  • modules/common/newsletters/php-files/modules/newsletters/newsletters.php

    r798 r836  
    11<?php 
    22/*---------------------------------------------------+ 
    3 | PLi-Fusion Content Management System               | 
     3| ExiteCMS Content Management System                 | 
    44+----------------------------------------------------+ 
    5 | Copyright 2007 WanWizard (wanwizard@gmail.com)     | 
    6 | http://www.pli-images.org/pli-fusion              | 
     5| Copyright 2007 Harro "WanWizard" Verton, Exite BV  | 
     6| for support, please visit http://exitecms.exite.eu | 
    77+----------------------------------------------------+ 
    8 | Some portions copyright ? 2002 - 2006 Nick Jones   | 
    9 | http://www.php-fusion.co.uk/                       | 
    108| Released under the terms & conditions of v2 of the | 
    119| GNU General Public License. For details refer to   | 
     
    232230                $mail->FromName = $settings['siteusername']; 
    233231                $mail->AddAddress($data2['user_email'], ($data2['user_fullname']=="" ? $data2['user_name'] : $data2['user_fullname'])); 
    234                 $mail->AddCustomHeader("X-version: PLi-Fusion Newsletters v".$locale['nlver']); 
     232                $mail->AddCustomHeader("X-version: ExiteCMS Newsletters v".$locale['nlver']); 
    235233                 
    236234                switch ($data2['user_newsletters']) { 
     
    414412require_once PATH_THEME."/theme.php"; 
    415413?> 
    416 <?php 
    417 die(); 
    418 /*---------------------------------------------------+ 
    419 | PLi-Fusion 7 Content Management System Infusion 
    420 +----------------------------------------------------+ 
    421 | Mail2Forum - CLI POP3 processor 
    422 | uses the POP3 and MIME classes from the PEAR library 
    423 +----------------------------------------------------+ 
    424 | Copyright © 2006-2007 WanWizard 
    425 | http://www.pli-images.org/PLi-Fusion/ 
    426 +----------------------------------------------------+ 
    427 | Released under the terms & conditions of v2 of the 
    428 | GNU General Public License. For details refer to 
    429 | the included gpl.txt file or visit http://gnu.org 
    430 +----------------------------------------------------*/ 
    431 if (isset($_SERVER['SERVER_SOFTWARE'])) { 
    432     die("This is a batch program that needs to run from cron!"); 
    433 } 
    434  
    435 /*---------------------------------------------------+ 
    436 | Read the user configuration 
    437 +----------------------------------------------------*/ 
    438  
    439 require "m2f_config.php"; 
    440  
    441 // find the webroot, so we can load the core functions 
    442 $webroot = ""; 
    443 while(!file_exists($webroot."includes/core_functions.php")) {  
    444     $webroot .= '../';  
    445     if (strlen($webroot)>100) die('Unable to find the PLi-Fusion document root!');  
    446 } 
    447 require_once $webroot."includes/core_functions.php"; 
    448  
    449 if (file_exists(PATH_MODULES."mail2forum/locale/".$settings['locale'].".php")) { 
    450     include PATH_MODULES."mail2forum/locale/".$settings['locale'].".php"; 
    451 } else { 
    452     include PATH_MODULES."mail2forum/locale/English.php"; 
    453 } 
    454  
    455 /*---------------------------------------------------+ 
    456 | local variables 
    457 +----------------------------------------------------*/ 
    458  
    459 $imagetypes = array(".bmp",".gif",".jpg",".jpeg",".png",".psd",".tiff",".wbmp"); 
    460 $contenttypes = array("image/bmp", "image/gif", "image/jpeg", "image/jpeg", "image/png", "image/x-photoshop", "image/tiff", "image/vnd.wap.wbmp"); 
    461 $processor = strtoupper(basename($argv[0],'.php')); 
    462  
    463 /*---------------------------------------------------+ 
    464 | local functions 
    465 +----------------------------------------------------*/ 
    466  
    467 // write an entry to the process log, and optionally abort the program 
    468 function logentry($task="", $message="", $abort=false, $exitcode=0) { 
    469  
    470     global $processor; 
    471      
    472     $handle = fopen(M2F_LOGFILE.'/M2F_process.log', 'a'); 
    473     fwrite($handle, date("Ymd").";".date("His").";".$processor.";".$task.";".$message.chr(10)); 
    474     fclose($handle); 
    475      
    476     if ($abort) die($exitcode); 
    477 } 
    478  
    479 // debug function - write an entry to the debug log 
    480 function logdebug($task="", $message="") { 
    481  
    482     global $processor; 
    483      
    484     $handle = fopen(M2F_LOGFILE.'/'.$processor.'.debug.log', 'a'); 
    485     fwrite($handle, date("Ymd").";".date("His").";".$task.";".$message.chr(10)); 
    486     fclose($handle); 
    487 } 
    488  
    489 /*---------------------------------------------------+ 
    490 | initialisation code 
    491 +----------------------------------------------------*/ 
    492  
    493 ini_set('memory_limit', '32M'); 
    494 ini_set('max_execution_time', '0'); 
    495  
    496 // log the start 
    497 if (M2F_PROCESS_LOG) logentry('INIT', 'Program start'); 
    498  
    499 // get the last modified timestamp of this module 
    500 $module_lastmod = filemtime('m2f_smtp.php'); 
    501  
    502 // get the last modified timestamp of the config file 
    503 $config_lastmod = filemtime('m2f_config.php'); 
    504  
    505 // check if the Mail2Forum Infusion is installed 
    506 $result = dbquery("SELECT * FROM ".$db_prefix."infusions WHERE inf_title = '".$locale['m2f100']."'"); 
    507 if (dbrows($result) == 0) { 
    508     if (M2F_PROCESS_LOG) logentry('INIT', $locale['m2f999'].' '.$locale['m2f110'], true, 1); 
    509     die('Mail2Forum is not infused'); 
    510 } 
    511  
    512 // initialize PHP-Mailer 
    513 require_once PATH_INCLUDES."phpmailer_include.php"; 
    514 $mail = new PHPMailer(); 
    515 mailer_init(); 
    516  
    517 // get the last polled time from the database 
    518 $result = dbquery("SELECT * FROM ".$db_prefix."M2F_status"); 
    519 if (dbrows($result) == 0) { 
    520     // the first time we start. Forget all old posts for now 
    521     $lastpoll = time(); 
    522     $result = dbquery("INSERT INTO ".$db_prefix."M2F_status (m2f_lastpoll) VALUES ('".$lastpoll."')"); 
    523     if (M2F_PROCESS_LOG) logentry("INIT", sprintf($locale['m2f800'], $processor)); 
    524 } else { 
    525     if ($data = dbarray($result)) { 
    526         if ($data['m2f_lastpoll'] == 0) { 
    527             // 0 is used as an invalid polltime. This can be reset via the admin module 
    528             die($processor.': LastPoll time is invalid. Use the admin module to correct this'); 
    529         } 
    530         if ((time() - $data['m2f_lastpoll']) > M2F_POLL_THRESHOLD) { 
    531             $result = dbquery("UPDATE ".$db_prefix."M2F_status SET m2f_lastpoll = 0"); 
    532             if (M2F_PROCESS_LOG) logentry('INIT', $locale['m2f999'].' '.$locale['m2f801'], true, 1); 
    533             die($processor.': More than a week has passed since the last run! Use the admin module to correct this'); 
    534         } 
    535         $lastpoll = $data['m2f_lastpoll']+1; 
    536     } else { 
    537         if (M2F_PROCESS_LOG) logentry('INIT', $locale['m2f999'].' '.$locale['m2f802'], true, 1); 
    538         die('This should never happen'); 
    539     } 
    540 } 
    541  
    542 // strip bbcode so a message stays readable in plain text 
    543 function stripubb($text) { 
    544     global $locale; 
    545      
    546     $text = preg_replace('#\[li\](.*?)\[/li\]#si', '* \1', $text); 
    547     $text = preg_replace('#\[ul\](.*?)\[/ul\]#si', '\1', $text); 
    548  
    549     $text = preg_replace('#\[b\](.*?)\[/b\]#si', '\1', $text); 
    550     $text = preg_replace('#\[i\](.*?)\[/i\]#si', '\1', $text); 
    551     $text = preg_replace('#\[u\](.*?)\[/u\]#si', '\1', $text); 
    552     $text = preg_replace('#\[center\](.*?)\[/center\]#si', '\1', $text); 
    553      
    554     $text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', '\2\3', $text); 
    555     $text = preg_replace('#\[url\]([\r\n]*)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', 'http://\2', $text); 
    556     $text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '\2\3', $text); 
    557     $text = preg_replace('#\[url=([\r\n]*)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', 'http://\2', $text); 
    558      
    559     $text = preg_replace('#\[mail\]([\r\n]*)([^\s\'\";:\+]*?)([\r\n]*)\[/mail\]#si', 'mailto:\2', $text); 
    560     $text = preg_replace('#\[mail=([\r\n]*)([^\s\'\";:\+]*?)\](.*?)([\r\n]*)\[/mail\]#si', 'mailto:\2', $text); 
    561      
    562     $text = preg_replace('#\[small\](.*?)\[/small\]#si', '\1', $text); 
    563     $text = preg_replace('#\[color=(black|blue|brown|cyan|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|violet|white|yellow)\](.*?)\[/color\]#si', '\2', $text); 
    564      
    565     $text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";:\+]*?)(\.swf)\[/flash\]#si', '\3\4', $text); 
    566     $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'\\1'.str_replace(array('.php','?','&','='),'','\\3').'\\4'",$text); 
    567  
    568     $text = descript($text,false); 
    569  
    570     return $text; 
    571 } 
    572  
    573 // preserve the exact content of [code] blocks 
    574 function quotecode($text) { 
    575     global $locale; 
    576      
    577     $text = preg_replace(':&#([0-9]*);:sie', 'chr(\1)', $text); 
    578         $replace = array("\"", "<", ">", " ", "&"); 
    579         $search = array("&quot;", "&lt;", "&gt;", "&nbsp;", "&amp;"); 
    580         $text = str_replace($search, $replace, $text); 
    581  
    582     $lines = preg_split("#\n|(\[quote[^\]]*\]|\[/quote\]|\[code\]|\[/code\])#si", $text, -1, PREG_SPLIT_DELIM_CAPTURE); 
    583     $quotelevel = 0; 
    584     $literal = 0; 
    585     $boundary = 0; 
    586     $new = ""; 
    587     $indent = ""; 
    588     $emptylines = ""; 
    589     foreach ($lines as $line) { 
    590         if ($boundary == 1) { // skip empty lines at the start of a quote or code block 
    591             if (strlen(trim($line)) == 0) 
    592                 continue; 
    593             $boundary = 0; 
    594         } 
    595  
    596         if (strlen(trim($line)) == 0) { // collect empty lines so we can skip them if we hit  
    597                         // a new block before a non-empty line 
    598             $emptylines .= "$indent\n"; 
    599         } 
    600         elseif ($line == "[/code]") 
    601         { 
    602             $emptylines = ""; 
    603             $boundary = 1; 
    604             $literal = 0; 
    605             $new .= "$indent" . "[/code]\n$indent\n"; // one 'empty' line after code block 
    606         } 
    607         elseif ($literal == 1) { 
    608             $new .= "$emptylines$indent    $line\n"; 
    609             $emptylines = ""; 
    610         } 
    611         elseif ($line == "[code]") { 
    612             $emptylines = ""; 
    613             $boundary = 1; 
    614             $literal = 1; 
    615             $new .= "$indent\n$indent" . "[code]\n"; // one 'empty' line before a code block 
    616         } 
    617         elseif ($line == "[quote]") { 
    618             $emptylines = ""; 
    619             $new .= "$indent\n"; // one 'empty' line before a new quote 
    620             $boundary = 1; 
    621             $quotelevel++; 
    622             $indent .= "> "; 
    623         } 
    624         elseif (preg_match("#\[quote=([^\]]*)\]#i", $line, $matches)) { 
    625             $emptylines = ""; 
    626             $boundary = 1; 
    627             $quotelevel++; 
    628             $poster = $matches[1]; 
    629             $poster = trim($poster, '"'); 
    630             $new .= "$indent\n$indent" . $poster . " ".$locale['m2f815'].":\n"; // one 'empty' line before a new quote 
    631             $indent .= "> "; 
    632         } 
    633         elseif ($line == "[/quote]") { 
    634             $emptylines = ""; 
    635             $boundary = 1; 
    636             if ($quotelevel > 0) { 
    637                 $quotelevel--; 
    638                 $indent = substr($indent, 0, $quotelevel*2); 
    639             } 
    640             $new .= "$indent\n"; // one 'empty' line after a quote 
    641         } 
    642         else { 
    643             $new .= "$emptylines$indent" . stripubb($line) . "\n"; 
    644             $emptylines = ""; 
    645         } 
    646     } 
    647     //$text = descript($text,false); 
    648  
    649     return $new; 
    650 } 
    651  
    652 /*---------------------------------------------------+ 
    653 | main loop 
    654 +----------------------------------------------------*/ 
    655  
    656 while (true) { 
    657  
    658     // time of this poll. 
    659     $polltime = time(); 
    660      
    661     // Insert a marker in the log every hour to show we're still alive 
    662     if (isset($marker) && $marker <> date("H")) 
    663         if (M2F_PROCESS_LOG) logentry("MARKER", "---"); 
    664     $marker = date("H"); 
    665  
    666     // check for messages posted since the last poll 
    667     $result = dbquery("SELECT * FROM ".$db_prefix."posts WHERE (post_datestamp BETWEEN '".$lastpoll."' AND '".$polltime."') OR (post_edittime BETWEEN '".$lastpoll."' AND '".$polltime."')"); 
    668     if (dbrows($result) != 0) { 
    669  
    670         // get all posts in the selected interval 
    671         while($postrecord = dbarray($result)) { 
    672             if (M2F_SMTP_DEBUG) logdebug('POSTRECORD', print_r($postrecord, true)); 
    673  
    674             $new_post = ($postrecord['post_datestamp'] >= $lastpoll && $postrecord['post_datestamp'] <= $polltime); 
    675             $edit_post = ($postrecord['post_edittime'] >= $lastpoll && $postrecord['post_edittime'] <= $polltime); 
    676  
    677             if (M2F_SMTP_DEBUG) logdebug('POST_STATE', ($new_post?"ADD":"").($new_post&&$edit_post?"-":"").($edit_post?"EDIT":"")); 
    678  
    679             // if a new post was edited within one poll cycle, don't mark it as edited 
    680             if ($new_post) $edit_post = false; 
    681              
    682             // get the forum mailing list info 
    683             $result2 = dbquery("SELECT m.m2f_email, f.forum_name FROM ".$db_prefix."M2F_forums m, ".$db_prefix."forums f WHERE m.m2f_active = '1' AND m.m2f_forumid = '".$postrecord['forum_id']."' AND m.m2f_forumid = f.forum_id"); 
    684             if (!$result2) { 
    685                 if (M2F_PROCESS_LOG) logentry('ERROR', $locale['m2f999'].' '.$locale['m2f803'].$postrecord['forum_id'], true, 1); 
    686                 die($locale['m2f803']); 
    687             } else { 
    688                 // get sender information            
    689                 $sender = dbarray($result2); 
    690                 if (M2F_SMTP_DEBUG) logdebug('SENDER', print_r($sender, true)); 
    691                  
    692                 // get all subscribed users for this forum 
    693                 $result2 = dbquery("SELECT u.*, c.* FROM ".$db_prefix."users u, ".$db_prefix."M2F_subscriptions s, ".$db_prefix."M2F_config c  
    694                     WHERE s.m2f_forumid = '".$postrecord['forum_id']."' AND s.m2f_subscribed = '1' AND u.user_id = s.m2f_userid AND u.user_id = c.m2f_userid"); 
    695                 while ($recipient = dbarray($result2)) { 
    696                     if (M2F_SMTP_DEBUG) logdebug('RECIPIENT', print_r($recipient, true)); 
    697                      
    698                     // get the senders profile (need the email address and the email-hidden flag) 
    699                     if ($edit_post) { 
    700                         // check of automatic or system posts 
    701                         if ($postrecord['post_edituser'] != 0) { 
    702                             $poster = dbarray(dbquery("SELECT user_name, user_fullname, user_email, user_hide_email FROM ".$db_prefix."users WHERE user_id = '".$postrecord['post_edituser']."'")); 
    703                         } else { 
    704                             $poster = array('user_name' => $locale['sysusr'], 'user_fullname'  => $locale['sysusr'], 'user_email' => "", 'user_hide_email' => true); 
    705                         } 
    706                     } else { 
    707                         // check of automatic or system posts 
    708                         if ($postrecord['post_author'] != 0) { 
    709                             $poster = dbarray(dbquery("SELECT user_name, user_fullname, user_email, user_hide_email FROM ".$db_prefix."users WHERE user_id = '".$postrecord['post_author']."'")); 
    710                         } else { 
    711                             $poster = array('user_name' => $locale['sysusr'], 'user_fullname'  => $locale['sysusr'], 'user_email' => "", 'user_hide_email' => true); 
    712                         } 
    713                     } 
    714                     if (M2F_SMTP_DEBUG) logdebug('POSTER', print_r($poster, true)); 
    715                      
    716                     // check if the poster wants his email address hidden. If so, use the forum address as sender 
    717                     if (M2F_USE_FORUM_EMAIL || $poster['user_hide_email']) 
    718                         $poster['user_email'] = $sender['m2f_email']; 
    719  
    720                     // basics, as from who, to whom, and use the site email as sender                    
    721                     $mail->Sender = $settings['siteemail']; 
    722                     $mail->From = $poster['user_email']; 
    723                     $mail->FromName = $poster['user_name']; 
    724                     $mail->AddAddress($recipient['user_email'], $recipient['user_fullname']); 
    725                     $mail->AddReplyTo($sender['m2f_email'], $sender['forum_name']); 
    726  
    727                     // identify this email as one from us 
    728                     $mail->AddCustomHeader("X-M2F-version: PHP-Fusion Mail2Forum v".$locale['m2fver']); 
    729                     $mail->AddCustomHeader("X-M2F-host: ".utf8_decode($settings['sitename'])); 
    730                     $mail->AddCustomHeader("X-M2F-forum: ".$sender['forum_name']); 
    731  
    732                     // set the message format, and convert the message text if needed 
    733                     $HTMLbody = $edit_post?("<b>".$locale['m2f814']."</b><br /><br />"):""; 
    734                     $HTMLbody = $postrecord['post_message']; 
    735 //                  if ($postrecord['post_showsig']) { $HTMLbody = $HTMLbody."\n\n<hr>".$postrecord['user_sig']; } 
    736                     if ($postrecord['post_smileys']) { $HTMLbody = parsesmileys($HTMLbody); } 
    737                     $HTMLbody = parseubb($HTMLbody); 
    738                     $HTMLbody = nl2br($HTMLbody); 
    739  
    740                     $TEXTbody = $edit_post?($locale['m2f814']."\r\n\r\n"):""; 
    741                     $TEXTbody .= html_entity_decode($postrecord['post_message'], ENT_QUOTES); 
    742                     //$TEXTbody = stripubb($TEXTbody); 
    743                     $TEXTbody = quotecode($TEXTbody); 
    744  
    745                     // check for attachments. If found, process them according to the users config 
    746                     if ($recipient['m2f_attach'] > 0) { 
    747                         $res_att = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id = '".$postrecord['post_id']."'"); 
    748                         if (dbrows($res_att) != 0) { 
    749                             // although PHP-Fusion does not support multiple attachments, we do... ;-) 
    750                             while ($attachment = dbarray($res_att)) { 
    751                                 if (M2F_SMTP_DEBUG) logdebug('ATTACHMENT', print_r($attachment, true)); 
    752                                 if (USE_PLI_ENHANCEMENTS) { 
    753                                     $attachURL = $settings['siteurl']."forum/viewthread.php?forum_id=".$postrecord['forum_id']."&thread_id=".$postrecord['thread_id']."&getfile=".$attachment['attach_id']."&user_name=".$recipient['user_name']."&user_pass="; 
    754                                     $attachURL = str_replace(" ", "%20", $attachURL); 
    755                                 } else { 
    756                                     $attachURL = $settings['siteurl']."forum/attachments/".$attachment['attach_name']; 
    757