1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Tinkering a bit

This commit is contained in:
mcfly
2008-11-25 17:38:56 +00:00
parent e23415620d
commit 648d916089
3 changed files with 19 additions and 21 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm_shortcodes.php,v $
| $Revision: 1.7 $
| $Date: 2008-11-25 16:26:02 $
| $Revision: 1.8 $
| $Date: 2008-11-25 17:38:56 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
@@ -354,10 +354,8 @@ $pm_outbox = pm_getInfo('outbox');
if($pm_outbox['outbox']['filled'] < 100)
{
$e107 = e107::getInstance();
if($link = $e107->url->getUrl('pm','main','send'))
{
return "<a href='{$link}'>".PM_SEND_LINK."</a>";
}
$link = $e107->url->getUrl('pm','main',array('f' => 'send'));
return "<a href='{$link}'>".PM_SEND_LINK."</a>";
}
return "";
SC_END
@@ -372,7 +370,7 @@ if($pm_prefs['animate'])
return NEWPM_ANIMATION;
}
}
return "";
return '';
SC_END
SC_BEGIN PM_NEXTPREV

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/private_msg_menu.php,v $
| $Revision: 1.5 $
| $Date: 2008-11-25 16:26:02 $
| $Revision: 1.6 $
| $Date: 2008-11-25 17:38:56 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
@@ -47,14 +47,14 @@ $sc_style['NEWPM_ANIMATE']['post'] = "</a>";
if(!isset($pm_menu_template))
{
$pm_menu_template = "
<a href='{URL=pm|main|box=inbox}'>".PM_INBOX_ICON."</a>
<a href='{URL=pm|main|box=inbox}'>".LAN_PM_25."</a>
<a href='{URL=pm|main|f=box&box=inbox}'>".PM_INBOX_ICON."</a>
<a href='{URL=pm|main|f=box&box=inbox}'>".LAN_PM_25."</a>
{NEWPM_ANIMATE}
<br />
{INBOX_TOTAL} ".LAN_PM_36.", {INBOX_UNREAD} ".LAN_PM_37." {INBOX_FILLED}
<br />
<a href='{URL=pm|main|box=outbox}'>".PM_OUTBOX_ICON."</a>
<a href='{URL=pm|main|box=outbox}'>".LAN_PM_26."</a><br />
<a href='{URL=pm|main|f=box&box=outbox}'>".PM_OUTBOX_ICON."</a>
<a href='{URL=pm|main|f=box&box=outbox}'>".LAN_PM_26."</a><br />
{OUTBOX_TOTAL} ".LAN_PM_36.", {OUTBOX_UNREAD} ".LAN_PM_37." {OUTBOX_FILLED}
{SEND_PM_LINK}
";

View File

@@ -1,15 +1,15 @@
<?php
// $Id: main.php,v 1.2 2008-11-25 16:26:03 mcfly_e107 Exp $
// $Id: main.php,v 1.3 2008-11-25 17:38:56 mcfly_e107 Exp $
function url_pm_main($parms)
{
if(isset($parms['box']))
switch($parms['f'])
{
return e_PLUGIN_ABS."pm/pm.php?{$parms['box']}";
}
case 'box':
return e_PLUGIN_ABS."pm/pm.php?{$parms['box']}";
break;
if(isset($parms['send']))
{
return e_PLUGIN_ABS."pm/pm.php?send";
case 'send':
return e_PLUGIN_ABS."pm/pm.php?send";
break;
}
}