Changeset 836 in ExiteCMS
- Timestamp:
- 09/23/07 23:49:33 (4 years ago)
- Location:
- modules/common
- Files:
-
- 11 added
- 3 deleted
- 68 edited
-
ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php (modified) (1 diff)
-
ad_side_panel/php-files/modules/ad_side_panel/module_installer.php (modified) (4 diffs)
-
birthday_panel/php-files/modules/birthday_panel/birthday_panel.php (modified) (1 diff)
-
birthday_panel/php-files/modules/birthday_panel/module_installer.php (modified) (3 diffs)
-
donations/php-files/modules/donations/admin_panel.php (modified) (1 diff)
-
donations/php-files/modules/donations/donors.php (modified) (1 diff)
-
donations/php-files/modules/donations/index.php (modified) (1 diff)
-
donations/php-files/modules/donations/module_installer.php (modified) (2 diffs)
-
donations/php-files/modules/donations/notify.php (modified) (1 diff)
-
donations/php-files/modules/donations/thanks.php (modified) (1 diff)
-
download_bars_panel/php-files/modules/download_bars_panel/download_bars_panel.php (modified) (1 diff)
-
download_statistics_panel/php-files/modules/download_statistics_panel/dls_add_geoip.php (modified) (3 diffs)
-
download_statistics_panel/php-files/modules/download_statistics_panel/dls_add_img.php (modified) (2 diffs)
-
download_statistics_panel/php-files/modules/download_statistics_panel/dls_geoip.php (modified) (2 diffs)
-
download_statistics_panel/php-files/modules/download_statistics_panel/dls_process.php (modified) (2 diffs)
-
download_statistics_panel/php-files/modules/download_statistics_panel/download_statistics_panel.php (modified) (1 diff)
-
download_statistics_panel/php-files/modules/download_statistics_panel/geomapping.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/forum_threads_list_panel.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/module_installer.php (modified) (2 diffs)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/my_posts.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/my_threads.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/new_posts.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/new_posts_detail.php (modified) (1 diff)
-
forum_threads_list_panel/php-files/modules/forum_threads_list_panel/templates/modules.forum_threads_list_panel.tpl (modified) (3 diffs)
-
forum_threads_panel/php-files/modules/forum_threads_panel/forum_threads_panel.php (modified) (1 diff)
-
forum_threads_panel/php-files/modules/forum_threads_panel/module_installer.php (modified) (3 diffs)
-
gallery/php-files/modules/gallery/albums.php (modified) (3 diffs)
-
gallery/php-files/modules/gallery/classes/ExiteCMS/User.php (modified) (1 diff)
-
gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php (modified) (4 diffs)
-
gallery/php-files/modules/gallery/classes/HTML (added)
-
gallery/php-files/modules/gallery/classes/HTML/table.php (added)
-
gallery/php-files/modules/gallery/classes/HTML_Safe (added)
-
gallery/php-files/modules/gallery/classes/HTML_Safe/Safe.php (added)
-
gallery/php-files/modules/gallery/classes/Mail (added)
-
gallery/php-files/modules/gallery/classes/Mail/RFC822.php (added)
-
gallery/php-files/modules/gallery/classes/Mail/htmlMimeMail.php (added)
-
gallery/php-files/modules/gallery/classes/Mail/mimePart.php (added)
-
gallery/php-files/modules/gallery/classes/Mail/smtp.php (added)
-
gallery/php-files/modules/gallery/config.php (added)
-
gallery/php-files/modules/gallery/configure.sh (deleted)
-
gallery/php-files/modules/gallery/css/base.css (added)
-
gallery/php-files/modules/gallery/html_wrap/album.footer.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/html_wrap/gallery.footer.default (modified) (1 diff)
-
gallery/php-files/modules/gallery/html_wrap/general.footer.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/html_wrap/photo.footer.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/html_wrap/slideshow.footer.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/html_wrap/wrapper.footer.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/html_wrap/wrapper.header.default (modified) (2 diffs)
-
gallery/php-files/modules/gallery/index.php (modified) (3 diffs)
-
gallery/php-files/modules/gallery/init.php (modified) (2 diffs)
-
gallery/php-files/modules/gallery/layout/breadcrumb.inc (modified) (1 diff)
-
gallery/php-files/modules/gallery/lib/messages.php (modified) (1 diff)
-
gallery/php-files/modules/gallery/rss.php (modified) (1 diff)
-
gallery/php-files/modules/gallery/secure.sh (deleted)
-
gallery/php-files/modules/gallery/setup/.htaccess (deleted)
-
gallery/php-files/modules/gallery/view_album.php (modified) (4 diffs)
-
last_seen_users_panel/php-files/modules/last_seen_users_panel/last_seen_users_panel.php (modified) (1 diff)
-
last_seen_users_panel/php-files/modules/last_seen_users_panel/module_installer.php (modified) (3 diffs)
-
latest_articles_panel/php-files/modules/latest_articles_panel/latest_articles_panel.php (modified) (1 diff)
-
latest_articles_panel/php-files/modules/latest_articles_panel/module_installer.php (modified) (3 diffs)
-
latest_news_panel/php-files/modules/latest_news_panel/latest_news_panel.php (modified) (1 diff)
-
latest_news_panel/php-files/modules/latest_news_panel/module_installer.php (modified) (3 diffs)
-
login_panel/php-files/modules/login_panel/login_panel.php (modified) (1 diff)
-
login_panel/php-files/modules/login_panel/module_installer.php (modified) (3 diffs)
-
mail2forum/php-files/modules/mail2forum/locale/English.php (modified) (2 diffs)
-
mail2forum/php-files/modules/mail2forum/m2f_admin_panel.php (modified) (1 diff)
-
mail2forum/php-files/modules/mail2forum/m2f_config.php (modified) (1 diff)
-
mail2forum/php-files/modules/mail2forum/m2f_pop3.php (modified) (2 diffs)
-
mail2forum/php-files/modules/mail2forum/m2f_smtp.php (modified) (2 diffs)
-
mail2forum/php-files/modules/mail2forum/m2f_subscriptions.php (modified) (1 diff)
-
mail2forum/php-files/modules/mail2forum/module_installer.php (modified) (3 diffs)
-
newsletters/php-files/modules/newsletters/module_installer.php (modified) (2 diffs)
-
newsletters/php-files/modules/newsletters/newsletters.php (modified) (3 diffs)
-
online_users_panel/php-files/modules/online_users_panel/module_installer.php (modified) (3 diffs)
-
online_users_panel/php-files/modules/online_users_panel/online_users_panel.php (modified) (1 diff)
-
shoutbox_panel/php-files/modules/shoutbox_panel/module_installer.php (modified) (3 diffs)
-
shoutbox_panel/php-files/modules/shoutbox_panel/shoutbox_admin.php (modified) (1 diff)
-
shoutbox_panel/php-files/modules/shoutbox_panel/shoutbox_panel.php (modified) (1 diff)
-
wiki/php-files/modules/wiki/index.php (modified) (4 diffs)
-
wiki/php-files/modules/wiki/locale/English.php (modified) (1 diff)
-
wiki/php-files/modules/wiki/module_installer.php (modified) (5 diffs)
-
wiki/php-files/modules/wiki/wikka.config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/common/ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | 12 10 | the included gpl.txt file or visit http://gnu.org | 13 11 +----------------------------------------------------*/ 14 if (eregi("ad_side_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();12 if (eregi("ad_side_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 13 16 14 // 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | … … 28 29 $mod_developer = "WanWizard"; 29 30 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";31 $mod_weburl = "http://exitecms.exite.eu/"; 31 32 $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 32 40 33 41 /*---------------------------------------------------+ … … 35 43 +----------------------------------------------------*/ 36 44 37 // check for a minumum version of the PLi-Fusionengine45 // check for a minumum version of the ExiteCMS engine 38 46 if (str_replace(".", "", $settings['version']) < 700) { 39 47 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 48 } 41 // check for a maximum version of the PLi-Fusionengine49 // check for a maximum version of the ExiteCMS engine 42 50 if (str_replace(".", "", $settings['version']) > 700) { 43 51 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 55 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 56 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "ad_side_panel";55 // no administration module for this plugin56 57 57 58 /*---------------------------------------------------+ -
modules/common/birthday_panel/php-files/modules/birthday_panel/birthday_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | 12 10 | the included gpl.txt file or visit http://gnu.org | 13 11 +----------------------------------------------------*/ 14 if (eregi("birthday_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();12 if (eregi("birthday_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 13 16 14 // load the locale for this panel -
modules/common/birthday_panel/php-files/modules/birthday_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "birthday_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/donations/php-files/modules/donations/admin_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/donations/php-files/modules/donations/donors.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/donations/php-files/modules/donations/index.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/donations/php-files/modules/donations/module_installer.php
r815 r836 31 31 $mod_version = "1.0.0"; // module version number 32 32 $mod_developer = "WanWizard"; // author's name 33 $mod_email = "wanwizard@gmail.com"; // author's email address34 $mod_weburl = "http:// www.pli-images.org/pli-fusion/"; // author's website33 $mod_email = "wanwizard@gmail.com"; 34 $mod_weburl = "http://exitecms.exite.eu/"; 35 35 $mod_type = "M"; 36 37 /*---------------------------------------------------+38 | Version and revision control |39 +----------------------------------------------------*/40 41 // check for a minumum version of the PLi-Fusion engine42 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 engine46 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 supported50 if ($settings['revision'] < 0 || $settings['revision'] > 999999) {51 $mod_errors .= sprintf($locale['mod003'], 0, 999999);52 }53 36 54 37 /*---------------------------------------------------+ … … 61 44 $mod_admin_rights = "wD"; // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 62 45 $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 52 if (str_replace(".", "", $settings['version']) < 700) { 53 $mod_errors .= sprintf($locale['mod001'], '7.00'); 54 } 55 // check for a maximum version of the ExiteCMS engine 56 if (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 60 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 61 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 62 } 63 63 64 64 /*---------------------------------------------------+ -
modules/common/donations/php-files/modules/donations/notify.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/donations/php-files/modules/donations/thanks.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | 12 10 | the included gpl.txt file or visit http://gnu.org | 13 11 +----------------------------------------------------*/ 14 if (eregi("download_bars_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();12 if (eregi("download_bars_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 13 16 14 // 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 1 1 <?php 2 2 /*---------------------------------------------------+ 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 | 3 14 | PHP-Fusion 6 Content Management System Infusion 4 15 +----------------------------------------------------+ … … 6 17 | fetch and process the downloads of the PLi download 7 18 | sites 8 +----------------------------------------------------+9 | Copyright © 2006 WanWizard10 | http://www.pli-images.org/11 19 +----------------------------------------------------*/ 12 20 … … 41 49 while(!file_exists($webroot."includes/core_functions.php")) { 42 50 $webroot .= '../'; 43 if (strlen($webroot)>100) die('Unable to find the PLi-Fusioncore modules!');51 if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!'); 44 52 } 45 53 require_once $webroot."includes/core_functions.php"; -
modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_add_img.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 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 | 4 14 +----------------------------------------------------+ 5 15 | downloadstats.php 6 16 | fetch and process the downloads of the PLi download 7 17 | sites 8 +----------------------------------------------------+9 | Copyright © 2006 WanWizard10 | http://www.pli-images.org/11 18 +----------------------------------------------------*/ 12 19 … … 44 51 while(!file_exists($webroot."includes/core_functions.php")) { 45 52 $webroot .= '../'; 46 if (strlen($webroot)>100) die('Unable to find the PLi-Fusioncore modules!');53 if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!'); 47 54 } 48 55 require_once $webroot."includes/core_functions.php"; -
modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_geoip.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 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 | 4 14 +----------------------------------------------------+ 5 15 | downloadstats.php 6 16 | fetch and process the downloads of the PLi download 7 17 | sites 8 +----------------------------------------------------+9 | Copyright © 2006 WanWizard10 | http://www.pli-images.org/11 18 +----------------------------------------------------*/ 12 19 … … 41 48 while(!file_exists($webroot."includes/core_functions.php")) { 42 49 $webroot .= '../'; 43 if (strlen($webroot)>100) die('Unable to find the PLi-Fusioncore modules!');50 if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!'); 44 51 } 45 52 require_once $webroot."includes/core_functions.php"; -
modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/dls_process.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 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 | 4 14 +----------------------------------------------------+ 5 15 | downloadstats.php 6 16 | fetch and process the downloads of the PLi download 7 17 | sites 8 +----------------------------------------------------+9 | Copyright © 2006 WanWizard10 | http://www.pli-images.org/11 18 +----------------------------------------------------*/ 12 19 … … 44 51 while(!file_exists($webroot."includes/core_functions.php")) { 45 52 $webroot .= '../'; 46 if (strlen($webroot)>100) die('Unable to find the PLi-Fusioncore modules!');53 if (strlen($webroot)>100) die('Unable to find the ExiteCMS core modules!'); 47 54 } 48 55 require_once $webroot."includes/core_functions.php"; -
modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/download_statistics_panel.php
r783 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/download_statistics_panel/php-files/modules/download_statistics_panel/geomapping.php
r768 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("forum_threads_list_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("forum_threads_list_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 // load the forum functions include -
modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "forum_threads_list_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/my_posts.php
r770 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | 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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | 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 19 19 <table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'> 20 20 <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} 22 22 <td class='tbl2'><b>{$locale.031}</b></td> 23 23 <td align='center' width='1%' class='tbl2' style='white-space:nowrap'><b>{$locale.032}</b></td> … … 27 27 {section name=entry loop=$threadlist} 28 28 <tr> 29 {if $smarty.const.THEME_WIDTH == "100%" }29 {if $smarty.const.THEME_WIDTH == "100%" || $smarty.const.THEME_WIDTH > "990"} 30 30 <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> 31 31 <td width='55%' class='{cycle values="tbl1,tbl2" advance=false}'><a href='{$smarty.const.FORUM}viewthread.php?forum_id={$threadlist[entry].forum_id}&thread_id={$threadlist[entry].thread_id}&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> … … 48 48 <tr> 49 49 <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"} 51 {buttonlink name=$locale.027 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/my_posts.php"} 52 {buttonlink name=$locale.028|cat:" ("|cat:$locale.031|cat:")" link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts.php"} 53 {buttonlink name=$locale.028 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts_detail.php"} 54 54 </td> 55 55 </tr> -
modules/common/forum_threads_panel/php-files/modules/forum_threads_panel/forum_threads_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("forum_threads_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("forum_threads_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 define('NEWEST_THREADS', 5); -
modules/common/forum_threads_panel/php-files/modules/forum_threads_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "forum_threads_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/gallery/php-files/modules/gallery/albums.php
r833 r836 186 186 if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { 187 187 188 $displayName = $gallery->user->displayName();189 $adminCommands .= sprintf(gTranslate('core', "Welcome, %s"), $displayName) . " <br>";188 // $displayName = $gallery->user->displayName(); 189 // $adminCommands .= sprintf(gTranslate('core', "Welcome, %s"), $displayName) . " <br>"; 190 190 } 191 191 … … 201 201 202 202 if ($gallery->user->isLoggedIn() && !$gallery->session->offline) { 203 if ($gallery->user->isAdmin()) {203 /* if ($gallery->user->isAdmin()) { 204 204 205 205 $iconText = getIconText('unsortedList.gif', gTranslate('core', "Administer startpage")); … … 216 216 } 217 217 } 218 218 */ 219 219 if ($gallery->userDB->canModifyUser()) { 220 220 $iconText = getIconText('yast_sysadmin.gif', gTranslate('core', "Preferences")); -
modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/User.php
r833 r836 21 21 */ 22 22 23 /* This class is written for phpBB2 and provides full integration of the phpbbusers database23 /* This class is written for ExiteCMS and provides full integration of the users database 24 24 * Instead of using or duplicating memberships manually in Gallery. 25 25 * 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> 28 28 * 29 * This file was modified for official integration into Gallery 1.4.3 by30 * Jens Tkotz31 29 */ 32 30 33 class phpbb_User extends Abstract_User {31 class ExiteCMS_User extends Abstract_User { 34 32 var $db; 35 33 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"}; 39 37 } 40 38 41 39 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; 54 54 } 55 55 } 56 56 57 57 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; 70 72 } 71 73 } -
modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php
r833 r836 21 21 */ 22 22 23 /* This class is written for phpBB2 and provides full integration of the phpbbusers database23 /* This class is written for ExiteCMS and provides full integration of the users database 24 24 * Instead of using or duplicating memberships manually in Gallery. 25 25 * 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> 28 28 * 29 * This file was modified for official integration into Gallery 1.4.3 by30 * Jens Tkotz31 29 */ 32 30 33 class phpbb_UserDB extends Abstract_UserDB {31 class ExiteCMS_UserDB extends Abstract_UserDB { 34 32 var $db; 35 33 36 function phpbb_UserDB() {34 function ExiteCMS_UserDB() { 37 35 global $gallery; 38 $this->db = $gallery->database{" phpbb"};36 $this->db = $gallery->database{"ExiteCMS"}; 39 37 $this->nobody = new NobodyUser(); 40 38 $this->everybody = new EverybodyUser(); … … 43 41 44 42 function getUidList() { 45 global $ table_prefix;43 global $db_prefix; 46 44 $uidList = array(); 47 45 $db = $this->db; 48 46 49 $result = $db->query("select user_id from ".$table_prefix."users");47 $result = dbquery("select user_id from ".$db_prefix."users"); 50 48 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']); 53 51 } 54 52 … … 70 68 } 71 69 72 $user = new phpbb_User();70 $user = new ExiteCMS_User(); 73 71 $user->loadByUsername($username); 74 72 return $user; … … 87 85 } 88 86 89 $user = new phpbb_User();87 $user = new ExiteCMS_User(); 90 88 $user->loadByUid($uid); 91 89 return $user; -
modules/common/gallery/php-files/modules/gallery/html_wrap/album.footer.default
r833 r836 15 15 <td style="vertical-align: top"> 16 16 <!-- The Gallery code version number, linked to the Gallery home page --> 17 <span class=" fineprint">17 <span class="smallalt"> 18 18 <?php print poweredBy() ?> 19 19 </span> … … 34 34 <!-- donation block --> 35 35 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>47 36 <?php } ?> 48 37 </tr> -
modules/common/gallery/php-files/modules/gallery/html_wrap/gallery.footer.default
r833 r836 40 40 <!-- donation block --> 41 41 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>53 42 <?php } ?> 54 43 </tr> -
modules/common/gallery/php-files/modules/gallery/html_wrap/general.footer.default
r833 r836 21 21 global $validation_args; 22 22 ?> 23 <hr /> 23 24 <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 24 25 <tr> … … 40 41 if ($gallery->user->isAdmin() ) { ?> 41 42 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>55 43 <?php } ?> 56 44 </tr> -
modules/common/gallery/php-files/modules/gallery/html_wrap/photo.footer.default
r833 r836 12 12 includeTemplate('photo.footer.tpl'); 13 13 ?> 14 <hr> 14 15 <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 15 16 <tr> … … 33 34 <!-- donation block --> 34 35 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>46 36 <?php } ?> 47 37 </tr> -
modules/common/gallery/php-files/modules/gallery/html_wrap/slideshow.footer.default
r833 r836 11 11 includeTemplate('slideshow.footer.tpl'); 12 12 ?> 13 <hr /> 13 14 <table width="100%" cellspacing="0" cellpadding="0" class="modfooter"> 14 15 <tr> … … 36 37 <!-- donation block --> 37 38 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>49 39 <?php } ?> 50 40 </tr> -
modules/common/gallery/php-files/modules/gallery/html_wrap/wrapper.footer.default
r833 r836 6 6 global $GALLERY_EMBEDDED_INSIDE_TYPE; 7 7 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 blocks15 * by setting the value of the $index variable. To16 * see the blocks, set $index to 1. To hide them set17 * $index to 0. We default to 0 to leave more room for18 * the photos. If you change this value, you should19 * also change it in wrapper.header20 */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 the32 ** 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 blocks52 ** 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 }60 8 includeTemplate('footer.tpl'); 61 9 … … 85 33 echo infoLine($infoText, 'error'); 86 34 } 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 43 ob_end_clean(); 44 45 // create the panel 46 $variables = array(); 47 $variables['html'] = $content; 48 49 global $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 55 require_once PATH_THEME."/theme.php"; 87 56 ?> -
modules/common/gallery/php-files/modules/gallery/html_wrap/wrapper.header.default
r833 r836 54 54 break; 55 55 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 56 64 case 'phpBB2': 57 65 /* … … 101 109 102 110 includeTemplate('header.tpl'); 103 ?> 111 ?> -
modules/common/gallery/php-files/modules/gallery/index.php
r833 r836 24 24 // Hack prevention. 25 25 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 35 26 global $GALLERY_EMBEDDED_INSIDE; 36 27 global $GALLERY_EMBEDDED_INSIDE_TYPE; … … 55 46 $include = "albums.php"; 56 47 } 57 58 // start capturing Gallery output59 ob_start();60 48 61 49 /* … … 146 134 include(dirname(__FILE__) . "/$include"); 147 135 } 148 149 // get the captured content150 $content = ob_get_contents();151 152 // make sure the content is not cached153 // header("Cache-Control: no-cache");154 155 // clear the output buffer156 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 panel168 $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 page173 require_once PATH_THEME."/theme.php";174 }175 136 ?> -
modules/common/gallery/php-files/modules/gallery/init.php
r833 r836 31 31 } 32 32 } 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 +----------------------------------------------------*/ 40 require_once dirname(__FILE__)."/../../includes/core_functions.php"; 41 require_once PATH_ROOT."/includes/theme_functions.php"; 42 43 // start capturing all output 44 ob_start(); 33 45 34 46 /* … … 193 205 } 194 206 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 210 include_once(dirname(__FILE__) . "/classes/Database.php"); 211 include_once(dirname(__FILE__) . "/classes/database/mysql/Database.php"); 212 include_once(dirname(__FILE__) . "/classes/ExiteCMS/UserDB.php"); 213 include_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; 225 if (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); 239 230 } 240 231 -
modules/common/gallery/php-files/modules/gallery/layout/breadcrumb.inc
r833 r836 38 38 $name = $gallery->user->getUsername(); 39 39 } 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>'; 41 41 } 42 42 ?> -
modules/common/gallery/php-files/modules/gallery/lib/messages.php
r833 r836 72 72 73 73 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); 75 76 } 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); 77 79 } 78 80 } -
modules/common/gallery/php-files/modules/gallery/rss.php
r833 r836 270 270 271 271 $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 273 echo '<' . '?xml version="1.0" encoding="' . $GLOBALS['locale']['charset'] . '"?' . '>'; 277 274 278 275 ?> -
modules/common/gallery/php-files/modules/gallery/view_album.php
r833 r836 606 606 } 607 607 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 .= ' '; 612 613 if ($gallery->album->getPollType() == 'rank') { 613 614 $voteCount = $gallery->album->getPollScale(); … … 617 618 } 618 619 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."); 620 621 } 621 622 … … 623 624 echo $va_poll_box3; 624 625 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 <?php631 626 } 632 627 ?> … … 809 804 // Caption itself 810 805 echo "\n<div align=\"center\" class=\"modcaption\">\n"; 806 $capt = ""; 811 807 $id = $gallery->album->getPhotoId($i); 812 808 if ($gallery->album->isHidden($i) && !$gallery->session->offline) { 813 echo "(" . gTranslate('core', "hidden") .")<br>";809 $capt .= ($capt == "" ? "" : "* ") . gTranslate('core', "hidden"); 814 810 } 815 811 $photo = $gallery->album->getPhoto($i); 816 812 if ($gallery->user->canWriteToAlbum($gallery->album) && 817 813 $photo->isHighlight() && !$gallery->session->offline) { 818 echo "(" . gTranslate('core', "highlight") .")<br>"; 819 } 814 $capt .= ($capt == "" ? "" : " * ") . gTranslate('core', "hightlight"); 815 } 816 echo $capt,"<br>"; 820 817 if (isset($myAlbum)) { 821 818 $myDescription = $myAlbum->fields['description']; -
modules/common/last_seen_users_panel/php-files/modules/last_seen_users_panel/last_seen_users_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("last_seen_users_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("last_seen_users_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 // 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 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "last_seen_users_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/latest_articles_panel/php-files/modules/latest_articles_panel/latest_articles_panel.php
r796 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("lastest_articles_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("lastest_articles_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 // number of articles to show in the panel -
modules/common/latest_articles_panel/php-files/modules/latest_articles_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "latest_articles_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/latest_news_panel/php-files/modules/latest_news_panel/latest_news_panel.php
r796 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("lastest_news_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("lastest_news_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 // number of articles to show in the panel -
modules/common/latest_news_panel/php-files/modules/latest_news_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "latest_news_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/login_panel/php-files/modules/login_panel/login_panel.php
r764 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones|8 | Some portions copyright 2002 - 2006 Nick Jones | 9 9 | http://www.php-fusion.co.uk/ | 10 +----------------------------------------------------+ 10 11 | Released under the terms & conditions of v2 of the | 11 12 | GNU General Public License. For details refer to | 12 13 | the included gpl.txt file or visit http://gnu.org | 13 14 +----------------------------------------------------*/ 14 if (eregi("login_panel.php", $_SERVER['PHP_SELF']) || !defined(' IN_FUSION')) die();15 if (eregi("login_panel.php", $_SERVER['PHP_SELF']) || !defined('ExiteCMS_INIT')) die(); 15 16 16 17 // array's to store the variables for this panel -
modules/common/login_panel/php-files/modules/login_panel/module_installer.php
r764 r836 28 28 $mod_developer = "WanWizard"; 29 29 $mod_email = "wanwizard@gmail.com"; 30 $mod_weburl = "http:// www.pli-images.org/pli-fusion/";30 $mod_weburl = "http://exitecms.exite.eu/"; 31 31 $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 32 39 33 40 /*---------------------------------------------------+ … … 35 42 +----------------------------------------------------*/ 36 43 37 // check for a minumum version of the PLi-Fusionengine44 // check for a minumum version of the ExiteCMS engine 38 45 if (str_replace(".", "", $settings['version']) < 700) { 39 46 $mod_errors .= sprintf($locale['mod001'], '7.00'); 40 47 } 41 // check for a maximum version of the PLi-Fusionengine48 // check for a maximum version of the ExiteCMS engine 42 49 if (str_replace(".", "", $settings['version']) > 700) { 43 50 $mod_errors .= sprintf($locale['mod002'], '7.00'); … … 47 54 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 48 55 } 49 50 /*---------------------------------------------------+51 | Module administration panel installation details |52 +----------------------------------------------------*/53 54 $mod_folder = "login_panel";55 // no administration module for this plugin56 56 57 57 /*---------------------------------------------------+ -
modules/common/mail2forum/php-files/modules/mail2forum/locale/English.php
r784 r836 76 76 $locale['m2f804'] = "M2F_INTERVAL to short to process all email. Choose a larger interval. If this error persists, please contact M2F"; 77 77 $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>"; 80 80 $locale['m2f813'] = "Click here to go to this forum post"; 81 81 $locale['m2f814'] = "* * * note: this is an edit of a previous post * * *"; … … 129 129 $locale['m2f951'] = "Subscriptions succesfully updated"; 130 130 // Subscription intro message 131 $locale['m2f990'] = "Mail-to-Forum is a PLi-Fusioninstallable 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> 132 132 <li>Any posts made in a designated forum will be automatically emailed to every member of the corresponding mailing list.\n 133 133 <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 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/mail2forum/php-files/modules/mail2forum/m2f_config.php
r776 r836 25 25 // message for every attachment found, with one of the attachments linked to every message. 26 26 // 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. 29 28 // 30 29 // default: 1 -
modules/common/mail2forum/php-files/modules/mail2forum/m2f_pop3.php
r776 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 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 | 4 14 +----------------------------------------------------+ 5 15 | Mail2Forum - CLI POP3 processor 6 16 | uses the POP3 and MIME classes from the PEAR library 7 +----------------------------------------------------+8 | Copyright © 2006-2007 WanWizard9 | http://www.pli-images.org/PLi-Fusion/10 +----------------------------------------------------+11 | Released under the terms & conditions of v2 of the12 | GNU General Public License. For details refer to13 | the included gpl.txt file or visit http://gnu.org14 17 +----------------------------------------------------*/ 15 18 if (isset($_SERVER['SERVER_SOFTWARE'])) { … … 32 35 while(!file_exists($webroot."includes/core_functions.php")) { 33 36 $webroot .= '../'; 34 if (strlen($webroot)>100) die('Unable to find the PLi-Fusiondocument root!');37 if (strlen($webroot)>100) die('Unable to find the ExiteCMS document root!'); 35 38 } 36 39 require_once $webroot."includes/core_functions.php"; -
modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php
r776 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion 7 Content Management System Infusion3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 5 | Mail2Forum - CLI POP3 processor6 | uses the POP3 and MIME classes from the PEAR library5 | Copyright 2007 Harro "WanWizard" Verton, Exite BV | 6 | for support, please visit http://exitecms.exite.eu | 7 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 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 | 14 11 +----------------------------------------------------*/ 15 12 if (isset($_SERVER['SERVER_SOFTWARE'])) { … … 27 24 while(!file_exists($webroot."includes/core_functions.php")) { 28 25 $webroot .= '../'; 29 if (strlen($webroot)>100) die('Unable to find the PLi-Fusiondocument root!');26 if (strlen($webroot)>100) die('Unable to find the ExiteCMS document root!'); 30 27 } 31 28 require_once $webroot."includes/core_functions.php"; -
modules/common/mail2forum/php-files/modules/mail2forum/m2f_subscriptions.php
r767 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | -
modules/common/mail2forum/php-files/modules/mail2forum/module_installer.php
r815 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | … … 31 29 $mod_version = $locale['m2fver']; // module version number 32 30 $mod_developer = "WanWizard"; // author's name 33 $mod_email = "wanwizard@gmail.com"; // author's email address34 $mod_weburl = "http:// www.pli-images.org/pli-fusion/"; // author's website31 $mod_email = "wanwizard@gmail.com"; 32 $mod_weburl = "http://exitecms.exite.eu/"; 35 33 $mod_type = "M"; 36 37 /*---------------------------------------------------+38 | Version and revision control |39 +----------------------------------------------------*/40 41 // check for a minumum version of the PLi-Fusion engine42 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 engine46 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 supported50 if ($settings['revision'] < 0 || $settings['revision'] > 999999) {51 $mod_errors .= sprintf($locale['mod003'], 0, 999999);52 }53 34 54 35 /*---------------------------------------------------+ … … 61 42 $mod_admin_rights = "wA"; // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 62 43 $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 50 if (str_replace(".", "", $settings['version']) < 700) { 51 $mod_errors .= sprintf($locale['mod001'], '7.00'); 52 } 53 // check for a maximum version of the ExiteCMS engine 54 if (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 58 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 59 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 60 } 63 61 64 62 /*---------------------------------------------------+ -
modules/common/newsletters/php-files/modules/newsletters/module_installer.php
r815 r836 32 32 $mod_folder = "newsletters"; // sub-folder of the /modules folder 33 33 $mod_developer = "WanWizard"; // author's name 34 $mod_email = "wanwizard@gmail.com"; // author's email address35 $mod_weburl = "http:// www.pli-images.org/pli-fusion/"; // author's website34 $mod_email = "wanwizard@gmail.com"; 35 $mod_weburl = "http://exitecms.exite.eu/"; 36 36 $mod_type = "M"; 37 38 /*---------------------------------------------------+39 | Version and revision control |40 +----------------------------------------------------*/41 42 // check for a minumum version of the PLi-Fusion engine43 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 engine47 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 supported51 if ($settings['revision'] < 0 || $settings['revision'] > 999999) {52 $mod_errors .= sprintf($locale['mod003'], 0, 999999);53 }54 37 55 38 /*---------------------------------------------------+ … … 61 44 $mod_admin_rights = "wC"; // admin rights code. This HAS to be assigned by PLi-Fusion to avoid duplicates! 62 45 $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 52 if (str_replace(".", "", $settings['version']) < 700) { 53 $mod_errors .= sprintf($locale['mod001'], '7.00'); 54 } 55 // check for a maximum version of the ExiteCMS engine 56 if (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 60 if ($settings['revision'] < 0 || $settings['revision'] > 999999) { 61 $mod_errors .= sprintf($locale['mod003'], 0, 999999); 62 } 63 63 64 64 /*---------------------------------------------------+ -
modules/common/newsletters/php-files/modules/newsletters/newsletters.php
r798 r836 1 1 <?php 2 2 /*---------------------------------------------------+ 3 | PLi-Fusion Content Management System|3 | ExiteCMS Content Management System | 4 4 +----------------------------------------------------+ 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 | 7 7 +----------------------------------------------------+ 8 | Some portions copyright ? 2002 - 2006 Nick Jones |9 | http://www.php-fusion.co.uk/ |10 8 | Released under the terms & conditions of v2 of the | 11 9 | GNU General Public License. For details refer to | … … 232 230 $mail->FromName = $settings['siteusername']; 233 231 $mail->AddAddress($data2['user_email'], ($data2['user_fullname']=="" ? $data2['user_name'] : $data2['user_fullname'])); 234 $mail->AddCustomHeader("X-version: PLi-FusionNewsletters v".$locale['nlver']);232 $mail->AddCustomHeader("X-version: ExiteCMS Newsletters v".$locale['nlver']); 235 233 236 234 switch ($data2['user_newsletters']) { … … 414 412 require_once PATH_THEME."/theme.php"; 415 413 ?> 416 <?php417 die();418 /*---------------------------------------------------+419 | PLi-Fusion 7 Content Management System Infusion420 +----------------------------------------------------+421 | Mail2Forum - CLI POP3 processor422 | uses the POP3 and MIME classes from the PEAR library423 +----------------------------------------------------+424 | Copyright © 2006-2007 WanWizard425 | http://www.pli-images.org/PLi-Fusion/426 +----------------------------------------------------+427 | Released under the terms & conditions of v2 of the428 | GNU General Public License. For details refer to429 | the included gpl.txt file or visit http://gnu.org430 +----------------------------------------------------*/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 configuration437 +----------------------------------------------------*/438 439 require "m2f_config.php";440 441 // find the webroot, so we can load the core functions442 $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 variables457 +----------------------------------------------------*/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 functions465 +----------------------------------------------------*/466 467 // write an entry to the process log, and optionally abort the program468 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 log480 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 code491 +----------------------------------------------------*/492 493 ini_set('memory_limit', '32M');494 ini_set('max_execution_time', '0');495 496 // log the start497 if (M2F_PROCESS_LOG) logentry('INIT', 'Program start');498 499 // get the last modified timestamp of this module500 $module_lastmod = filemtime('m2f_smtp.php');501 502 // get the last modified timestamp of the config file503 $config_lastmod = filemtime('m2f_config.php');504 505 // check if the Mail2Forum Infusion is installed506 $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-Mailer513 require_once PATH_INCLUDES."phpmailer_include.php";514 $mail = new PHPMailer();515 mailer_init();516 517 // get the last polled time from the database518 $result = dbquery("SELECT * FROM ".$db_prefix."M2F_status");519 if (dbrows($result) == 0) {520 // the first time we start. Forget all old posts for now521 $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 module528 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 text543 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] blocks574 function quotecode($text) {575 global $locale;576 577 $text = preg_replace(':&#([0-9]*);:sie', 'chr(\1)', $text);578 $replace = array("\"", "<", ">", " ", "&");579 $search = array(""", "<", ">", " ", "&");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 block591 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 hit597 // a new block before a non-empty line598 $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 block606 }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 block616 }617 elseif ($line == "[quote]") {618 $emptylines = "";619 $new .= "$indent\n"; // one 'empty' line before a new quote620 $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 quote631 $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 quote641 }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 loop654 +----------------------------------------------------*/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 alive662 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 poll667 $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 interval671 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 edited680 if ($new_post) $edit_post = false;681 682 // get the forum mailing list info683 $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 information689 $sender = dbarray($result2);690 if (M2F_SMTP_DEBUG) logdebug('SENDER', print_r($sender, true));691 692 // get all subscribed users for this forum693 $result2 = dbquery("SELECT u.*, c.* FROM ".$db_prefix."users u, ".$db_prefix."M2F_subscriptions s, ".$db_prefix."M2F_config c694 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 posts701 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 posts708 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 sender717 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 sender721 $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 us728 $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 needed733 $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 config746 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
