Changeset 1676186
- Timestamp:
- 06/12/2017 02:07:58 AM (9 years ago)
- Location:
- dpt-dnsmanager/trunk
- Files:
-
- 5 edited
-
dnsmanager.crud.html (modified) (6 diffs)
-
dpt-dnsmanager.php (modified) (3 diffs)
-
includes/DNSFile.Class.php (modified) (1 diff)
-
includes/css/dns.crud.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dpt-dnsmanager/trunk/dnsmanager.crud.html
r1408277 r1676186 1 <div ng-app="DNSManagerApp" class=" BootstrappedContents">1 <div ng-app="DNSManagerApp" class="localizedbootstrap"> 2 2 <h2>Wordpress DNS Manager by DigitalPixies</h2> 3 3 … … 5 5 <div id="MessageBox"></div> 6 6 7 <table class="table" ng-controller="DNSManagerListControl" id="DNSManagerListControl">8 <thead>9 <tr>10 <th>Action</th>11 <th>Host</th>12 <th>Record Type</th>13 <th>Destination (IP, HOSTNAME, SUBDOMAIN)</th>14 </tr>15 </thead>16 <tbody>17 <tr ng-repeat="(ID, DNSEntry) in DNSEntries">18 <td>19 <!-- Split button -->20 <div class="btn-group">21 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#EditDNSRecord" data-id="{{ID}}">7 <table class="table" ng-controller="DNSManagerListControl" id="DNSManagerListControl"> 8 <thead> 9 <tr> 10 <th>Action</th> 11 <th>Host</th> 12 <th>Record Type</th> 13 <th>Destination (IP, HOSTNAME, SUBDOMAIN)</th> 14 </tr> 15 </thead> 16 <tbody> 17 <tr ng-repeat="(ID, DNSEntry) in DNSEntries"> 18 <td class="nowrap"> 19 <!-- Split button --> 20 <div class="btn-group"> 21 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#EditDNSRecord" data-id="{{ID}}"> 22 22 Edit 23 23 </button> 24 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">24 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 25 25 <span class="caret"></span> 26 26 <span class="sr-only">Toggle Dropdown</span> 27 27 </button> 28 <ul class="dropdown-menu" role="menu">29 <li><a href="#" ng-click="DeleteClicked(ID)">Delete</a></li>30 </ul>31 </div>32 </td>33 <td>34 {{DNSEntry.host}}35 </td>36 <td>37 {{DNSEntry.type}}38 </td>39 <td>40 {{GetDestination(DNSEntry)}}41 </td>42 </tr>43 </tbody>44 <tfooter>45 <tr>46 <th>47 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#AddDNSRecord">28 <ul class="dropdown-menu" role="menu"> 29 <li><a href="#" ng-click="DeleteClicked(ID)">Delete</a></li> 30 </ul> 31 </div> 32 </td> 33 <td> 34 {{DNSEntry.host}} 35 </td> 36 <td> 37 {{DNSEntry.type}} 38 </td> 39 <td> 40 {{GetDestination(DNSEntry)}} 41 </td> 42 </tr> 43 </tbody> 44 <tfoot> 45 <tr> 46 <th> 47 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#AddDNSRecord"> 48 48 Add 49 49 </button> 50 </th>51 <th></th>52 <th></th>53 <th></th>54 </tr>55 <tr>56 <th colspan="4">57 <div class="btn-group">58 <button type="button" class="btn btn-default" id="ExportButton">50 </th> 51 <th></th> 52 <th></th> 53 <th></th> 54 </tr> 55 <tr> 56 <th colspan="4"> 57 <div class="btn-group"> 58 <button type="button" class="btn btn-default" id="ExportButton"> 59 59 Export 60 60 </button> 61 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">61 <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 62 62 <span class="caret"></span> 63 63 <span class="sr-only">Toggle Dropdown</span> 64 64 </button> 65 <ul class="dropdown-menu" role="menu">66 <li><a href="#" data-toggle="modal" data-target="#ViewBindFile" data-id="123">View on screen</a></li>67 </ul>68 </div>69 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#SystemCheck">System Check</button>70 <button type="button" class="btn btn-default" id="Reload">Reload from file</button>71 <button type="button" class="btn btn-danger" id="DeleteDNSFile">Delete file</button>72 73 <div class="btn-group">74 <button type="button" class="btn btn-primary" id="SaveToFile">Save to file</button>75 <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">65 <ul class="dropdown-menu" role="menu"> 66 <li><a href="#" data-toggle="modal" data-target="#ViewBindFile" data-id="123">View on screen</a></li> 67 </ul> 68 </div> 69 <button type="button" class="btn btn-default" data-toggle="modal" data-target="#SystemCheck">System Check</button> 70 <button type="button" class="btn btn-default" id="Reload" ng-click="Reload()">Reload from file</button> 71 <button type="button" class="btn btn-danger" id="DeleteDNSFile">Delete file</button> 72 73 <div class="btn-group"> 74 <button type="button" class="btn btn-primary" id="SaveToFile">Save to file</button> 75 <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> 76 76 <span class="caret"></span> 77 77 <span class="sr-only">Toggle Dropdown</span> 78 78 </button> 79 <ul class="dropdown-menu" role="menu">80 <li><a href="#" id="SaveAndRestart">Save and Restart</a></li>81 </ul>82 </div>83 84 </th>85 </tr>86 </tfooter>87 </table>88 89 <!-- Add Record -->90 <div class="modal fade DNSCrudModal" id="AddDNSRecord" tabindex="-1" role="dialog" aria-labelledby="AddDNSRecordTitle" aria-hidden="true" ng-controller="AddDNSRecord" ng-submit="submit()">91 <div class="modal-dialog">92 <div class="modal-content">93 <form>94 <div class="modal-header">95 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>96 <h4 class="modal-title" id="AddDNSRecordTitle">Add DNS Record</h4>97 </div>98 <div class="modal-body">99 <div class="form-group">100 <label for="AddDNSRecordHost">Host</label>101 <input type="text" class="form-control" id="AddDNSRecordHost" name="host" placeholder="www.domainname.tld" ng-model="addui.host">102 </div>103 <div class="form-group">104 <label for="AddDNSRecordType">Record Type</label>105 <select class="form-control" id="AddDNSRecordType" name="type" ng-model="addui.type">79 <ul class="dropdown-menu" role="menu"> 80 <li><a href="#" id="SaveAndRestart">Save and Restart</a></li> 81 </ul> 82 </div> 83 84 </th> 85 </tr> 86 </tfoot> 87 </table> 88 89 <!-- Add Record --> 90 <div class="modal fade DNSCrudModal" id="AddDNSRecord" tabindex="-1" role="dialog" aria-labelledby="AddDNSRecordTitle" aria-hidden="true" ng-controller="AddDNSRecord" ng-submit="submit()"> 91 <div class="modal-dialog"> 92 <div class="modal-content"> 93 <form> 94 <div class="modal-header"> 95 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 96 <h4 class="modal-title" id="AddDNSRecordTitle">Add DNS Record</h4> 97 </div> 98 <div class="modal-body"> 99 <div class="form-group"> 100 <label for="AddDNSRecordHost">Host</label> 101 <input type="text" class="form-control" id="AddDNSRecordHost" name="host" placeholder="www.domainname.tld" ng-model="addui.host"> 102 </div> 103 <div class="form-group"> 104 <label for="AddDNSRecordType">Record Type</label> 105 <select class="form-control" id="AddDNSRecordType" name="type" ng-model="addui.type"> 106 106 <option>IN CNAME</option> 107 107 <option>IN A</option> … … 110 110 <option>IN NS</option> 111 111 </select> 112 </div> 113 <div class="form-group"> 114 <label for="AddDNSRecordPriority">Priority</label> 115 <input type="text" class="form-control" id="AddDNSRecordPriority" name="priority" placeholder="10" ng-model="addui.priority"> 116 </div> 117 <div class="form-group"> 118 <label for="AddDNSRecordDestinationDomain">Destination</label> 119 <input type="text" class="form-control" id="AddDNSRecordDestinationDomain" name="destination_domain" placeholder="www.domain-name.com or www" ng-model="addui.destination_domain"> 120 </div> 121 <div class="form-group"> 122 <label for="AddDNSRecordDestinationIP">Destination</label> 123 <input type="text" class="form-control" id="AddDNSRecordDestinationIP" name="destination_ip" placeholder="xxx.xxx.xxx.xxx" ng-model="addui.destination_ip"> 124 </div> 125 <div class="form-group"> 126 <label for="AddDNSRecordPrimaryNS">Primary Name Server</label> 127 <input type="text" class="form-control" id="AddDNSRecordPrimaryNS" name="primary_ns" placeholder="ns.domain-name.com." ng-model="addui.primary_ns"> 128 </div> 129 <div class="form-group"> 130 <label for="AddDNSRecordDomainEmail">Domain Email</label> 131 <input type="text" class="form-control" id="AddDNSRecordDomainEmail" name="domain_email" placeholder="email.address.com." ng-model="addui.domain_email"> 132 </div> 133 <div class="form-group"> 134 <label for="AddDNSRecordSerial">Serial</label> 135 <input type="text" class="form-control" id="AddDNSRecordSerial" name="serial" placeholder="2015123001" ng-model="addui.serial"> 136 </div> 137 <div class="form-group"> 138 <label for="AddDNSRecordRefresh">Refresh</label> 139 <input type="text" class="form-control" id="AddDNSRecordRefresh" name="refresh" placeholder="1200" ng-model="addui.refresh"> 140 </div> 141 <div class="form-group"> 142 <label for="AddDNSRecordRetry">Retry</label> 143 <input type="text" class="form-control" id="AddDNSRecordRetry" name="retry" placeholder="600" ng-model="addui.retry"> 144 </div> 145 <div class="form-group"> 146 <label for="AddDNSRecordExpire">Expire</label> 147 <input type="text" class="form-control" id="AddDNSRecordExpire" name="expire" placeholder="1209600" ng-model="addui.expire"> 148 </div> 149 <div class="form-group"> 150 <label for="AddDNSRecordNegativeResponseTTL">Negative Response TTL</label> 151 <input type="text" class="form-control" id="AddDNSRecordNegativeRespponseTTL" name="negative_response_ttl" placeholder="3600" ng-model="addui.negative_response_ttl"> 152 </div> 112 </div> 113 <div class="form-group"> 114 <label for="AddDNSRecordPriority">Priority</label> 115 <input type="text" class="form-control" id="AddDNSRecordPriority" name="priority" placeholder="10" ng-model="addui.priority"> 116 </div> 117 <div class="form-group"> 118 <label for="AddDNSRecordDestinationDomain">Destination</label> 119 <input type="text" class="form-control" id="AddDNSRecordDestinationDomain" name="destination_domain" placeholder="www.domain-name.com or www" ng-model="addui.destination_domain"> 120 </div> 121 <div class="form-group"> 122 <label for="AddDNSRecordDestinationIP">Destination</label> 123 <input type="text" class="form-control" id="AddDNSRecordDestinationIP" name="destination_ip" placeholder="xxx.xxx.xxx.xxx" ng-model="addui.destination_ip"> 124 </div> 125 <div class="form-group"> 126 <label for="AddDNSRecordPrimaryNS">Primary Name Server</label> 127 <input type="text" class="form-control" id="AddDNSRecordPrimaryNS" name="primary_ns" placeholder="ns.domain-name.com." ng-model="addui.primary_ns"> 128 </div> 129 <div class="form-group"> 130 <label for="AddDNSRecordDomainEmail">Domain Email</label> 131 <input type="text" class="form-control" id="AddDNSRecordDomainEmail" name="domain_email" placeholder="email.address.com." ng-model="addui.domain_email"> 132 </div> 133 <div class="form-group"> 134 <label for="AddDNSRecordSerial">Serial</label> 135 <input type="text" class="form-control" id="AddDNSRecordSerial" name="serial" placeholder="2015123001" ng-model="addui.serial"> 136 </div> 137 <div class="form-group"> 138 <label for="AddDNSRecordRefresh">Refresh</label> 139 <input type="text" class="form-control" id="AddDNSRecordRefresh" name="refresh" placeholder="1200" ng-model="addui.refresh"> 140 </div> 141 <div class="form-group"> 142 <label for="AddDNSRecordRetry">Retry</label> 143 <input type="text" class="form-control" id="AddDNSRecordRetry" name="retry" placeholder="600" ng-model="addui.retry"> 144 </div> 145 <div class="form-group"> 146 <label for="AddDNSRecordExpire">Expire</label> 147 <input type="text" class="form-control" id="AddDNSRecordExpire" name="expire" placeholder="1209600" ng-model="addui.expire"> 148 </div> 149 <div class="form-group"> 150 <label for="AddDNSRecordNegativeResponseTTL">Negative Response TTL</label> 151 <input type="text" class="form-control" id="AddDNSRecordNegativeRespponseTTL" name="negative_response_ttl" placeholder="3600" ng-model="addui.negative_response_ttl"> 152 </div> 153 </div> 154 <div class="modal-footer"> 155 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> 156 <input type="submit" class="btn btn-primary" value="Add to session" /> 157 </div> 158 </form> 153 159 </div> 154 <div class="modal-footer">155 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>156 <input type="submit" class="btn btn-primary" value="Add to session" />157 </div>158 </form>159 160 </div> 160 161 </div> 161 </div> 162 163 <!-- Edit Record --> 164 <div class="modal fade DNSCrudModal" id="EditDNSRecord" tabindex="-1" role="dialog" aria-labelledby="EditDNSRecordTitle" aria-hidden="true" ng-controller="EditDNSRecord" ng-submit="submit()"> 165 <div class="modal-dialog"> 166 <div class="modal-content"> 167 <form> 168 <div class="modal-header"> 169 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 170 <h4 class="modal-title" id="EditDNSRecordTitle">Edit DNS Record</h4> 171 </div> 172 <div class="modal-body"> 173 <div class="form-group"> 174 <label for="EditDNSRecordHost">Host</label> 175 <input type="text" class="form-control" id="EditDNSRecordHost" name="host" placeholder="www.domainname.tld" ng-model="editui.host"> 176 </div> 177 <div class="form-group"> 178 <label for="EditDNSRecordType">Record Type</label> 179 <select disabled="disabled" class="form-control" id="EditDNSRecordType" name="type" ng-model="editui.type"> 162 163 <!-- Edit Record --> 164 <div class="modal fade DNSCrudModal" id="EditDNSRecord" tabindex="-1" role="dialog" aria-labelledby="EditDNSRecordTitle" aria-hidden="true" ng-controller="EditDNSRecord" ng-submit="submit()"> 165 <div class="modal-dialog"> 166 <div class="modal-content"> 167 <form> 168 <div class="modal-header"> 169 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 170 <h4 class="modal-title" id="EditDNSRecordTitle">Edit DNS Record</h4> 171 </div> 172 <div class="modal-body"> 173 <div class="form-group"> 174 <label for="EditDNSRecordHost">Host</label> 175 <input type="text" class="form-control" id="EditDNSRecordHost" name="host" placeholder="www.domainname.tld" ng-model="editui.host"> 176 </div> 177 <div class="form-group"> 178 <label for="EditDNSRecordType">Record Type</label> 179 <select disabled="disabled" class="form-control" id="EditDNSRecordType" name="type" ng-model="editui.type"> 180 180 <option>IN CNAME</option> 181 181 <option>IN A</option> … … 184 184 <option>IN NS</option> 185 185 </select> 186 </div> 187 <div class="form-group"> 188 <label for="EditDNSRecordPriority">Priority</label> 189 <input type="text" class="form-control" id="EditDNSRecordPriority" name="priority" placeholder="10" ng-model="editui.priority"> 190 </div> 191 <div class="form-group"> 192 <label for="EditDNSRecordDestinationDomain">Destination</label> 193 <input type="text" class="form-control" id="EditDNSRecordDestinationDomain" name="destination_domain" placeholder="www.domain-name.com or www" ng-model="editui.destination_domain"> 194 </div> 195 <div class="form-group"> 196 <label for="EditDNSRecordDestinationIP">Destination</label> 197 <input type="text" class="form-control" id="EditDNSRecordDestinationIP" name="destination_ip" placeholder="xxx.xxx.xxx.xxx" ng-model="editui.destination_ip"> 198 </div> 199 <div class="form-group"> 200 <label for="EditDNSRecordPrimaryNS">Primary Name Server</label> 201 <input type="text" class="form-control" id="EditDNSRecordPrimaryNS" name="primary_ns" placeholder="ns.domain-name.com." ng-model="editui.primary_ns"> 202 </div> 203 <div class="form-group"> 204 <label for="EditDNSRecordDomainEmail">Domain Email</label> 205 <input type="text" class="form-control" id="EditDNSRecordDomainEmail" name="domain_email" placeholder="email.address.com." ng-model="editui.domain_email"> 206 </div> 207 <div class="form-group"> 208 <label for="EditDNSRecordSerial">Serial</label> 209 <input type="text" class="form-control" id="EditDNSRecordSerial" name="serial" placeholder="2015123001" ng-model="editui.serial"> 210 </div> 211 <div class="form-group"> 212 <label for="EditDNSRecordRefresh">Refresh</label> 213 <input type="text" class="form-control" id="EditDNSRecordRefresh" name="refresh" placeholder="1200" ng-model="editui.refresh"> 214 </div> 215 <div class="form-group"> 216 <label for="EditDNSRecordRetry">Retry</label> 217 <input type="text" class="form-control" id="EditDNSRecordRetry" name="retry" placeholder="600" ng-model="editui.retry"> 218 </div> 219 <div class="form-group"> 220 <label for="EditDNSRecordExpire">Expire</label> 221 <input type="text" class="form-control" id="EditDNSRecordExpire" name="expire" placeholder="1209600" ng-model="editui.expire"> 222 </div> 223 <div class="form-group"> 224 <label for="EditDNSRecordNegativeResponseTTL">Negative Response TTL</label> 225 <input type="text" class="form-control" id="EditDNSRecordNegativeRespponseTTL" name="negative_response_ttl" placeholder="3600" ng-model="editui.negative_response_ttl"> 226 </div> 186 </div> 187 <div class="form-group"> 188 <label for="EditDNSRecordPriority">Priority</label> 189 <input type="text" class="form-control" id="EditDNSRecordPriority" name="priority" placeholder="10" ng-model="editui.priority"> 190 </div> 191 <div class="form-group"> 192 <label for="EditDNSRecordDestinationDomain">Destination</label> 193 <input type="text" class="form-control" id="EditDNSRecordDestinationDomain" name="destination_domain" placeholder="www.domain-name.com or www" ng-model="editui.destination_domain"> 194 </div> 195 <div class="form-group"> 196 <label for="EditDNSRecordDestinationIP">Destination</label> 197 <input type="text" class="form-control" id="EditDNSRecordDestinationIP" name="destination_ip" placeholder="xxx.xxx.xxx.xxx" ng-model="editui.destination_ip"> 198 </div> 199 <div class="form-group"> 200 <label for="EditDNSRecordPrimaryNS">Primary Name Server</label> 201 <input type="text" class="form-control" id="EditDNSRecordPrimaryNS" name="primary_ns" placeholder="ns.domain-name.com." ng-model="editui.primary_ns"> 202 </div> 203 <div class="form-group"> 204 <label for="EditDNSRecordDomainEmail">Domain Email</label> 205 <input type="text" class="form-control" id="EditDNSRecordDomainEmail" name="domain_email" placeholder="email.address.com." ng-model="editui.domain_email"> 206 </div> 207 <div class="form-group"> 208 <label for="EditDNSRecordSerial">Serial</label> 209 <input type="text" class="form-control" id="EditDNSRecordSerial" name="serial" placeholder="2015123001" ng-model="editui.serial"> 210 </div> 211 <div class="form-group"> 212 <label for="EditDNSRecordRefresh">Refresh</label> 213 <input type="text" class="form-control" id="EditDNSRecordRefresh" name="refresh" placeholder="1200" ng-model="editui.refresh"> 214 </div> 215 <div class="form-group"> 216 <label for="EditDNSRecordRetry">Retry</label> 217 <input type="text" class="form-control" id="EditDNSRecordRetry" name="retry" placeholder="600" ng-model="editui.retry"> 218 </div> 219 <div class="form-group"> 220 <label for="EditDNSRecordExpire">Expire</label> 221 <input type="text" class="form-control" id="EditDNSRecordExpire" name="expire" placeholder="1209600" ng-model="editui.expire"> 222 </div> 223 <div class="form-group"> 224 <label for="EditDNSRecordNegativeResponseTTL">Negative Response TTL</label> 225 <input type="text" class="form-control" id="EditDNSRecordNegativeRespponseTTL" name="negative_response_ttl" placeholder="3600" ng-model="editui.negative_response_ttl"> 226 </div> 227 </div> 228 <div class="modal-footer"> 229 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> 230 <input type="submit" class="btn btn-primary" value="Save to session" /> 231 </div> 232 </form> 227 233 </div> 228 <div class="modal-footer">229 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>230 <input type="submit" class="btn btn-primary" value="Save to session" />231 </div>232 </form>233 234 </div> 234 235 </div> 235 </div> 236 237 <!-- View Bind File --> 238 <div class="modal fade DNSCrudModal" id="ViewBindFile" tabindex="-1" role="dialog" aria-labelledby="ViewBindFileTitle" aria-hidden="true"> 239 <div class="modal-dialog"> 240 <div class="modal-content"> 241 <form> 242 <div class="modal-header"> 243 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 244 <h4 class="modal-title" id="ViewBindFileTitle">Bind File Contents</h4> 236 237 <!-- View Bind File --> 238 <div class="modal fade DNSCrudModal" id="ViewBindFile" tabindex="-1" role="dialog" aria-labelledby="ViewBindFileTitle" aria-hidden="true"> 239 <div class="modal-dialog"> 240 <div class="modal-content"> 241 <form> 242 <div class="modal-header"> 243 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 244 <h4 class="modal-title" id="ViewBindFileTitle">Bind File Contents</h4> 245 </div> 246 <div class="modal-body"> 247 </div> 248 <div class="modal-footer"> 249 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 250 </div> 251 </form> 245 252 </div> 246 <div class="modal-body">247 </div>248 <div class="modal-footer">249 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>250 </div>251 </form>252 253 </div> 253 254 </div> 254 </div> 255 256 <!-- SystemCheck --> 257 <span id="SystemCheckControl" ng-controller="CheckSystemControl"> 255 256 <!-- SystemCheck --> 257 <span id="SystemCheckControl" ng-controller="CheckSystemControl"> 258 258 <div class="modal fade" id="SystemCheck"> 259 259 <div class="modal-dialog"> … … 261 261 <div class="modal-header"> 262 262 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 263 <h4 class="modal-title">System Check</h4> 263 <h4 class="modal-title">System Check</h4> 264 </div> 265 <div class="modal-body"> 266 {{SystemCheckResult.HTML}} 267 268 <ul ng-repeat="(index, entry) in SystemCheckResult.details | orderBy:['weight']"> 269 <li> 270 <div class="alert alert-{{entry.alert_type}}" role="alert" data-toggle="collapse" data-target="#CheckSystemEntryCollapsible-{{index}}" aria-expanded="false" aria-controls="CheckSystemEntryCollapsible-{{index}}" ng-switch="entry.alert_type"> 271 <p> 272 <span ng-switch-when="success" class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> 273 <span ng-switch-when="warning" class="glyphicon glyphicon-alert" aria-hidden="true"></span> 274 <span ng-switch-when="info" class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> 275 <span ng-switch-when="danger" class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span> {{entry.info}} 276 </p> 277 <p> 278 <div class="collapse" id="CheckSystemEntryCollapsible-{{index}}"> 279 <div class="well" ng-bind-html="entry.result | trustAsHTML"> 280 </div> 281 </div> 282 </p> 264 283 </div> 265 <div class="modal-body"> 266 {{SystemCheckResult.HTML}} 267 268 <ul ng-repeat="(index, entry) in SystemCheckResult.details | orderBy:['weight']"> 269 <li> 270 <div class="alert alert-{{entry.alert_type}}" role="alert" 271 data-toggle="collapse" data-target="#CheckSystemEntryCollapsible-{{index}}" aria-expanded="false" aria-controls="CheckSystemEntryCollapsible-{{index}}" 272 ng-switch="entry.alert_type"> 273 <p> 274 <span ng-switch-when="success" class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> 275 <span ng-switch-when="warning" class="glyphicon glyphicon-alert" aria-hidden="true"></span> 276 <span ng-switch-when="info" class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> 277 <span ng-switch-when="danger" class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span> 278 {{entry.info}} 279 </p> 280 <p> 281 <div class="collapse" id="CheckSystemEntryCollapsible-{{index}}"> 282 <div class="well" ng-bind-html="entry.result | trustAsHTML"> 283 </div> 284 </div> 285 </p> 286 </div> 287 </li> 288 </ul> 289 290 </div> 291 <div class="modal-footer"> 292 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 293 </div> 294 </div> 295 </div> 284 </li> 285 </ul> 286 287 </div> 288 <div class="modal-footer"> 289 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 290 </div> 291 </div> 292 </div> 296 293 </div> 297 294 </span> … … 302 299 <div class="modal-content"> 303 300 <form> 304 <div class="modal-header">305 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>306 <h4 class="modal-title" id="ConfirmDialogTitle">Confirm Action</h4>307 </div>308 <div class="modal-body">309 </div>310 <div class="modal-footer">311 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>312 </div>313 </form>301 <div class="modal-header"> 302 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> 303 <h4 class="modal-title" id="ConfirmDialogTitle">Confirm Action</h4> 304 </div> 305 <div class="modal-body"> 306 </div> 307 <div class="modal-footer"> 308 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> 309 </div> 310 </form> 314 311 </div> 315 312 </div> -
dpt-dnsmanager/trunk/dpt-dnsmanager.php
r1408277 r1676186 4 4 Plugin URI: http://wordpress.digitalpixies.com/dpt-dnsmanager 5 5 Description: Create and Manage a bind compatible dns file. Designed for intranet wordpress instances (not public facing). 6 Version: 1. 1.06 Version: 1.2.1 7 7 Author: Robert Huie 8 8 Author URI: http://DigitalPixies.com … … 56 56 add_action('admin_menu', array($this, 'AdminMenu')); 57 57 add_action('admin_enqueue_scripts', array($this, 'EnableCSSJS')); 58 add_action('wp_ajax_dpt-dnsmanager', array($this, 'AJAX')); 58 //prevent admin ajax from being exposed to non admins 59 if(is_admin()) { 60 add_action('wp_ajax_dpt-dnsmanager', array($this, 'AJAX')); 61 } 59 62 } 60 63 public function AJAXSystemCheck() { … … 237 240 if($hook != "toplevel_page_dpt_dnsmanager_php") 238 241 return; 239 wp_register_style(' bootstrappedcontents', plugin_dir_url(__FILE__).'includes/css/bootstrappedcontents.css');240 wp_register_style(' bootstrappedcontents', plugins_url('includes/css/bootstrappedcontents-theme.css', __FILE__));241 wp_enqueue_style(' bootstrappedcontents');242 wp_register_style('localizedbootstrap', plugin_dir_url(__FILE__).'includes/css/localizedbootstrap.css'); 243 wp_register_style('localizedbootstrap', plugins_url('includes/css/localizedbootstrap-theme.css', __FILE__)); 244 wp_enqueue_style('localizedbootstrap'); 242 245 243 246 wp_register_style('dnsmanager', plugin_dir_url(__FILE__).'includes/css/dns.crud.css'); 244 247 wp_enqueue_style('dnsmanager'); 245 248 246 wp_register_script('bootstrappedcontents', plugin_dir_url(__FILE__).'includes/js/bootstrap.min.js', null, "1.0.0", true); 247 wp_enqueue_script('bootstrappedcontents'); 248 249 wp_register_script('angular', plugin_dir_url(__FILE__).'includes/js/angular.min.js', array("bootstrappedcontents"), "1.0.0", true); 250 wp_enqueue_script('angular'); 251 252 wp_register_script('dnsmanager', plugin_dir_url(__FILE__).'includes/js/dns.crud.js', array("bootstrappedcontents", "angular"), "1.0.0", true); 253 wp_enqueue_script('dnsmanager'); 249 wp_register_script('angular-ui', plugin_dir_url(__FILE__).'includes/js/vendor.js', array(), "2.5.0", true); 250 wp_enqueue_script('angular-ui'); 251 252 wp_register_script('dnsmanager', plugin_dir_url(__FILE__).'includes/js/scripts.js', array("angular-ui"), "2.5.0", true); 253 wp_enqueue_script('dnsmanager'); 254 $params['ajax_url']=admin_url('admin-ajax.php'); 255 wp_localize_script('dnsmanager', 'wordpress', $params); 254 256 } 255 257 public function AdminMenu() { -
dpt-dnsmanager/trunk/includes/DNSFile.Class.php
r1408277 r1676186 285 285 preg_match('/\((.*?)\)/', $bracketPortion, $matches); 286 286 $bracketPortion = trim($matches[0],"() "); 287 $bracketPortion = preg_replace('/\s+/'," ", $bracketPortion); 287 288 if(is_array($this->debug)) 288 289 array_push($this->debug, array( -
dpt-dnsmanager/trunk/includes/css/dns.crud.css
r1408277 r1676186 1 .BootstrappedContents .modal { 1 /* fix button group wrap within tables */ 2 .localizedbootstrap .nowrap .btn-group { 3 display: flex; 4 } 5 6 .localizedbootstrap .modal { 2 7 overflow-y: scroll; 3 8 } 4 9 5 #MessageBox { 6 7 } 10 #MessageBox {} -
dpt-dnsmanager/trunk/readme.txt
r1408277 r1676186 4 4 Tags: dns, bind, bind9, nsd4, nsdc, domain name, cname, soa, mx 5 5 Requires at least: 3.0.0 6 Tested up to: 4. 3.17 Stable tag: 1. 1.06 Tested up to: 4.8.0 7 Stable tag: 1.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.2.1 = 53 * Incorrectly parsed the parameters due to extra spaces 54 * Moved reload function into angular from jquery 55 56 = 1.2.0 = 57 * Change the way bootstrap is loaded so it works with other dpt modules 58 52 59 = 1.1.0 = 53 60 * relocate dns host file to reside in wordpress' upload dir
Note: See TracChangeset
for help on using the changeset viewer.