-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
32 lines (32 loc) · 1.12 KB
/
index.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
<html>
<head>
<title><?php
include("conn.php");
$q = "SELECT `value`
FROM `cms_config`
WHERE `key` = 'html_title'
LIMIT 1";
mysql_query("SET NAMES GB2312");
$rs = mysql_query($q, $conn);
if(!$rs){die("Valid result!");}
$row = mysql_fetch_row($rs);
echo (count($row)==0||$row[0]=="")?"GeeKlub":$row[0];
mysql_free_result($rs);
?></title>
<meta http-equiv="content-type" content="text/heml; charet=utf-8"/>
</head>
<body style="margin:0;padding:0">
<iframe runat="server" src="themes/<?php
$q = "SELECT `value`
FROM `cms_config`
WHERE `key` = 'theme'
LIMIT 1";
mysql_query("SET NAMES GB2312");
$rs = mysql_query($q, $conn);
if(!$rs){die("html");}
$row = mysql_fetch_row($rs);
echo ((count($row)==0||$row[0]=="")?"default":$row[0])."/";
mysql_free_result($rs);
?>" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
</body>
</html>