-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate.php
More file actions
28 lines (24 loc) · 778 Bytes
/
generate.php
File metadata and controls
28 lines (24 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
Define the Internal Policy Form Structure
(properties & related info)
*/
include "form-structure.php";
if (!isset($_GET['sections']))
die('Invaild access.');
$sections = json_decode($_GET['sections']);
if (json_last_error() != JSON_ERROR_NONE)
die('Invaild access.');
//All clear --> generate plan
foreach ($sections as $key=>$val) {
foreach ($securedam_internal_policy_form_sections as $sec) {
if ($sec['slug'] == $key) {
if ($val == 'yes') {
include './policies/' . $sec['policy'];
echo "<br/><br/>";
}
}
}
}
echo "<hr/><i>Last Updated: " . date("Y-m-d h:i:sa") . "</i>";
?>