|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+/*
|
|
|
3
|
+ * Made by DFiNE (Kenneth Hedahl)
|
|
|
4
|
+ * Copyright DIS (www.dfine.net)
|
|
|
5
|
+ * -----------------------------
|
|
|
6
|
+ */
|
|
|
7
|
+
|
|
|
8
|
+mb_internal_encoding("utf-8"); // Internal encoding set to UTF-8, should fix some charset issues.
|
|
|
9
|
+
|
|
|
10
|
+session_start(); // Start PHP session, so we can handle session-data on all pages.
|
|
|
11
|
+
|
|
|
12
|
+require_once("../include.php"); // Our includes.
|
|
|
13
|
+
|
|
|
14
|
+if (isset($_SESSION['user'])) {
|
|
|
15
|
+ if (User::checkLevel("75")) {
|
|
|
16
|
+ ?>
|
|
|
17
|
+
|
|
|
18
|
+ tinymce.init({
|
|
|
19
|
+ selector: '.editor',
|
|
|
20
|
+ plugins: 'image',
|
|
|
21
|
+ toolbar: "undo redo | styleselect | bold italic | image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent",
|
|
|
22
|
+ menubar: false,
|
|
|
23
|
+ image_list: [
|
|
|
24
|
+ {title: 'My image 1', value: 'https://www.tinymce.com/my1.gif'},
|
|
|
25
|
+ {title: 'My image 2', value: 'http://www.moxiecode.com/my2.gif'}
|
|
|
26
|
+ ],
|
|
|
27
|
+ height: '400px'
|
|
|
28
|
+ });
|
|
|
29
|
+
|
|
|
30
|
+
|
|
|
31
|
+ <?php
|
|
|
32
|
+ }
|
|
|
33
|
+}
|