$fn_simple_search = isset($fn_simple_search) ? (bool) $fn_simple_search : false; $keywords = isset($VARS['fn_search_keywords']) ? $VARS['fn_search_keywords'] : ''; if ($keywords === '') { echo "<form method=\"get\" action=\"{$_SERVER['REQUEST_URI']}\">\n<input type=\"hidden\" name=\"fn_action\" value=\"1\" />"; if ($fn_simple_search) { echo <<<html <input type="hidden" name="fn_search_all" value="1" /> <table style="width:75%"> <tr> <td><input type="text" name="fn_search_keywords" id="fn_search_keywords" size="20" /></td> <td><input type="submit" value="{$srch8}" /></td> </tr> </table> html; } else { $category_list = build_category_selection(); $author_list = '<select name="fn_search_author[]" id="fn_search_author" multiple="multiple" size="4">'; $file = file(FNEWS_ROOT_PATH . 'users.php'); array_shift($file); foreach ($file as $user) { $user = get_line_data('users', $user); $author_list .= '<option value="' . $user['username'] . '">' . $user['nickname'] . '</option>'; } $author_list .= '</select>'; echo <<<html <table style="width:75%"> \t<tr> \t\t<td><label for="fn_search_keywords">{$srch1}</label></td> \t\t<td><input type="text" name="fn_search_keywords" id="fn_search_keywords" size="20" /></td> \t</tr> \t<tr>
\t\t<td>{$preview_fullnews}</td> \t</tr> html; } echo <<<html </table> <p></p> html; } else { $shortnews = str_replace('<br />', "\n", $shortnews); $fullnews = str_replace('<br />', "\n", $fullnews); $shortnews = str_replace('&br;', "\n", $shortnews); $fullnews = str_replace('&br;', "\n", $fullnews); } $category_list = build_category_selection($userdata['user'], $categories); $off = '<span style="color:red"><b>' . $ind144 . '</b></span>'; $on = '<span style="color:green"><b>' . $ind143 . '</b></span>'; $htmlcheck = !$ht && (!isset($use_wysiwyg) || !$use_wysiwyg) ? $off : $on; $bbcheck = !$bb ? $off : $on; $smilcheck = !$smilies ? $off : $on; echo <<<html <form action="?id=savepost" method="post" id="newsposting" onsubmit="submitonce(this);"> <table class="adminpanel"> \t<tr> \t\t<td>{$ind119}</td> \t\t<td>{$writer}</td> \t\t<td rowspan="6"> \t\t\t{$ind121}<br /> \t\t\t- HTML {$ind122} {$htmlcheck}<br /> \t\t\t- BBCode {$ind122} {$bbcheck}<br />