This repository has been archived by the owner on Dec 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneues.php
89 lines (79 loc) · 3.76 KB
/
neues.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
$db = new mysql;
$db->connect();
if(isset($_GET['id']) && ($_GET['id'] > 0)){
$select = $db->query("SELECT * FROM cms WHERE id='".$_GET['id']."' LIMIT 1;");
$row = $db->fetch_array();
$header = $row['header'];
$header = bbcodes_news($header);
$message = $row['message'];
$message = bbcodes_news($message);
$archiv = "";
$header = str_replace("klee.gif", "klee.png", $header);
$message= str_replace("&", "&", $message);
$message= str_replace("\n", "<br>", $message);
$message= str_replace("ä", "ä", $message);
$message= str_replace("ö", "ö", $message);
$message= str_replace("ü", "ü", $message);
$message= str_replace("Ä", "Ä", $message);
$message= str_replace("Ö", "Ö", $message);
$message= str_replace("Ü", "Ü", $message);
$message= str_replace("é", "é", $message);
$header= str_replace("&", "&", $header);
$header= str_replace("\n", "<br/>", $header);
$header= str_replace("ä", "ä", $header);
$header= str_replace("ö", "ö", $header);
$header= str_replace("ü", "ü", $header);
$header= str_replace(" & ", " & ", $header);
$header= str_replace("Ä", "Ä", $header);
$header= str_replace("Ö", "Ö", $header);
$header= str_replace("Ü", "Ü", $header);
$header = str_replace("*","'", $header);
$header = str_replace("@", "\"", $header);
$message = str_replace("*","'", $message);
$message = str_replace("@", "\"", $message);
$message = str_replace("<br><li", "<li", $message);
$message = str_replace("<br></ul", "</ul", $message);
$archiv = (preg_match('#Geburtstag#', $header))? '':'<div class="right" style="font-size:10px;margin-top:-10px;"><a href="archiv_'.$row['id'].'.shtml" class="hell">[Direktlink: '.$header.']</a></div>';
$datum = (preg_match('#Geburtstag#', $header))? "":'('.date("d.m.Y", $row['datum']).')';
eval("\$inhalt .=\"".gettemplate("./templates/neues.tpl")."\";");
}else{
if (isset($_GET['id']) && $_GET['id'] == -1) $db->query("SELECT * FROM cms WHERE header not like '%Geburtstag%' ORDER BY id DESC");
else $db->query("SELECT * FROM cms WHERE aktiv = '1' ORDER BY id DESC");
while($row = $db->fetch_array()){
$header = $row['header'];
$header = bbcodes_news($header);
$message = $row['message'];
$message = bbcodes_news($message);
$header = str_replace("klee.gif", "klee.png", $header);
$message= str_replace("&", "&", $message);
$message= str_replace("\n", "<br>", $message);
$message= str_replace("ä", "ä", $message);
$message= str_replace("ö", "ö", $message);
$message= str_replace("ü", "ü", $message);
$message= str_replace("Ä", "Ä", $message);
$message= str_replace("Ö", "Ö", $message);
$message= str_replace("Ü", "Ü", $message);
$message= str_replace("é", "é", $message);
$header= str_replace("&", "&", $header);
$header= str_replace("\n", "<br/>", $header);
$header= str_replace("ä", "ä", $header);
$header= str_replace("ö", "ö", $header);
$header= str_replace("ü", "ü", $header);
$header= str_replace(" & ", " & ", $header);
$header= str_replace("Ä", "Ä", $header);
$header= str_replace("Ö", "Ö", $header);
$header= str_replace("Ü", "Ü", $header);
$header = str_replace("*","'", $header);
$header = str_replace("@", "\"", $header);
$message = str_replace("*","'", $message);
$message = str_replace("@", "\"", $message);
$message = str_replace("<br><li", "<li", $message);
$message = str_replace("<br></ul", "</ul", $message);
$archiv = (preg_match('#Geburtstag#', $header))? '':'<div class="right" style="font-size:10px;margin-top:-10px;"><a href="archiv_'.$row['id'].'.shtml" class="hell">[Direktlink: '.$header.']</a></div>';
$datum = (preg_match('#Geburtstag#', $header))? "":'('.date("d.m.Y", $row['datum']).')';
eval("\$inhalt .=\"".gettemplate("./templates/neues.tpl")."\";");
}
}
$db->close();
?>