Преглед на файлове

Comment about bookmarker

richard преди 6 месеца
родител
ревизия
dd9038ef8c
променени са 1 файла, в които са добавени 78 реда и са изтрити 76 реда
  1. 78 76
      admin/bm.php

+ 78 - 76
admin/bm.php Целия файл

@@ -1,4 +1,6 @@
1 1
 <?php
2
+// Script BM (BookMarklet)
3
+
2 4
 if (!defined('entry')) {
3 5
     define('entry', true);
4 6
 }
@@ -9,7 +11,7 @@ if (!defined('entry')) {
9 11
   Sorbet CMS is a free software licensed under the GPL 3.0
10 12
 
11 13
   =========================== */
12
-?>
14
+?>
13 15
 <?php
14 16
 
15 17
 require '../entry.php';
@@ -89,68 +91,68 @@ if ($user->isAdmin()) {
89 91
             }
90 92
         } else {
91 93
             die(__("Must be a valid URL"));
92
-        } ?>
93
-	<!DOCTYPE html>
94
-	<html>
95
-	<head>
96
-		<meta charset="utf-8" />
97
-		<meta name="generator" content="Sorbet CMS <?= $util_class->version(); ?>" />
98
-		<title><?= __("bookmarklet")?> - Sorbet CMS</title>
99
-		<link rel="shortcut icon" href="<?php echo $conf->urlSorbet; ?>/images/favicon.ico" />
100
-        <script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/jquery.js"></script>
101
-		<script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/tools.js"></script>
102
-        <script type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/jquery.markitup.pack.js"></script>
103
-		<script type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/sets/html/set.js"></script>
104
-        <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/skins/simple/style.css" />
105
-        <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/sets/html/style.css" />
106
-        <script type="text/javascript" >
107
-           $(document).ready(function() {
108
-              $("#description").markItUp(my_html);
109
-           });
110
-        </script>
111
-		<style type="text/css" media="screen">
112
-			@import "<?php echo $conf->urlSorbet; ?>/admin/css/style.css";
113
-		</style>
114
-	</head>
115
-
116
-	<body>
117
-		<div id="cont">
118
-			<div id="main">
119
-				<div class="box">
120
-					<h3><?php echo __("New Post")?></h3>
121
-					<ul class="menu">
94
+        } ?>
95
+	<!DOCTYPE html>
96
+	<html>
97
+	<head>
98
+		<meta charset="utf-8" />
99
+		<meta name="generator" content="Sorbet CMS <?= $util_class->version(); ?>" />
100
+		<title><?= __("bookmarklet")?> - Sorbet CMS</title>
101
+		<link rel="shortcut icon" href="<?php echo $conf->urlSorbet; ?>/images/favicon.ico" />
102
+        <script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/jquery.js"></script>
103
+		<script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/tools.js"></script>
104
+        <script type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/jquery.markitup.pack.js"></script>
105
+		<script type="text/javascript" src="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/sets/html/set.js"></script>
106
+        <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/skins/simple/style.css" />
107
+        <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlSorbet; ?>/admin/scripts/markitup/sets/html/style.css" />
108
+        <script type="text/javascript" >
109
+           $(document).ready(function() {
110
+              $("#description").markItUp(my_html);
111
+           });
112
+        </script>
113
+		<style type="text/css" media="screen">
114
+			@import "<?php echo $conf->urlSorbet; ?>/admin/css/style.css";
115
+		</style>
116
+	</head>
117
+
118
+	<body>
119
+		<div id="cont">
120
+			<div id="main">
121
+				<div class="box">
122
+					<h3><?php echo __("New Post")?></h3>
123
+					<ul class="menu">
122 124
 <?php
