This repository has been archived by the owner on Oct 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
565 lines (497 loc) · 30.1 KB
/
index.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-itunes-app" content="app-id=1104674191">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="assets/images/favicon.png">
<title>UVT</title>
<!-- Custom CSS -->
<link href="dist/css/style.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="skin-green-dark fix-header single-column card-no-border fix-sidebar">
<!-- ============================================================== -->
<!-- Preloader - style you can find in spinners.css -->
<!-- ============================================================== -->
<div class="preloader">
<div class="loader">
<div class="loader__figure"></div>
<p class="loader__label">UVT</p>
</div>
</div>
<!-- ============================================================== -->
<!-- Main wrapper - style you can find in pages.scss -->
<!-- ============================================================== -->
<div id="main-wrapper">
<!-- ============================================================== -->
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== -->
<header class="topbar">
<nav class="navbar top-navbar navbar-expand-md navbar-dark">
<!-- ============================================================== -->
<!-- Logo -->
<!-- ============================================================== -->
<div class="navbar-header">
<a class="navbar-brand" href="index.php">
<!-- Logo icon --><b>
<!--You can put here icon as well // <i class="wi wi-sunset"></i> //-->
<!-- Dark Logo icon -->
<img src="assets/images/logo-icon.png" alt="homepage" class="dark-logo" />
<!-- Light Logo icon -->
<img src="assets/images/logo-light-icon.png" alt="homepage" class="light-logo" />
</b>
<!--End Logo icon -->
<span class="hidden-xs"><span class="font-bold">UV</span>Trainer</span>
</a>
</div>
<!-- ============================================================== -->
<!-- End Logo -->
<!-- ============================================================== -->
<?php include_once "includes/top_bar.php"; ?>
<!-- ============================================================== -->
<!-- mega menu -->
<!-- ============================================================== -->
<?php include_once "includes/mega_menu.php"; ?>
<!-- ============================================================== -->
<!-- End mega menu -->
<!-- ============================================================== -->
<li class="nav-item right-side-toggle"> <a class="nav-link waves-effect waves-light" href="javascript:void(0)"><i class="ti-settings"></i></a></li>
</ul>
</div>
</nav>
</header>
<!-- ============================================================== -->
<!-- End Topbar header -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<?php include_once "includes/left_sidebar.php"; ?>
<!-- ============================================================== -->
<!-- End Left Sidebar - style you can find in sidebar.scss -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">
<div class="col-md-5 align-self-center">
<h4 class="text-themecolor">UVT</h4>
</div>
<div class="col-md-7 align-self-center text-right">
<div class="d-flex justify-content-end align-items-center">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active" id="title"></li>
</ol>
<!-- <button type="button" class="btn btn-info d-none d-lg-block m-l-15"><i class="fa fa-plus-circle"></i> Create New</button> -->
</div>
</div></div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Start Page Content -->
<!-- ============================================================== -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div align="left">
<p>
<p id="domain"></p>
</div>
<div align="center">
<p id="alert"></p>
<p id="body">Please wait while the data is loaded and license is verified.<br>This should only take a few seconds. If it takes longer please use the comments form or email [email protected] to report the error.</p>
<p id="body2"></p>
<p id="bottom"></p>
<br>
<br>
<p id="sendemailp"></p>
<p id="shorturlp"></p>
<IFRAME style="display:none" name="hidden-form"></IFRAME>
<IFRAME style="display:none" name="hidden-form2"></IFRAME>
<p id="license"></p>
<p id="supportcomments"><br>For Support or Suggestions (or to help improve this code) view goto https://github.com/kumpeapps/UVT_PHP and raise an issue or submit a pull request.</p>
</p>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br>
</body>
<script>
window.onload = function () {
window.userlicense = ""
window.license = "null"
window.auth = "null"
window.supportappsource = "3"
window.supportdevice = "6"
window.device = getUrlVars()["device"];
window.license = getUrlVars()["license"];
window.version = "11";
window.crtblock = "";
deviceLicense();
}
<!-- Check Device License -->
function deviceLicense(){
viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0');
window.devicelicense = " for WebApp Use-";
window.supportdevice = "6";
window.supportappsource = "3";
document.getElementById("bottom").innerHTML = "<br><code id='backbutton'><INPUT class='btn btn-outline-dark' TYPE='button' disabled value='Back' class='btn btn-outline-dark' ></code> <INPUT class='btn btn-outline-dark' TYPE='button' onClick='checkLicense()' value='Home'>";
checkLicense();
}
<!-- End Check Device License -->
<!-- Check For User Licensing -->
function checkLicense() {
window.userlicense = "-Public License";
window.sectionlicense = "JKUVT";
detectIntranet();
}
<!-- End Check For User Licensing -->
// Outdated Function. No longer requires intranet detection.
function detectIntranet() {
window.auth = "public";
document.getElementById("license").innerHTML = userlicense + devicelicense;
checkSectionLicense();
}
<!-- End Network Detection -->
<!-- Start Check Section License -->
function checkSectionLicense() {
if (sectionlicense == "StaticsTrainer") {
StaticsTrainer();
} else if (sectionlicense == "JKUVT") {
JKUVT();
} else {
checkLicense();
}
}
<!-- End Detect Section License -->
<!-- Start JKUVT -->
function JKUVT() {
document.getElementById("body2").innerHTML = "";
document.getElementById("title").innerHTML = "UVT- " + version;
var body = "<INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='RJ45()' value='View RJ-45 Wiring Scheme'><br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='fibercolor()' value='View Fiber Color Code'><br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='coppercolor()' value='View 25 Pair Color Code'><br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='StaticsTrainer()' value='Uverse RG Static IP Trainer'><p id='attbody'></p><br><p id='uvtphoto'></p>";
document.getElementById("body").innerHTML = body;
<!-- Check License Authorization -->
if (auth == "att") {
document.getElementById("attbody").innerHTML = "<br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='RGCapabilities()' value='UV RG Capabilities'><br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='CommonWiFiDevices()' value='Common WiFi Device Capabilities'><br><br><INPUT class='btn btn-rounded btn-success' TYPE='button' onClick='starps()' value='VOIP Star Codes'>";
} else {
document.getElementById("attbody").innerHTML = "";
}
}
<!-- End Check License Authorization -->
function RJ45() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "<p id='uvtphoto'></p>";
document.getElementById("uvtphoto").innerHTML = "<img id='uvtPhoto' src='Photos/none.jpg' alt='' max-width='450' max-height='275' width='100%' height='auto' border='0'>";
document.getElementById("uvtPhoto").src = "Photos/rj45-wiring-schemes.png";
}
function RGCapabilities() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "<p id='uvtphoto'></p>";
document.getElementById("uvtphoto").innerHTML = "<img id='uvtPhoto' src='Photos/none.jpg' alt='' max-width='450' max-height='275' width='100%' height='auto' border='0'>";
document.getElementById("uvtPhoto").src = "Photos/RG-WiFi-Capabilities.png";
}
function CommonWiFiDevices() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "<p id='uvtphoto'></p>";
document.getElementById("uvtphoto").innerHTML = "<img id='uvtPhoto' src='Photos/none.jpg' alt='' max-width='450' max-height='275' width='100%' height='auto' border='0'>";
document.getElementById("uvtPhoto").src = "Photos/Common_WiFi_Devices.png";
}
function fibercolor() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "<p id='uvtphoto'></p>";
document.getElementById("uvtphoto").innerHTML = "<img id='uvtPhoto' src='Photos/none.jpg' alt='' max-width='200' max-height='344.39' width='100%' height='auto' border='0'>";
document.getElementById("uvtPhoto").src = "Photos/fiber_color-code.jpg";
}
function coppercolor() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "<p id='uvtphoto'></p>";
document.getElementById("uvtphoto").innerHTML = "<img id='uvtPhoto' src='Photos/none.jpg' alt='' max-width='200' max-height='400' width='100%' height='auto' border='0'>";
document.getElementById("uvtPhoto").src = "Photos/25-pair-color-code.png";
}
function starps() {
document.getElementById("attbody").innerHTML = "";
document.getElementById("body").innerHTML = "Star ps<br><br>Anonymous Call Blocking<br>On: *77#<br>Off: *87#<br><br>All Call Forwarding<br>On: *72,forwarding number,#<br>Off: *73#<br><br>Busy Call Forwarding<br>On: *90,forwarding number,#<br>Off: *91#<br><br>Call Blocking<br>On: *90,number,#<br>Off: *91#<br><br>Caller ID Blocking (Per Call)<br>*67,dial number,#<br><br>Call Waiting<br>On: *371#<br>Off: *370#<br><br>Do Not Disturb<br>On: *78#<br>Off: 79#<br><br>Safe Call Forwarding<br>(Allows to forward incoming calls to another number if main phone line has a service disruption)<br>On: *372,forwarding number,#<br>Off: *373#";
}
<!-- End JKUVT -->
<!-- Start Static IP Trainer -->
function StaticsTrainer() {
document.getElementById("body2").innerHTML = "";
document.getElementById("attbody").innerHTML = "";
document.getElementById("title").innerHTML = "UVT- Uverse RG Static IP Trainer V" + version;
document.getElementById("body2").innerHTML = "";
window.back1 = "JKUVT";
GiveIP();
}
<!-- End Check License Authorization -->
function main()
{
<!-- Start Alert if on Windows Platform -->
var clientBrowser = navigator.platform
if (clientBrowser == "Win32") {
var alert = "<p><marquee bgcolor='#fffd00' height='19' loop='infinite' width='100%'>It appears you are using Microsoft Windows. Please note that this program does not function properly with Internet Explorer. Please use Safari (preferred) or FireFox.</marquee></p>";
} else {
var alert = "";
}
<!-- End Alert -->
document.getElementById("alert").innerHTML = alert;
var body = "First you need to identify your Start IP Address and Block Size<br><br><INPUT TYPE='button' onClick='GetIP1()' value='I need help getting my Start IP and Block Size'><br><br><INPUT TYPE='button' onClick='GiveIP()' value='I already know my Start IP and Block Size'>";
document.getElementById("body").innerHTML = body;
document.getElementById("Photo").src = "Photos/BBNMS-1.jpg";
}
function GiveIP() {
var button = "<INPUT TYPE='button' onClick='GiveIPvar()' value='Next' class='btn btn-outline-success' >";
window.back2 = "GiveIP";
var backbutton = "<INPUT TYPE='button' onClick='" + back1 + "()' value='Back' class='btn btn-outline-dark' >";
var body = "<p>Enter your start IP address and block size then click Next</p><p>Start IP: <input id='o1' type='number' size='3' maxlength='3' min='1' max='254' required/>.<input id='o2' type='number' size='3' maxlength='3' min='1' max='254' required/>.<input id='o3' type='number' size='3' maxlength='3' min='1' max='254' required/>.<input id='o4' type='number' size='3' maxlength='3' min='1' max='254' required/></p><p>Block Size: <select class='selectpicker' data-style='form-control btn-success' id='Block'><option value='8'>8</option><option value='16'>16</option><option value='32'>32</option><option value='64'>64</option></select></p><br><br>" + button;
document.getElementById("backbutton").innerHTML = backbutton;
document.getElementById("body").innerHTML = body;
document.getElementById("body2").innerHTML = "";
document.getElementById("button").innerHTML = button;
}
function GiveIPvar() {
window.o1 = document.getElementById('o1').value;
window.o2 = document.getElementById('o2').value;
window.o3 = document.getElementById('o3').value;
window.o4 = document.getElementById('o4').value;
var Block = document.getElementById("Block");
window.blocksize = "";
window.blocksize = Block.options[Block.selectedIndex].value;
Identify()
}
function PrePop() {
window.o1 = getUrlVars()["o1"];
window.o2 = getUrlVars()["o2"];
window.o3 = getUrlVars()["o3"];
window.o4 = getUrlVars()["o4"];
window.auth = "public"
document.getElementById("title").innerHTML = "UVT- Uverse RG Static IP Setup Instructions V" + version + "<br> These instructions have been customized for customer with block " + o1 + "." + o2 + "." + o3 + "." + o4;
var Block = getUrlVars()["block"];
window.blocksize = "";
window.blocksize = getUrlVars()["block"];
window.back2 = "deviceLicense";
Identify()
}
function Identify() {
if (blocksize == "8") {
window.maskend = "248";
IdentifyIPs();
} else if (blocksize == "16") {
window.maskend = "240";
IdentifyIPs();
} else if (blocksize == "32") {
window.maskend = "224";
IdentifyIPs();
} else if (blocksize == "64") {
window.maskend = "192";
IdentifyIPs();
} else {
window.maskend = "error";
IdentifyIPs();
}
}
function IdentifyIPs() {
window.mask = "255.255.255." + maskend;
var backbutton2 = "<INPUT TYPE='button' onClick='" + back2 + "()' value='Back' class='btn btn-outline-dark' >" ;
var IP = o1 + "." + o2 + "." + o3 + ".";
var fuadd = "1";
var fuo4 = +o4 + +fuadd;
var lusub = "3";
var luo4 = +o4 + +blocksize - +lusub;
var rsub = "2";
var ro4 = +o4 + +blocksize - +rsub;
window.fu = IP + fuo4;
window.lu = IP + luo4;
window.router = IP + ro4;
var button = "<!--<INPUT TYPE='button' onClick='promalert()' value='Email Instructions'>--><br><INPUT TYPE='button' onClick='SelectRG()' value='Next' class='btn btn-outline-success' >";
document.getElementById("backbutton").innerHTML = backbutton2;
var body = ""
var body2 = "Below is your Static IP information. Please write this down and give it to the customer.<br><br>First Useable IP: <b>" + fu + "</b><br>Last Useable IP: <b>" + lu + "</b><br>Router/Default Gateway: <b>" + router + "</b><br>Subnet Mask: <b>" + mask + "</b><br>Primary DNS: <b>68.94.156.1</b><br>Secondary DNS: <b>68.94.157.1</b><br><br> After giving this information to the customer please click next to continue with the instructions. <br><br>" + button;
document.getElementById("body").innerHTML = body;
document.getElementById("body2").innerHTML = body2;
}
function promalert(){
swal({ title: "Email Info and Instructions!",
text: "Enter Customer's email address:",
type: "input",
showCancelButton: true,
closeOnConfirm: false,
animation: "slide-from-top",
inputPlaceholder: "Your Customer's Email address" },
function(inputValue){
if (inputValue === false)
return false;
if (inputValue === "") {
swal.showInputError("Please enter email!");
return false
}
document.getElementById("sendemailp").innerHTML = "<FORM name='sendemail' action='https://uvt.kumpeapps.com/sendemail.php' method='POST' target='hidden-form'><input type='hidden' name='o1' value='" + o1 + "' readonly><input type='hidden' name='o2' value='" + o2 + "' readonly><input type='hidden' name='o3' value='" + o3 + "' readonly><input type='hidden' name='o4' value='" + o4 + "' readonly><input type='hidden' name='block' value='" + blocksize + "' readonly><input type='hidden' name='email' value='" + inputValue + "' readonly></FORM>";
document.getElementById("shorturlp").innerHTML = "<FORM name='shorturl' action='https://kumpe.link/yourls-api.php' method='POST' target='hidden-form2'><input type='hidden' name='signature' value='13aee03ea8' readonly><input type='hidden' name='action' value='shorturl' readonly><input type='hidden' name='url' value='https://uvt.kumpeapps.com/?license=prepop&o1=" + o1 + "&o2=" + o2 + "&o3=" + o3 + "&o4=" + o4 + "&block=" + blocksize + "' readonly><input type='hidden' name='keyword' value='" + o1 + o2 + o3 + o4 + blocksize + "' readonly><input type='hidden' name='title' value='UVT- " + o1 + o2 + o3 + o4 + blocksize + "' readonly></FORM>";
document.forms['sendemail'].submit();
document.forms['shorturl'].submit();
swal("Email Sent!", "You entered following email: " + inputValue, "success"); });
}
function SelectRG() {
var button = "<INPUT TYPE='button' onClick='RGVar()' value='Next' class='btn btn-outline-success' >";
var backbutton = "<INPUT TYPE='button' onClick='IdentifyIPs()' value='Back' class='btn btn-outline-dark' >";
var body = "<p>Select Your RG: <select id='RG'><option value='ARRIS'>BGW210</option><option value='Pace'>5268AC</option><option value='ARRIS'>NVG-510</option><option value='ARRIS'>589</option><option value='ARRIS'>599</option><option value='Pace'>5031</option><option value='Pace'>3801</option></select></p><br><br>" + button;
document.getElementById("backbutton").innerHTML = backbutton;
document.getElementById("body").innerHTML = body;
document.getElementById("body2").innerHTML = "";
document.getElementById("button").innerHTML = button;
}
function RGVar() {
var GetRG = document.getElementById("RG");
var backbutton = "<INPUT TYPE='button' onClick='IdentifyIPs()' value='Back' class='btn btn-outline-dark' >";
window.rg = GetRG.options[GetRG.selectedIndex].text;
window.man = GetRG.options[GetRG.selectedIndex].value;
Config1()
}
function Config1() {
var button = "<INPUT TYPE='button' onClick='Config2()' value='Next' class='btn btn-outline-success' >";
var backbutton = "<INPUT TYPE='button' onClick='SelectRG()' value='Back' class='btn btn-outline-dark' >";
var GetPhoto = "Photos/" + auth + "-" + rg + "-1.jpg";
if (man == "Pace") {
var instructions2 = "<p>2. Click Settings</p><p>3. Click Broadband</p><p>4. Click Link Configuration</p>";
} else if (man == "ARRIS") {
var instructions2 = "<p>2. Click Home Network</p><p>3. Click Subnets & DHCP</p>";
} else {
var instructions2 = "error";
}
var body = "<p>1. Goto the RG Configuration Page <b>(192.168.1.254)</b></p>" + instructions2 + "<p></p><p><img id='Photo' src='Photos/none.jpg' alt='' max-width='574' max-height='197' width='100% height='auto' border='0'></p><br><p id='button'></p>"
document.getElementById("backbutton").innerHTML = backbutton;
document.getElementById("body").innerHTML = body;
document.getElementById("Photo").src = GetPhoto;
document.getElementById("button").innerHTML = button;
}
function Config2() {
var GetPhoto = "Photos/" + rg + "-2.jpg";
var backbutton = "<INPUT TYPE='button' onClick='Config1()' value='Back' class='btn btn-outline-dark' >";
if (man == "Pace") {
var instructions = "<p>5. Scroll down to Supplementary Network</p><p>6. Select Add Additional Network</p><p>7. In The Router Address Field Enter <b>" + router + "</b></p><p>8. In The Subnet Mask Field Enter <b>" + mask + "</b></p><p>9. Check Auto Firewall Open</p><p>10. Click Save</p>";
} else if (rg == "599") {
var instructions = "<p>4. Set Public Subnet Mode to On</p><p>5. Set Allow Inbound Traffic to On</p><p>6. In The Public Gateway Address Field Enter <b>" + router + "</b></p><p>7. In The Public Subnet Mask Enter <b>" + mask + "</b></p><p>8. In The DHCPv4 Start Address Field (Under Public Subnet) Enter <b>" + fu + "</b></p><p>9. In The DHCPv4 End Address Field (Under Public Subnet) Enter <b>" + lu + "</b></p><p>10. Set Primary DHCP Pool to Private</p><p>11. Click Save</p>";
} else if (man == "ARRIS") {
var instructions = "<p>4. Set Public Subnet Enable to On</p><p>5. In The Public IPv4 Address Field Enter <b>" + router + "</b></p><p>6. In The Public Subnet Mask Enter <b>" + mask + "</b></p><p>7. In The DHCPv4 Start Address Field (Under Public Subnet) Enter <b>" + fu + "</b></p><p>8. In The DHCPv4 End Address Field (Under Public Subnet) Enter <b>" + lu + "</b></p><p>9. Set Allow Inbound Traffic To On</p><p>10. Set Primary DHCP Pool to Private</p><p>11. Click Save</p>";
} else {
var instructions = "error";
}
var body = instructions + "<br><img id='Photo' src='Photos/none.jpg' alt='' max-width='574' max-height='197' width='100% height='auto' border='0'></p><br><br>The Static IPs should now be configured"
document.getElementById("backbutton").innerHTML = backbutton;
document.getElementById("body").innerHTML = body;
document.getElementById("Photo").src = GetPhoto;
}
<!-- End Static IP Trainer -->
<!-- Get Vars from URL -->
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
<!-- End Get Vars from URL -->
<!-- Start CRT Web -->
function CRT() {
if (crtblock === "yes") {
window.body = "It appears you are accessing the CRT site from a corporate network. CRT functions have been blocked for your network. These CRT functions do not operate properly on corporate networks and have not been authorized by your network administrators. If you believe this is in error please use the support link below to request an authorized link for CRT.";
} else {
window.body = "Select Option Below then select run on the download window<br>NOTE: These options will ONLY work with Microsoft Windows. No Guarantees are made, these programs are to be used at your own risk. These programs may clear out browsing history and sometimes can cause you to loose your favorites. <br> If you have an internal static IP address set on this computer it may be changed to DHCP after running the Repair Internet Script!<br><br><form method='get' action='https://apps.justinkumpe.net/uvt/crt/Clear_ALL_History.exe'><button type='submit'>Clear All Browsing History</button></form><br><form method='get' action='https://apps.justinkumpe.net/uvt/crt/Repair_Internet.exe'><button type='submit'>Repair Internet</button></form><br><form method='get' action='https://apps.justinkumpe.net/uvt/crt/Set_MTU.exe'><button type='submit'>Set MTU Value</button></form>";
}
document.getElementById("title").innerHTML = "CRT Web";
document.getElementById("body2").innerHTML = "";
document.getElementById("body").innerHTML = body;
document.getElementById("supportcomments").innerHTML = "";
}
<!-- End CRT Web -->
<!-- Start MDM Profiles -->
function MDM() {
if (license === "auth-app-store") {
window.body = "This feature is not available in the iOS/Android app. To access this feature please load the web version of this app at https://kumpe.link/uvt";
} else {
window.body = "Select Option Below for the profile you wish to install<br>NOTE: it may take a few seconds to load after clicking on button!<br><br><form method='get' action='https://apps.justinkumpe.net/uvt/Gage_WiFi.mobileconfig'><button type='submit'>Gage Pl WiFi Settings</button></form><br><br><form method='get' action='https://apps.justinkumpe.net/uvt/ATT_Weblinks.mobileconfig'><button type='submit'>PT Web Links</button></form>";
}
document.getElementById("title").innerHTML = "MDM Profiles";
document.getElementById("body2").innerHTML = "";
document.getElementById("body").innerHTML = body;
document.getElementById("supportcomments").innerHTML = "";
}
<!-- End MDM Profiles -->
</script>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End PAge Content -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Right sidebar -->
<!-- ============================================================== -->
<!-- .right-sidebar -->
<?php include_once "includes/right_sidebar.php"; ?>
<!-- ============================================================== -->
<!-- End Right sidebar -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Page wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->
<footer class="footer">
© 2021 Justin Kumpe
</footer>
<!-- ============================================================== -->
<!-- End footer -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- All Jquery -->
<!-- ============================================================== -->
<script src="assets/node_modules/jquery/jquery-3.2.1.min.js"></script>
<!-- Bootstrap tether Core JavaScript -->
<script src="assets/node_modules/popper/popper.min.js"></script>
<script src="assets/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- slimscrollbar scrollbar JavaScript -->
<script src="dist/js/perfect-scrollbar.jquery.min.js"></script>
<!--Wave Effects -->
<script src="dist/js/waves.js"></script>
<!--Menu sidebar -->
<script src="dist/js/sidebarmenu.js"></script>
<!--stickey kit -->
<script src="assets/node_modules/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="assets/node_modules/sparkline/jquery.sparkline.min.js"></script>
<script src="assets/node_modules/bootstrap-select/bootstrap-select.min.js"></script>
<!--Custom JavaScript -->
<script src="dist/js/custom.min.js"></script>
</body>
</html>