Ooooookay.... wie auch immer du das jetzt gezaubert hast. ![]()
Ich setzt die gb_add.php mal wieder auf Ursprung und nehm mir die gb_add_post.php vor....
Irgend einen Tipp was ich machen soll?
Code
$data = time();
$name = $myVars['name'];
$email = $myVars['email'];
$homepage = $myVars['homepage'];
$city = $myVars['city'];
$state = $myVars['state'];
$country = $myVars['country'];
$comment = $myVars['comment'];
($requireValidation == "true")?$validated = 0:$validated = 1;
$array = array("$name", "$email", "$homepage", "$city","$state", "$country", "$data", "$comment", "$validated");
//the for is used against str_replace's arrays parameters for <php4.0.5 compatibility
for ( $i=0; $i<count($array); $i++ ) {
$array[$i] = str_replace($separator,"",$array[$i]);
}
$full = implode("|", $array);
$tmp = $full;
$tmp = str_replace('<', "<", $tmp);
$tmp = str_replace('>', ">", $tmp);
$tmp = str_replace("\r\n", "<br>", $tmp);
$tmp = str_replace("\n", "<br>", $tmp);
$tmp = str_replace('"', '"', $tmp);
if (!file_exists(dirname($ad_gbfile))) {
NOF_throwError(540,array("{1}"=>NOF_mapPath(dirname($ad_gbfile)),"{2}"=>getcwd()));
}
// if (!is_writable(dirname($ad_gbfile))) {
// NOF_throwError(541,array("{1}"=>NOF_mapPath(dirname($ad_gbfile)),"{2}"=>getcwd()));
// }
$fp = @fopen($ad_gbfile, 'a+') or NOF_throwError(502,array("{1}"=>NOF_mapPath($ad_gbfile),"{2}"=>getcwd()));
flock($fp, LOCK_EX);
fwrite($fp, $tmp. "\r\n");
flock($fp, LOCK_UN);
fclose($fp);
if ($notifyWebmaster == "true") {
$emailTemplate = gbReadEmailTemplate('gb_emailTemplate_'.$language.'.properties','[EMAIL]');
$message = $emailTemplate['[email]body'];
$message = str_replace('{0}',$name,$message);
$message = str_replace('{1}',$comment,$message);
$message = str_replace("\\n", chr(13), $message);
$message = str_replace("\\", "", $message);
Alles anzeigen