hi leute... ich hab hier mal ein ganz anders problem ;)
urL:
http://www.freaks-of-fun.com/wp-content/the…olence/wall.php
quelltext der wall.php:
<?php
require('./wp-blog-header.php');
$offset = (int) $_GET['offset'];
$wall = new RumWall($offset);
if (isset($_POST['sub']))
{
$author = trim(strip_tags($_POST['author']));
$email = trim(strip_tags($_POST['email']));
$url = trim(strip_tags($_POST['url']));
$content = trim(strip_tags($_POST['content']));
if (strlen($author) > 0 && strlen($content) > 0)
{
if ($wall->SaveTag($author, $email, $url, $content))
{
if (!isset($_POST['returnurl']))
{
header("location: wall.php");
}
else
{
header("location: ".$_POST['returnurl']);
}
}
}
}
?>
<style type="text/css" media="screen">
#rumwallbtn input.styled {
/* you can add your style for the button here */
}
#rumwallform {
}
#rumwallform table {
width: 100%;
}
#rumwallform textarea {
width: 98%;
height: 100px;
}
</style>
<div id="content" class="widecolumn">
<div class="post">
<script type="text/javascript" language="javascript">
function showForm(obj)
{
obj.style.display = 'none';
var ele = document.getElementById('rumwallform');
if (ele)
{
ele.style.display = 'block';
}
}
</script>
<div id="rumwallbtn">
<input type="button" onclick="showForm(this);" value="<?php _e('Drop tag!'); ?>" class="styled"/>
</div>
<div id="rumwallform" style="display: none;">
<form method="post">
<table cellpadding="0">
<tr>
<td><?php _e('Name'); ?></td>
<td align="right"><input name="author" type="text" value="" class="styled"/></td>
</tr>
<tr>
<td><?php _e('Email (Not published)'); ?></td>
<td align="right"><input name="email" type="text" value="" class="styled"/></td>
</tr>
<tr>
<td><?php _e('Website'); ?></td>
<td align="right"><input name="url" type="text" value="" class="styled"/></td>
</tr>
<tr>
<td colspan="2">
<textarea name="content" class="styled"></textarea>
<input type="submit" name="sub" value="<?php _e('Tag it!'); ?>"/> </form>
</td>
</tr>
</table>
</form>
</div>
<?php if ($wall->hasMultiPages()) : ?>
<div id="rumpages">
<?php _e('Pages:'); ?>
<?php for ($page=1; $page<=$wall->getPageAmount(); $page++): ?>
<?php if ($page == $wall->getCurrentPage()): ?>
[<?php print $page; ?>]
<?php else: ?>
<?php print $page; ?>
<?php endif; ?>
<?php endfor; ?>
</div>
<?php endif; ?>
<div id="rumwall">
<?php while ($tag = $wall->getTag()): ?>
<li class="<?php if ($wall->isTagAlternative()) print 'alt'; ?>">
<div class="wallheader">
<?php print date('Y-m-d H:i', strtotime($tag->posted)); ?>
<?php _e('by'); ?>
<?php if (strlen($tag->url) > 0) : ?>
<?php print $tag->author; ?>
<?php else: ?>
<?php print $tag->author; ?>
<?php endif; ?>
</div>
<div class="wallcontent">
<?php print $tag->content; ?></p></div>
<?php endwhile; ?>
</div>
</div>
</div>