Commit 4dbdf8e3 authored by Franco Fichtner's avatar Franco Fichtner

ppps: another php function gone

parent a982fbc1
...@@ -444,9 +444,9 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE" ...@@ -444,9 +444,9 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE"
<tr style="display:none" name="portlists" id="portlists"> <tr style="display:none" name="portlists" id="portlists">
<td id="serialports"><?php <td id="serialports"><?php
$selected_ports = explode(',',$pconfig['interfaces']); $selected_ports = explode(',',$pconfig['interfaces']);
if (!is_dir("/var/spool/lock")) if (!is_dir('/var/spool/lock')) {
mwexec("/bin/mkdir -p /var/spool/lock"); mwexec('/bin/mkdir -p /var/spool/lock');
// $serialports = pfSense_get_modem_devices(); }
$serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE); $serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE);
$serport_count = 0; $serport_count = 0;
foreach ($serialports as $port) { foreach ($serialports as $port) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment