-
Notifications
You must be signed in to change notification settings - Fork 0
/
links.php
52 lines (52 loc) · 1.57 KB
/
links.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
<? include('updatePage.php'); ?>
<div class="primary_content_wrap">
<div class="container_24 clearfix">
<div id="content" class="grid_17 right suffix_1">
<div id="post-71" class="post-71 post type-post status-publish format-standard hentry category-overview tag-sit-amet post cat-24-id">
<article class="post-holder single-post">
<?
if($loggedAsAdmin && isset($_GET['admin'])) {
?>
<form name="frmUpdate" method="post" action="index.php?pg=<?= $pg ?>&lg=<?= $lg ?>&admin">
<input type="hidden" name="lg" value="<?= $lg ?>">
<div style="float: left">
Page Title:<br>
<input type="text" name="txtTitle" value="<?= $title ?>">
</div>
<div style="float: left">
<input type="submit" name="btnSubmit" value="Save">
</div>
<div style="clear: both">
Page Content:<br>
<?
$oFCKeditor = new FCKeditor('txtContent');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Height = 600;
$oFCKeditor->Width = 670;
$oFCKeditor->ToolbarSet = 'Moj';
$oFCKeditor->Value = $content;
$oFCKeditor->Create();
?>
</div>
</form>
<?
} else {
?>
<h2><?= $title ?></h2>
<?
if($loggedAsAdmin) {
?>
<div style="float: right"><a href="index.php?pg=<?= $pg ?>&lg=<?= $lg ?>&admin"><img src="images/pisaljka012.png" title="EDIT" border="0" /></a></div>
<?
}
?>
<?= $content ?>
<?
}
?></h2>
</article>
</div>
</div>
<? include('sidebar.php'); ?>
</div>
</div>