mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 08:34:09 +02:00
new module creation
This commit is contained in:
20
e107_plugins/pm/sendpm.sc
Normal file
20
e107_plugins/pm/sendpm.sc
Normal file
@@ -0,0 +1,20 @@
|
||||
@include_once(e_PLUGIN."pm/languages/".e_LANGUAGE.".php");
|
||||
@include_once(e_PLUGIN."pm/languages/English.php");
|
||||
global $sysprefs, $pm_prefs;
|
||||
$pm_prefs = $sysprefs->getArray("pm_prefs");
|
||||
if(check_class($pm_prefs['pm_class']))
|
||||
{
|
||||
if(file_exists(THEME."forum/pm.png"))
|
||||
{
|
||||
$img = "<img src='".THEME."forum/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$img = "<img src='".e_PLUGIN."pm/images/pm.png' alt='".LAN_PM."' title='".LAN_PM."' style='border:0' />";
|
||||
}
|
||||
return "<a href='".e_PLUGIN."pm/pm.php?send.{$parm}'>{$img}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
Reference in New Issue
Block a user