Project

General

Profile

« Previous | Next » 

Revision c3dafdb2

Added by Sjon Hortensius over 10 years ago

updated Form_Input instructions & upload script

refs #16

View differences:

README.md
36 36
```bash
37 37
#!/bin/sh
38 38

  
39
rsync -xav --delete `dirname $0`/usr/local/www/ root@192.168.122.100:/usr/local/www/
40
rsync -xav --delete `dirname $0`/etc/inc/ root@192.168.122.100:/etc/inc/
39
HOST=192.168.122.100
40

  
41
rsync -xav --delete `dirname $0`/usr/local/www/ root@$HOST:/usr/local/www/
42
rsync -xav --delete `dirname $0`/etc/inc/ root@$HOST:/etc/inc/
41 43
```
42 44

  
43 45
# Cleaner
......
69 71
$section = new Form_Section('System');
70 72

  
71 73
$section->addInput(new Form_Input(
72
    'Hostname',
73
    'text',
74
    $pconfig['hostname'],
75
    ['placeholder' => 'pfSense']
74
	'hostname',
75
	'Hostname',
76
	'text',
77
	$pconfig['hostname'],
78
	['placeholder' => 'pfSense']
76 79
))->setHelp('Name of the firewall host, without domain part');
77 80

  
78 81
$section->addInput(new Form_Input(
79
    'Domain',
80
    'text',
81
    $pconfig['domain'],
82
    ['placeholder' => 'mycorp.com, home, office, private, etc.']
82
	'domain',
83
	'Domain',
84
	'text',
85
	$pconfig['domain'],
86
	['placeholder' => 'mycorp.com, home, office, private, etc.']
83 87
))->setHelp('Do not use \'local\' as a domain name. It will cause local '.
84
    'hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve '.
85
    'local hosts not running mDNS.');
88
	'hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve '.
89
	'local hosts not running mDNS.');
86 90

  
87 91
$form->add($section);
88 92

  

Also available in: Unified diff