123 125
                         switch ($postType) {
124 126
                                 case "post":
125
-?>
126
-									<li class="selected"><a href="#"><img src="css/images/page.png" alt="New post" /> <?php echo __("Regular")?></a></li>
127
+?>
128
+									<li class="selected"><a href="#"><img src="css/images/page.png" alt="New post" /> <?php echo __("Regular")?></a></li>
127 129
 <?php
128 130
                                     break;
129 131
                                 case "photo":
130
-?>
131
-									<li class="selected"><a href="#"><img src="css/images/image.png" alt="New picture" /> <?php echo __("Picture")?></a></li>
132
+?>
133
+									<li class="selected"><a href="#"><img src="css/images/image.png" alt="New picture" /> <?php echo __("Picture")?></a></li>
132 134
 <?php
133 135
                                     break;
134 136
                                 case "url":
135
-?>
136
-									<li class="selected"><a href="#"><img src="css/images/world.png" alt="New link" /> <?php echo __("Link")?></a></li>
137
+?>
138
+									<li class="selected"><a href="#"><img src="css/images/world.png" alt="New link" /> <?php echo __("Link")?></a></li>
137 139
 <?php
138 140
                                     break;
139 141
                                 case "video":
140
-?>
141
-									<li class="selected"><a href="#"><img src="css/images/film.png" alt="New video" /> <?php echo __("Video")?></a></li>
142
+?>
143
+									<li class="selected"><a href="#"><img src="css/images/film.png" alt="New video" /> <?php echo __("Video")?></a></li>
142 144
 <?php
143 145
                                     break;
144 146
                                 case "mp3":
145
-?>
146
-									<li class="selected"><a href="#"><img src="css/images/music.png" alt="New audio" /> <?php echo __("Audio")?></a></li>
147
+?>
148
+									<li class="selected"><a href="#"><img src="css/images/music.png" alt="New audio" /> <?php echo __("Audio")?></a></li>
147 149
 <?php
148 150
                                     break;
149
-                            } ?>
150
-					</ul>
151
-					<p>&nbsp;</p>
152
-					<form action="bm.php" method="post" <?php echo (isset($_GET["new"]) && ($_GET["new"]=="photo" || $_GET["new"]=="mp3")) ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd" class="newpost">
153
-						<fieldset>
151
+                            } ?>
152
+					</ul>
153
+					<p>&nbsp;</p>
154
+					<form action="bm.php" method="post" <?php echo (isset($_GET["new"]) && ($_GET["new"]=="photo" || $_GET["new"]=="mp3")) ? "enctype=\"multipart/form-data\"" : ""?> name="frmAdd" class="newpost">
155
+						<fieldset>
154 156
 <?php
155 157
                             $date = time();
156 158
         $title = "";
@@ -194,38 +196,38 @@ if ($user->isAdmin()) {
194 196
                                     $template->cargarPlantilla($input, $output, "template_add_mp3_bm");
195 197
                                     $template->mostrarPlantilla();
196 198
                                     break;
197
-                            } ?>
198
-								<p>
199
-									<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
200
-                                    	<?php echo __("Some HTML allowed")?>:<br />
201
-										&nbsp;&nbsp;&nbsp;&nbsp;
202
-										<code>
203
-                                            &lt;strong&gt; &lt;em&gt; &lt;del&gt; &lt;ul&gt;  &lt;ol&gt;  &lt;li&gt; &lt;a&gt;
204
-                                            <br />
205
-                                            &nbsp;&nbsp;&nbsp;&nbsp;&lt;blockquote&gt;
206
-                                            &lt;code&gt; &lt;pre&gt; &lt;img&gt;
207
-										</code>
208
-										<br /><br />
209
-                                    </span>
210
-								</p>
211
-								<p>
212
-									<input class="btn" type="submit" name="btnAdd" value="Create post" />
213
-								</p>
214
-						</fieldset>
215
-					</form>
216
-					<div class="footer-box">&nbsp;</div>
217
-				</div>
218
-
219
-			</div>
199
+                            } ?>
200
+								<p>
201
+									<span style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
202
+                                    	<?php echo __("Some HTML allowed")?>:<br />
203
+										&nbsp;&nbsp;&nbsp;&nbsp;
204
+										<code>
205
+                                            &lt;strong&gt; &lt;em&gt; &lt;del&gt; &lt;ul&gt;  &lt;ol&gt;  &lt;li&gt; &lt;a&gt;
206
+                                            <br />
207
+                                            &nbsp;&nbsp;&nbsp;&nbsp;&lt;blockquote&gt;
208
+                                            &lt;code&gt; &lt;pre&gt; &lt;img&gt;
209
+										</code>
210
+										<br /><br />
211
+                                    </span>
212
+								</p>
213
+								<p>
214
+									<input class="btn" type="submit" name="btnAdd" value="Create post" />
215
+								</p>
216
+						</fieldset>
217
+					</form>
218
+					<div class="footer-box">&nbsp;</div>
219
+				</div>
220
+
221
+			</div>
220 222
 <?php
221 223
 
222
-    } ?>
223
-			<div id="foot">
224
-				Sorbet CMS - PHP Tumblelog Content Management System.
225
-			</div>
226
-		</div>
227
-	</body>
228
-	</html>
224
+    } ?>
225
+			<div id="foot">
226
+				Sorbet CMS - PHP Tumblelog Content Management System.
227
+			</div>
228
+		</div>
229
+	</body>
230
+	</html>
229 231
 <?php
230 232
 
231 233
 } else {