Commit a44c5f3c authored by Ad Schellevis's avatar Ad Schellevis

move code from pfsense-utils.inc to captiveportal.inc (nowhere else used)

parent 5f431d16
...@@ -42,6 +42,19 @@ require_once("radius.inc"); ...@@ -42,6 +42,19 @@ require_once("radius.inc");
require_once("voucher.inc"); require_once("voucher.inc");
require_once("script/load_phalcon.php"); require_once("script/load_phalcon.php");
function get_include_contents($filename) {
if (is_file($filename)) {
ob_start();
include $filename;
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
return false;
}
// //
// TODO : restructure code / gui, for now we try to maintain gui compatibility by not breaking the old callbacks // TODO : restructure code / gui, for now we try to maintain gui compatibility by not breaking the old callbacks
// //
......
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