|
@@ -55,12 +55,10 @@ if ($user->isAdmin()) {
|
55
|
55
|
if (!get_magic_quotes_gpc()) {
|
56
|
56
|
$_POST["title"] = addslashes($_POST["title"]);
|
57
|
57
|
$_POST["description"] = addslashes($_POST["description"]);
|
58
|
|
- }
|
59
|
|
-
|
60
|
|
- $textile = new Textile();
|
61
|
|
-
|
62
|
|
- $_POST["title"] = $textile->TextileThis(removeBadTags($_POST["title"]));
|
63
|
|
- $_POST["description"] = $textile->TextileThis(removeBadTags($_POST["description"]));
|
|
58
|
+ }
|
|
59
|
+
|
|
60
|
+ $_POST["title"] = removeBadTags($_POST["title"],true);
|
|
61
|
+ $_POST["description"] = removeBadTags($_POST["description"]);
|
64
|
62
|
|
65
|
63
|
if ($tumble->addPost($_POST)) {
|
66
|
64
|
$input = array("{type}");
|
|
@@ -109,7 +107,17 @@ if ($user->isAdmin()) {
|
109
|
107
|
<meta name="generator" content="gelato cms <?php echo version();?>" />
|
110
|
108
|
<title>gelato :: <?php echo __("bookmarklet")?></title>
|
111
|
109
|
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
|
110
|
+ <script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/jquery.js"></script>
|
112
|
111
|
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
|
112
|
+ <script type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/jquery.markitup.pack.js"></script>
|
|
113
|
+ <script type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/sets/html/set.js"></script>
|
|
114
|
+ <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/skins/simple/style.css" />
|
|
115
|
+ <link rel="stylesheet" type="text/css" href="<?php echo $conf->urlGelato;?>/admin/scripts/markitup/sets/html/style.css" />
|
|
116
|
+ <script type="text/javascript" >
|
|
117
|
+ $(document).ready(function() {
|
|
118
|
+ $("#description").markItUp(my_html);
|
|
119
|
+ });
|
|
120
|
+ </script>
|
113
|
121
|
<style type="text/css" media="screen">
|
114
|
122
|
@import "<?php echo $conf->urlGelato;?>/admin/css/style.css";
|
115
|
123
|
</style>
|