source: src-sh/pc-thinclient/resources/webui/scripts.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: 477 bytes
Line 
1<?php
2
3 require("config.php");
4 require("functions.php");
5
6 if ( $loggedin != 0 )
7 {
8   require("login.php");
9   exit(1);
10 }
11
12
13 if ( isset($_GET['add']) )
14    add_cfg(); 
15 else if (isset($_GET['edit']) )
16    edit_cfg($_GET['edit']); 
17 else {
18    if ( isset($_GET['doadd']) )
19      doadd_cfg();
20    if ( isset($_GET['doedit']) )
21      doedit_cfg($_GET['doedit']);
22    if ( isset($_GET['del']) )
23      rem_cfg($_GET['del']);
24
25    // list the config files
26    list_cfgs();
27 }
28
29?>
Note: See TracBrowser for help on using the repository browser.