<div class="efni">efni</div>
<div class=\""efni"\">efni</div>
<?php $s = $_GET['s'] . '.txt'; if (!$_GET['s']) { echo(""); exit; } if ($_POST['s']) { $handle = fopen("s/$s", 'w'); fwrite($handle, $_POST['s']); fclose($handle); include("s/$s"); exit; } if (file_exists("s/$s")) { $FILE = fopen("s/$s", "rt"); while (!feof($FILE)) { $text .= fgets($FILE); } fclose($FILE); } else { echo(""); $text = "<p></p>"; } echo ' <script language="javascript" type="text/javascript" src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom" valid_elements : "[div|class|id|]" }); </script> '; $page = $_GET['s'] . '.txt'; $a = $_GET['s']; $a = 1; $this_page = $_SERVER['PHP_SELF']; $query_string = $_SERVER['QUERY_STRING']; echo "<form method='post' action='$this_page?$query_string'>"; echo '<textarea id="s" name="s" rows="25" cols="60">'; echo htmlspecialchars("$text", ENT_NOQUOTES); echo '</textarea>'; echo '<input type="submit" value="Vista">'; echo '</form>'; ?>
vona að einhver sé með svar :P
.