mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
LAN and GUI optimization on PM plugin
This commit is contained in:
@@ -220,6 +220,7 @@ define("LAN_DELETE","Delete");
|
||||
define("LAN_CREATE","Create");
|
||||
define("LAN_MANAGE","Manage");
|
||||
define("LAN_UPDATE","Update");
|
||||
define("LAN_ADD", "Add");
|
||||
define("LAN_SAVE","Save");
|
||||
define("LAN_SAVED","Saved");
|
||||
define('LAN_SETSAVED','Your settings have been saved');
|
||||
|
@@ -31,18 +31,18 @@ define('ADLAN_PM_28', "Maximum attachment size");
|
||||
define('ADLAN_PM_29', "Allow sending to all members");
|
||||
define('ADLAN_PM_30', "Allow sending to multiple recipients");
|
||||
define('ADLAN_PM_31', 'Userclass allowed to send to userclass');
|
||||
define('ADLAN_PM_32', "Update Settings");
|
||||
//define('ADLAN_PM_32', "Update Settings");
|
||||
define('ADLAN_PM_33', "Inactive (no limits)");
|
||||
define('ADLAN_PM_34', "PM counts");
|
||||
define('ADLAN_PM_35', "PM box sizes");
|
||||
define('ADLAN_PM_36', "Userclass");
|
||||
define('ADLAN_PM_37', "Count limits");
|
||||
define('ADLAN_PM_38', "Size limits (in KB)");
|
||||
define('ADLAN_PM_39', "Inbox: ");
|
||||
define('ADLAN_PM_40', "Outbox: ");
|
||||
define('ADLAN_PM_39', "Inbox");
|
||||
define('ADLAN_PM_40', "Outbox");
|
||||
define('ADLAN_PM_41', "There are currently no limits set.");
|
||||
define('ADLAN_PM_42', "Update Limits");
|
||||
define('ADLAN_PM_43', "Add New Limit");
|
||||
//define('ADLAN_PM_42', "Update Limits");
|
||||
//define('ADLAN_PM_43', "Add New Limit");
|
||||
define('ADLAN_PM_44', "seconds");
|
||||
define('ADLAN_PM_45', "Limit PM By: ");
|
||||
|
||||
@@ -74,7 +74,7 @@ define('ADLAN_PM_78', 'Check attachments');
|
||||
define('ADLAN_PM_79', '--ORPHANS-- unused attachments deleted. --MISSING-- missing attachments noted');
|
||||
define('ADLAN_PM_80', 'Preference formats updated');
|
||||
define('ADLAN_PM_81', 'Maximum number of PMs to send immediately');
|
||||
define('ADLAN_PM_82', 'If sending more than this, they are added to a queue, and sent out using the cron task');
|
||||
define('ADLAN_PM_82', 'If sending more than this, they are added to a queue and sent out using the cron task');
|
||||
|
||||
define('ADLAN_PM_URL_DEFAULT_LABEL', 'Default');
|
||||
define('ADLAN_PM_URL_DEFAULT_DESCR', 'Example: http://yoursite.com/e107_plugins/pm/pm.php');
|
||||
|
@@ -300,6 +300,7 @@ function yes_no($fname, $curval = '')
|
||||
|
||||
function show_options($pm_prefs)
|
||||
{
|
||||
$frm = e107::getForm();
|
||||
$txt = "
|
||||
<fieldset id='plugin-pm-prefs'>
|
||||
<form method='post' action='".e_SELF."'>
|
||||
@@ -375,12 +376,12 @@ function show_options($pm_prefs)
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".ADLAN_PM_81."</td>
|
||||
<td>".form::form_text('pm_option-pm_max_send', 5, $pm_prefs['pm_max_send'], 5)."<span style='field-help'>".ADLAN_PM_82."</span></td>
|
||||
<td>".form::form_text('pm_option-pm_max_send', 5, $pm_prefs['pm_max_send'], 5)."<span class='field-help'>".ADLAN_PM_82."</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".e107::getForm()->admin_button('update_prefs','no-value','update',ADLAN_PM_32)."
|
||||
".$frm->admin_button('update_prefs','no-value','update', LAN_UPDATE)."
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
@@ -445,19 +446,19 @@ function show_limits($pm_prefs)
|
||||
";
|
||||
|
||||
if (isset($limitList))
|
||||
{
|
||||
{
|
||||
foreach($limitList as $row)
|
||||
{
|
||||
$txt .= "
|
||||
<tr>
|
||||
<td>".e107::getUserClass()->uc_get_classname($row['limit_classnum'])."</td>
|
||||
<td>
|
||||
".ADLAN_PM_39."<input type='text' class='tbox' size='5' name='inbox_count[{$row['limit_id']}]' value='{$row['inbox_count']}' />
|
||||
".ADLAN_PM_40."<input type='text' class='tbox' size='5' name='outbox_count[{$row['limit_id']}]' value='{$row['outbox_count']}' />
|
||||
".ADLAN_PM_39.": <input type='text' class='tbox' size='5' name='inbox_count[{$row['limit_id']}]' value='{$row['inbox_count']}' /> <br />
|
||||
".ADLAN_PM_40.": <input type='text' class='tbox' size='5' name='outbox_count[{$row['limit_id']}]' value='{$row['outbox_count']}' />
|
||||
</td>
|
||||
<td>
|
||||
".ADLAN_PM_39."<input type='text' class='tbox' size='5' name='inbox_size[{$row['limit_id']}]' value='{$row['inbox_size']}' />
|
||||
".ADLAN_PM_40."<input type='text' class='tbox' size='5' name='outbox_size[{$row['limit_id']}]' value='{$row['outbox_size']}' />
|
||||
".ADLAN_PM_39.": <input type='text' class='tbox' size='5' name='inbox_size[{$row['limit_id']}]' value='{$row['inbox_size']}' /> <br />
|
||||
".ADLAN_PM_40.": <input type='text' class='tbox' size='5' name='outbox_size[{$row['limit_id']}]' value='{$row['outbox_size']}' />
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
@@ -476,7 +477,7 @@ function show_limits($pm_prefs)
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="buttons-bar center">
|
||||
'.$frm->admin_button('updatelimits','no-value','update',ADLAN_PM_42).'
|
||||
'.$frm->admin_button('updatelimits','no-value','update', LAN_UPDATE).'
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>';
|
||||
@@ -521,12 +522,12 @@ function add_limit($pm_prefs)
|
||||
<tr>
|
||||
<td>".e107::getUserClass()->uc_dropdown('newlimit_class', 0, 'guest,member,admin,classes')."</td>
|
||||
<td>
|
||||
".ADLAN_PM_39."<input type='text' class='tbox' size='5' name='new_inbox_count' value='' />
|
||||
".ADLAN_PM_40."<input type='text' class='tbox' size='5' name='new_outbox_count' value='' />
|
||||
".ADLAN_PM_39.": <input type='text' class='tbox' size='5' name='new_inbox_count' value='' /> <br />
|
||||
".ADLAN_PM_40.": <input type='text' class='tbox' size='5' name='new_outbox_count' value='' />
|
||||
</td>
|
||||
<td>
|
||||
".ADLAN_PM_39."<input type='text' class='tbox' size='5' name='new_inbox_size' value='' />
|
||||
".ADLAN_PM_40."<input type='text' class='tbox' size='5' name='new_outbox_size' value='' />
|
||||
".ADLAN_PM_39.": <input type='text' class='tbox' size='5' name='new_inbox_size' value='' /> <br />
|
||||
".ADLAN_PM_40.": <input type='text' class='tbox' size='5' name='new_outbox_size' value='' />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -536,7 +537,7 @@ function add_limit($pm_prefs)
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="buttons-bar center">
|
||||
'.$frm->admin_button('addlimit','no-value','update',ADLAN_PM_43).'
|
||||
'.$frm->admin_button('addlimit','no-value','update', LAN_ADD).'
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>';
|
||||
@@ -589,7 +590,7 @@ function show_maint($pmPrefs)
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='buttons-bar center'>
|
||||
".e107::getForm()->admin_button('pm_maint_execute','no-value','delete',ADLAN_PM_61)."
|
||||
".e107::getForm()->admin_button('pm_maint_execute','no-value','delete', LAN_EXECUTE)."
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
|
Reference in New Issue
Block a user