"OdenseTrack" is a school assignment/project from AspIT https://aspit.dfine.net/odensetrack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tiny.php 915B

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