This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/
static.php
53 lines (50 loc) · 2.31 KB
/
static.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
<?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# | /| / /___) / ) (_ ` / ) /___) / / #
# _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ #
# Free Content / Management System #
# / #
# #
# #
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
if(isset($_GET['staticID'])) $staticID = $_GET['staticID'];
else $staticID = '';
$ds=mysql_fetch_array(safe_query("SELECT * FROM ".PREFIX."static WHERE staticID='".$staticID."'"));
$_language->read_module("static");
$allowed = false;
switch($ds['accesslevel']) {
case 0:
$allowed = true;
break;
case 1:
if($userID) $allowed = true;
break;
case 2:
if(isclanmember($userID)) $allowed = true;
break;
}
if($allowed) {
$content = $ds['content'];
echo toggle(htmloutput($content),1);
}
else{
redirect("index.php",$_language->module['no_access'],3);
}
?>