source: src-sh/pc-thinclient/resources/webui/index.php @ 4023a66

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 4023a66 was 4023a66, checked in by Kris Moore <kris@…>, 10 months ago

Add the new pc-thinclient WebUI

Its very basic, but it lets you upload / edit pc-sysinstall
config files, as well as add MAC address links to the config you want
to install it with. Includes some basic PHP auth as well, to restrict
who can use it.

  • Property mode set to 100644
File size: 646 bytes
Line 
1<?php
2
3date_default_timezone_set ( "UTC" );
4session_start();
5
6ini_set('display_errors', 'On');
7
8// Load the config
9require("config.php");
10require("logincheck.php");
11
12if ( $loggedin != 0 )
13{
14  require("login.php");
15  exit(1);
16}
17
18?>
19
20<html>
21<head>
22<title>PC-ThinClient PXE Management</title>
23</head>
24<a href="?view=clients">Clients</a> - <a href="?view=configs">Install Configs</a> - <a href="?p=logout">Logout</a>
25<br>
26<hr>
27<?php
28
29 if ( isset($_GET['view']) )
30  $view = $_GET['view'];
31 else
32  $view = "clients"; 
33
34 if ("$view" == "clients" ) {
35  include("clients.php");
36 } else if ("$view" == "configs" ) {
37  include("scripts.php");
38 }
39?>
40</html>
Note: See TracBrowser for help on using the repository browser.