|
function gruppe($gruppeid,$was,$obbid) {
$row_temp = mysql_get_array("obb" . $obbid ."_gruppen","where groupid='$gruppeid'");
return $row_temp[$was];
}
function last ($anzahl,$variable) {
$_laenge = strlen($variable);
for ($a=$_laenge - $anzahl;$a<$_laenge;$a++) {
$_temp = $_temp . $variable[$a];
}
return $_temp;
}
function first ($anzahl,$variable) {
$_laenge = strlen($variable);
for ($a=0;$a<$anzahl;$a++) {
$_temp = $_temp . $variable[$a];
}
return $_temp;
}
function generate_freischaltcode($user,$zeit) {
$a = 0;
$code='';
while ($a < strlen($user)) {
$code .= ord($user[$a]);
$code .= $time[$a];
$a++;
}
//$code = md5($code.$zeit);
return $code;
}
function uhrzeit($uhrzeit) {
if ($uhrzeit) {
$ret .= date("d.m.Y",$uhrzeit) . "-". date("H:i",$uhrzeit) . " ";
}
else
{
$ret .= '...';
}
return $ret;
}
function pw_form($_action,$obb) {
$ret = '';
$ret .= "\n";
return $ret;
}
function get_sth_by_id($sth,$id,$obbid,$tabelle,$was) {
$username = mysql_get_array("obb" . $obbid . "_$tabelle","where $was='$id'");
$username = $username[$sth];
// if (!$username) $username = '[nicht angemeldet]';
return $username;
}
function fehler($fehler,$obb) {
$ret .= "";
$ret .= "";
$ret .= "";
$ret .= "BulletinBoard - Fehler";
$ret .= ' | ';
$ret .= "";
$ret .= "$fehler Bitte gehen Sie zurück.";
$ret .= ' | ';
$ret .= ' |
';
return $ret;
}
function meldung($fehler,$obb) {
$ret .= "";
$ret .= "";
$ret .= "";
$ret .= "BulletinBoard - Meldung";
$ret .= ' | ';
$ret .= "";
$ret .= "$fehler";
$ret .= ' | ';
$ret .= ' |
';
return $ret;
}
function links($obb,$return,$action,$boardid,$data) {
if ($action == 'showboard' || $action == 'showthread') {
$ret .= "';
}
return $ret;
}
function ersetzen($out,$html) {
$out = str_replace("\n","[br]",$out);
$out=str_replace (" ", "[br]", $out);
if ($html != "true") {
$out=str_replace ("<", "<", $out);
$out=str_replace (">", ">", $out);
}
if ($html != "3") {
$out=str_replace("[img]","",$out);
$out=eregi_replace("quote\\]","quote]",$out);
$out=str_replace("[quote]\r\n","quote: ",$out);
$out=str_replace("[quote]","quote: ",$out);
$out=str_replace("[/quote]\r\n","
",$out);
$out=str_replace("[/quote]","
",$out);
$out=str_replace ("[font1]", "", $out);
$out=str_replace ("[font2]", "", $out);
$out=str_replace ("[font3]", "", $out);
$out=str_replace ("[font4]", "", $out);
$out=str_replace ("[font5]", "", $out);
$out=str_replace ("[/font1]", "", $out);
$out=str_replace ("[/font2]", "", $out);
$out=str_replace ("[/font3]", "", $out);
$out=str_replace ("[/font4]", "", $out);
$out=str_replace ("[/font5]", "", $out);
$out=str_replace ("[/font]", "", $out);
$out=str_replace ("[hr]", " ", $out);
$out=str_replace ("[br]", " ", $out);
$out=str_replace ("[break]", " ", $out);
}
$out=str_replace (" | |