Example #1
0
$cfp->addWidget(new Label("Path Configuration", "headline2"));
$cfp->addWidget(new Path("Path on drive, where N/X is installed, e.g. c:/Web/nx4", "PATH", ""));
$cfp->addWidget(new WebServer("Address of your Webserver, e.g. http://localhost", "SERVER"));
$cfp->addWidget(new Docroot("Docroot of the system, e.g. /nx4/", "DOCROOT", ""));
$cfp->addWidget(new Label("<br>", "standard"));
$cfp->addWidget(new Label("Caching", "headline2"));
$cfp->addWidget(new Label("Static caching creates HTML-Files on Demand, which are always present and only expire, when one expires them in backend. Dynamic cache is built on demand. When a user request a page, the cache checks if it is still buffered (15 minutes default). If so, the cached page is sent to the user. If not, the page is rendered, stored and sent afterwards.<br><br>"));
$cfp->addWidget(new SelectBox("Static Caching: <br>(Default = Off)", "SCACHE", "false", $onOff));
$cfp->addWidget(new SelectBox("Dynamic Caching: <br>(Default = On)", "DYNCACHE", "true", $onOff));
$cfp->addWidget(new Label("<br>", "standard"));
$cfp->addWidget(new Label("Tools & Security", "headline2"));
$cfp->addWidget(new Label("Traffic statics are used for recording page impressions and visits. Host authorization is used when authorizing a user. Once a session is created, it is locked to a host. Sometimes this gives you trouble, especially if you are behind a firewall using multiplie IP-Adresses. Disable this function then.<br>"));
$cfp->addWidget(new SelectBox("Traffic Statistics: <br>(Default = On)", "STATS", "true", $onOff));
$cfp->addWidget(new SelectBox("Host Authorization: <br>(Default = On)", "HOSTAUTH", "true", $onOff));
$cfp->addWidget(new Label("<br>", "standard"));
$cfp->addWidget(new Label("Locale Settings", "headline2"));
$cfp->addWidget(new SelectBox("Default Language of the Backend:", "DEFLANG", 1, $languages));
$cfp->addWidget(new TextInput("Standard Encoding:", "ENCODING", "text/html; charset=utf-8"));
$cfp->addWidget(new Retain("DB"));
$cfp->addWidget(new Retain("DBSERVER"));
$cfp->addWidget(new Retain("DBUSER"));
$cfp->addWidget(new Retain("DBPASSWD"));
$page4->addWidget($cfp);
$page5 = new Page("Finished");
$page5->addWidget(new Information("", "./_installer/finished.txt"));
$installer->addPage($page1);
$installer->addPage($page2);
$installer->addPage($page3);
$installer->addPage($page4);
$installer->addPage($page5);
$installer->start();