function Edit404($text = false) { global $langmessage; if ($text === false) { if (isset($this->error_data['404_TEXT'])) { $text = $this->error_data['404_TEXT']; } else { $text = special_missing::DefaultContent(); } } echo '<h2>' . $langmessage['Link Errors'] . ' » ' . $langmessage['404_Page'] . '</h2>'; echo '<form action="' . common::GetUrl('Admin_Missing') . '" method="post">'; echo '<input type="hidden" name="cmd" value="save404" />'; gp_edit::UseCK($text); echo '<input type="submit" name="" value="' . $langmessage['save'] . '" class="gpsubmit"/>'; echo ' <input type="submit" name="cmd" value="' . $langmessage['cancel'] . '" class="gpcancel"/>'; echo '</form>'; echo '<table class="bordered">'; echo '<tr><th>'; echo $langmessage['Useful Variables']; echo '</th>'; echo '<th>'; echo ' '; echo '</th>'; echo '</tr>'; echo '<tr><td>'; echo '{{Similar_Titles}}'; echo '</td>'; echo '<td>'; echo $langmessage['Similar_Titles']; echo '</td>'; echo '</tr></table>'; }
/** * Return the custom 404 page content if it exists, otherwise return the default content * */ function Get404Output() { if (isset($this->error_data['404_TEXT'])) { $text = $this->error_data['404_TEXT']; } else { $text = special_missing::DefaultContent(); } return str_replace('{{Similar_Titles}}', $this->SimilarTitles(), $text); }