Ja es gibt da irgendwie Probleme mit dem Antispam.
Versuch mal die Funktionen in der includes/func/allg.php zu ersetzen
# antispam
function chk_antispam ($m, $nopictures = false) {
global $allgAr;
if ($nopictures) {
return (bool) (isset($_POST['antispam_id']) and isset($_SESSION['antispam'][$_POST['antispam_id']]));
}
if (is_numeric($allgAr['antispam']) AND has_right($allgAr['antispam'])) {
return true;
}
if (isset($_POST['antispam']) AND isset($_POST['antispam_id']) AND isset($_SESSION['antispam'][$_POST['antispam_id']]) AND $_POST['antispam'] == $_SESSION['antispam'][$_POST['antispam_id']][$m][3]) {
unset ($_SESSION['antispam'][$_POST['antispam_id']]);
return (true);
}
return (false);
}
function get_antispam ($m, $t, $nopictures = false) {
global $allgAr, $antispamId;
mt_srand((double)microtime()*1000000);
$i1 = mt_rand (1,9);
$i2 = mt_rand (1,9);
$i3 = mt_rand (1,9);
if (isset($antispamId)) {
$id = $antispamId;
} else {
$id = $antispamId = uniqid(mt_rand(), true);
}
$rs = '<input type="hidden" name="antispam_id" value="'.$id.'" />';
if (is_numeric($allgAr['antispam']) AND has_right($allgAr['antispam'])) {
if ($nopictures) {
return $rs;
} else {
return '';
}
}
if (!is_array($_SESSION['antispam'])) {
$_SESSION['antispam'] = array();
}
$_SESSION['antispam'][$m] = array();
$i1 = mt_rand (1,9);
$i2 = mt_rand (1,9);
$i3 = mt_rand (1,9);
$_SESSION['antispam'][$id][$m] = array($i1, $i2, $i3, $i1.$i2.$i3);
$rs .= '<span style="display: inline; width: 100px; vertical-align: middle; text-align: center; background-color: #000000; border: 0px; padding: 2px; margin: 0px;">'.
'<img src="include/images/spam/z.php?m='.$m.'&w=0&'.session_name().'='.session_id().'&id='.$id.'" alt="">'.
'<img src="include/images/spam/z.php?m='.$m.'&w=1&'.session_name().'='.session_id().'&id='.$id.'" alt="">'.
'<img src="include/images/spam/z.php?m='.$m.'&w=2&'.session_name().'='.session_id().'&id='.$id.'" alt="">'.
'<input name="antispam" size="3" maxlength="3" style="background-color: #FFFFFF; border: 0px; margin: 0px; padding: 0px;" /></span>';
if ($t == 0) {
return ($rs);
} elseif ($t == 1) {
return ('<tr><td class="Cmite">Antispam</td><td class="Cnorm">'.$rs.'</td></tr>');
} elseif ($t > 10) {
return ('<label style="float:left; width: '.$t.'px; ">Antispam</label>'.$rs.'<br />');
} else {
return ('');
}
}
# antispam
und die include/images/spam/z.php
<?php
session_name ('sid');
session_start ();
$m = preg_replace("/[^a-z]+/","",$_GET['m']);
$w = intval(preg_replace("/[^0-2]/", "",$_GET['w']));
$id = $_GET['id'];
if (isset($_SESSION['antispam'][$id][$m][$w])) {
header("Content-Type: image/jpeg");
readfile ($_SESSION['antispam'][$id][$m][$w].'.jpg');
/* unset($_SESSION['antispam'][$m][$w]); */
}
?>
Wenn das dann alles gut läuft, werde ich wohl nochmal ein Update rausbringen müssen.