Ich habe mir das modul eMailbox eingerichtet, allerdings lässt mein Webspaceprovider PHP im Safe mode laufen, deshalb bekomme ich immer folgende Meldung:
Warning: REG_EMPTY in /home/www/htdocs/sewid.de/modules/eMailBox/compose.php on line 79
Wer kann mir helfen???
Die compose.php sieht wie folgt aus: (Zeile 79 habe ich gekennzeichnet)
<?
/*************************************************************************/
# Mailbox 0.9.2a by Sivaprasad R.L (http://netlogger.net) #
# eMailBox 0.9.3 by Don Grabowski (http://ecomjunk.com) #
# -- A pop3 client addon for phpnuked websites -- #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
# #
# Copyright (C) by Sivaprasad R.L #
# Script completed by Ecomjunk.com 2001 #
/*************************************************************************/
$ModName = basename( dirname( __FILE__ ) );
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if (isset($newlang)) {
include("modules/$ModName/language/lang-$newlang.php");
$language = $newlang;
} elseif (isset($lang)) {
include("modules/$ModName/language/lang-$lang.php");
$language = $lang;
} else {
include("modules/$ModName/language/lang-$language.php");
}
if(!isset($user)) {
echo "<br><br><center><h2>"._LOGIN." </h2></center>";
exit();
}
if(!isset($mainfile)) include "mainfile.php";
include "header.php";
OpenTable();
include "modules/eMailBox/mailheader.php";
global $to, $subject, $body, $op;
$body = stripslashes($body);
$to = stripslashes($to);
$subject = stripslashes($subject);
if(isset($op)) {
if($op == "reply") $subject = "Re: ".$subject;
else if($op == "forward") $subject = "Fwd: ".$subject;
HIER IST ZEILE 79: if(eregi($body,"<br>",$out)) {
$bodytext = explode("<br>",$body);
foreach($bodytext as $bt) {
$content .= "> ".$bt;
}
} else {
$bodytext = explode("\n",$body);
foreach($bodytext as $bt) {
$content .= "> ".$bt."\n";
}
}
}
//OpenTable();
?>
<script language=javascript>
function open_w(file) {
newwin = window.open(file,'Attachments','width=450, height=250, scrollbars=no, toolbar=no');
}
function attachfiles(files,types) {
window.document.all.Atts.innerText = files;
document.emailform.attachment.value = files;
document.emailform.attchtype.value = types;
}
</script>
<BR><BR>
<FORM METHOD="POST" ACTION="modules.php?op=modload&name=eMailBox&file=nlmail" name=emailform>
<CENTER>
<TABLE cellpadding="5" width=100%>
<TR bgcolor="<? echo $bgcolor1; ?>" width=100%>
<TD colspan=2 class=header align="left"><b><? echo""._MSGSENDACK."";?></b></td>
</TR>
</TABLE>
<TABLE align=center width=80%>
<TR><TD class=small colspan=2 align="center"><? echo""._MSGCOMMA."";?> </TD> </TR>
<TR><TD class=small width=25%> <?echo""._MSGTO."";?></TD> <TD> : <input type=text name="to" size=47 <? echo "value='$to'";?> ></TD></TR>
<TR><TD class=small> <?echo""._MSGSUBJ."";?></TD> <TD> : <input type=text name="subject" size=47 <? echo "value='$subject'";?>></TD></TR>
<TR><TD class=small> <i><?echo""._MSGCC."";?> </i></td> <td> : <input type=text name="cc" size=20>
<i class=small> <?echo""._MSGBCC."";?></i> : <input type=text name="bcc" size=19></TD></TR>
<tr><td> </td></tr>
<TR><TD class=small> <?echo""._MSGMSG."";?> </TD>
<TD class=small><?echo""._MSGTYPE."";?> <select name="prior">
<option value="1"> <?echo""._MSGTYPE1."";?> </option>
<option value="3" selected> <?echo""._MSGTYPE2."";?> </option>
<option value="4"> <?echo""._MSGTYPE3."";?> </option>
</select>
</TD>
</TR>
<TR><TD COLSPAN=2>
<TEXTAREA NAME="message" ROWS=15 COLS=70 WRAP=virtual><? echo "$content"; ?></TEXTAREA>
</TD></TR>
<tr><td colspan=2><hr></td></tr>
<tr><td><?echo""._MSGATTACH."";?><span style="background-color:#ffffcc" id="Atts">(None)</span> <br></td><td><a href="javascript: open_w('modules.php?op=modload&name=eMailBox&file=mailattach');"><?echo""._MSGATTACH1."";?></a><br></td>
</tr>
<tr><td colspan=2></td></tr>
<TD>
<INPUT TYPE="submit" name="send" VALUE="<?echo""._MSGSNDMSG."";?>">
</TD><TD align=center>
<INPUT TYPE="reset" VALUE="<?echo""._MSGCLRALL."";?>">
</TD></TR>
</TABLE>
</center>
<input type=hidden name="attachment">
<input type=hidden name="attchtype">
</FORM>
<?
include "modules/eMailBox/mailfooter.php";
CloseTable();
include("footer.php");
?>
Hi unbekannt,
glaube da eher nicht an den savemode.
Wo kommen die beiden Variablen $body und $out her?
Wo sind die definiert? Mindestens eine wird anscheinend nicht richtig übergeben... :(
Läuft Dein Nuke ansonsten ganz normal?
Hallo,
ich hatte auch die Fehlermeldung in Zeile 79.
Nimm einfach die Variable $body raus dann läuft alles.