Add a provision write method to the provision function and use it to write the provisioning files for tftp/ftp provisioning.

This commit is contained in:
Mark Crane
2014-01-29 10:18:25 +00:00
parent 74e0552a1d
commit bc266b0c8a
3 changed files with 154 additions and 298 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Copyright (C) 2008-2013 All Rights Reserved.
Copyright (C) 2008-2014 All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
@@ -154,11 +154,9 @@ require_once "resources/require.php";
//output template to string for header processing
$prov = new provision;
//$prov->template_directory = $template_directory;
$prov->domain_uuid = $domain_uuid;
$prov->mac = $mac;
$prov->file = $file;
$prov->db = $db;
$file_contents = $prov->render();
//deliver the customized config over HTTP/HTTPS