Demo

Probiere ClanSphere aus und teste daran herum. Demo

Nopaste Service - News/Artikel/DL ect. Headlines in header ausgeben
Pred

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
<?php

if(empty($_GET['mod'])) {
  $data['title']['mod'] = cs_secure('Home');
} else {
    if($_GET['mod'] == 'home') {
      $data['title']['mod'] = cs_secure('Home');
    }
    if($_GET['mod'] == 'news') {
      $data['title']['mod'] = cs_secure('News');
    }
    if($_GET['mod'] == 'articles') {
      $data['title']['mod'] = cs_secure('Artikel');
    }
    if($_GET['mod'] == 'files') {
      $data['title']['mod'] = cs_secure('Downloads');
    }
    if($_GET['mod'] == 'videos') {
      $data['title']['mod'] = cs_secure('Videos');
    }
  }

if(empty($_GET['action'])) {
  $data['title']['action'] = cs_secure(' - Übersicht');
} else {
    if($_GET['action'] == 'list') {
      $data['title']['action'] = cs_secure(' - Übersicht');
    }
    if($_GET['action'] == 'view') {
      if($_GET['mod'] == 'news') {
        $id = $_GET['id'];
        $headline = cs_sql_select(__FILE__,'news','*','news_id = '.$id);
        $data['title']['action'] = cs_secure(' - ' .$headline['news_headline']);
      }

      if($_GET['mod'] == 'articles') {
        $id = $_GET['id'];
        $headline = cs_sql_select(__FILE__,'articles','*','articles_id = '.$id);
        $data['title']['action'] = cs_secure(' - ' .$headline['articles_headline']);
      }
      if($_GET['mod'] == 'files') {
        $id = $_GET['where'];
        $headline = cs_sql_select(__FILE__,'files','*','files_id = '.$id);
        $data['title']['action'] = cs_secure(' - ' .$headline['files_name']);
      }
      if($_GET['mod'] == 'videos') {
        $id = $_GET['id'];
        $headline = cs_sql_select(__FILE__,'videos','*','videos_id = '.$id);
        $data['title']['action'] = cs_secure(' - ' .$headline['videos_name']);
      }
    }
    if($_GET['action'] == 'listcat') {
      if($_GET['mod'] == 'files') {
        $id = $_GET['where'];
        $name = cs_sql_select(__FILE__,'categories','*','categories_mod = "files" AND categories_id = '.$id);
        $data['title']['action'] = cs_secure(' - '.$name['categories_name']);
      }
    }
  }

echo cs_subtemplate(__FILE__,$data,'clansphere','nav_title')

?>