'func' => 'process_new'),
'bookmark.html' => array('lib' => 'bookmarks.inc',
'func' => 'process_bookmark'),
+ 'datenschutz.html' => array('func' => 'show_datenschutz'),
'contact.html' => array('func' => 'process_contact'),
'sitemap.html' => array('lib' => 'layout.inc',
'func' => 'layout_sitemap'),
'archiv' => array('func' => 'layout_archive'),
'tag' => array('func' => 'layout_showtag'),
'topic' => array('func' => 'layout_topic'),
+ 'admin' => array('lib' => 'admin.inc',
+ 'func' => 'layout_admin'),
);
function userstatus()
{
- global $_SESSION;
-
if (isset($_SESSION['uid']))
$info = array($_SESSION['online'], $_SESSION['users'], $_SESSION['zeitungen'],
$_SESSION['ztags'], $_SESSION['tags']);
function dispatch()
{
global $cfg;
- global $_SERVER;
- global $_SESSION;
- global $_GET;
- global $_POST;
global $zlist;
global $pages;
global $dirs;
return layout_page($body);
}
+function show_datenschutz()
+{
+ $body = load_template('datenschutz.html');
+
+ return $body;
+}
+
function tagcloud_min()
{
$query = 'SELECT count(uid) AS count FROM zeitung_tags GROUP BY zeitung,tag ORDER BY count ASC LIMIT 1';
function tag_class($count)
{
- global $_SESSION;
-
if (isset($_SESSION['uid'])) {
if (!isset($_SESSION['tagcloud_lastupdate']) ||
$_SESSION["tagcloud_lastupdate"] < time() - 60*60*12) {
$ret .= sprintf('<p>%s<br>Ort: %s<br>URL: <a href="%s"><code>%s</code></a></p>',
$row['description'], $row['city'],
$row['url'], $row['url']);
+
+ $ret .= sprintf('<div class="link"><a href="%s">Zur Homepage</a></div>',
+ $row['url']);
+
$ret .= '</div>';
return $ret;
{
global $cfg;
global $zlist;
- global $_SERVER;
$query = sprintf("SELECT topic,archived,zeitung FROM topics WHERE id = %d",
$topic);
function ajax_check_url()
{
- global $POST;
-
if (!empty($_POST['url']) && is_valid_url($_POST['url']))
return true;
function logbook($table,$refid,$column,$old,$new)
{
- global $_SESSION;
-
$query = sprintf("INSERT INTO logbook (uid,tab,refid,col,oldval,newval,modified) " .
"VALUES (%d,'%s',%d,'%s','%s','%s',now())",
$_SESSION['uid'], $table,$refid,$column,
function hits_inc($zeitung)
{
global $cfg;
- global $_SESSION;
if (is_spider())
return;
db_query($query);
}
-
-?>