$value) { $replace_value = str_pad("", strlen(trim($value)), "*"); $field_value = str_ireplace(trim($value), $replace_value, $field_value); } return $field_value; } // ENDE censor() /////////////////////////////////////////////////// // ************** Alte Funktionen ************** // /////////////////////////////////////////////////// function my_utf8_decode($string){ return strtr($string, "???????¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ", "SOZsoz YuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy"); } function sanitize_paranoid_string($string){ $string = preg_replace("/[^a-zA-Z0-9 -]/", "", $string); $len = strlen($string); return $string; } function sanitize($input){ $ret=strtolower(sanitize_paranoid_string(my_utf8_decode(str_replace(' ','-',$input)))); $ret=str_replace('---','-',$ret); $ret=str_replace('--','-',$ret); return $ret; } //----[OUTPUT FUNCTIONS]--------------------- function output($new_output="", $output_erfolg=false){ if($new_output){ if($_GET["output"]) $br="
"; if($output_erfolg) { $_GET["output"].=$br.''.$new_output.''; } else { $_GET["output"].=$br.''.$new_output.''; } } return $_GET["output"]; } function cpp($dest){ if(ACT==$dest OR (SUB==$dest AND $dest!='')) return 1; if(is_array($dest)) { foreach($dest as $d){ if(ACT==$d OR SUB==$d) return 1; } } } function cpp_home(){ if(SUB!='news' && SUB!='ranking' && SUB!='blogs' && SUB!='gruppen') return 1; } function color(){ if(SITE=='myplanet'){ return "_gruen"; } if(SITE=='anderes'){ return "_lila"; } if(SITE=='hilfe'){ return "_blau"; } else { return "_rot"; } } function dir_size($dir, $size = 0) { $handle = opendir($dir); while ($file = readdir($handle)) { if ($file == '.' || $file == '..') continue; $full_path = $dir.$file; if (is_dir($full_path)) { $size = dir_size($full_path.'/', $size); } else { $size += filesize($full_path); } } closedir($handle); return ceil($size/1024/1024); } // Seitenanzahl function make_page($total_items, $items_per_page, $p) { if(($total_items % $items_per_page) != 0) { $maxpage = ($total_items) / $items_per_page + 1; } else { $maxpage = ($total_items) / $items_per_page; } $maxpage = (int) $maxpage; if($maxpage <= 0) { $maxpage = 1; } if($p > $maxpage) { $p = $maxpage; } elseif($p < 1) { $p = 1; } $start = ($p - 1) * $items_per_page; return Array($start, $p, $maxpage); } // Login-Stats function login_stats($username, $login_result) { $current_time = time(); mysql_query("INSERT INTO cs_logins (login_name, login_date, login_ip, login_result, login_hostname) VALUES ('$username', '$current_time', '".$_SERVER['REMOTE_ADDR']."', '$login_result', '".gethostbyaddr($_SERVER['REMOTE_ADDR'])."')"); bumplog(); } function bumplog() { $log_entries = mysql_num_rows(mysql_query("SELECT login_id FROM cs_logins")); if($log_entries > 500) { $oldest_log = mysql_fetch_assoc(mysql_query("SELECT login_id FROM cs_logins ORDER BY login_id ASC LIMIT 0,1")); mysql_query("DELETE FROM cs_logins WHERE login_id='$oldest_log[login_id]'"); bumplog(); } } // Karma Punkte function karma($user_id, $karma_name) { $value = mysql_fetch_assoc(mysql_query("SELECT karma, type FROM cs_karma WHERE name = '$karma_name' AND active = '1'")); if ($value[type] == '1') { mysql_query("UPDATE cs_user SET karma = karma+".$value[karma]." WHERE id='$user_id' LIMIT 1"); } elseif ($value[type] == '2') { $karma_user = mysql_fetch_assoc(mysql_query("SELECT karma FROM cs_user WHERE id='$user_id' LIMIT 1")); if ($karma_user[karma] >= $value[karma]) { mysql_query("UPDATE cs_user SET karma = karma-".$value[karma]." WHERE id='$user_id' LIMIT 1"); } else { return false; } } return true; } ?> ", $message); $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $sender"."\n"; $headers .= "Return-Path: $sender"."\n"; $headers .= "Reply-To: $sender"; mail($recipient, $subject, $message, $headers); return true; } function send_system_email($user_email, $name, $search = "", $replace = "") { global $settings; $from_email = $settings[email_fromname]." <".$settings[email_fromemail].">"; $from_email = htmlspecialchars_decode($from_email, ENT_QUOTES); $result = mysql_query("SELECT * FROM cs_system_mails WHERE name = '$name' LIMIT 1"); if(mysql_num_rows($result) > 0) { $mail = mysql_fetch_assoc($result); $subject = htmlspecialchars_decode($mail[subject], ENT_QUOTES); $message = htmlspecialchars_decode($mail[message].$settings[email_signatur], ENT_QUOTES); $message = str_replace($search, $replace, $message); $subject="=?UTF-8?B?".base64_encode($subject)."?="; //$message = str_replace("\n", "
", $message); $headers = "MIME-Version: 1.0"."\n"; $headers .= "Content-type: text/html; charset=utf-8"."\n"; $headers .= "Content-Transfer-Encoding: 8bit"."\n"; $headers .= "From: $from_email"."\n"; $headers .= "Return-Path: $from_email"."\n"; $headers .= "Reply-To: $from_email"; if(@mail($user_email, $subject, $message, $headers)) { return true; } else{ return false; } } else { return false; } } ?>
Fatal error: Call to undefined function security() in /var/www/vhosts/web51.server13.pd-srv.de/httpdocs/include/header.php on line 50