mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Put back the option to use Cingular as an SMS carrier.
This commit is contained in:
@@ -69,3 +69,4 @@ Added a new monitor type for detecting large directories.
|
||||
Added a button to the main page for refreshing only selected monitors, thanks to Michael Mansour.
|
||||
---- Changes since 1.500 ----
|
||||
Added an option to the Disk Space monitor to alert based on percentage free, as an alternative to a threshold in bytes.
|
||||
Put back the option to use Cingular as an SMS carrier.
|
||||
|
||||
@@ -78,7 +78,9 @@ print &ui_table_row($text{'sched_sms'},
|
||||
[ [ 1, $text{'sched_smsno'} ],
|
||||
[ 0, $text{'sched_smscarrier'} ] ])."\n".
|
||||
&ui_select("carrier", $config{'sched_carrier'},
|
||||
[ map { [ $_->{'id'}, $_->{'desc'} ] } &list_sms_carriers() ])."\n".
|
||||
[ map { [ $_->{'id'}, $_->{'desc'} ] }
|
||||
sort { lc($a->{'desc'}) cmp lc($b->{'desc'}) }
|
||||
&list_sms_carriers() ])."\n".
|
||||
$text{'sched_smsnumber'}." ".
|
||||
&ui_textbox("sms", $config{'sched_sms'}, 15), 3);
|
||||
|
||||
|
||||
@@ -166,6 +166,7 @@ sched_smsno=Nobody
|
||||
sched_smscarrier=Phone on carrier
|
||||
sched_smsnumber=with number
|
||||
sched_esmsnumber=Missing or non-numeric SMS number
|
||||
sched_esmsname=Missing or invalid-looking SMS number
|
||||
|
||||
up_since=Up since $1
|
||||
depends_mod=The module $1 is not installed on your system
|
||||
|
||||
@@ -19,7 +19,14 @@ if ($in{'sms_def'}) {
|
||||
}
|
||||
else {
|
||||
$config{'sched_carrier'} = $in{'carrier'};
|
||||
$in{'sms'} =~ /^\d+$/ || &error($text{'sched_esmsnumber'});
|
||||
($carrier) = grep { $_->{'id'} eq $in{'carrier'} }
|
||||
&list_sms_carriers();
|
||||
if ($carrier->{'alpha'}) {
|
||||
$in{'sms'} =~ /^\S+$/ || &error($text{'sched_esmsname'});
|
||||
}
|
||||
else {
|
||||
$in{'sms'} =~ /^\d+$/ || &error($text{'sched_esmsnumber'});
|
||||
}
|
||||
$config{'sched_sms'} = $in{'sms'};
|
||||
}
|
||||
if ($in{'from_def'}) {
|
||||
|
||||
@@ -399,6 +399,10 @@ return ( { 'id' => 'tmobile',
|
||||
{ 'id' => 'cingular',
|
||||
'desc' => 'AT&T',
|
||||
'domain' => 'txt.att.net' },
|
||||
{ 'id' => 'oldcingular',
|
||||
'desc' => 'Cingular',
|
||||
'domain' => 'cingularme.com',
|
||||
'alpha' => 1 },
|
||||
{ 'id' => 'verizon',
|
||||
'desc' => 'Verizon',
|
||||
'domain' => 'vtext.com' },
|
||||
|
||||
Reference in New Issue
Block a user