2 // Note: This file is included from the library/Vanilla/Vanilla.Control.GlobalsForm.php control.
3 echo '<div id="Form" class="Account GlobalsForm">';
4 if (ForceIncomingBool('Success',0)) echo '<div id="Success">'.$this->Context
->GetDefinition('GlobalApplicationChangesSaved').'</div>';
6 <legend>'.$this->Context
->GetDefinition('GlobalApplicationSettings').'</legend>
7 '.$this->Get_Warnings().'
8 '.$this->Get_PostBackForm('frmApplicationGlobals').'
9 <h2>'.$this->Context
->GetDefinition('Warning').'</h2>
11 '.$this->Context
->GetDefinition('GlobalApplicationSettingsNotes').'
14 <h2>'.$this->Context
->GetDefinition('ApplicationTitles').'</h2>
17 <label for="txtApplicationTitle">'.$this->Context
->GetDefinition('ApplicationTitle').'</label>
18 <input type="text" name="APPLICATION_TITLE" value="'.$this->ConfigurationManager
->GetSetting('APPLICATION_TITLE').'" maxlength="50" class="SmallInput" id="txtApplicationTitle" />
21 <label for="txtBannerTitle">'.$this->Context
->GetDefinition('BannerTitle').'</label>
22 <input type="text" name="BANNER_TITLE" value="'.$this->ConfigurationManager
->GetSetting('BANNER_TITLE').'" class="SmallInput" id="txtBannerTitle" />
23 <p class="Description">'.$this->Context
->GetDefinition('ApplicationTitlesNotes').'</p>
27 <h2>'.$this->Context
->GetDefinition('ForumOptions').'</h2>
29 <li id="ForumOptions">
30 <p><span>'.GetDynamicCheckBox('ENABLE_WHISPERS', 1, $this->ConfigurationManager
->GetSetting('ENABLE_WHISPERS'), '', $this->Context
->GetDefinition('EnableWhispers')).'</span></p>
31 <p><span>'.GetDynamicCheckBox('ALLOW_NAME_CHANGE', 1, $this->ConfigurationManager
->GetSetting('ALLOW_NAME_CHANGE'), '', $this->Context
->GetDefinition('AllowNameChange')).'</span></p>
32 <p><span>'.GetDynamicCheckBox('PUBLIC_BROWSING', 1, $this->ConfigurationManager
->GetSetting('PUBLIC_BROWSING'), '', $this->Context
->GetDefinition('AllowPublicBrowsing')).'</span></p>
33 <p><span>'.GetDynamicCheckBox('USE_CATEGORIES', 1, $this->ConfigurationManager
->GetSetting('USE_CATEGORIES'), '', $this->Context
->GetDefinition('UseCategories')).'</span></p>
34 <p><span>'.GetDynamicCheckBox('LOG_ALL_IPS', 1, $this->ConfigurationManager
->GetSetting('LOG_ALL_IPS'), '', $this->Context
->GetDefinition('LogAllIps')).'</span></p>
38 <h2>'.$this->Context
->GetDefinition('CountsTitle').'</h2>
41 <label for="ddDiscussionsPerPage">'.$this->Context
->GetDefinition('DiscussionsPerPage').'</label>
43 $Selector = $this->Context
->ObjectFactory
->NewObject($this->Context
, 'Select');
44 $Selector->CssClass
= 'SmallSelect';
45 $Selector->Name
= 'DISCUSSIONS_PER_PAGE';
46 $Selector->Attributes
= ' id="ddDiscussionsPerPage"';
49 $Selector->AddOption($i, $i);
52 $Selector->SelectedValue
= $this->ConfigurationManager
->GetSetting('DISCUSSIONS_PER_PAGE');
53 echo $Selector->Get().'
56 <label for="ddCommentsPerPage">'.$this->Context
->GetDefinition('CommentsPerPage').'</label>
58 $Selector->Name
= 'COMMENTS_PER_PAGE';
59 $Selector->Attributes
= ' id="ddCommentsPerPage"';
60 $Selector->SelectedValue
= $this->ConfigurationManager
->GetSetting('COMMENTS_PER_PAGE');
61 echo $Selector->Get().'
64 <label for="ddSearchResultsPerPage">'.$this->Context
->GetDefinition('SearchResultsPerPage').'</label>
66 $Selector->Name
= 'SEARCH_RESULTS_PER_PAGE';
67 $Selector->Attributes
= ' id="ddSearchResultsPerPage"';
68 $Selector->SelectedValue
= $this->ConfigurationManager
->GetSetting('SEARCH_RESULTS_PER_PAGE');
69 echo $Selector->Get().'
72 $this->CallDelegate('PostCounts');
76 <h2>'.$this->Context
->GetDefinition('SpamProtectionTitle').'</h2>
79 <label for="txtMaxCommentLength">'.$this->Context
->GetDefinition('MaxCommentLength').'</label>
80 <input type="text" name="MAX_COMMENT_LENGTH" value="'.$this->ConfigurationManager
->GetSetting('MAX_COMMENT_LENGTH').'" maxlength="255" class="SmallInput" id="txtMaxCommentLength" />
81 <p class="Description">
82 '.$this->Context
->GetDefinition('MaxCommentLengthNotes');
84 $Selector->CssClass
= 'SmallSelect';
85 for ($i = 1; $i < 31; $i++
) {
86 $Selector->AddOption($i, $i);
88 $Selector->Name
= 'DISCUSSION_POST_THRESHOLD';
89 $Selector->SelectedValue
= $this->Context
->Configuration
['DISCUSSION_POST_THRESHOLD'];
91 $SecondsSelector = $this->Context
->ObjectFactory
->NewObject($this->Context
, 'Select');
92 $SecondsSelector2 = $this->Context
->ObjectFactory
->NewObject($this->Context
, 'Select');
93 $SecondsSelector->CssClass
= 'SmallSelect';
94 $SecondsSelector2->CssClass
= 'SmallSelect';
95 for ($i = 10; $i < 601; $i++
) {
96 $SecondsSelector->AddOption($i, $i);
97 $SecondsSelector2->AddOption($i, $i);
100 $SecondsSelector->Name
= 'DISCUSSION_TIME_THRESHOLD';
101 $SecondsSelector->SelectedValue
= $this->Context
->Configuration
['DISCUSSION_TIME_THRESHOLD'];
102 $SecondsSelector2->Name
= 'DISCUSSION_THRESHOLD_PUNISHMENT';
103 $SecondsSelector2->SelectedValue
= $this->Context
->Configuration
['DISCUSSION_THRESHOLD_PUNISHMENT'];
105 echo '<br /><br />'.str_replace(array('//1', '//2', '//3'),
106 array($Selector->Get(), $SecondsSelector->Get(), $SecondsSelector2->Get()),
107 $this->Context
->GetDefinition('XDiscussionsYSecondsZFreeze'));
109 $Selector->Name
= 'COMMENT_POST_THRESHOLD';
110 $Selector->SelectedValue
= $this->Context
->Configuration
['COMMENT_POST_THRESHOLD'];
112 $SecondsSelector->Name
= 'COMMENT_TIME_THRESHOLD';
113 $SecondsSelector->SelectedValue
= $this->Context
->Configuration
['COMMENT_TIME_THRESHOLD'];
115 $SecondsSelector2->Name
= 'COMMENT_THRESHOLD_PUNISHMENT';
116 $SecondsSelector2->SelectedValue
= $this->Context
->Configuration
['COMMENT_THRESHOLD_PUNISHMENT'];
119 .str_replace(array('//1', '//2', '//3'),
120 array($Selector->Get(), $SecondsSelector->Get(), $SecondsSelector2->Get()),
121 $this->Context
->GetDefinition('XCommentsYSecondsZFreeze'))
125 <h2>'.$this->Context
->GetDefinition('EmailSettings').'</h2>
128 <label for="txtSupportName">'.$this->Context
->GetDefinition('SupportName').'</label>
129 <input type="text" name="SUPPORT_NAME" value="'.$this->ConfigurationManager
->GetSetting('SUPPORT_NAME').'" maxlength="255" class="SmallInput" id="txtSupportName" />
132 <label for="txtSupportEmail">'.$this->Context
->GetDefinition('SupportEmail').'</label>
133 <input type="text" name="SUPPORT_EMAIL" value="'.$this->ConfigurationManager
->GetSetting('SUPPORT_EMAIL').'" maxlength="255" class="SmallInput" id="txtSupportEmail" />
134 <p class="Description">'.$this->Context
->GetDefinition('SupportContactNotes').'</p>
137 <label for="txtSMTPHost">'.$this->Context
->GetDefinition('SMTPHost').'</label>
138 <input type="text" name="SMTP_HOST" value="'.$this->ConfigurationManager
->GetSetting('SMTP_HOST').'" maxlength="255" class="SmallInput" id="txtSMTPHost" />
141 <label for="txtSMTPUser">'.$this->Context
->GetDefinition('SMTPUser').'</label>
142 <input type="text" name="SMTP_USER" value="'.$this->ConfigurationManager
->GetSetting('SMTP_USER').'" maxlength="255" class="SmallInput" id="txtSMTPUser" />
145 <label for="txtSMTPPassword">'.$this->Context
->GetDefinition('SMTPPassword').'</label>
146 <input type="password" name="SMTP_PASSWORD" value="'.$this->ConfigurationManager
->GetSetting('SMTP_PASSWORD').'" maxlength="255" class="SmallInput" id="txtSMTPPassword" />
147 <p class="Description">'.$this->Context
->GetDefinition('SMTPSettingsNotes').'</p>
151 <h2>'.$this->Context
->GetDefinition('ApplicationSettings').'</h2>
154 <label for="txtWebPathtoVanilla">'.$this->Context
->GetDefinition('WebPathToVanilla').'</label>
155 <input type="text" name="BASE_URL" value="'.$this->ConfigurationManager
->GetSetting('BASE_URL').'" maxlength="255" class="SmallInput" id="txtWebPathToVanilla" />
156 <p class="Description">'.$this->Context
->GetDefinition('WebPathNotes').'</p>
159 <label for="txtCookieDomain">'.$this->Context
->GetDefinition('CookieDomain').'</label>
160 <input type="text" name="COOKIE_DOMAIN" value="'.$this->ConfigurationManager
->GetSetting('COOKIE_DOMAIN').'" maxlength="255" class="SmallInput" />
163 <label for="txtCookiePath">'.$this->Context
->GetDefinition('CookiePath').'</label>
164 <input type="text" name="COOKIE_PATH" value="'.$this->ConfigurationManager
->GetSetting('COOKIE_PATH').'" maxlength="255" class="SmallInput" id="txtCookiePath" />
165 <p class="Description">'.$this->Context
->GetDefinition('CookieSettingsNotes').'</p>
170 <input type="submit" name="btnSave" value="'.$this->Context
->GetDefinition('Save').'" class="Button SubmitButton" />
171 <a href="'.GetUrl($this->Context
->Configuration
, $this->Context
->SelfUrl
).'" class="CancelButton">'.$this->Context
->GetDefinition('Cancel').'</a>