-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from POSSA/working
Update to 0.0.6
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,31 @@ | |
</tr> | ||
</table> | ||
<?php | ||
echo $foo=lenny_hook_blacklist(); | ||
|
||
if (function_exists(lenny_hook_blacklist)) { | ||
echo $foo=lenny_hook_blacklist(); | ||
} else { | ||
|
||
$lenconfig = lenny_config(); | ||
|
||
//if submitting form, update database | ||
if(isset($_POST['submit'])) { | ||
lenny_edit(1,$_POST); | ||
} | ||
$html = "<table>"; | ||
$html .= "<tr><td colspan='2'><h5><a href='#' class='info'>Lenny Blacklist Mod Config<span>This is used to modify the FreePBX blacklist module so that blacklisted callers are automatically redirected to SIP/[email protected]:5060 or another user specified destination.</span></a><hr></h5></td></tr>"; | ||
$html .= "<tr>"; | ||
$html .= "<td><a href='#' class='info'>Enable redirect<span>If this is disabled, the blacklist reverts to default behavior. Clicking this box certifies compliance with the Terms of Service of the receiving destination.</span></a></td>"; | ||
$html .= "<td><input type='checkbox' name='enable' value='CHECKED' ".$lenconfig[0]['enable']."></td>"; | ||
$html .= "</tr><tr>"; | ||
$html .= "<td><a href='#' class='info'>Enable Recording<span>If enabled, the call is recorded locally</span></a></td>"; | ||
$html .= "<td><input type='checkbox' name='record' value='CHECKED' ".$lenconfig[0]['record']."></td>"; | ||
$html .= "</tr><tr>"; | ||
$html .= "<td><a href='#' class='info'>Destination<span>SIP/URI destination to send blacklisted caller in the format SIP/[email protected]:port</span></a></td>"; | ||
$html .= "<td><input type='text' name='destination' size=40 value='".htmlspecialchars(isset($lenconfig[0]['destination']) ? $lenconfig[0]['destination'] : '')."' ></td>"; | ||
$html .= "</tr></table>"; | ||
echo $html; | ||
} | ||
?> | ||
<table> | ||
<tr> | ||
|