if (!file_exists("{$current_dir}/{$userfile}") || $filename == $userfile) { if ($filename != $userfile) { if (file_exists("{$current_dir}/{$filename}")) { if (!is_dir("{$current_dir}/{$filename}")) { $filetype = end(explode(".", $filename)); $userfile2 = str_replace('.' . $filetype, '', $userfile); rename("{$current_dir}/{$filename}", "{$current_dir}/{$userfile2}.{$filetype}"); } else { rename("{$current_dir}/{$filename}", "{$current_dir}/{$userfile}"); } } } if (!is_dir("{$current_dir}/{$userfile}") && $old_description != $new_description) { list($upl_user, $upl_ip, $contents) = get_file_description("{$current_dir}/{$userfile}", 0, 0); } } } } include "../menu.php"; show_contents(); include "../pie.php"; break; default: include "../menu.php"; show_contents(); include "../pie.php"; break; } ?>
$tail = substr($word, -3); if ($word != $tail && ($tail == "'ve" || $tail == "'ll" || $tail == "'re" || $tail == "'em")) { $word = substr($word, 0, $len - 3); } } $contents = dba_fetch($word, $dict); if ($contents === false) { if (substr($word, -1) == 's') { $word = substr($word, 0, strlen($word) - 1); $contents = dba_fetch($word, $dict); } } dba_close($dict); if ($contents !== false) { $contents = explode("\n", $contents); show_contents($word, $contents); } } } ?> <script language="JavaScript"> <!-- var word_field = window.parent.document.getElementById("word"); function show_word(w) { word_field.value = w; location.href = "contents.php?word=" + w; } //--> </script>