forked from Trinity93/Slackdog-OpenSim-Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemodul.php
45 lines (42 loc) · 828 Bytes
/
sitemodul.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
<style type="text/css">
<!--
#scr {
position:absolute;
height:100%;
width:100%;
margin:0;
padding:0;
overflow:auto;
}
-->
</style>
<?
$DbLink = new DB;
if($_GET['id']){
$DbLink->query("SELECT content FROM ".C_PAGE_TBL." WHERE id='".$_GET['id']."'");
}else{
if($ERROR){
echo "<script language='javascript'>
<!--
window.location.href='index.php?page=smodul&id=1&btn=1&ERROR=$ERROR';
// -->
</script>";
}else{
echo "<script language='javascript'>
<!--
window.location.href='index.php?page=smodul&id=1&btn=1';
// -->
</script>";
}
}
list($content) = $DbLink->next_record();
?>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<div style="height:100%;">
<?=$content?>
</div>
</td>
</tr>
</table>