-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuconfig.php
110 lines (86 loc) · 4.91 KB
/
nuconfig.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
<?php
// Important Note: You must restart your browser after modifying nuconfig.php in order for changes to be reflected
// Database Settings:
$nuConfigDBDriver = "mysql"; //-- mysql (MySQL, MariaDB) or sqlsrv (MSSQL)
$nuConfigDBPort = ""; //-- MSSQL Port
$nuConfigDBHost = "127.0.0.1"; //-- Database Host / IP
$nuConfigDBName = "nubuilder4"; //-- Database Name. You can change the name, if desired. The database must exist or must be created on your server.
$nuConfigDBUser = "nuadmin"; //-- Database User. Change the user, if desired. The user must exist or must be created.
$nuConfigDBPassword = "YourDBPassword"; //-- Database Password. We recommend you to use any strong password.
// Administrator Login:
$nuConfigDBGlobeadminUsername = "globeadmin"; //-- globeadmin username. You can choose any username you like.
$nuConfigDBGlobeadminPassword = "nu"; //-- globeadmin password. Please choose a stronger password!
// Settings:
$nuConfigTitle = "nuBuilder 4"; //-- nuBuilder Title
$nuConfigTimeOut = 1440; //-- Session Timeout. Default: 1440 (24h)
$nuConfigIsDemo = false; //-- Demo mode. Saving not permitted.
$nuConfigDemoDBGlobeadminUsername = ""; //-- Specify a Demo User Name and Password if $nuConfigIsDemo is set to true
$nuConfigDemoDBGlobeadminPassword = "";
// Options:
$nuConfigIncludeGoogleCharts = true; //-- Include external link to www.gstatic.com
$nuConfigIncludeApexCharts = false; //-- Include apex charts (libs/apexcharts)
$nuConfigEnableDatabaseUpdate = true; //-- Enable updating the database within nuBuilder
$nuConfigKeepSessionAlive = true; //-- Use a timer to keep the session alive
$nuConfigKeepSessionAliveInterval = 600; //-- Keep-alive interval. Default 600 s (10 min)
$nuConfig2FAAdmin = false; //-- Use 2FA authentication for admininstrator
$nuConfig2FAUser = false; //-- Use 2FA authentication for users
// Includes:
$nuConfigIncludeJS = ''; //-- Include one or more JavaScript File(s). E.g. 'myjsfunctions.js' or ['myjsfunctions1.js','myjsfunctions2.js']
$nuConfigIncludeCSS = ''; //-- Include one or more CSS File(s). E.g. 'mystyles.css' or ['mystyles1.css','mystyles2.css']
$nuConfigIncludePHP = ''; //-- Include a PHP File. E.g. '..\myphpfunctions.php'
$nuJSOptions = "
window.nuUXOptions = [];
nuUXOptions['nuEnableBrowserBackButton'] = true; // Enable the browser's Back button
nuUXOptions['nuPreventButtonDblClick'] = true; // Disable a button for 1 5 s to prevent a double click
nuUXOptions['nuShowPropertiesOnMiddleClick'] = true; // Show the Object Properties on middle mouse click
nuUXOptions['nuAutosizeBrowseColumns'] = true; // Autosize columns to fit the document width
nuUXOptions['nuShowBackButton'] = false; // Show a Back Button
nuUXOptions['nuBrowsePaginationInfo'] = 'default'; // Default Format is= '{StartRow} - {EndRow} ' + nuTranslate('of') + ' ' + '{TotalRows}'.
nuUXOptions['nuShowNuBuilderLink'] = true; // Show the link to nubuilder com
nuUXOptions['nuShowLoggedInUser'] = false; // Show the logged in User
nuUXOptions['nuShowBeforeUnloadMessage'] = true; // Show or disable 'Leave site?' message
nuUXOptions['nuShowBrowserTabTitle'] = true; // Show the Form Title in the Browser Tab
nuUXOptions['nuBrowserTabTitlePrefix'] = 'nuBuilder' // Prefix in the Browser Tab
window.nuAdminButtons = [];
nuAdminButtons['nuDebug'] = false;
nuAdminButtons['nuPHP'] = true;
nuAdminButtons['nuRefresh'] = true;
nuAdminButtons['nuObjects'] = true;
nuAdminButtons['nuProperties'] = true;
";
// Uncomment this block to customise the login form:
/*
$nuWelcomeBodyInnerHTML = "
<div id='outer' style='width:100%'>
<form id='nuLoginForm' action='#' method='post' onsubmit='return false'>
<div id='login' class='nuLogin'>
<table>
<tr>
<td align='center' style='padding:0px 0px 0px 33px; text-align:center;'>
<img src='core/graphics/logo.png'><br><br>
</td>
</tr>
<tr>
<td><div style='width:90px; margin-bottom: 5px;'>Username</div><input class='nuLoginInput' id='nuusername' autocomplete='off' /><br><br></td>
</tr>
<tr>
<td><div style='width:90px; margin-bottom: 5px;'>Password</div><input class='nuLoginInput' id='nupassword' type='password' autocomplete='off' onkeypress='nuSubmit(event)'/><br></td>
</tr>
<tr>
<td style='text-align:center' colspan='2'><br><br>
<input id='submit' style='width:90px' type='submit' class='nuButton' onclick='nuLoginRequest()' value='Log in'/>
</td>
</tr>
</table>
</div>
</form>
</div>
";
*/
if(array_key_exists('REQUEST_URI', $_SERVER)){
if(strpos($_SERVER['REQUEST_URI'], basename(__FILE__)) !== false){
header('HTTP/1.0 404 Not Found', true, 404);
die();
}
}
?>