Merge pull request #341 from Focuslinkstech/Development
send welcome email bug
This commit is contained in:
commit
fec7780f50
@ -523,7 +523,7 @@ switch ($action) {
|
|||||||
'args' => [$d['phonenumber'], $welcomeMessage]
|
'args' => [$d['phonenumber'], $welcomeMessage]
|
||||||
],
|
],
|
||||||
'email' => [
|
'email' => [
|
||||||
'enabled' => isset($_POST['email']),
|
'enabled' => isset($_POST['mail']),
|
||||||
'method' => 'Message::sendEmail',
|
'method' => 'Message::sendEmail',
|
||||||
'args' => [$d['email'], $emailSubject, $welcomeMessage, $d['email']]
|
'args' => [$d['email'], $emailSubject, $welcomeMessage, $d['email']]
|
||||||
]
|
]
|
||||||
|
@ -214,7 +214,7 @@ class MikrotikHotspot
|
|||||||
function getClient($ip, $user, $pass)
|
function getClient($ip, $user, $pass)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$iport = explode(":", $ip);
|
$iport = explode(":", $ip);
|
||||||
@ -224,7 +224,7 @@ class MikrotikHotspot
|
|||||||
function removeHotspotUser($client, $username)
|
function removeHotspotUser($client, $username)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$printRequest = new RouterOS\Request(
|
$printRequest = new RouterOS\Request(
|
||||||
@ -242,7 +242,7 @@ class MikrotikHotspot
|
|||||||
function addHotspotUser($client, $plan, $customer)
|
function addHotspotUser($client, $plan, $customer)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$addRequest = new RouterOS\Request('/ip/hotspot/user/add');
|
$addRequest = new RouterOS\Request('/ip/hotspot/user/add');
|
||||||
@ -310,7 +310,7 @@ class MikrotikHotspot
|
|||||||
function setHotspotUser($client, $user, $pass)
|
function setHotspotUser($client, $user, $pass)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$printRequest = new RouterOS\Request('/ip/hotspot/user/print');
|
$printRequest = new RouterOS\Request('/ip/hotspot/user/print');
|
||||||
@ -327,7 +327,7 @@ class MikrotikHotspot
|
|||||||
function setHotspotUserPackage($client, $username, $plan_name)
|
function setHotspotUserPackage($client, $username, $plan_name)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$printRequest = new RouterOS\Request('/ip/hotspot/user/print');
|
$printRequest = new RouterOS\Request('/ip/hotspot/user/print');
|
||||||
@ -344,7 +344,7 @@ class MikrotikHotspot
|
|||||||
function removeHotspotActiveUser($client, $username)
|
function removeHotspotActiveUser($client, $username)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$onlineRequest = new RouterOS\Request('/ip/hotspot/active/print');
|
$onlineRequest = new RouterOS\Request('/ip/hotspot/active/print');
|
||||||
@ -360,7 +360,7 @@ class MikrotikHotspot
|
|||||||
function getIpHotspotUser($client, $username)
|
function getIpHotspotUser($client, $username)
|
||||||
{
|
{
|
||||||
global $_app_stage;
|
global $_app_stage;
|
||||||
if ($_app_stage == 'demo') {
|
if ($_app_stage == 'Demo') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$printRequest = new RouterOS\Request(
|
$printRequest = new RouterOS\Request(
|
||||||
|
@ -1049,32 +1049,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="well well-sm">
|
<div class="bs-callout bs-callout-info" id="callout-navbar-role">
|
||||||
<legend>{Lang::T('Settings For Mikrotik')}</legend>
|
<h4><b>{Lang::T('Settings For Mikrotik')}</b></h4>
|
||||||
<pre>/ip hotspot walled-garden
|
<p>/ip hotspot walled-garden <br>
|
||||||
add dst-host={$_domain}
|
add dst-host={$_domain} <br>
|
||||||
add dst-host=*.{$_domain}</pre>
|
add dst-host=*.{$_domain}
|
||||||
|
</p>
|
||||||
<legend>{Lang::T('Settings For Cron Expired')}</legend>
|
<br>
|
||||||
<pre>
|
<h4><b>{Lang::T('Settings For Cron Expired')}</b></h4>
|
||||||
# {Lang::T('Expired Cronjob Every 5 Minutes')}
|
<p>
|
||||||
*/5 * * * * cd {$dir} && {$php} cron.php
|
# {Lang::T('Expired Cronjob Every 5 Minutes [Recommended]')}<br>
|
||||||
</pre>
|
*/5 * * * * cd {$dir} && {$php} cron.php
|
||||||
{Lang::T('Choose one, above or below')}
|
<br><br>
|
||||||
<pre>
|
# {Lang::T('Expired Cronjob Every 1 Hour')}<br>
|
||||||
# {Lang::T('Expired Cronjob Every 1 Hour')}
|
0 * * * * cd {$dir} && {$php} cron.php
|
||||||
0 * * * * cd {$dir} && {$php} cron.php
|
</p>
|
||||||
</pre>
|
<br>
|
||||||
|
<h4><b>{Lang::T('Settings For Cron Reminder')}</b></h4>
|
||||||
<legend>{Lang::T('Settings For Cron Reminder')}</legend>
|
<p>
|
||||||
<pre>
|
# {Lang::T('Reminder Cronjob Every 7 AM')}<br>
|
||||||
# {Lang::T('Reminder Cronjob Every 7 AM')}
|
0 7 * * * cd {$dir} && {$php} cron_reminder.php
|
||||||
0 7 * * * cd {$dir} && {$php} cron_reminder.php
|
</p>
|
||||||
</pre>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function testWa() {
|
function testWa() {
|
||||||
var target = prompt("Phone number\nSave First before Test", "");
|
var target = prompt("Phone number\nSave First before Test", "");
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
<label class="col-md-3 control-label">Remote IP <span class="label label-danger" id="warning_ip"></span></label>
|
<label class="col-md-3 control-label">Remote IP <span class="label label-danger" id="warning_ip"></span></label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input type="text" class="form-control" id="pppoe_ip" name="pppoe_ip" onkeyup="checkIP(this, '0')">
|
<input type="text" class="form-control" id="pppoe_ip" name="pppoe_ip" onkeyup="checkIP(this, '0')">
|
||||||
<span class="help-block">{Lang::T('Not Working for freeradius')}</span>
|
<span class="help-block">{Lang::T('Also Working for freeradius')}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
@ -139,7 +139,7 @@
|
|||||||
{Lang::T('SMS')}</label>
|
{Lang::T('SMS')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="wa" value="1">
|
<label class="col-md-2 control-label"><input type="checkbox" name="wa" value="1">
|
||||||
{Lang::T('WA')}</label>
|
{Lang::T('WA')}</label>
|
||||||
<label class="col-md-2 control-label"><input type="checkbox" name="email" value="1">
|
<label class="col-md-2 control-label"><input type="checkbox" name="mail" value="1">
|
||||||
{Lang::T('Email')}</label>
|
{Lang::T('Email')}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user