1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Add files via upload

This commit is contained in:
rica-carv
2017-04-09 16:37:33 +01:00
committed by GitHub
parent ba122e5883
commit 4490ea48bb
3 changed files with 64 additions and 47 deletions

View File

@@ -22,7 +22,9 @@
* @subpackage pm
* @version $Id$;
*/
$pm_prefs = e107::getPlugPref('pm');
if(check_class($pm_prefs['pm_class']))
{
if (!defined('e107_INIT')) { exit; }
if (!e107::isInstalled('pm')) { return ''; }
@@ -75,21 +77,10 @@ if(!function_exists('pm_show_popup'))
}
$pm_prefs = e107::getPlugPref('pm');
//$pm_prefs = e107::getPlugPref('pm');
//global $sysprefs, $pm_prefs;
if (file_exists(THEME."templates/pm_template.php"))
{
include(THEME."templates/pm_template.php");
}
elseif (file_exists(THEME."pm_template.php"))
{
include(THEME."pm_template.php");
}
else
{
include(e_PLUGIN.'pm/templates/pm_template.php');
}
//if(!isset($pm_prefs['perpage']))
//{
@@ -108,7 +99,10 @@ $pmManager = new pmbox_manager($pm_prefs);
//setScVar('pm_handler_shortcodes','pmManager', $pmManager);
if(!isset($PM_MENU))
$template = e107::getTemplate('pm', 'pm_menu');
//if(!isset($pm_menu_template))
if(!isset($PM_MENU_TEMPLATE))
{
//FIXME URL Breaks
/*
@@ -127,7 +121,8 @@ if(!isset($PM_MENU))
";
*/
$PM_MENU = "
// $pm_menu_template = "
$PM_MENU_TEMPLATE = "
<a href='".e_PLUGIN_ABS."pm/pm.php?inbox'>".PM_INBOX_ICON."</a>
<a href='".e_PLUGIN_ABS."pm/pm.php?inbox'>".LAN_PLUGIN_PM_INBOX."</a>
{PM_NEWPM_ANIMATE}
@@ -142,15 +137,16 @@ if(!isset($PM_MENU))
";
}
if(check_class($pm_prefs['pm_class']))
{
//if(check_class($pm_prefs['pm_class']))
//{
$tp = e107::getParser();
$sc = e107::getScBatch('pm',TRUE, 'pm');
$pm_inbox = $pmManager->pm_getInfo('inbox');
$sc->wrapper('pm_menu');
$txt = "\n".$tp->parseTemplate($PM_MENU, TRUE, $sc);
// $txt = "\n".$tp->parseTemplate($pm_menu_template, TRUE, $sc);
$txt = "\n".$tp->parseTemplate($PM_MENU_TEMPLATE, TRUE, $sc);
if($pm_inbox['inbox']['new'] > 0 && $pm_prefs['popup'] && strpos(e_SELF, 'pm.php') === FALSE && $_COOKIE['pm-alert'] != 'ON')
{