fixed trouble with Send URCall

pull/14/head
Tom Early 6 years ago
parent b693221969
commit c7d60c97f0

@ -226,18 +226,18 @@ foreach($showlist as $section) {
echo '<input type="radio" name="fmodule"', (isset($fmodule) && $fmodule==$mod) ? '"checked"' : '', ' value="$mod">', $mod, '<br>', "\n"; echo '<input type="radio" name="fmodule"', (isset($fmodule) && $fmodule==$mod) ? '"checked"' : '', ' value="$mod">', $mod, '<br>', "\n";
} }
} else } else
$fmodule = $configured[0]; $fmodule = $mods[0];
echo 'URCall: <input type="text" name="furcall" value="', $furcall, '">', "\n"; echo 'URCall: <input type="text" name="furcall" value="', $furcall, '">', "\n";
echo '<input type="submit" name="sendurcall" value="Send URCall"><br>', "\n"; echo '<input type="submit" name="sendurcall" value="Send URCall"><br>', "\n";
echo '</form>', "\n"; echo '</form>', "\n";
if (isset($_POST['sendurcall'])) { if (isset($_POST['sendurcall'])) {
$furcall = $_POST['furcall']; $furcall = $_POST['furcall'];
if (empty($_POST['fmodule'])) { if (empty($_POST['fmodule'])) {
if (1==count($configured)) { if (1==count($mods)) {
$fmodule = $configured[0]; $fmodule = $mods[0];
} }
} else { } else {
$fmodule = $_POST['fmodule']; $fmodule = $_POST['fmodule'];
} }
} }
$furcall = str_replace(' ', '_', trim(preg_replace('/[^0-9a-z_ ]/', '', strtolower($furcall)))); $furcall = str_replace(' ', '_', trim(preg_replace('/[^0-9a-z_ ]/', '', strtolower($furcall))));

Loading…
Cancel
Save

Powered by TurnKey Linux.