while ($file = readdir($all)) { if ($file != "index.php" && $file != ".." && $file != "." && $file != "CVS") { if ($file == THEME) { echo "<option value=\"{$file}\" selected>{$file}</option>"; } else { echo "<option value=\"{$file}\">{$file}</option>"; } } } closedir($all); echo "</td></tr>"; $block1->contentRow("Notifications" . $blockPage->printHelp("setup_notifications"), "<input type='radio' name='notificationsNew' value='false' {$checked1_b} /> False <input type='radio' name='notificationsNew' value='true' {$checked2_b} /> True<br/>[Mail {$mail}]"); $block1->contentRow("Timezone (GMT)", "<input type='radio' name='gmtTimezoneNew' value='false' {$checked2_f} /> False <input type='radio' name='gmtTimezoneNew' value='true' {$checked1_f} /> True"); $block1->contentRow("* Forced login" . $blockPage->printHelp("setup_forcedlogin"), "<input type='radio' name='forcedloginNew' value='false' {$checked2_c} /> False <input type='radio' name='forcedloginNew' value='true' {$checked1_c} /> True"); echo "<tr class='odd'>\n\t\t<td valign='top' class='leftvalue'>Default language" . $blockPage->printHelp("setup_langdefault") . "</td><td>"; echo getLanguageDropdown($langDefault); echo "</td></tr>"; $block1->contentRow("* Root", "<input size='44' value='{$root}' style='width: 200px' name='rootNew' maxlength='100' type='text' />"); $block1->contentRow("* Default max file size", "<input size='44' value='{$maxFileSize}' style='width: 200px' name='maxFileSizeNew' maxlength='100' type='text' /> {$byteUnits['0']}"); $block1->contentTitle("Options"); $block1->contentRow("Clients filter" . $blockPage->printHelp("setup_clientsfilter"), "<input type='radio' name='clientsFilterNew' value='false' {$checked2_d} /> False <input type='radio' name='clientsFilterNew' value='true' {$checked1_d} /> True"); $block1->contentRow("Projects filter" . $blockPage->printHelp("setup_projectsfilter"), "<input type='radio' name='projectsFilterNew' value='false' {$checked2_h} /> False <input type='radio' name='projectsFilterNew' value='true' {$checked1_h} /> True"); $block1->contentRow('Show Bookmarks', '<input type="radio" name="showHomeBookmarksNew" value="false" ' . $checkedHomeBookmarks_f . ' /> False <input type="radio" name="showHomeBookmarksNew" value="true" ' . $checkedHomeBookmarks_t . ' /> True'); $block1->contentRow('Show Projects', '<input type="radio" name="showHomeProjectsNew" value="false" ' . $checkedHomeProjects_f . ' /> False <input type="radio" name="showHomeProjectsNew" value="true" ' . $checkedHomeProjects_t . ' /> True'); $block1->contentRow('Show Tasks', '<input type="radio" name="showHomeTasksNew" value="false" ' . $checkedHomeTasks_f . ' /> False <input type="radio" name="showHomeTasksNew" value="true" ' . $checkedHomeTasks_t . ' /> True'); $block1->contentRow('Show Subtasks', '<input type="radio" name="showHomeSubtasksNew" value="false" ' . $checkedHomeSubtasks_f . ' /> False <input type="radio" name="showHomeSubtasksNew" value="true" ' . $checkedHomeSubtasks_t . ' /> True'); $block1->contentRow('Show Discussions', '<input type="radio" name="showHomeDiscussionsNew" value="false" ' . $checkedHomeDiscussions_f . ' /> False <input type="radio" name="showHomeDiscussionsNew" value="true" ' . $checkedHomeDiscussions_t . ' /> True'); $block1->contentRow('Show Reports', '<input type="radio" name="showHomeReportsNew" value="false" ' . $checkedHomeReports_f . ' /> False <input type="radio" name="showHomeReportsNew" value="true" ' . $checkedHomeReports_t . ' /> True'); $block1->contentRow('Show Notes', '<input type="radio" name="showHomeNotesNew" value="false" ' . $checkedHomeNotes_f . ' /> False <input type="radio" name="showHomeNotesNew" value="true" ' . $checkedHomeNotes_t . ' /> True'); $block1->contentRow('Show NewsDesk', '<input type="radio" name="showHomeNewsdeskNew" value="false" ' . $checkedHomeNewsdesk_f . ' /> False <input type="radio" name="showHomeNewsdeskNew" value="true" ' . $checkedHomeNewsdesk_t . ' /> True'); $block1->contentRow('Auto-publish Tasks', '<input type="radio" name="autoPublishTasksNew" value="false" ' . $checkedAutoPublish_f . ' /> False <input type="radio" name="autoPublishTasksNew" value="true" ' . $checkedAutoPublish_t . ' /> True');
include '../themes/' . THEME . '/header.php'; $blockPage = new block(); $blockPage->openBreadcrumbs(); $blockPage->itemBreadcrumbs(" "); $blockPage->closeBreadcrumbs(); if ($msg != "") { include_once '../includes/messages.php'; $blockPage->messagebox($msgLabel); } $block1 = new block(); $block1->form = "login"; $block1->openForm("../general/login.php?auth=test&" . session_name() . "=" . session_id()); if ($url != "") { echo "<input value='{$url}' type='hidden' name='url'>"; } if ($error != "") { $block1->headingError($strings["errors"]); $block1->contentError($error); } $block1->heading($setTitle . " : " . $strings["login"]); $block1->openContent(); $block1->contentTitle($strings["please_login"]); $selectLanguage = getLanguageDropdown(); $block1->contentRow($strings["language"], $selectLanguage); $block1->contentRow("* " . $strings["user_name"], "<input value='{$loginForm}' type='text' name='loginForm'>"); $block1->contentRow("* " . $strings["password"], "<input value='{$passwordForm}' type='password' name='passwordForm'>"); //$block1->contentRow("* ".$strings["remember_password"],"<input type=\"checkbox\" name=\"rememberForm\" value=\"on\">"); $block1->contentRow("", "<input type='submit' name='save' value='" . $strings["login"] . "'><br/><br/><br/>" . $blockPage->buildLink("../general/sendpassword.php?", $strings["forgot_pwd"], in)); $block1->closeContent(); $block1->closeForm(); include '../themes/' . THEME . '/footer.php';