Browse Source

inital commit

tags/1week
kenn408k 6 years ago
commit
9ce532d7fe
100 changed files with 19050 additions and 0 deletions
  1. 74
    0
      _login.php
  2. 71
    0
      classes/alter.class.php
  3. 19
    0
      classes/config.class.php
  4. 99
    0
      classes/dbclass.class.php
  5. 192
    0
      classes/design.class.php
  6. 82
    0
      classes/get.class.php
  7. 0
    0
      classes/index.php
  8. 66
    0
      classes/user.class.php
  9. 26
    0
      content/aboutus.php
  10. 40
    0
      content/addevent.php
  11. 33
    0
      content/addnews.php
  12. 22
    0
      content/admin.php
  13. 52
    0
      content/contact.php
  14. 55
    0
      content/editevent.php
  15. 47
    0
      content/editnews.php
  16. 41
    0
      content/error.php
  17. 56
    0
      content/eventadmin.php
  18. 34
    0
      content/events.php
  19. 29
    0
      content/eventview.php
  20. 150
    0
      content/home.php
  21. 0
    0
      content/index.php
  22. 42
    0
      content/login.php
  23. 38
    0
      content/news.php
  24. 55
    0
      content/newsadmin.php
  25. 29
    0
      content/readnews.php
  26. 18
    0
      content/sitemap.php
  27. 0
    0
      css/index.php
  28. 1
    0
      css/jquery.datetimepicker.min.css
  29. 204
    0
      css/slick-theme.css
  30. 119
    0
      css/slick.css
  31. 1495
    0
      css/style.css
  32. 0
    0
      fonts/index.php
  33. BIN
      fonts/slick.eot
  34. 14
    0
      fonts/slick.svg
  35. BIN
      fonts/slick.ttf
  36. BIN
      fonts/slick.woff
  37. BIN
      img/bg.png
  38. BIN
      img/ev/f1.jpg
  39. BIN
      img/events/events1.png
  40. BIN
      img/events/events2.png
  41. BIN
      img/events/events3.png
  42. BIN
      img/events/events4.png
  43. BIN
      img/events/events5.png
  44. BIN
      img/events/events6.jpg
  45. 0
    0
      img/events/index.php
  46. BIN
      img/fbanner/advert.png
  47. 0
    0
      img/fbanner/index.php
  48. BIN
      img/fbanner/m1.png
  49. BIN
      img/fbanner/m2.png
  50. BIN
      img/fbanner/m3.png
  51. BIN
      img/fbanner/m4.png
  52. BIN
      img/fbanner/m5.png
  53. BIN
      img/fbanner/redbox.png
  54. BIN
      img/fbanner/t1.png
  55. BIN
      img/fbanner/t2.png
  56. BIN
      img/fbanner/t3.png
  57. BIN
      img/fbanner/t4.png
  58. BIN
      img/fbanner/t5.png
  59. BIN
      img/fbanner/t6.png
  60. BIN
      img/fbanner/t7.png
  61. BIN
      img/fbanner/track.png
  62. BIN
      img/header.png
  63. BIN
      img/icons/facebook.png
  64. 0
    0
      img/icons/index.php
  65. BIN
      img/icons/instagram.png
  66. BIN
      img/icons/twitter.png
  67. BIN
      img/icons/youtube.png
  68. 0
    0
      img/index.php
  69. 24
    0
      include.php
  70. 38
    0
      index.php
  71. 91
    0
      initaldesign.html
  72. 0
    0
      js/index.php
  73. 2911
    0
      js/jquery.datetimepicker.full.js
  74. 1
    0
      js/jquery.datetimepicker.full.min.js
  75. 1
    0
      js/jquery.datetimepicker.min.js
  76. 3011
    0
      js/slick.js
  77. 1
    0
      js/slick.min.js
  78. 92
    0
      js/tinymce/jquery.tinymce.min.js
  79. 3
    0
      js/tinymce/langs/readme.md
  80. 504
    0
      js/tinymce/license.txt
  81. 9
    0
      js/tinymce/plugins/advlist/plugin.min.js
  82. 9
    0
      js/tinymce/plugins/anchor/plugin.min.js
  83. 9
    0
      js/tinymce/plugins/autolink/plugin.min.js
  84. 9
    0
      js/tinymce/plugins/autoresize/plugin.min.js
  85. 9
    0
      js/tinymce/plugins/autosave/plugin.min.js
  86. 9
    0
      js/tinymce/plugins/bbcode/plugin.min.js
  87. 9
    0
      js/tinymce/plugins/charmap/plugin.min.js
  88. 9
    0
      js/tinymce/plugins/code/plugin.min.js
  89. 9
    0
      js/tinymce/plugins/codesample/plugin.min.js
  90. 9
    0
      js/tinymce/plugins/colorpicker/plugin.min.js
  91. 9
    0
      js/tinymce/plugins/contextmenu/plugin.min.js
  92. 9
    0
      js/tinymce/plugins/directionality/plugin.min.js
  93. 9015
    0
      js/tinymce/plugins/emoticons/js/emojis.js
  94. 2
    0
      js/tinymce/plugins/emoticons/js/emojis.min.js
  95. 9
    0
      js/tinymce/plugins/emoticons/plugin.min.js
  96. 9
    0
      js/tinymce/plugins/fullpage/plugin.min.js
  97. 9
    0
      js/tinymce/plugins/fullscreen/plugin.min.js
  98. 9
    0
      js/tinymce/plugins/help/plugin.min.js
  99. 9
    0
      js/tinymce/plugins/hr/plugin.min.js
  100. 0
    0
      js/tinymce/plugins/image/plugin.min.js

+ 74
- 0
_login.php View File

@@ -0,0 +1,74 @@
1
+<?php
2
+
3
+/*
4
+ * Login page - Users are sent here if they are not properly logged in, or their login expired.
5
+ */
6
+session_start();
7
+
8
+if(isset($_GET['logout'])) {
9
+    $_SESSION = array();
10
+    session_unset();
11
+    session_destroy();
12
+    header("Location: index.php?page=home");
13
+    die("Error, please enable browser redirects.");
14
+}
15
+
16
+if (isset($_SESSION['user'])) {
17
+    header("Location: index.php?page=home");
18
+    die("Error, please enable browser redirects.");
19
+}
20
+
21
+mb_internal_encoding("utf-8"); // Internal encoding set to UTF-8, should fix some charset issues.
22
+
23
+require_once("include.php"); // Our includes.
24
+
25
+/*
26
+ * Get variables and sanitize their inputs
27
+ */
28
+$error = array();
29
+
30
+if (isset($_POST['u']) && isset($_POST['p'])) {
31
+    // If mail and pw is set, lets do some sanitizng.
32
+
33
+    if (filter_input(INPUT_POST, 'u', FILTER_DEFAULT) == true) {
34
+        $email = $_POST['u'];
35
+    } else {
36
+        $error[] = "Email or username incorrect.";
37
+    }
38
+
39
+    if (filter_input(INPUT_POST, 'p', FILTER_DEFAULT) == true) {
40
+        $password = $_POST['p'];
41
+    } else {
42
+        $error[] = "Email or username incorrect.";
43
+    }
44
+
45
+    $db = new DBClass();
46
+    $query = "SELECT * FROM `" . Config::$db_tableusers . "` WHERE `username` = '" . $email . "'";
47
+
48
+    if ($db->numRows($db->query($query)) >= 1) {
49
+        $result = $db->fetchAll($db->query($query))[0];
50
+        if (password_verify($password, $result['password']) && $email == $result['username']) {
51
+            // SUCCESS!
52
+            $_SESSION['user'] = $result['id'];
53
+            $_SESSION['username'] = $result['username'];
54
+            $_SESSION['lvl'] = $result['level'];
55
+
56
+            header('Location: index.php?page=news');
57
+            die("Error, please enable browser redirects.");
58
+        } else {
59
+            $error[] = "Mail wrong";
60
+        }
61
+    } else {
62
+        $error[] = "Wrong email or password.";
63
+        header('Location: index.php?page=login&error=1');
64
+    }
65
+}
66
+
67
+
68
+/*
69
+ * If no information was sent to the script, or the login was incorrect - HTML below here will be shown.
70
+ */
71
+
72
+header('Location: ' . Config::$sys_url . '?page=login&error=1');
73
+die("Error, please enable browser redirects.");
74
+

+ 71
- 0
classes/alter.class.php View File

@@ -0,0 +1,71 @@
1
+<?php
2
+
3
+/*
4
+ * Alters information in the database. We use this for signup, administration and more.
5
+ */
6
+
7
+class Alter {
8
+
9
+    private function __construct() {
10
+        
11
+    }
12
+
13
+    public static function addNews($author, $title, $content) {
14
+        $db = new DBClass();
15
+        $time = new DateTime();
16
+        $sql = "INSERT INTO `news` (`id`, `author`, `time`, `title`, `type`, `content`, `img`) VALUES (NULL, '$author', '" . $time->getTimestamp() . "', '$title', '1', '$content', '');";
17
+        $db->query($sql);
18
+        header('Location: ' . Config::$sys_url . '?page=newsadmin');
19
+        die("Error, please enable browser-redirects.");
20
+    }
21
+
22
+    public static function editNews($id, $title, $content) {
23
+        $db = new DBClass();
24
+        $sql = "UPDATE `news` SET `title` = '$title', `content` = '$content' WHERE `news`.`id` = $id;";
25
+        $db->query($sql);
26
+        header('Location: ' . Config::$sys_url . '?page=newsadmin');
27
+        die("Error, please enable browser redirects.");
28
+    }
29
+
30
+    public static function deleteNews($id) {
31
+        $db = new DBClass();
32
+        $sql = "DELETE FROM `news` WHERE `news`.`id` = $id";
33
+        $db->query($sql);
34
+        header('Location: ' . Config::$sys_url . '?page=newsadmin');
35
+        die("Error, please enable browser redirects.");
36
+    }
37
+
38
+    
39
+    /* Event functions */
40
+    
41
+    public static function addEvent($title, $content, $type, $eventdate) {
42
+        $db = new DBClass();
43
+        $sql = "INSERT INTO `events` (`id`, `title`, `img`, `type`, `description`, `time`) VALUES (NULL, '$title', 'image', '$type', '$content', '" . strtotime($eventdate) . "');";
44
+        $db->query($sql);
45
+        header('Location: ' . Config::$sys_url . '?page=eventadmin');
46
+        die("Error, please enable browser-redirects.");
47
+    }
48
+
49
+    public static function editEvent($id, $title, $content, $type, $eventdate) {
50
+        $db = new DBClass();
51
+        $sql = "UPDATE `events` SET `title` = '$title', `img` = 'images', `type` = '$type', `time` = '" . strtotime($eventdate) . "', `description` = '$content' WHERE `events`.`id` = $id;";
52
+        $db->query($sql);
53
+        header('Location: ' . Config::$sys_url . '?page=eventadmin');
54
+        die("Error, please enable browser redirects.");
55
+    }
56
+
57
+    public static function deleteEvent($id) {
58
+        $db = new DBClass();
59
+        $sql = "DELETE FROM `events` WHERE `events`.`id` = $id";
60
+        $db->query($sql);
61
+        header('Location: ' . Config::$sys_url . '?page=eventadmin');
62
+        die("Error, please enable browser redirects.");
63
+    }
64
+
65
+    public static function addUser($username, $password, $realname, $mail, $level) {
66
+        $db = new DBClass();
67
+        $sql = "INSERT INTO `users` (`id`, `realname`, `username`, `password`, `email`, `level`) VALUES (NULL, '$realname', '$username', '" . User::hashPass($password) . "', '$mail', '$level');";
68
+        return $db->query($sql);
69
+    }
70
+
71
+}

+ 19
- 0
classes/config.class.php View File

@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+class Config {
4
+
5
+    /** Site Settings */
6
+    public static $sys_url = "https://aspit.dfine.net/odensetrack/"; //Website URL WITH tailing slash
7
+    public static $debug = true; // Public debug flag
8
+    public static $closed = false; // If set to true, the site wont load. Useful when not using login.
9
+
10
+    /** MySQL settings */
11
+    public static $mysql_host = "127.0.0.1";
12
+    public static $mysql_user = "aspit";
13
+    public static $mysql_pass = "Sist1hg2!";
14
+    public static $mysql_db = "aspit";
15
+
16
+    /** Extended database settings */
17
+    public static $db_tableusers = "users";
18
+
19
+}

+ 99
- 0
classes/dbclass.class.php View File

@@ -0,0 +1,99 @@
1
+<?php
2
+/**
3
+ * User: DFiNE
4
+ * Date: 20/01/2019
5
+ * Time: 13.05
6
+ */ 
7
+
8
+class DBclass
9
+{
10
+    var $classQuery;
11
+    var $link;
12
+
13
+    var $errno = '';
14
+    var $error = '';
15
+
16
+    // Connects to the database
17
+    function __construct()
18
+    {
19
+
20
+        // Get the main settings from the array we just loaded
21
+        $host = Config::$mysql_host;
22
+        $name = Config::$mysql_db;
23
+        $user = Config::$mysql_user;
24
+        $pass = Config::$mysql_pass;
25
+
26
+        // Connect to the database
27
+        $this->link = new mysqli( $host , $user , $pass , $name );
28
+        $this->link->set_charset("utf8"); // Set charset to UTF-8, always!
29
+    }
30
+
31
+    // Executes a database query
32
+    function query( $query )
33
+    {
34
+        $this->classQuery = $query;
35
+        return $this->link->query( $query );
36
+    }
37
+
38
+    function escapeString( $query )
39
+    {
40
+        return $this->link->escape_string( $query );
41
+    }
42
+
43
+    // Get the data return int result
44
+    function numRows( $result )
45
+    {
46
+        return $result->num_rows;
47
+    }
48
+
49
+    function lastInsertedID()
50
+    {
51
+        return $this->link->insert_id;
52
+    }
53
+
54
+    // Get query using assoc method
55
+    function fetchAssoc( $result )
56
+    {
57
+        return $result->fetch_assoc();
58
+    }
59
+
60
+    // Gets array of query results
61
+    function fetchArray( $result , $resultType = MYSQLI_ASSOC )
62
+    {
63
+        return $result->fetch_array( $resultType );
64
+    }
65
+
66
+    // Fetches all result rows as an associative array, a numeric array, or both
67
+    function fetchAll( $result , $resultType = MYSQLI_ASSOC )
68
+    {
69
+        return $result->fetch_all( $resultType );
70
+    }
71
+
72
+    // Get a result row as an enumerated array
73
+    function fetchRow( $result )
74
+    {
75
+        return $result->fetch_row();
76
+    }
77
+
78
+    // Free all MySQL result memory
79
+    function freeResult( $result )
80
+    {
81
+        $this->link->free_result( $result );
82
+    }
83
+
84
+    //Closes the database connection
85
+    function close()
86
+    {
87
+        $this->link->close();
88
+    }
89
+
90
+    function sql_error()
91
+    {
92
+        if( empty( $error ) )
93
+        {
94
+            $errno = $this->link->errno;
95
+            $error = $this->link->error;
96
+        }
97
+        return $errno . ' : ' . $error;
98
+    }
99
+}

+ 192
- 0
classes/design.class.php View File

@@ -0,0 +1,192 @@
1
+<?php
2
+
3
+class Design {
4
+
5
+    private function __construct() {
6
+        
7
+    }
8
+
9
+    /**
10
+     *
11
+     * $setup = array(title, headline, description, keywords);
12
+     * $level indicated what userlevel is required to view the page. 0 means public/nologin
13
+     *
14
+     */
15
+    public static function header($setup = array(), $level) { // Primary design function. This function is called on all pages, this is our header.
16
+        if ($level > 0) {
17
+            if (!User::checkLevel($level)) {
18
+                header('Location: ' . Config::$sys_url . '?page=error&r=level');
19
+                die("You are not authorized to view this page.");
20
+            }
21
+        }
22
+        echo '<!DOCTYPE html>
23
+<!--
24
+ Made by DFiNE (Kenneth Hedahl)
25
+ Copyright DIS (www.dfine.net)
26
+-->
27
+<html lang="da">
28
+    <head>
29
+        <title>' . $setup['title'] . ' | Odense Track</title>
30
+        <meta charset="UTF-8">
31
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
32
+        <meta name="headline" content="' . $setup['headline'] . '">
33
+        <meta name="description" content="' . $setup['description'] . '">
34
+        <meta name="keywords" content="' . $setup['keywords'] . '">
35
+        <meta name="author" content="Odense Track">
36
+        <link href="css/style.css" rel="stylesheet" />
37
+        <link rel="stylesheet" type="text/css" href="css/slick.css" />
38
+        <link rel="stylesheet" type="text/css" href="css/slick-theme.css" />
39
+        <link rel="stylesheet" type="text/css" href="css/jquery.datetimepicker.min.css" />
40
+        <link href="//stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
41
+        <!-- WYSIWYG -->
42
+        
43
+    </head>
44
+    <body>
45
+
46
+        <div class="contentwrapper"> <!-- Contentwrapper start -->
47
+            <header> <!-- Header start -->
48
+                <div class="topnav">
49
+                    <p>Support:</p> <a href="?page=order"><button>Bestil nu</button></a>
50
+                </div>
51
+
52
+                <div class="header">
53
+                    <a href="' . Config::$sys_url . '"><div class="header_logo">&nbsp;</div></a>
54
+                    <div class="header_right">
55
+                        <a href="' . Config::$sys_url . '?page=aboutus">Om Odense Track</a> | <a href="' . Config::$sys_url . '?page=contact">Kontakt Os</a>
56
+                    </div>
57
+                </div>
58
+
59
+                <div class="clear"></div>
60
+
61
+
62
+                <nav class="mainnav"> <!-- Main navigation start -->
63
+                    <ul>
64
+                        <li><a href="' . Config::$sys_url . '?page=home">Formel 1</a></li>
65
+                        <li><a href="' . Config::$sys_url . '?page=events">Events</a></li>
66
+                        <li><a href="' . Config::$sys_url . '?page=news">Nyheder</a></li>
67
+                            
68
+                        ' . (User::userLevel() > 74 ? "<li><a href=\"?page=newsadmin\">Nyhedsadmin</a></li>" : "") . '
69
+                        ' . (User::userLevel() > 74 ? "<li><a href=\"?page=eventadmin\">Eventadmin</a></li>" : "") . '
70
+                        ' . (User::userLevel() > 0 ? "<li><a href=\"_login.php?logout\">Log ud</a></li>" : "<li><a href=\"?page=login\">Login</a></li>") . '
71
+                            
72
+                    </ul>
73
+                </nav> <!-- Main navigation end -->
74
+
75
+            </header> <!-- Header end -->
76
+
77
+            <div class="content"> <!-- Content start -->';
78
+    }
79
+
80
+    public static function footer($scripts) { // Shown at the bottom of every page we display. - if $scripts true, use javascripts on page
81
+        echo '</div> <!-- Content end -->
82
+
83
+
84
+        </div> <!-- Contentwrapper End -->
85
+
86
+        <footer> <!-- Footer start -->
87
+            <div class="footer_wrap">
88
+                <a href="' . Config::$sys_url . '"><div class="footer_logo"></div></a>
89
+
90
+                <div class="footer_followus">
91
+                    <h1>Følg os her</h1>
92
+                    <p>Tilmeld dig vores sociale netværk</p>
93
+                    <div class="socialicons">
94
+                        <a href="#"><img src="' . Config::$sys_url . 'img/icons/facebook.png" alt="facebook" title="Følg os på facebook" /></a>
95
+                        <a href="#"><img src="' . Config::$sys_url . 'img/icons/twitter.png" alt="twitter" title="Følg os på twitter" /></a>
96
+                        <a href="#"><img src="' . Config::$sys_url . 'img/icons/youtube.png" alt="YouTube" title="Følg os på YouTube" /></a>
97
+                        <a href="#"><img src="' . Config::$sys_url . 'img/icons/instagram.png" alt="Instagram" title="Følg os på Instagram" /></a>
98
+                    </div>
99
+                </div>
100
+
101
+                <div class="footer_newsletter">
102
+                    <h1>Tilmeld dig vores nyhedsbrev</h1>
103
+                    <p>Tilmeld dig vores sociale netværk</p>
104
+
105
+                </div>
106
+
107
+                <div class="clear"></div>
108
+                <div class="footer_links">
109
+                    <div class="pull_left">
110
+                        <ul>
111
+                            <li><a href="' . Config::$sys_url . '?page=contact">Kontakt os</a></li>
112
+                            <li><a href="' . Config::$sys_url . '?page=aboutus">Om Odense Track</a></li>
113
+                            <li><a href="' . Config::$sys_url . '?page=sitemap">Sitemap</a></li>
114
+                        </ul>
115
+                    </div>
116
+
117
+                    <div class="pull_right">
118
+                        &copy; <a href="' . Config::$sys_url . '">Odense Track</a>
119
+                    </div>
120
+
121
+                </div>
122
+            </div>
123
+
124
+        </footer> <!-- Footer end -->';
125
+
126
+
127
+        if ($scripts == true) {
128
+
129
+            echo '
130
+        <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
131
+        <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
132
+        <script src="js/jquery.datetimepicker.full.min.js"></script>
133
+        <script src="' . Config::$sys_url . 'js/slick.min.js"></script>
134
+        <script>
135
+            $(document).ready(function(){
136
+              $(\'.eventslider\').slick({
137
+                "slidesToShow": 5, "slidesToScroll": 1, "autoplay": true, "autoplayspeed": 4000
138
+              });
139
+            });
140
+            
141
+            $(".activityprev").click(function(){
142
+              $(".activityfeed").slick("slickPrev");
143
+            })
144
+
145
+            $(".activitynext").click(function(){
146
+              $(".activityfeed").slick("slickNext");
147
+            })
148
+            
149
+            $(\'.activityfeed\').slick({
150
+                 dots: false,
151
+                 infinite: false,
152
+                 speed: 300,
153
+                 slidesToShow: 3,
154
+                 vertical: true,
155
+                 adaptiveHeight: false,
156
+                 arrows: false,
157
+                 verticalSwiping:true
158
+                 
159
+            });
160
+            jQuery(\'.datetime\').datetimepicker();
161
+        </script>
162
+        
163
+
164
+        <!-- WYSIWYG -->
165
+        <script src="' . Config::$sys_url . 'js/tinymce/tinymce.min.js" referrerpolicy="origin"></script>
166
+        <script>
167
+  tinymce.init({
168
+    selector: \'.editor\',
169
+    menubar: false,
170
+    height: \'400px\'
171
+  });
172
+  </script>
173
+        ';
174
+        }
175
+
176
+
177
+        echo '
178
+        </body>
179
+</html>';
180
+
181
+        if (Config::$debug == true) {
182
+            
183
+            echo '<div style="position:fixed; top:5px; left:5px; background-color:#000; color:#20C20E; border:1px solid #20C20E; width:300px; height:auto;">';
184
+            echo '<center>Debug Panel</center><hr>';
185
+            echo '<br/>-GET' . var_dump($_GET) . '<hr>';
186
+            echo '<br/>-POST' . var_dump($_POST) . '<hr>';
187
+            echo '<br/>-SESS' . var_dump($_SESSION) . '<hr>';
188
+            echo '<center>Disable this in CONFIG!</center></div>';
189
+        }
190
+    }
191
+
192
+}

+ 82
- 0
classes/get.class.php View File

@@ -0,0 +1,82 @@
1
+<?php
2
+
3
+/*
4
+ * Gets various items from the database - Used on basically all pages.
5
+ */
6
+
7
+class Get {
8
+
9
+    private function __construct() {
10
+        
11
+    }
12
+
13
+    public static function NewsArticle($id) {
14
+        /* Here we sanitize the userinput. We only allow numbers here.
15
+         * - Filter the variable to remove anything but numbers (plusses and minusses)
16
+         * However, the filter_var needs us to trim the output first, as we dont want nullbytes.
17
+         */
18
+
19
+        $newsitem = filter_var(trim($id), FILTER_SANITIZE_NUMBER_INT);
20
+
21
+        $db = new DBClass();
22
+        $sql = "SELECT news.*,users.realname FROM `news` JOIN users ON news.author = users.id WHERE news.id = $newsitem";
23
+
24
+        // Does the newsitem exist? If not, we redirect.
25
+
26
+        if ($db->numRows($db->query($sql)) != 1) {
27
+            header('Location: ' . Config::$sys_url . '?page=error');
28
+            die("This newsitem doesnt exist.");
29
+        }
30
+        // It did, yay! - Lets fetch it, and return it.
31
+        return $db->fetchAll($db->query($sql))[0];
32
+    }
33
+
34
+    public static function NewsList() {
35
+        // newsadmin
36
+        $db = new DBClass();
37
+        $sql = "SELECT news.*,users.realname FROM `news` JOIN users ON news.author = users.id ORDER BY `id` DESC";
38
+        return $db->fetchAll($db->query($sql));
39
+    }
40
+
41
+    public static function publicNewsList() {
42
+        $db = new DBClass();
43
+        $sql = "SELECT news.*,users.realname FROM `news` JOIN users ON news.author = users.id ORDER BY `id` DESC LIMIT 5";
44
+        return $db->fetchAll($db->query($sql));
45
+    }
46
+
47
+    /* Event functions */
48
+
49
+    public static function ViewEvent($id) {
50
+        /* Here we sanitize the userinput. We only allow numbers here.
51
+         * - Filter the variable to remove anything but numbers (plusses and minusses)
52
+         * However, the filter_var needs us to trim the output first, as we dont want nullbytes.
53
+         */
54
+        $eventitem = filter_var(trim($id), FILTER_SANITIZE_NUMBER_INT);
55
+
56
+        // Get the news
57
+
58
+        $db = new DBClass();
59
+        $sql = "SELECT * FROM `events` WHERE `id` = $eventitem";
60
+        // Check if this eventitem exists - If not, we 404
61
+        if ($db->numRows($db->query($sql)) != 1) {
62
+            header('Location: ' . Config::$sys_url . '?page=error');
63
+            die("This newsitem doesnt exist.");
64
+        }
65
+        // It did, yay! - Lets fetch it, and return it.
66
+        return $db->fetchAll($db->query($sql))[0];
67
+    }
68
+
69
+    public static function EventList() {
70
+        // eventadmin
71
+        $db = new DBClass();
72
+        $sql = "SELECT * FROM `events` ORDER BY `id` DESC";
73
+        return $db->fetchAll($db->query($sql));
74
+    }
75
+
76
+    public static function publicEventList() {
77
+        $db = new DBClass();
78
+        $sql = "SELECT * FROM `events` ORDER BY `id` DESC LIMIT 5";
79
+        return $db->fetchAll($db->query($sql));
80
+    }
81
+
82
+}

+ 0
- 0
classes/index.php View File


+ 66
- 0
classes/user.class.php View File

@@ -0,0 +1,66 @@
1
+<?php
2
+
3
+class User {
4
+
5
+    public static function hashPass($password) {
6
+        return password_hash($password, PASSWORD_ARGON2I);
7
+    }
8
+
9
+    private static function verifyPass($password, $hash) {
10
+        if (password_verify($password, $hash)) {
11
+            return true;
12
+        } else {
13
+            return false;
14
+        }
15
+    }
16
+
17
+    public static function checkLogin() {
18
+        if (isset($_SESSION['user'])) {
19
+            $db = new DBClass();
20
+            $query = "SELECT * FROM `" . Config::$db_tableusers . "` WHERE `id` = '" . $_SESSION['user'] . "'";
21
+            if ($db->numRows($db->query($query)) != 1) {
22
+                return false;
23
+            } else {
24
+                return true;
25
+            }
26
+        } else {
27
+            return false;
28
+        }
29
+    }
30
+
31
+    public static function checkLevel($requiredlevel) {
32
+        if (User::checkLogin()) { // We are logged in, lets continue this check
33
+            $db = new DBClass();
34
+            $query = "SELECT level FROM `" . Config::$db_tableusers . "` WHERE `id` = '" . $_SESSION['user'] . "'";
35
+            $result = $db->fetchAll($db->query($query))[0];
36
+
37
+            if ($result['level'] >= $requiredlevel) { // OK, our user DOES have the required level, return true
38
+                return true;
39
+            } else { // User was authenticated, but doesnt have the required level
40
+                return false;
41
+            }
42
+        } else { // If user wasnt logged in, we return false
43
+            return false;
44
+        }
45
+    }
46
+
47
+    public static function userLevel() {
48
+
49
+        // _SESSION['userlevel'] shows users current level. 50 = admin, 80 = leadadmin 100 = sysop
50
+        if (!isset($_SESSION['lvl'])) {
51
+            return 0;
52
+        } else {
53
+            $level = $_SESSION['lvl'];
54
+
55
+            $db = new DBClass();
56
+            $query = "SELECT * FROM `" . Config::$db_tableusers . "` WHERE `id` = '" . $_SESSION['user'] . "' AND `level` = '" . $level . "'";
57
+            // We check the userlevel, and verifies that the userlevel exist on the user.
58
+            if ($db->numRows($db->query($query)) != 1) {
59
+                return 0;
60
+            } else {
61
+                return $level;
62
+            }
63
+        }
64
+    }
65
+
66
+}

+ 26
- 0
content/aboutus.php View File

@@ -0,0 +1,26 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Om os";
4
+$setup['headline'] = "Odense Track - Om os";
5
+$setup['keywords'] = "om,hvem,odense,track,aboutus,omos";
6
+$setup['description'] = "Information omkring Odense Track";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Om os</h1>
13
+    <div class="border"></div>
14
+    <br />
15
+    <p><strong>Ekslusive sportsvogne og glade børn. Odense Track er et velgørenhedsarrangement primært til fordel for Børnecancerfonden og andre gode formål. Kom og oplev synet og lyden af de vildeste drømmebiler fra Lamborghini, Porsche, Ferrari og mange flere og få fantastisk oplevelse for hele familien. Har du benzin i blodet, kan du endda købe en turbillet og få 2 uforglemmelige omgange som co-driver i din drømmebil.</strong></p>
16
+    <p>Marianne Benzon Nielsen, direktør i Børnecancerfonden, udtaler om samarbejdet med Odense Track:</p>
17
+    <p><em>"Børnecancerfonden er en privat fond, så vi er afhængige af donationer, og trofaste sponsorer som Odense Track. Det er helt afgørende for, at vi kan finansiere længevarende forskningsprojekter, der er med til at forbedre overlevelsen for børn med kræft. Så vi er utrolig glade for den kæmpe indsats, som de mange engagerede kørere og frivillige hvert år gør for at samle penge ind til kampen mod børnekræft. Samtidig giver de hvert år børnene og deres familier en stor oplevelse, når Odense Track inviterer til særlige køredage, hvor ikke kun de syge børn, men også søskende og forældre får et kærkomment afbræk fra hverdagen med alvorlig sygdom. Når et barn får kræft, ændres livet og hverdagen drastisk for hele familien, så alle har brug for omsorg og gode oplevelser, og det er Odense Track i høj grad med til at give dem. Det er fantastisk at opleve så stort et engagement, som Odense Track er båret af&rdquo;.</em></p>
18
+    <p>*For en ordens skyld &ndash; Odense Track støtter Børnecancerfonden, Tryghuset og Lukas huset. Modtagerne af støtte fra Odense Track søger altid at gøre deres brug af indsamlede midler så gennemskuelig og etisk som muligt. Se i øvrigt modtagernes hjemmesider.</p>
19
+    <p>&nbsp;</p>
20
+    <p>Med venlig hilsen</p>
21
+    <p>Odense Track</p>
22
+
23
+</div>
24
+
25
+<?php
26
+Design::footer(false);

+ 40
- 0
content/addevent.php View File

@@ -0,0 +1,40 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Tilføj Event";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+
10
+if (isset($_POST['title'])) {
11
+    Alter::addEvent($_POST['title'], $_POST['textinput'], $_POST['type'], $_POST['eventdate']);
12
+}
13
+?>
14
+
15
+<div class="page">
16
+    <h1>Tilføj Event</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
17
+    <div class="border"></div>
18
+    <br />
19
+    <div class='editorform'>
20
+        <form method="POST" action="">
21
+            <input type="text" class='editformtitle' required placeholder='Nyhedstitel' name="title" />
22
+            <br /><br />
23
+            <select class='editformtitle' name="type">
24
+                <option value="1">Event</option>
25
+                <option value="2">Baneaktivitet</option>
26
+            </select>
27
+            <br /><br />
28
+            <input type="datetime" class="datetime editformtitle" autocomplete="off" name="eventdate" placeholder="Dato og Tid" />
29
+            <br /><br />
30
+            <textarea name='textinput' class='editor'></textarea>
31
+            <br />
32
+            <input type="submit" class='button btn btn-success pull_right' value="Tilføj" />
33
+
34
+        </form>
35
+    </div>
36
+    <div class='clear'></div>
37
+</div>
38
+
39
+<?php
40
+Design::footer(true);

+ 33
- 0
content/addnews.php View File

@@ -0,0 +1,33 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Tilføj Nyhed";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+
10
+if (isset($_POST['title'])) {
11
+    Alter::addNews($_SESSION['user'], $_POST['title'], $_POST['textinput']);
12
+}
13
+?>
14
+
15
+<div class="page">
16
+    <h1>Tilføj Nyhed</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
17
+    <div class="border"></div>
18
+    <br />
19
+    <div class='editorform'>
20
+        <form method="POST" action="">
21
+            <input type="text" class='editformtitle' required placeholder='Nyhedstitel' name="title" />
22
+            <br /><br />
23
+            <textarea name='textinput' class='editor'></textarea>
24
+            <br />
25
+            <input type="submit" class='button btn btn-success pull_right' value="Tilføj" />
26
+
27
+        </form>
28
+    </div>
29
+    <div class='clear'></div>
30
+</div>
31
+
32
+<?php
33
+Design::footer(true);

+ 22
- 0
content/admin.php View File

@@ -0,0 +1,22 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Administration";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Administration</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
13
+    <div class="border"></div>
14
+    <br />
15
+    <p>Velkommen til administrations-interfacet.<br />
16
+    Herfra kan du tilføje/rette nyheder, og styre events.<br />
17
+    <br />
18
+    Vælg hvad du vil gøre i dag, i toppen til højre.</p>
19
+</div>
20
+
21
+<?php
22
+Design::footer(false);

+ 52
- 0
content/contact.php View File

@@ -0,0 +1,52 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Kontakt os";
4
+$setup['headline'] = "Odense Track - Kontakt";
5
+$setup['keywords'] = "kontakt,information,kontaktos,contact,contactus";
6
+$setup['description'] = "Kontakt Odense Track";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Kontakt os</h1>
13
+    <div class="border"></div>
14
+
15
+
16
+    <div class="contactform">
17
+        <form method="POST" action="?page=contact">
18
+            <div class="form-control">
19
+                <label>Navn: </label>
20
+                <input class="inputfield"  type="text" name="name" placeholder="Fuldt navn" required minlength="5" />
21
+            </div>
22
+            <div class="form-control">
23
+                <label>E-mail: </label>
24
+                <input class="inputfield"  type="email" name="mail" placeholder="E-mail adresse" required minlength="5" />
25
+            </div>
26
+            <div class="form-control">
27
+                <label>Emne: </label>
28
+                <input class="inputfield" type="text" name="subject" placeholder="Hvad omhandler din besked?" required minlength="5" />
29
+            </div>
30
+            <div class="form-control">
31
+                <label>Besked: </label>
32
+                <textarea placeholder="Besked til Odense Track" name="message" required></textarea>
33
+            </div>
34
+
35
+            <div class="form-control">
36
+                <input class="contactsubmit" type="submit" value="Send" />
37
+            </div>
38
+        </form>
39
+    </div>
40
+    
41
+    <div class="content-slice">
42
+        <br />
43
+        <p>Brug kontaktformularen til venstre, for at kontakte os.</p>
44
+        <p>Vi bestræber os på at svare indenfor 2 hverdage.</p>
45
+    </div>
46
+
47
+    <div class="clear"></div>
48
+    
49
+</div>
50
+
51
+<?php
52
+Design::footer(false);

+ 55
- 0
content/editevent.php View File

@@ -0,0 +1,55 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Rediger Event";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+
10
+// First we need to know if we are deleting something!
11
+
12
+if (isset($_GET['action'])) { // We are deleting this!
13
+    if ($_GET['action'] == 'del') {
14
+        Alter::deleteEvent($_GET['id']);
15
+    }
16
+    die(); // Something went wrong. Dont execute rest of code!
17
+}
18
+
19
+$result = Get::ViewEvent($_GET['id']);
20
+
21
+if (isset($_POST['title'])) {
22
+    Alter::editEvent($_GET['id'], $_POST['title'], $_POST['textinput'], $_POST['type'], $_POST['eventdate']);
23
+}
24
+?>
25
+
26
+<div class="page">
27
+    <h1>Rediger Event</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
28
+    <div class="border"></div>
29
+    <br />
30
+    <div class='editorform'>
31
+        <form method="POST" action="">
32
+            <input type="text" class='editformtitle' required placeholder='Nyhedstitel' value="<?php echo $result['title']; ?>" name="title" />
33
+            <br /><br />
34
+            <select class='editformtitle' name="type">
35
+                <option <?php if ($result['type'] == 1) {
36
+    echo "selected";
37
+} ?> value="1">Event</option>
38
+                <option <?php if ($result['type'] == 2) {
39
+    echo "selected";
40
+} ?> value="2">Baneaktivitet</option>
41
+            </select>
42
+            <br /><br />
43
+            <input type="datetime" class="datetime editformtitle" name="eventdate" autocomplete="off" value="<?php echo date('Y/m/d H:i', $result['time']); ?>" placeholder="Dato og Tid" />
44
+            <br /><br />
45
+            <textarea name='textinput' class='editor'><?php echo strip_tags($result['description'], '<br><p><b><i><u><img><a><strong><pre><em><span><div><h1><h2><h3><h4><h5><h6><h7><sub><sup><blockquote><code>'); ?></textarea>
46
+            <br />
47
+            <input type="submit" class='button btn btn-success pull_right' value="Rediger" />
48
+
49
+        </form>
50
+    </div>
51
+    <div class='clear'></div>
52
+</div>
53
+
54
+<?php
55
+Design::footer(true);

+ 47
- 0
content/editnews.php View File

@@ -0,0 +1,47 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Rediger Nyhed";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+
10
+// First we need to know if we are deleting something!
11
+
12
+if (isset($_GET['action'])) { // We are deleting this!
13
+    if ($_GET['action'] == 'del') {
14
+        Alter::deleteNews($_GET['id']);
15
+    }
16
+    die(); // Something went wrong. Dont execute rest of code!
17
+}
18
+
19
+
20
+// It did, yay! - Lets fetch it
21
+$result = Get::NewsArticle($_GET['id']);
22
+
23
+
24
+if (isset($_POST['title'])) {
25
+    Alter::editNews($_GET['id'], $_POST['title'], $_POST['textinput']);
26
+}
27
+?>
28
+
29
+<div class="page">
30
+    <h1>Rediger Nyhed</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
31
+    <div class="border"></div>
32
+    <br />
33
+    <div class='editorform'>
34
+        <form method="POST" action="">
35
+            <input type="text" class='editformtitle' required placeholder='Nyhedstitel' value="<?php echo $result['title']; ?>" name="title" />
36
+            <br /><br />
37
+            <textarea name='textinput' class='editor'><?php echo strip_tags($result['content'], '<br><p><b><i><u><img><a><strong><pre><em><span><div><h1><h2><h3><h4><h5><h6><h7><sub><sup><blockquote><code>'); ?></textarea>
38
+            <br />
39
+            <input type="submit" class='button btn btn-success pull_right' value="Rediger" />
40
+
41
+        </form>
42
+    </div>
43
+    <div class='clear'></div>
44
+</div>
45
+
46
+<?php
47
+Design::footer(true);

+ 41
- 0
content/error.php View File

@@ -0,0 +1,41 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Fejl";
4
+$setup['headline'] = "Odense Track - Fejl!";
5
+$setup['keywords'] = "fejl,404,403,500";
6
+$setup['description'] = "En fejl er opstået.";
7
+
8
+Design::header($setup, 0);
9
+
10
+if (!isset($_GET['r'])) {
11
+    ?>
12
+
13
+    <div class="page">
14
+        <h1>Fejl - 404!</h1>
15
+        <div class="border"></div>
16
+        <p>Den ressource du har efterspurgt er ikke tilgængelig, eller er blevet flyttet.</p>
17
+        <p>Du kan forsøge følgende trin:</p>
18
+        <ul>
19
+            <li>Tjek om URL'en er korrekt</li>
20
+            <li>Ryd din browsers cache og forsøg igen</li>
21
+            <li>Forsøg en anden side</li>
22
+        </ul>
23
+
24
+    </div>
25
+
26
+
27
+    <?php
28
+} elseif ($_GET['r'] == "level") {
29
+    ?>
30
+
31
+    <div class="page">
32
+        <h1>Fejl - 403!</h1>
33
+        <div class="border"></div>
34
+        <p>Du har ikke rettigheder til at se den efterspurgte side.</p>
35
+        <p>Hvis du mener dette er en fejl, så kontakt os venligst <a href="?page=contactus">her.</a></p>
36
+
37
+    </div>
38
+
39
+    <?php
40
+}
41
+Design::footer(false);

+ 56
- 0
content/eventadmin.php View File

@@ -0,0 +1,56 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Eventcenter";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Eventcenter</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
13
+    <div class="border"></div>
14
+    <br />
15
+    <p>Velkommen til administrations-interfacet.<br /><br /></p>
16
+    <div class="amenu pull_right">
17
+        <a href="?page=addevent"><button type="button" class="btn btn-success"><i class="fa fa-plus" title="Opret Event"></i> Opret Event</button></a>
18
+    </div>
19
+
20
+
21
+    <div class="nmin">
22
+        <h4>Liste over Events</h4>
23
+
24
+
25
+        <table cellspacing="0">
26
+            <tr>
27
+                <th>ID</th>
28
+                <th>Type</th>
29
+                <th>Titel</th>
30
+                <th>Tidspunkt</th>
31
+                <th>Indstillinger</th>
32
+            </tr>
33
+            <?php
34
+            foreach (Get::EventList() as $row) {
35
+                ?>
36
+                <tr>
37
+                    <td><?php echo $row['id']; ?></td>
38
+                    <td><?php if ($row['type'] == 1) {echo "Event";}else{echo "Aktivitet";} ?></td>
39
+                    <td><?php echo $row['title']; ?></td>
40
+                    <td><?php echo date('H:i d/m-Y', $row['time']); ?></td>
41
+                    <td>
42
+                        <a href="?page=editevent&id=<?php echo $row['id']; ?>"><button type="button" class="btn btn-primary"><i class="fa fa-pencil" title="Rediger artikel"></i></button></a>
43
+                        <a href="?page=editevent&action=del&id=<?php echo $row['id']; ?>" onclick="return confirm('Er du sikker på du vil slette dette event?');"><button type="button" class="btn btn-danger"><i class="fa fa-trash" title="Slet artikel"></i></button></a>
44
+                    </td>
45
+                </tr>
46
+
47
+                <?php
48
+            }
49
+            ?>
50
+
51
+        </table>
52
+    </div>
53
+</div>
54
+
55
+<?php
56
+Design::footer(false);

+ 34
- 0
content/events.php View File

@@ -0,0 +1,34 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Events";
4
+$setup['headline'] = "Odense Track - Eventoversigt";
5
+$setup['keywords'] = "event,events,oversigt,eventoversigt";
6
+$setup['description'] = "Oversigt over events afviklet af eller i samarbejde med Odense Track";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Eventoversigt</h1> <div class="newstitle pull_right"><a href="#">Vis Tidligere Events</a></div>
13
+    <div class="border"></div>
14
+<br />
15
+    
16
+
17
+<?php
18
+    foreach (Get::publicEventList() as $row) {
19
+        ?>
20
+    <div class="eventslice">
21
+        <div class="eventslice-top"><img src="img/ev/f1.jpg" alt="" /></div>
22
+        <div class="eventslice-middle"><?php echo $row['title']; ?></div>
23
+        <div class="eventslice-bottom"><a href="?page=eventview&e=<?php echo $row['id']; ?>"><button>Læs Mere</button></a></div>
24
+    </div>
25
+    <?php
26
+    }
27
+    ?>
28
+    
29
+
30
+    <div class="clear"></div>
31
+</div>
32
+
33
+<?php
34
+Design::footer(false);

+ 29
- 0
content/eventview.php View File

@@ -0,0 +1,29 @@
1
+<?php
2
+if (!isset($_GET['e'])) {
3
+    header('Location: ' . Config::$sys_url . '?page=error');
4
+    die(); // No eventitem defined. HALT!
5
+}
6
+
7
+$result = Get::ViewEvent($_GET['e']); // Get eventdata
8
+
9
+$setup = array();
10
+$setup['title'] = $result['title'];
11
+$setup['headline'] = "Odense Track - Eventoversigt";
12
+$setup['keywords'] = "event,events,oversigt,eventoversigt";
13
+$setup['description'] = "Oversigt over events afviklet af eller i samarbejde med Odense Track";
14
+
15
+Design::header($setup, 0);
16
+?>
17
+
18
+<div class="page">
19
+    <h1><?php echo $result['title']; ?></h1><div class="newstitle pull_right">Afholdes: <?php echo date('H:i d/m-Y', $result['time']); ?></div>
20
+    <div class="border"></div>
21
+
22
+    <div class="newsbody">
23
+        <img src="http://www.greetsparis.com/img/cms/GREETS-F1-header2.jpg" />
24
+        <?php echo strip_tags($result['description'], '<br><p><b><i><u><img><a><strong><pre><em><span><div><h1><h2><h3><h4><h5><h6><h7><sub><sup><blockquote><code>'); ?>
25
+    </div>
26
+</div>
27
+
28
+<?php
29
+Design::footer(false);

+ 150
- 0
content/home.php View File

@@ -0,0 +1,150 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Forside";
4
+$setup['headline'] = "Odense Track - Forside";
5
+$setup['keywords'] = "racing,event,events,odense,fyn,danmark,formula,formula1";
6
+$setup['description'] = "Se vores trackracing events - Alt indenfor F1 racing mv.";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="fbanner">
12
+    <div class="fbanner-bg">
13
+        <div class="fbanner-c1 pull_left"></div>
14
+        <div class="fbanner-c2 pull_left"></div>
15
+        <div class="fbanner-c3 pull_left"></div>
16
+        <div class="fbanner-c4 pull_left"></div>
17
+        <div class="fbanner-c5 pull_left"></div>
18
+        <div class="fbanner-c6 pull_left"></div>
19
+        <div class="fbanner-c7 pull_left"></div>
20
+
21
+
22
+        <div class="fbanner-track pull_left"></div>
23
+        <div class="fbanner-cm1 pull_left"></div>
24
+        <div class="fbanner-cm2 pull_left"></div>
25
+        <div class="fbanner-cm3 pull_left"></div>
26
+        <div class="fbanner-cm4 pull_left"></div>
27
+        <div class="fbanner-cm5 pull_left"></div>
28
+
29
+        <div class="fbanner-ad pull_right">
30
+            <div class="fbanner-adtext">
31
+                <h1>Bestil allerede i dag</h1>
32
+                <p>og sikre dig en plads til #OdenseGP</p>
33
+            </div>
34
+
35
+            <a href="?page=order"><div class="fbanner-order">
36
+                    <h1>F1 Race</h1>
37
+                    <p>Bestil nu!</p>
38
+                </div></a>
39
+
40
+        </div>
41
+    </div>
42
+</div>
43
+
44
+
45
+<div class="events">
46
+    <h1>Events</h1>
47
+
48
+
49
+    <div class="eventslider">
50
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events1.png" alt="" /><p class="eventslidertext">Events Kalender</p></div></a>
51
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events2.png" alt="" /><p class="eventslidertext">Motion for alle</p></div></a>
52
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events3.png" alt="" /><p class="eventslidertext">Need for Speed</p></div></a>
53
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events4.png" alt="" /><p class="eventslidertext">Odense Baneløb</p></div></a>
54
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events5.png" alt="" /><p class="eventslidertext">Odense Marathon Løb</p></div></a>
55
+        <a href="#"><div><img src="<?php echo Config::$sys_url; ?>img/events/events6.jpg" alt="" /><p class="eventslidertext">Trackday</p></div></a>
56
+    </div>
57
+
58
+
59
+</div>
60
+
61
+<div class="border"></div>
62
+
63
+<div class="events">
64
+    <h1>>>Tidligere Events</h1>
65
+    
66
+    <div class="content-slice">
67
+        <h1>Bane Aktivitet</h1> <a href="?page=events">Se hele eventlisten</a>
68
+        <div class="pull_right"><div class="activitybtn"><p class="activityprev"><i class="fa fa-chevron-circle-up"></i></p><p class="activitynext"><i class="fa fa-chevron-circle-down"></i></p></div></div>
69
+        
70
+        <div class="event-calendar activityfeed">
71
+            
72
+            <div class="event-item">
73
+                <div class="event-date">11<span>MAR</span></div>
74
+                <div class="event-content">
75
+                    <div class="event-left">
76
+                    <h1>Headertext</h1>
77
+                    <p>Content goes here</p>
78
+                    </div>
79
+                    <div class="event-right"><button>Læs Mere</button></div>
80
+                </div>
81
+            </div>
82
+            
83
+             <div class="event-item">
84
+                <div class="event-date">11<span>MAR</span></div>
85
+                <div class="event-content">
86
+                    <div class="event-left">
87
+                    <h1>Headertext</h1>
88
+                    <p>Content goes here</p>
89
+                    </div>
90
+                    <div class="event-right"><button>Læs Mere</button></div>
91
+                </div>
92
+            </div>
93
+            
94
+             <div class="event-item">
95
+                <div class="event-date">11<span>MAR</span></div>
96
+                <div class="event-content">
97
+                    <div class="event-left">
98
+                    <h1>Headertext</h1>
99
+                    <p>Content goes here</p>
100
+                    </div>
101
+                    <div class="event-right"><button>Læs Mere</button></div>
102
+                </div>
103
+            </div>
104
+            
105
+             <div class="event-item">
106
+                <div class="event-date">11<span>MAR</span></div>
107
+                <div class="event-content">
108
+                    <div class="event-left">
109
+                    <h1>Headertext</h1>
110
+                    <p>Content goes here</p>
111
+                    </div>
112
+                    <div class="event-right"><button>Læs Mere</button></div>
113
+                </div>
114
+            </div>
115
+            
116
+            
117
+        </div>
118
+        
119
+        
120
+    </div>
121
+    
122
+    <div class="content-slice pull_right">
123
+        <h1>Event center</h1>
124
+        
125
+            <div class="event-item">
126
+                <div class="event-date">11<span>MAR</span></div>
127
+                <div class="event-content">Lorem ipsum dolor sit amet.</div>
128
+            </div>
129
+            
130
+            <div class="event-item">
131
+                <div class="event-date">11<span>MAR</span></div>
132
+                <div class="event-content">Lorem ipsum dolor sit amet.</div>
133
+            </div>
134
+            
135
+            <div class="event-item">
136
+                <div class="event-date">11<span>MAR</span></div>
137
+                <div class="event-content">Lorem ipsum dolor sit amet.</div>
138
+            </div>
139
+            
140
+            
141
+        </div>
142
+        
143
+        
144
+    </div>
145
+    
146
+</div>
147
+
148
+
149
+<?php
150
+Design::footer(true);

+ 0
- 0
content/index.php View File


+ 42
- 0
content/login.php View File

@@ -0,0 +1,42 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Kontakt os";
4
+$setup['headline'] = "Odense Track - Lgoin";
5
+$setup['keywords'] = "login";
6
+$setup['description'] = "Login hos Odense Track";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Login</h1>
13
+    <div class="border"></div>
14
+
15
+
16
+    <div class="contactform">
17
+        <form method="POST" action="_login.php">
18
+            <?php if (isset($_GET['error'])) { ?><br /><span class="error">Forkert brugernavn/kodeord.</span><?php } ?>
19
+            <div class="form-control">
20
+                <label>Brugernavn: </label>
21
+                <input class="inputfield"  type="text" placeholder="Indtast brugeravn" name="u" required minlength="5" />
22
+            </div>
23
+            <div class="form-control">
24
+                <label>Password: </label>
25
+                <input class="inputfield"  type="password" placeholder="Indtast password" name="p" required minlength="5" />
26
+            </div>
27
+
28
+            <div class="form-control">
29
+                <input class="contactsubmit" type="submit" value="Login" />
30
+            </div>
31
+        </form>
32
+    </div>
33
+   
34
+    
35
+    
36
+
37
+    <div class="clear"></div>
38
+    
39
+</div>
40
+
41
+<?php
42
+Design::footer(false);

+ 38
- 0
content/news.php View File

@@ -0,0 +1,38 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Nyheder";
4
+$setup['headline'] = "Odense Track - Nyheder";
5
+$setup['keywords'] = "nyheder,news,nyhed,banenyt,nyt";
6
+$setup['description'] = "Oversigt over nyheder vedr. Odense Track";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Nyhedsoversigt</h1>
13
+    <div class="border"></div>
14
+    <br />
15
+
16
+    <?php
17
+    
18
+    foreach (Get::publicNewsList() as $row) {
19
+        ?>
20
+        <div class="newsitem">
21
+            <div class="newsitemimg pull_left"><img src="img/fbanner/track.png" alt="" /></div>
22
+
23
+            <div class="newsitemcont pull_left">
24
+                <div class="newsitemauthor"><h2><?php echo $row['title']; ?></h2> <p><?php echo date('H:i d/m-Y', $row['time']); ?></p></div>
25
+                <p><?php echo strip_tags(substr($row['content'],0,400)); ?></p>
26
+            </div>
27
+
28
+            <div class="newsitemread pull_left"><a href="?page=readnews&n=<?php echo $row['id']; ?>"><button>Læs nyhed</button></a></div>
29
+        </div>
30
+
31
+        <?php
32
+    }
33
+    ?>
34
+
35
+</div>
36
+
37
+<?php
38
+Design::footer(false);

+ 55
- 0
content/newsadmin.php View File

@@ -0,0 +1,55 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Nyhedscenter";
4
+$setup['headline'] = "Odense Track - Administration";
5
+$setup['keywords'] = "administration,admin";
6
+$setup['description'] = "Odense Track Administration";
7
+
8
+Design::header($setup, 100);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Nyhedscenter</h1> <div class="pull_right"><a href="?page=newsadmin">Nyheder</a><span class="seperator"></span><a href="?page=eventadmin">Events</a></div>
13
+    <div class="border"></div>
14
+    <br />
15
+    <p>Velkommen til administrations-interfacet.<br /><br /></p>
16
+
17
+    <div class="amenu pull_right">
18
+        <a href="?page=addnews"><button type="button" class="btn btn-success"><i class="fa fa-plus" title="Opret artikel"></i> Opret Nyhed</button></a>
19
+    </div>
20
+
21
+
22
+    <div class="nmin">
23
+        <h4>Liste over nyheder</h4>
24
+
25
+
26
+        <table cellspacing="0">
27
+            <tr>
28
+                <th>ID</th>
29
+                <th>Titel</th>
30
+                <th>Dato</th>
31
+                <th>Indstillinger</th>
32
+            </tr>
33
+            <?php
34
+            foreach (Get::NewsList() as $row) {
35
+                ?>
36
+                <tr>
37
+                    <td><?php echo $row['id']; ?></td>
38
+                    <td><?php echo $row['title']; ?></td>
39
+                    <td><?php echo date('H:i d/m-Y', $row['time']); ?></td>
40
+                    <td>
41
+                        <a href="?page=editnews&id=<?php echo $row['id']; ?>"><button type="button" class="btn btn-primary"><i class="fa fa-pencil" title="Rediger artikel"></i></button></a>
42
+                        <a href="?page=editnews&action=del&id=<?php echo $row['id']; ?>"  onclick="return confirm('Er du sikker på du vil slette denne nyhed?');"><button type="button" class="btn btn-danger"><i class="fa fa-trash" title="Slet artikel"></i></button></a>
43
+                    </td>
44
+                </tr>
45
+
46
+                <?php
47
+            }
48
+            ?>
49
+
50
+        </table>
51
+    </div>
52
+</div>
53
+
54
+<?php
55
+Design::footer(false);

+ 29
- 0
content/readnews.php View File

@@ -0,0 +1,29 @@
1
+<?php
2
+if (!isset($_GET['n'])) {
3
+    header('Location: ' . Config::$sys_url . '?page=error');
4
+    die(); // No newsitem defined. HALT!
5
+}
6
+
7
+$result = Get::NewsArticle($_GET['n']); // Get the newsarticle
8
+
9
+$setup = array();
10
+$setup['title'] = $result['title'];
11
+$setup['headline'] = "Odense Track - Nyheder";
12
+$setup['keywords'] = "nyheder,news,nyhed,banenyt,nyt";
13
+$setup['description'] = "Oversigt over nyheder vedr. Odense Track";
14
+
15
+Design::header($setup, 0);
16
+?>
17
+
18
+<div class="page">
19
+    <h1><?php echo $result['title']; ?></h1><div class="newstitle pull_right"><?php echo date('H:i d/m-Y', $result['time']); ?><span class="seperator"></span>Skrevet af <?php echo $result['realname']; ?></div>
20
+    <div class="border"></div>
21
+
22
+    <div class="newsbody">
23
+        <img src="http://www.greetsparis.com/img/cms/GREETS-F1-header2.jpg" />
24
+        <?php echo strip_tags($result['content'], '<br><p><b><i><u><img><a><strong><pre><em><span><div><h1><h2><h3><h4><h5><h6><h7><sub><sup><blockquote><code>'); ?>
25
+    </div>
26
+</div>
27
+
28
+<?php
29
+Design::footer(false);

+ 18
- 0
content/sitemap.php View File

@@ -0,0 +1,18 @@
1
+<?php
2
+$setup = array();
3
+$setup['title'] = "Sitemap";
4
+$setup['headline'] = "Odense Track - Sitemap";
5
+$setup['keywords'] = "sitemap,navigation,kort,oversigt";
6
+$setup['description'] = "Odense Track sitemap";
7
+
8
+Design::header($setup, 0);
9
+?>
10
+
11
+<div class="page">
12
+    <h1>Sitemap</h1>
13
+    <div class="border"></div>
14
+    
15
+</div>
16
+
17
+<?php
18
+Design::footer(false);

+ 0
- 0
css/index.php View File


+ 1
- 0
css/jquery.datetimepicker.min.css
File diff suppressed because it is too large
View File


+ 204
- 0
css/slick-theme.css View File

@@ -0,0 +1,204 @@
1
+@charset 'UTF-8';
2
+/* Slider */
3
+.slick-loading .slick-list
4
+{
5
+    background: #fff url('./ajax-loader.gif') center center no-repeat;
6
+}
7
+
8
+/* Icons */
9
+@font-face
10
+{
11
+    font-family: 'slick';
12
+    font-weight: normal;
13
+    font-style: normal;
14
+
15
+    src: url('../fonts/slick.eot');
16
+    src: url('../fonts/slick.eot?#iefix') format('embedded-opentype'), url('../fonts/slick.woff') format('woff'), url('../fonts/slick.ttf') format('truetype'), url('../fonts/slick.svg#slick') format('svg');
17
+}
18
+/* Arrows */
19
+.slick-prev,
20
+.slick-next
21
+{
22
+    font-size: 0;
23
+    line-height: 0;
24
+
25
+    position: absolute;
26
+    top: 50%;
27
+
28
+    display: block;
29
+
30
+    width: 20px;
31
+    height: 20px;
32
+    padding: 0;
33
+    -webkit-transform: translate(0, -50%);
34
+    -ms-transform: translate(0, -50%);
35
+    transform: translate(0, -50%);
36
+
37
+    cursor: pointer;
38
+
39
+    color: transparent;
40
+    border: none;
41
+    outline: none;
42
+    background: transparent;
43
+}
44
+.slick-prev:hover,
45
+.slick-prev:focus,
46
+.slick-next:hover,
47
+.slick-next:focus
48
+{
49
+    color: transparent;
50
+    outline: none;
51
+    background: transparent;
52
+}
53
+.slick-prev:hover:before,
54
+.slick-prev:focus:before,
55
+.slick-next:hover:before,
56
+.slick-next:focus:before
57
+{
58
+    opacity: 1;
59
+}
60
+.slick-prev.slick-disabled:before,
61
+.slick-next.slick-disabled:before
62
+{
63
+    opacity: .25;
64
+}
65
+
66
+.slick-prev:before,
67
+.slick-next:before
68
+{
69
+    font-family: 'slick';
70
+    font-size: 20px;
71
+    line-height: 1;
72
+
73
+    opacity: .75;
74
+    color: #ffa019;
75
+
76
+    -webkit-font-smoothing: antialiased;
77
+    -moz-osx-font-smoothing: grayscale;
78
+}
79
+
80
+.slick-prev
81
+{
82
+    left: -25px;
83
+}
84
+[dir='rtl'] .slick-prev
85
+{
86
+    right: -25px;
87
+    left: auto;
88
+}
89
+.slick-prev:before
90
+{
91
+    content: '←';
92
+}
93
+[dir='rtl'] .slick-prev:before
94
+{
95
+    content: '→';
96
+}
97
+
98
+.slick-next
99
+{
100
+    right: -25px;
101
+}
102
+[dir='rtl'] .slick-next
103
+{
104
+    right: auto;
105
+    left: -25px;
106
+}
107
+.slick-next:before
108
+{
109
+    content: '→';
110
+}
111
+[dir='rtl'] .slick-next:before
112
+{
113
+    content: '←';
114
+}
115
+
116
+/* Dots */
117
+.slick-dotted.slick-slider
118
+{
119
+    margin-bottom: 30px;
120
+}
121
+
122
+.slick-dots
123
+{
124
+    position: absolute;
125
+    bottom: -25px;
126
+
127
+    display: block;
128
+
129
+    width: 100%;
130
+    padding: 0;
131
+    margin: 0;
132
+
133
+    list-style: none;
134
+
135
+    text-align: center;
136
+}
137
+.slick-dots li
138
+{
139
+    position: relative;
140
+
141
+    display: inline-block;
142
+
143
+    width: 20px;
144
+    height: 20px;
145
+    margin: 0 5px;
146
+    padding: 0;
147
+
148
+    cursor: pointer;
149
+}
150
+.slick-dots li button
151
+{
152
+    font-size: 0;
153
+    line-height: 0;
154
+
155
+    display: block;
156
+
157
+    width: 20px;
158
+    height: 20px;
159
+    padding: 5px;
160
+
161
+    cursor: pointer;
162
+
163
+    color: transparent;
164
+    border: 0;
165
+    outline: none;
166
+    background: transparent;
167
+}
168
+.slick-dots li button:hover,
169
+.slick-dots li button:focus
170
+{
171
+    outline: none;
172
+}
173
+.slick-dots li button:hover:before,
174
+.slick-dots li button:focus:before
175
+{
176
+    opacity: 1;
177
+}
178
+.slick-dots li button:before
179
+{
180
+    font-family: 'slick';
181
+    font-size: 6px;
182
+    line-height: 20px;
183
+
184
+    position: absolute;
185
+    top: 0;
186
+    left: 0;
187
+
188
+    width: 20px;
189
+    height: 20px;
190
+
191
+    content: '•';
192
+    text-align: center;
193
+
194
+    opacity: .25;
195
+    color: black;
196
+
197
+    -webkit-font-smoothing: antialiased;
198
+    -moz-osx-font-smoothing: grayscale;
199
+}
200
+.slick-dots li.slick-active button:before
201
+{
202
+    opacity: .75;
203
+    color: black;
204
+}

+ 119
- 0
css/slick.css View File

@@ -0,0 +1,119 @@
1
+/* Slider */
2
+.slick-slider
3
+{
4
+    position: relative;
5
+
6
+    display: block;
7
+    box-sizing: border-box;
8
+
9
+    -webkit-user-select: none;
10
+    -moz-user-select: none;
11
+    -ms-user-select: none;
12
+    user-select: none;
13
+
14
+    -webkit-touch-callout: none;
15
+    -khtml-user-select: none;
16
+    -ms-touch-action: pan-y;
17
+    touch-action: pan-y;
18
+    -webkit-tap-highlight-color: transparent;
19
+}
20
+
21
+.slick-list
22
+{
23
+    position: relative;
24
+
25
+    display: block;
26
+    overflow: hidden;
27
+
28
+    margin: 0;
29
+    padding: 0;
30
+}
31
+.slick-list:focus
32
+{
33
+    outline: none;
34
+}
35
+.slick-list.dragging
36
+{
37
+    cursor: pointer;
38
+    cursor: hand;
39
+}
40
+
41
+.slick-slider .slick-track,
42
+.slick-slider .slick-list
43
+{
44
+    -webkit-transform: translate3d(0, 0, 0);
45
+    -moz-transform: translate3d(0, 0, 0);
46
+    -ms-transform: translate3d(0, 0, 0);
47
+    -o-transform: translate3d(0, 0, 0);
48
+    transform: translate3d(0, 0, 0);
49
+}
50
+
51
+.slick-track
52
+{
53
+    position: relative;
54
+    top: 0;
55
+    left: 0;
56
+
57
+    display: block;
58
+    margin-left: auto;
59
+    margin-right: auto;
60
+}
61
+.slick-track:before,
62
+.slick-track:after
63
+{
64
+    display: table;
65
+
66
+    content: '';
67
+}
68
+.slick-track:after
69
+{
70
+    clear: both;
71
+}
72
+.slick-loading .slick-track
73
+{
74
+    visibility: hidden;
75
+}
76
+
77
+.slick-slide
78
+{
79
+    display: none;
80
+    float: left;
81
+
82
+    height: 100%;
83
+    min-height: 1px;
84
+}
85
+[dir='rtl'] .slick-slide
86
+{
87
+    float: right;
88
+}
89
+.slick-slide img
90
+{
91
+    display: block;
92
+}
93
+.slick-slide.slick-loading img
94
+{
95
+    display: none;
96
+}
97
+.slick-slide.dragging img
98
+{
99
+    pointer-events: none;
100
+}
101
+.slick-initialized .slick-slide
102
+{
103
+    display: block;
104
+}
105
+.slick-loading .slick-slide
106
+{
107
+    visibility: hidden;
108
+}
109
+.slick-vertical .slick-slide
110
+{
111
+    display: block;
112
+
113
+    height: auto;
114
+
115
+    border: 1px solid transparent;
116
+}
117
+.slick-arrow.slick-hidden {
118
+    display: none;
119
+}

+ 1495
- 0
css/style.css
File diff suppressed because it is too large
View File


+ 0
- 0
fonts/index.php View File


BIN
fonts/slick.eot View File


+ 14
- 0
fonts/slick.svg View File

@@ -0,0 +1,14 @@
1
+<?xml version="1.0" standalone="no"?>
2
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+<svg xmlns="http://www.w3.org/2000/svg">
4
+<metadata>Generated by Fontastic.me</metadata>
5
+<defs>
6
+<font id="slick" horiz-adv-x="512">
7
+<font-face font-family="slick" units-per-em="512" ascent="480" descent="-32"/>
8
+<missing-glyph horiz-adv-x="512" />
9
+
10
+<glyph unicode="&#8594;" d="M241 113l130 130c4 4 6 8 6 13 0 5-2 9-6 13l-130 130c-3 3-7 5-12 5-5 0-10-2-13-5l-29-30c-4-3-6-7-6-12 0-5 2-10 6-13l87-88-87-88c-4-3-6-8-6-13 0-5 2-9 6-12l29-30c3-3 8-5 13-5 5 0 9 2 12 5z m234 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
11
+<glyph unicode="&#8592;" d="M296 113l29 30c4 3 6 7 6 12 0 5-2 10-6 13l-87 88 87 88c4 3 6 8 6 13 0 5-2 9-6 12l-29 30c-3 3-8 5-13 5-5 0-9-2-12-5l-130-130c-4-4-6-8-6-13 0-5 2-9 6-13l130-130c3-3 7-5 12-5 5 0 10 2 13 5z m179 143c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
12
+<glyph unicode="&#8226;" d="M475 256c0-40-9-77-29-110-20-34-46-60-80-80-33-20-70-29-110-29-40 0-77 9-110 29-34 20-60 46-80 80-20 33-29 70-29 110 0 40 9 77 29 110 20 34 46 60 80 80 33 20 70 29 110 29 40 0 77-9 110-29 34-20 60-46 80-80 20-33 29-70 29-110z"/>
13
+<glyph unicode="&#97;" d="M475 439l0-128c0-5-1-9-5-13-4-4-8-5-13-5l-128 0c-8 0-13 3-17 11-3 7-2 14 4 20l40 39c-28 26-62 39-100 39-20 0-39-4-57-11-18-8-33-18-46-32-14-13-24-28-32-46-7-18-11-37-11-57 0-20 4-39 11-57 8-18 18-33 32-46 13-14 28-24 46-32 18-7 37-11 57-11 23 0 44 5 64 15 20 9 38 23 51 42 2 1 4 3 7 3 3 0 5-1 7-3l39-39c2-2 3-3 3-6 0-2-1-4-2-6-21-25-46-45-76-59-29-14-60-20-93-20-30 0-58 5-85 17-27 12-51 27-70 47-20 19-35 43-47 70-12 27-17 55-17 85 0 30 5 58 17 85 12 27 27 51 47 70 19 20 43 35 70 47 27 12 55 17 85 17 28 0 55-5 81-15 26-11 50-26 70-45l37 37c6 6 12 7 20 4 8-4 11-9 11-17z"/>
14
+</font></defs></svg>

BIN
fonts/slick.ttf View File


BIN
fonts/slick.woff View File


BIN
img/bg.png View File


BIN
img/ev/f1.jpg View File


BIN
img/events/events1.png View File


BIN
img/events/events2.png View File


BIN
img/events/events3.png View File


BIN
img/events/events4.png View File


BIN
img/events/events5.png View File


BIN
img/events/events6.jpg View File


+ 0
- 0
img/events/index.php View File


BIN
img/fbanner/advert.png View File


+ 0
- 0
img/fbanner/index.php View File


BIN
img/fbanner/m1.png View File


BIN
img/fbanner/m2.png View File


BIN
img/fbanner/m3.png View File


BIN
img/fbanner/m4.png View File


BIN
img/fbanner/m5.png View File


BIN
img/fbanner/redbox.png View File


BIN
img/fbanner/t1.png View File


BIN
img/fbanner/t2.png View File


BIN
img/fbanner/t3.png View File


BIN
img/fbanner/t4.png View File


BIN
img/fbanner/t5.png View File


BIN
img/fbanner/t6.png View File


BIN
img/fbanner/t7.png View File


BIN
img/fbanner/track.png View File


BIN
img/header.png View File


BIN
img/icons/facebook.png View File


+ 0
- 0
img/icons/index.php View File


BIN
img/icons/instagram.png View File


BIN
img/icons/twitter.png View File


BIN
img/icons/youtube.png View File


+ 0
- 0
img/index.php View File


+ 24
- 0
include.php View File

@@ -0,0 +1,24 @@
1
+<?php
2
+spl_autoload_register(function ($class) {
3
+    include $_SERVER['DOCUMENT_ROOT'] . '/odensetrack/classes/' . strtolower($class). '.class.php';
4
+});
5
+
6
+if (Config::$closed == true) { die("Access to this site is closed."); } // If site is set to closed, deny all access.
7
+
8
+if (Config::$debug == true) { // If debugging is enabled, lets print some PHP errors if any.
9
+    error_reporting(-1);
10
+    ini_set('display_errors', 'On');
11
+} else {
12
+    ini_set('display_errors', 'Off');
13
+}
14
+
15
+// Below here we do some basic SQL injection. Remember to sanitize inputs everywhere. This is VERY basic!
16
+
17
+// Using new DB class
18
+$db = new dbClass();
19
+foreach ($_POST as $key => $value)
20
+    $_POST[$key] = $db->escapeString($value);
21
+
22
+foreach ($_GET as $key => $value)
23
+    $_GET[$key] = $db->escapeString($value);
24
+

+ 38
- 0
index.php View File

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+mb_internal_encoding("utf-8"); // Internal encoding set to UTF-8, should fix some charset issues.
4
+
5
+session_start(); // Start PHP session, so we can handle session-data on all pages.
6
+
7
+require_once("include.php"); // Our includes.
8
+
9
+/*
10
+ * Check if user is logged in. If not, show login page.
11
+ 
12
+
13
+
14
+if (User::checkLogin() != true) {
15
+    header("Location: login.php");
16
+}
17
+
18
+*/
19
+
20
+if (isset($_GET['page'])) { // Figure out what page needs to be displayed
21
+    $page = $_GET['page'];
22
+} else { // If nothing is defined, lets assume we have to display the frontpage/index
23
+    header('Location: ' . Config::$sys_url .'?page=home');
24
+    //$page = "home"; // Setting page to home.php - Note: This is possible, but we would rather want to redirect to the home instead - For searchengines you know..
25
+}
26
+/* Sidenote: Its important to specify the dir content, as we dont want people to be able to just ../ to another dir. */
27
+if (IS_FILE("content/" . $page . ".php")) { // Check if the file exists, if yes lets show it - If not, lets show our 404
28
+    include 'content/' . $page . '.php';
29
+} else {
30
+    include 'content/error.php';
31
+}
32
+
33
+/*
34
+ * Perform LOG procedure to all page calls, unless debug mode is enabled.
35
+ */
36
+if (Config::$debug == false) {
37
+    Log::writeLog("1", $_SESSION['user'], "Visited page $page");
38
+}

+ 91
- 0
initaldesign.html View File

@@ -0,0 +1,91 @@
1
+<!DOCTYPE html>
2
+<!--
3
+ Made by DFiNE (Kenneth Hedahl)
4
+ Copyright DIS (www.dfine.net)
5
+ -----------------------------
6
+-->
7
+<html>
8
+    <head>
9
+        <title>Odense Track</title>
10
+        <meta charset="UTF-8">
11
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
+        <link href="css/style.css" rel="stylesheet">
13
+    </head>
14
+    <body>
15
+
16
+        <div class="contentwrapper"> <!-- Contentwrapper start -->
17
+            <header> <!-- Header start -->
18
+                <div class="topnav">
19
+                    <p>Support:</p> <button>Bestil nu</button>
20
+                </div>
21
+
22
+                <div class="header">
23
+                    <a href="#"><div class="header_logo">&nbsp;</div></a>
24
+                    <div class="header_right">
25
+                        <a href="#">Om Odense Track</a> | <a href="#">Kontakt Os</a>
26
+                    </div>
27
+                </div>
28
+
29
+                <div class="clear"></div>
30
+
31
+
32
+                <nav class="mainnav"> <!-- Main navigation start -->
33
+                    <ul>
34
+                        <li><a href="#">Formel 1</a></li>
35
+                        <li><a href="#">Events</a></li>
36
+                        <li><a href="#">Nyheder</a></li>
37
+                    </ul>
38
+                </nav> <!-- Main navigation end -->
39
+
40
+            </header> <!-- Header end -->
41
+
42
+            <div class="content"> <!-- Content start -->
43
+
44
+            </div> <!-- Content end -->
45
+
46
+
47
+        </div> <!-- Contentwrapper End -->
48
+
49
+        <footer> <!-- Footer start -->
50
+            <div class="footer_wrap">
51
+                <a href="#"><div class="footer_logo"></div></a>
52
+
53
+                <div class="footer_followus">
54
+                    <h1>Følg os her</h1>
55
+                    <p>Tilmeld dig vores sociale netværk</p>
56
+                    <div class="socialicons">
57
+                        <a href="#"><img src="img/icons/facebook.png" alt="facebook" title="Følg os på facebook" /></a>
58
+                        <a href="#"><img src="img/icons/twitter.png" alt="twitter" title="Følg os på twitter" /></a>
59
+                        <a href="#"><img src="img/icons/youtube.png" alt="YouTube" title="Følg os på YouTube" /></a>
60
+                        <a href="#"><img src="img/icons/instagram.png" alt="Instagram" title="Følg os på Instagram" /></a>
61
+                    </div>
62
+                </div>
63
+
64
+                <div class="footer_newsletter">
65
+                    <h1>Tilmeld dig vores nyhedsbrev</h1>
66
+                    <p>Tilmeld dig vores sociale netværk</p>
67
+
68
+                </div>
69
+
70
+                <div class="clear"></div>
71
+                <div class="footer_links">
72
+                    <div class="pull_left">
73
+                        <ul>
74
+                            <li><a href="#">Kontakt os</a></li>
75
+                            <li><a href="#">Om Odense Track</a></li>
76
+                            <li><a href="#">Sitemap</a></li>
77
+                        </ul>
78
+                    </div>
79
+
80
+                    <div class="pull_right">
81
+                        &copy; <a href="#">Odense Track</a>
82
+                    </div>
83
+
84
+                </div>
85
+            </div>
86
+
87
+        </footer> <!-- Footer end -->
88
+
89
+
90
+    </body>
91
+</html>

+ 0
- 0
js/index.php View File


+ 2911
- 0
js/jquery.datetimepicker.full.js
File diff suppressed because it is too large
View File


+ 1
- 0
js/jquery.datetimepicker.full.min.js
File diff suppressed because it is too large
View File


+ 1
- 0
js/jquery.datetimepicker.min.js
File diff suppressed because it is too large
View File


+ 3011
- 0
js/slick.js
File diff suppressed because it is too large
View File


+ 1
- 0
js/slick.min.js
File diff suppressed because it is too large
View File


+ 92
- 0
js/tinymce/jquery.tinymce.min.js View File

@@ -0,0 +1,92 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ */
7
+/**
8
+ * Jquery integration plugin.
9
+ *
10
+ * @class tinymce.core.JqueryIntegration
11
+ * @private
12
+ */
13
+!function(){var f,c,u,p,d,s=[];d="undefined"!=typeof global?global:window,p=d.jQuery;var v=function(){
14
+// Reference to tinymce needs to be lazily evaluated since tinymce
15
+// might be loaded through the compressor or other means
16
+return d.tinymce};p.fn.tinymce=function(o){var e,t,i,l=this,r="";
17
+// No match then just ignore the call
18
+if(!l.length)return l;
19
+// Get editor instance
20
+if(!o)return v()?v().get(l[0].id):null;l.css("visibility","hidden");// Hide textarea to avoid flicker
21
+var n=function(){var a=[],c=0;
22
+// Apply patches to the jQuery object, only once
23
+u||(m(),u=!0),
24
+// Create an editor instance for each matched node
25
+l.each(function(e,t){var n,i=t.id,r=o.oninit;
26
+// Generate unique id for target element if needed
27
+i||(t.id=i=v().DOM.uniqueId()),
28
+// Only init the editor once
29
+v().get(i)||(
30
+// Create editor instance and render it
31
+n=v().createEditor(i,o),a.push(n),n.on("init",function(){var e,t=r;l.css("visibility",""),
32
+// Run this if the oninit setting is defined
33
+// this logic will fire the oninit callback ones each
34
+// matched editor instance is initialized
35
+r&&++c==a.length&&("string"==typeof t&&(e=-1===t.indexOf(".")?null:v().resolve(t.replace(/\.\w+$/,"")),t=v().resolve(t)),
36
+// Call the oninit function with the object
37
+t.apply(e||v(),a))}))}),
38
+// Render the editor instances in a separate loop since we
39
+// need to have the full editors array used in the onInit calls
40
+p.each(a,function(e,t){t.render()})};
41
+// Load TinyMCE on demand, if we need to
42
+if(d.tinymce||c||!(e=o.script_url))
43
+// Delay the init call until tinymce is loaded
44
+1===c?s.push(n):n();else{c=1,t=e.substring(0,e.lastIndexOf("/")),
45
+// Check if it's a dev/src version they want to load then
46
+// make sure that all plugins, themes etc are loaded in source mode as well
47
+-1!=e.indexOf(".min")&&(r=".min"),
48
+// Setup tinyMCEPreInit object this will later be used by the TinyMCE
49
+// core script to locate other resources like CSS files, dialogs etc
50
+// You can also predefined a tinyMCEPreInit object and then it will use that instead
51
+d.tinymce=d.tinyMCEPreInit||{base:t,suffix:r},
52
+// url contains gzip then we assume it's a compressor
53
+-1!=e.indexOf("gzip")&&(i=o.language||"en",e=e+(/\?/.test(e)?"&":"?")+"js=true&core=true&suffix="+escape(r)+"&themes="+escape(o.theme||"modern")+"&plugins="+escape(o.plugins||"")+"&languages="+(i||""),
54
+// Check if compressor script is already loaded otherwise setup a basic one
55
+d.tinyMCE_GZ||(d.tinyMCE_GZ={start:function(){var n=function(e){v().ScriptLoader.markDone(v().baseURI.toAbsolute(e))};
56
+// Add core languages
57
+n("langs/"+i+".js"),
58
+// Add themes with languages
59
+n("themes/"+o.theme+"/theme"+r+".js"),n("themes/"+o.theme+"/langs/"+i+".js"),
60
+// Add plugins with languages
61
+p.each(o.plugins.split(","),function(e,t){t&&(n("plugins/"+t+"/plugin"+r+".js"),n("plugins/"+t+"/langs/"+i+".js"))})},end:function(){}}));var a=document.createElement("script");a.type="text/javascript",a.onload=a.onreadystatechange=function(e){e=e||window.event,2===c||"load"!=e.type&&!/complete|loaded/.test(a.readyState)||(v().dom.Event.domLoaded=1,c=2,
62
+// Execute callback after mainscript has been loaded and before the initialization occurs
63
+o.script_loaded&&o.script_loaded(),n(),p.each(s,function(e,t){t()}))},a.src=e,document.body.appendChild(a)}return l},
64
+// Add :tinymce pseudo selector this will select elements that has been converted into editor instances
65
+// it's now possible to use things like $('*:tinymce') to get all TinyMCE bound elements.
66
+p.extend(p.expr[":"],{tinymce:function(e){var t;return!!(e.id&&"tinymce"in d&&(t=v().get(e.id))&&t.editorManager===v())}});
67
+// This function patches internal jQuery functions so that if
68
+// you for example remove an div element containing an editor it's
69
+// automatically destroyed by the TinyMCE API
70
+var m=function(){
71
+// Removes any child editor instances by looking for editor wrapper elements
72
+var r=function(e){
73
+// If the function is remove
74
+"remove"===e&&this.each(function(e,t){var n=l(t);n&&n.remove()}),this.find("span.mceEditor,div.mceEditor").each(function(e,t){var n=v().get(t.id.replace(/_parent$/,""));n&&n.remove()})},o=function(i){var e,t=this;
75
+// Handle set value
76
+/*jshint eqnull:true */if(null!=i)r.call(t),
77
+// Saves the contents before get/set value of textarea/div
78
+t.each(function(e,t){var n;(n=v().get(t.id))&&n.setContent(i)});else if(0<t.length&&(e=v().get(t[0].id)))return e.getContent()},l=function(e){var t=null;return e&&e.id&&d.tinymce&&(t=v().get(e.id)),t},u=function(e){return!!(e&&e.length&&d.tinymce&&e.is(":tinymce"))},s={};
79
+// Loads or saves contents from/to textarea if the value
80
+// argument is defined it will set the TinyMCE internal contents
81
+// Patch some setter/getter functions these will
82
+// now be able to set/get the contents of editor instances for
83
+// example $('#editorid').html('Content'); will update the TinyMCE iframe instance
84
+p.each(["text","html","val"],function(e,t){var a=s[t]=p.fn[t],c="text"===t;p.fn[t]=function(e){var t=this;if(!u(t))return a.apply(t,arguments);if(e!==f)return o.call(t.filter(":tinymce"),e),a.apply(t.not(":tinymce"),arguments),t;// return original set for chaining
85
+var i="",r=arguments;return(c?t:t.eq(0)).each(function(e,t){var n=l(t);i+=n?c?n.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):n.getContent({save:!0}):a.apply(p(t),r)}),i}}),
86
+// Makes it possible to use $('#id').append("content"); to append contents to the TinyMCE editor iframe
87
+p.each(["append","prepend"],function(e,t){var n=s[t]=p.fn[t],r="prepend"===t;p.fn[t]=function(i){var e=this;return u(e)?i!==f?("string"==typeof i&&e.filter(":tinymce").each(function(e,t){var n=l(t);n&&n.setContent(r?i+n.getContent():n.getContent()+i)}),n.apply(e.not(":tinymce"),arguments),e):void 0:n.apply(e,arguments)}}),
88
+// Makes sure that the editor instance gets properly destroyed when the parent element is removed
89
+p.each(["remove","replaceWith","replaceAll","empty"],function(e,t){var n=s[t]=p.fn[t];p.fn[t]=function(){return r.call(this,t),n.apply(this,arguments)}}),s.attr=p.fn.attr,
90
+// Makes sure that $('#tinymce_id').attr('value') gets the editors current HTML contents
91
+p.fn.attr=function(e,t){var n=this,i=arguments;if(!e||"value"!==e||!u(n))return s.attr.apply(n,i);if(t!==f)return o.call(n.filter(":tinymce"),t),s.attr.apply(n.not(":tinymce"),i),n;// return original set for chaining
92
+var r=n[0],a=l(r);return a?a.getContent({save:!0}):s.attr.apply(p(r),i)}}}();

+ 3
- 0
js/tinymce/langs/readme.md View File

@@ -0,0 +1,3 @@
1
+This is where language files should be placed.
2
+
3
+Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/

+ 504
- 0
js/tinymce/license.txt View File

@@ -0,0 +1,504 @@
1
+      GNU LESSER GENERAL PUBLIC LICENSE
2
+           Version 2.1, February 1999
3
+
4
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+[This is the first released version of the Lesser GPL.  It also counts
10
+ as the successor of the GNU Library Public License, version 2, hence
11
+ the version number 2.1.]
12
+
13
+          Preamble
14
+
15
+  The licenses for most software are designed to take away your
16
+freedom to share and change it.  By contrast, the GNU General Public
17
+Licenses are intended to guarantee your freedom to share and change
18
+free software--to make sure the software is free for all its users.
19
+
20
+  This license, the Lesser General Public License, applies to some
21
+specially designated software packages--typically libraries--of the
22
+Free Software Foundation and other authors who decide to use it.  You
23
+can use it too, but we suggest you first think carefully about whether
24
+this license or the ordinary General Public License is the better
25
+strategy to use in any particular case, based on the explanations below.
26
+
27
+  When we speak of free software, we are referring to freedom of use,
28
+not price.  Our General Public Licenses are designed to make sure that
29
+you have the freedom to distribute copies of free software (and charge
30
+for this service if you wish); that you receive source code or can get
31
+it if you want it; that you can change the software and use pieces of
32
+it in new free programs; and that you are informed that you can do
33
+these things.
34
+
35
+  To protect your rights, we need to make restrictions that forbid
36
+distributors to deny you these rights or to ask you to surrender these
37
+rights.  These restrictions translate to certain responsibilities for
38
+you if you distribute copies of the library or if you modify it.
39
+
40
+  For example, if you distribute copies of the library, whether gratis
41
+or for a fee, you must give the recipients all the rights that we gave
42
+you.  You must make sure that they, too, receive or can get the source
43
+code.  If you link other code with the library, you must provide
44
+complete object files to the recipients, so that they can relink them
45
+with the library after making changes to the library and recompiling
46
+it.  And you must show them these terms so they know their rights.
47
+
48
+  We protect your rights with a two-step method: (1) we copyright the
49
+library, and (2) we offer you this license, which gives you legal
50
+permission to copy, distribute and/or modify the library.
51
+
52
+  To protect each distributor, we want to make it very clear that
53
+there is no warranty for the free library.  Also, if the library is
54
+modified by someone else and passed on, the recipients should know
55
+that what they have is not the original version, so that the original
56
+author's reputation will not be affected by problems that might be
57
+introduced by others.
58
+
59
+  Finally, software patents pose a constant threat to the existence of
60
+any free program.  We wish to make sure that a company cannot
61
+effectively restrict the users of a free program by obtaining a
62
+restrictive license from a patent holder.  Therefore, we insist that
63
+any patent license obtained for a version of the library must be
64
+consistent with the full freedom of use specified in this license.
65
+
66
+  Most GNU software, including some libraries, is covered by the
67
+ordinary GNU General Public License.  This license, the GNU Lesser
68
+General Public License, applies to certain designated libraries, and
69
+is quite different from the ordinary General Public License.  We use
70
+this license for certain libraries in order to permit linking those
71
+libraries into non-free programs.
72
+
73
+  When a program is linked with a library, whether statically or using
74
+a shared library, the combination of the two is legally speaking a
75
+combined work, a derivative of the original library.  The ordinary
76
+General Public License therefore permits such linking only if the
77
+entire combination fits its criteria of freedom.  The Lesser General
78
+Public License permits more lax criteria for linking other code with
79
+the library.
80
+
81
+  We call this license the "Lesser" General Public License because it
82
+does Less to protect the user's freedom than the ordinary General
83
+Public License.  It also provides other free software developers Less
84
+of an advantage over competing non-free programs.  These disadvantages
85
+are the reason we use the ordinary General Public License for many
86
+libraries.  However, the Lesser license provides advantages in certain
87
+special circumstances.
88
+
89
+  For example, on rare occasions, there may be a special need to
90
+encourage the widest possible use of a certain library, so that it becomes
91
+a de-facto standard.  To achieve this, non-free programs must be
92
+allowed to use the library.  A more frequent case is that a free
93
+library does the same job as widely used non-free libraries.  In this
94
+case, there is little to gain by limiting the free library to free
95
+software only, so we use the Lesser General Public License.
96
+
97
+  In other cases, permission to use a particular library in non-free
98
+programs enables a greater number of people to use a large body of
99
+free software.  For example, permission to use the GNU C Library in
100
+non-free programs enables many more people to use the whole GNU
101
+operating system, as well as its variant, the GNU/Linux operating
102
+system.
103
+
104
+  Although the Lesser General Public License is Less protective of the
105
+users' freedom, it does ensure that the user of a program that is
106
+linked with the Library has the freedom and the wherewithal to run
107
+that program using a modified version of the Library.
108
+
109
+  The precise terms and conditions for copying, distribution and
110
+modification follow.  Pay close attention to the difference between a
111
+"work based on the library" and a "work that uses the library".  The
112
+former contains code derived from the library, whereas the latter must
113
+be combined with the library in order to run.
114
+
115
+      GNU LESSER GENERAL PUBLIC LICENSE
116
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117
+
118
+  0. This License Agreement applies to any software library or other
119
+program which contains a notice placed by the copyright holder or
120
+other authorized party saying it may be distributed under the terms of
121
+this Lesser General Public License (also called "this License").
122
+Each licensee is addressed as "you".
123
+
124
+  A "library" means a collection of software functions and/or data
125
+prepared so as to be conveniently linked with application programs
126
+(which use some of those functions and data) to form executables.
127
+
128
+  The "Library", below, refers to any such software library or work
129
+which has been distributed under these terms.  A "work based on the
130
+Library" means either the Library or any derivative work under
131
+copyright law: that is to say, a work containing the Library or a
132
+portion of it, either verbatim or with modifications and/or translated
133
+straightforwardly into another language.  (Hereinafter, translation is
134
+included without limitation in the term "modification".)
135
+
136
+  "Source code" for a work means the preferred form of the work for
137
+making modifications to it.  For a library, complete source code means
138
+all the source code for all modules it contains, plus any associated
139
+interface definition files, plus the scripts used to control compilation
140
+and installation of the library.
141
+
142
+  Activities other than copying, distribution and modification are not
143
+covered by this License; they are outside its scope.  The act of
144
+running a program using the Library is not restricted, and output from
145
+such a program is covered only if its contents constitute a work based
146
+on the Library (independent of the use of the Library in a tool for
147
+writing it).  Whether that is true depends on what the Library does
148
+and what the program that uses the Library does.
149
+  
150
+  1. You may copy and distribute verbatim copies of the Library's
151
+complete source code as you receive it, in any medium, provided that
152
+you conspicuously and appropriately publish on each copy an
153
+appropriate copyright notice and disclaimer of warranty; keep intact
154
+all the notices that refer to this License and to the absence of any
155
+warranty; and distribute a copy of this License along with the
156
+Library.
157
+
158
+  You may charge a fee for the physical act of transferring a copy,
159
+and you may at your option offer warranty protection in exchange for a
160
+fee.
161
+
162
+  2. You may modify your copy or copies of the Library or any portion
163
+of it, thus forming a work based on the Library, and copy and
164
+distribute such modifications or work under the terms of Section 1
165
+above, provided that you also meet all of these conditions:
166
+
167
+    a) The modified work must itself be a software library.
168
+
169
+    b) You must cause the files modified to carry prominent notices
170
+    stating that you changed the files and the date of any change.
171
+
172
+    c) You must cause the whole of the work to be licensed at no
173
+    charge to all third parties under the terms of this License.
174
+
175
+    d) If a facility in the modified Library refers to a function or a
176
+    table of data to be supplied by an application program that uses
177
+    the facility, other than as an argument passed when the facility
178
+    is invoked, then you must make a good faith effort to ensure that,
179
+    in the event an application does not supply such function or
180
+    table, the facility still operates, and performs whatever part of
181
+    its purpose remains meaningful.
182
+
183
+    (For example, a function in a library to compute square roots has
184
+    a purpose that is entirely well-defined independent of the
185
+    application.  Therefore, Subsection 2d requires that any
186
+    application-supplied function or table used by this function must
187
+    be optional: if the application does not supply it, the square
188
+    root function must still compute square roots.)
189
+
190
+These requirements apply to the modified work as a whole.  If
191
+identifiable sections of that work are not derived from the Library,
192
+and can be reasonably considered independent and separate works in
193
+themselves, then this License, and its terms, do not apply to those
194
+sections when you distribute them as separate works.  But when you
195
+distribute the same sections as part of a whole which is a work based
196
+on the Library, the distribution of the whole must be on the terms of
197
+this License, whose permissions for other licensees extend to the
198
+entire whole, and thus to each and every part regardless of who wrote
199
+it.
200
+
201
+Thus, it is not the intent of this section to claim rights or contest
202
+your rights to work written entirely by you; rather, the intent is to
203
+exercise the right to control the distribution of derivative or
204
+collective works based on the Library.
205
+
206
+In addition, mere aggregation of another work not based on the Library
207
+with the Library (or with a work based on the Library) on a volume of
208
+a storage or distribution medium does not bring the other work under
209
+the scope of this License.
210
+
211
+  3. You may opt to apply the terms of the ordinary GNU General Public
212
+License instead of this License to a given copy of the Library.  To do
213
+this, you must alter all the notices that refer to this License, so
214
+that they refer to the ordinary GNU General Public License, version 2,
215
+instead of to this License.  (If a newer version than version 2 of the
216
+ordinary GNU General Public License has appeared, then you can specify
217
+that version instead if you wish.)  Do not make any other change in
218
+these notices.
219
+
220
+  Once this change is made in a given copy, it is irreversible for
221
+that copy, so the ordinary GNU General Public License applies to all
222
+subsequent copies and derivative works made from that copy.
223
+
224
+  This option is useful when you wish to copy part of the code of
225
+the Library into a program that is not a library.
226
+
227
+  4. You may copy and distribute the Library (or a portion or
228
+derivative of it, under Section 2) in object code or executable form
229
+under the terms of Sections 1 and 2 above provided that you accompany
230
+it with the complete corresponding machine-readable source code, which
231
+must be distributed under the terms of Sections 1 and 2 above on a
232
+medium customarily used for software interchange.
233
+
234
+  If distribution of object code is made by offering access to copy
235
+from a designated place, then offering equivalent access to copy the
236
+source code from the same place satisfies the requirement to
237
+distribute the source code, even though third parties are not
238
+compelled to copy the source along with the object code.
239
+
240
+  5. A program that contains no derivative of any portion of the
241
+Library, but is designed to work with the Library by being compiled or
242
+linked with it, is called a "work that uses the Library".  Such a
243
+work, in isolation, is not a derivative work of the Library, and
244
+therefore falls outside the scope of this License.
245
+
246
+  However, linking a "work that uses the Library" with the Library
247
+creates an executable that is a derivative of the Library (because it
248
+contains portions of the Library), rather than a "work that uses the
249
+library".  The executable is therefore covered by this License.
250
+Section 6 states terms for distribution of such executables.
251
+
252
+  When a "work that uses the Library" uses material from a header file
253
+that is part of the Library, the object code for the work may be a
254
+derivative work of the Library even though the source code is not.
255
+Whether this is true is especially significant if the work can be
256
+linked without the Library, or if the work is itself a library.  The
257
+threshold for this to be true is not precisely defined by law.
258
+
259
+  If such an object file uses only numerical parameters, data
260
+structure layouts and accessors, and small macros and small inline
261
+functions (ten lines or less in length), then the use of the object
262
+file is unrestricted, regardless of whether it is legally a derivative
263
+work.  (Executables containing this object code plus portions of the
264
+Library will still fall under Section 6.)
265
+
266
+  Otherwise, if the work is a derivative of the Library, you may
267
+distribute the object code for the work under the terms of Section 6.
268
+Any executables containing that work also fall under Section 6,
269
+whether or not they are linked directly with the Library itself.
270
+
271
+  6. As an exception to the Sections above, you may also combine or
272
+link a "work that uses the Library" with the Library to produce a
273
+work containing portions of the Library, and distribute that work
274
+under terms of your choice, provided that the terms permit
275
+modification of the work for the customer's own use and reverse
276
+engineering for debugging such modifications.
277
+
278
+  You must give prominent notice with each copy of the work that the
279
+Library is used in it and that the Library and its use are covered by
280
+this License.  You must supply a copy of this License.  If the work
281
+during execution displays copyright notices, you must include the
282
+copyright notice for the Library among them, as well as a reference
283
+directing the user to the copy of this License.  Also, you must do one
284
+of these things:
285
+
286
+    a) Accompany the work with the complete corresponding
287
+    machine-readable source code for the Library including whatever
288
+    changes were used in the work (which must be distributed under
289
+    Sections 1 and 2 above); and, if the work is an executable linked
290
+    with the Library, with the complete machine-readable "work that
291
+    uses the Library", as object code and/or source code, so that the
292
+    user can modify the Library and then relink to produce a modified
293
+    executable containing the modified Library.  (It is understood
294
+    that the user who changes the contents of definitions files in the
295
+    Library will not necessarily be able to recompile the application
296
+    to use the modified definitions.)
297
+
298
+    b) Use a suitable shared library mechanism for linking with the
299
+    Library.  A suitable mechanism is one that (1) uses at run time a
300
+    copy of the library already present on the user's computer system,
301
+    rather than copying library functions into the executable, and (2)
302
+    will operate properly with a modified version of the library, if
303
+    the user installs one, as long as the modified version is
304
+    interface-compatible with the version that the work was made with.
305
+
306
+    c) Accompany the work with a written offer, valid for at
307
+    least three years, to give the same user the materials
308
+    specified in Subsection 6a, above, for a charge no more
309
+    than the cost of performing this distribution.
310
+
311
+    d) If distribution of the work is made by offering access to copy
312
+    from a designated place, offer equivalent access to copy the above
313
+    specified materials from the same place.
314
+
315
+    e) Verify that the user has already received a copy of these
316
+    materials or that you have already sent this user a copy.
317
+
318
+  For an executable, the required form of the "work that uses the
319
+Library" must include any data and utility programs needed for
320
+reproducing the executable from it.  However, as a special exception,
321
+the materials to be distributed need not include anything that is
322
+normally distributed (in either source or binary form) with the major
323
+components (compiler, kernel, and so on) of the operating system on
324
+which the executable runs, unless that component itself accompanies
325
+the executable.
326
+
327
+  It may happen that this requirement contradicts the license
328
+restrictions of other proprietary libraries that do not normally
329
+accompany the operating system.  Such a contradiction means you cannot
330
+use both them and the Library together in an executable that you
331
+distribute.
332
+
333
+  7. You may place library facilities that are a work based on the
334
+Library side-by-side in a single library together with other library
335
+facilities not covered by this License, and distribute such a combined
336
+library, provided that the separate distribution of the work based on
337
+the Library and of the other library facilities is otherwise
338
+permitted, and provided that you do these two things:
339
+
340
+    a) Accompany the combined library with a copy of the same work
341
+    based on the Library, uncombined with any other library
342
+    facilities.  This must be distributed under the terms of the
343
+    Sections above.
344
+
345
+    b) Give prominent notice with the combined library of the fact
346
+    that part of it is a work based on the Library, and explaining
347
+    where to find the accompanying uncombined form of the same work.
348
+
349
+  8. You may not copy, modify, sublicense, link with, or distribute
350
+the Library except as expressly provided under this License.  Any
351
+attempt otherwise to copy, modify, sublicense, link with, or
352
+distribute the Library is void, and will automatically terminate your
353
+rights under this License.  However, parties who have received copies,
354
+or rights, from you under this License will not have their licenses
355
+terminated so long as such parties remain in full compliance.
356
+
357
+  9. You are not required to accept this License, since you have not
358
+signed it.  However, nothing else grants you permission to modify or
359
+distribute the Library or its derivative works.  These actions are
360
+prohibited by law if you do not accept this License.  Therefore, by
361
+modifying or distributing the Library (or any work based on the
362
+Library), you indicate your acceptance of this License to do so, and
363
+all its terms and conditions for copying, distributing or modifying
364
+the Library or works based on it.
365
+
366
+  10. Each time you redistribute the Library (or any work based on the
367
+Library), the recipient automatically receives a license from the
368
+original licensor to copy, distribute, link with or modify the Library
369
+subject to these terms and conditions.  You may not impose any further
370
+restrictions on the recipients' exercise of the rights granted herein.
371
+You are not responsible for enforcing compliance by third parties with
372
+this License.
373
+
374
+  11. If, as a consequence of a court judgment or allegation of patent
375
+infringement or for any other reason (not limited to patent issues),
376
+conditions are imposed on you (whether by court order, agreement or
377
+otherwise) that contradict the conditions of this License, they do not
378
+excuse you from the conditions of this License.  If you cannot
379
+distribute so as to satisfy simultaneously your obligations under this
380
+License and any other pertinent obligations, then as a consequence you
381
+may not distribute the Library at all.  For example, if a patent
382
+license would not permit royalty-free redistribution of the Library by
383
+all those who receive copies directly or indirectly through you, then
384
+the only way you could satisfy both it and this License would be to
385
+refrain entirely from distribution of the Library.
386
+
387
+If any portion of this section is held invalid or unenforceable under any
388
+particular circumstance, the balance of the section is intended to apply,
389
+and the section as a whole is intended to apply in other circumstances.
390
+
391
+It is not the purpose of this section to induce you to infringe any
392
+patents or other property right claims or to contest validity of any
393
+such claims; this section has the sole purpose of protecting the
394
+integrity of the free software distribution system which is
395
+implemented by public license practices.  Many people have made
396
+generous contributions to the wide range of software distributed
397
+through that system in reliance on consistent application of that
398
+system; it is up to the author/donor to decide if he or she is willing
399
+to distribute software through any other system and a licensee cannot
400
+impose that choice.
401
+
402
+This section is intended to make thoroughly clear what is believed to
403
+be a consequence of the rest of this License.
404
+
405
+  12. If the distribution and/or use of the Library is restricted in
406
+certain countries either by patents or by copyrighted interfaces, the
407
+original copyright holder who places the Library under this License may add
408
+an explicit geographical distribution limitation excluding those countries,
409
+so that distribution is permitted only in or among countries not thus
410
+excluded.  In such case, this License incorporates the limitation as if
411
+written in the body of this License.
412
+
413
+  13. The Free Software Foundation may publish revised and/or new
414
+versions of the Lesser General Public License from time to time.
415
+Such new versions will be similar in spirit to the present version,
416
+but may differ in detail to address new problems or concerns.
417
+
418
+Each version is given a distinguishing version number.  If the Library
419
+specifies a version number of this License which applies to it and
420
+"any later version", you have the option of following the terms and
421
+conditions either of that version or of any later version published by
422
+the Free Software Foundation.  If the Library does not specify a
423
+license version number, you may choose any version ever published by
424
+the Free Software Foundation.
425
+
426
+  14. If you wish to incorporate parts of the Library into other free
427
+programs whose distribution conditions are incompatible with these,
428
+write to the author to ask for permission.  For software which is
429
+copyrighted by the Free Software Foundation, write to the Free
430
+Software Foundation; we sometimes make exceptions for this.  Our
431
+decision will be guided by the two goals of preserving the free status
432
+of all derivatives of our free software and of promoting the sharing
433
+and reuse of software generally.
434
+
435
+          NO WARRANTY
436
+
437
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
439
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
440
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
441
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
442
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
443
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
444
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
445
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
446
+
447
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
448
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
449
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
450
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
451
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
452
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
453
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
454
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456
+DAMAGES.
457
+
458
+         END OF TERMS AND CONDITIONS
459
+
460
+           How to Apply These Terms to Your New Libraries
461
+
462
+  If you develop a new library, and you want it to be of the greatest
463
+possible use to the public, we recommend making it free software that
464
+everyone can redistribute and change.  You can do so by permitting
465
+redistribution under these terms (or, alternatively, under the terms of the
466
+ordinary General Public License).
467
+
468
+  To apply these terms, attach the following notices to the library.  It is
469
+safest to attach them to the start of each source file to most effectively
470
+convey the exclusion of warranty; and each file should have at least the
471
+"copyright" line and a pointer to where the full notice is found.
472
+
473
+    <one line to give the library's name and a brief idea of what it does.>
474
+    Copyright (C) <year>  <name of author>
475
+
476
+    This library is free software; you can redistribute it and/or
477
+    modify it under the terms of the GNU Lesser General Public
478
+    License as published by the Free Software Foundation; either
479
+    version 2.1 of the License, or (at your option) any later version.
480
+
481
+    This library is distributed in the hope that it will be useful,
482
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
483
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
484
+    Lesser General Public License for more details.
485
+
486
+    You should have received a copy of the GNU Lesser General Public
487
+    License along with this library; if not, write to the Free Software
488
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
489
+
490
+Also add information on how to contact you by electronic and paper mail.
491
+
492
+You should also get your employer (if you work as a programmer) or your
493
+school, if any, to sign a "copyright disclaimer" for the library, if
494
+necessary.  Here is a sample; alter the names:
495
+
496
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
497
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
498
+
499
+  <signature of Ty Coon>, 1 April 1990
500
+  Ty Coon, President of Vice
501
+
502
+That's all there is to it!
503
+
504
+

+ 9
- 0
js/tinymce/plugins/advlist/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var n,t,e,r,u=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),O=function(n,t,e){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";n.execCommand(r,!1,!1===e?null:{"list-style-type":e})},o=function(e){e.addCommand("ApplyUnorderedListStyle",function(n,t){O(e,"UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(n,t){O(e,"OL",t["list-style-type"])})},i=function(n){var t=n.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},l=function(n){var t=n.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},c=function(n){return function(){return n}},s=c(!1),f=c(!0),a=s,d=f,g=function(){return p},p=(r={fold:function(n,t){return n()},is:a,isSome:a,isNone:d,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:t,map:g,ap:g,each:function(){},bind:g,flatten:g,exists:a,forall:d,filter:g,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:c("none()")},Object.freeze&&Object.freeze(r),r),m=function(e){var n=function(){return e},t=function(){return u},r=function(n){return n(e)},u={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:d,isNone:a,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return m(n(e))},ap:function(n){return n.fold(g,function(n){return m(n(e))})},each:function(n){n(e)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(e)?u:p},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(a,function(n){return t(e,n)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return u},y=function(n){return null===n||n===undefined?p:m(n)},h=function(n){return n&&/^(TH|TD)$/.test(n.nodeName)},L=function(r){return function(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&(e=n,(t=r).$.contains(t.getBody(),e));var t,e}},N=function(n){var t=n.dom.getParent(n.selection.getNode(),"ol,ul"),e=n.dom.getStyle(t,"listStyleType");return y(e)},S=function(n,t,e){var r=function(n,t){for(var e=0;e<n.length;e++)if(t(n[e]))return e;return-1}(t.parents,h),u=-1!==r?t.parents.slice(0,r):t.parents,o=v.grep(u,L(n));return 0<o.length&&o[0].nodeName===e},T=function(n,t,e,r,u,o){var i,l,c,s,f,a,d,g,p,m,y;0<o.length?(d=t,g=e,p=r,m=u,y=o,(a=n).ui.registry.addSplitButton(d,{tooltip:g,icon:"OL"===m?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(n){n(v.map(y,function(n){return{type:"choiceitem",value:"default"===n?"":n,icon:"list-"+("OL"===m?"num":"bull")+"-"+("disc"===n||"decimal"===n?"default":n),text:n.replace(/\-/g," ").replace(/\b\w/g,function(n){return n.toUpperCase()})}}))},onAction:function(){return a.execCommand(p)},onItemAction:function(n,t){O(a,m,t)},select:function(t){return N(a).map(function(n){return t===n}).getOr(!1)},onSetup:function(t){var n=function(n){t.setActive(S(a,n,m))};return a.on("NodeChange",n),function(){return a.off("NodeChange",n)}}})):(l=t,c=e,s=r,f=u,(i=n).ui.registry.addToggleButton(l,{active:!1,tooltip:c,icon:"OL"===f?"ordered-list":"unordered-list",onSetup:function(t){var n=function(n){t.setActive(S(i,n,f))};return i.on("NodeChange",n),function(){return i.off("NodeChange",n)}},onAction:function(){return i.execCommand(s)}}))},b=function(n){T(n,"numlist","Numbered list","InsertOrderedList","OL",i(n)),T(n,"bullist","Bullet list","InsertUnorderedList","UL",l(n))};!function A(){u.add("advlist",function(n){var t,e,r;e="lists",r=(t=n).settings.plugins?t.settings.plugins:"",-1!==v.inArray(r.split(/[ ,]/),e)&&(b(n),o(n))})}()}();

+ 9
- 0
js/tinymce/plugins/anchor/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},t=function(e){var t=e.selection.getNode();return"A"===t.tagName&&""===e.dom.getAttrib(t,"href")?t.getAttribute("id")||t.getAttribute("name"):""},r=function(e,t){var n=e.selection.getNode();"A"===n.tagName&&""===e.dom.getAttrib(n,"href")?(n.removeAttribute("name"),n.id=t,e.undoManager.add()):(e.focus(),e.selection.collapse(!0),e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t})))},n=function(o){var e=t(o);o.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:e},onSubmit:function(e){var t,n;t=o,n=e.getData().id,(a(n)?(r(t,n),0):(t.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),1))||e.close()}})},o=function(e){e.addCommand("mceAnchor",function(){n(e)})},i=function(o){return function(e){for(var t=0;t<e.length;t++)(n=e[t]).attr("href")||!n.attr("id")&&!n.attr("name")||n.firstChild||e[t].attr("contenteditable",o);var n}},c=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("a",i("false")),e.serializer.addNodeFilter("a",i(null))})},d=function(t){t.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:function(){return t.execCommand("mceAnchor")},onSetup:function(e){return t.selection.selectorChangedWithUnbind("a:not([href])",e.setActive).unbind}}),t.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:function(){return t.execCommand("mceAnchor")}})};!function u(){e.add("anchor",function(e){c(e),o(e),d(e)})}()}();

+ 9
- 0
js/tinymce/plugins/autolink/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),m=function(e){return e.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i)},y=function(e){return e.getParam("default_link_target",!1)},o=function(e,t){if(t<0&&(t=0),3===e.nodeType){var n=e.data.length;n<t&&(t=n)}return t},k=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,o(t,n)):e.setStartBefore(t)},p=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setEnd(t,o(t,n)):e.setEndAfter(t)},r=function(e,t,n){var i,o,r,a,f,s,d,l,c,u,g=m(e),h=y(e);if("A"!==e.selection.getNode().tagName){if((i=e.selection.getRng(!0).cloneRange()).startOffset<5){if(!(l=i.endContainer.previousSibling)){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;l=i.endContainer.firstChild.nextSibling}if(c=l.length,k(i,l,c),p(i,l,c),i.endOffset<5)return;o=i.endOffset,a=l}else{if(3!==(a=i.endContainer).nodeType&&a.firstChild){for(;3!==a.nodeType&&a.firstChild;)a=a.firstChild;3===a.nodeType&&(k(i,a,0),p(i,a,a.nodeValue.length))}o=1===i.endOffset?2:i.endOffset-1-t}for(r=o;k(i,a,2<=o?o-2:0),p(i,a,1<=o?o-1:0),o-=1," "!==(u=i.toString())&&""!==u&&160!==u.charCodeAt(0)&&0<=o-2&&u!==n;);var C;(C=i.toString())===n||" "===C||160===C.charCodeAt(0)?(k(i,a,o),p(i,a,r),o+=1):(0===i.startOffset?k(i,a,0):k(i,a,o),p(i,a,r)),"."===(s=i.toString()).charAt(s.length-1)&&p(i,a,r-1),(d=(s=i.toString().trim()).match(g))&&("www."===d[1]?d[1]="http://www.":/@$/.test(d[1])&&!/^mailto:/.test(d[1])&&(d[1]="mailto:"+d[1]),f=e.selection.getBookmark(),e.selection.setRng(i),e.execCommand("createlink",!1,d[1]+d[2]),!1!==h&&e.dom.setAttrib(e.selection.getNode(),"target",h),e.selection.moveToBookmark(f),e.nodeChanged())}},t=function(t){var n;t.on("keydown",function(e){13!==e.keyCode||r(t,-1,"")}),i.ie&&i.ie<=11?t.on("focus",function(){if(!n){n=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(t.on("keypress",function(e){41!==e.keyCode||r(t,-1,"(")}),t.on("keyup",function(e){32!==e.keyCode||r(t,0,"")}))};!function n(){e.add("autolink",function(e){t(e)})}()}();

+ 9
- 0
js/tinymce/plugins/autoresize/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var i=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return i(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),h=function(e){return e.fire("ResizeEditor")},v=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},y=function(e){return e.getParam("max_height",0,"number")},o=function(e){return e.getParam("autoresize_overflow_padding",1,"number")},p=function(e){return e.getParam("autoresize_bottom_margin",50,"number")},u=function(e){return e.getParam("autoresize_on_init",!0,"boolean")},a=function(e,t,n,i,o){r.setEditorTimeout(e,function(){b(e,t),n--?a(e,t,n,i,o):o&&o()},i)},z=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},C=function(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o},b=function(e,t){var n,i,o,r=e.dom,u=e.getDoc();if(u)if((a=e).plugins.fullscreen&&a.plugins.fullscreen.isFullscreen())z(e,!0);else{var a,s=u.documentElement,f=p(e);i=v(e);var c=C(r,s,"margin-top",!0),g=C(r,s,"margin-bottom",!0);(o=s.offsetHeight+c+g+f)<0&&(o=0);var l=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;o+l>v(e)&&(i=o+l);var m=y(e);m&&m<i?(i=m,z(e,!0)):z(e,!1),i!==t.get()&&(n=i-t.get(),r.setStyle(e.getContainer(),"height",i+"px"),t.set(i),h(e),d.webkit&&n<0&&b(e,t))}},n={setup:function(t,n){t.on("init",function(){var e=o(t);t.dom.setStyles(t.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})}),t.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",function(e){b(t,n)}),u(t)&&t.on("init",function(){a(t,n,20,100,function(){a(t,n,5,1e3)})})},resize:b},s=function(e,t){e.addCommand("mceAutoResize",function(){n.resize(e,t)})};!function t(){e.add("autoresize",function(e){if(e.settings.hasOwnProperty("resize")||(e.settings.resize=!1),!e.inline){var t=i(0);s(e,t),n.setup(e,t)}})}()}();

+ 9
- 0
js/tinymce/plugins/autosave/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(r){"use strict";var o=function(t){var e=t,r=function(){return e};return{get:r,set:function(t){e=t},clone:function(){return o(r())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Delay"),a=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(t,e){var r=t||e,n=/^(\d+)([ms]?)$/.exec(""+r);return(n[2]?{s:1e3,m:6e4}[n[2]]:1)*parseInt(r,10)},s=function(t){var e=t.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");return e=(e=(e=(e=e.replace(/\{path\}/g,r.document.location.pathname)).replace(/\{query\}/g,r.document.location.search)).replace(/\{hash\}/g,r.document.location.hash)).replace(/\{id\}/g,t.id)},c=function(t,e){var r=t.settings.forced_root_block;return""===(e=i.trim(void 0===e?t.getBody().innerHTML:e))||new RegExp("^<"+r+"[^>]*>((\xa0|&nbsp;|[ \t]|<br[^>]*>)+?|)</"+r+">|<br>$","i").test(e)},f=function(t){var e=parseInt(a.getItem(s(t)+"time"),10)||0;return!((new Date).getTime()-e>u(t.settings.autosave_retention,"20m"))||(l(t,!1),!1)},l=function(t,e){var r=s(t);a.removeItem(r+"draft"),a.removeItem(r+"time"),!1!==e&&t.fire("RemoveDraft")},m=function(t){var e=s(t);!c(t)&&t.isDirty()&&(a.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),a.setItem(e+"time",(new Date).getTime().toString()),t.fire("StoreDraft"))},v=function(t){var e=s(t);f(t)&&(t.setContent(a.getItem(e+"draft"),{format:"raw"}),t.fire("RestoreDraft"))},d=function(t,e){var r=u(t.settings.autosave_interval,"30s");e.get()||(n.setInterval(function(){t.removed||m(t)},r),e.set(!0))},g=function(t){t.undoManager.transact(function(){v(t),l(t)}),t.focus()};function y(n){for(var o=[],t=1;t<arguments.length;t++)o[t-1]=arguments[t];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.concat(t);return n.apply(null,r)}}var p=tinymce.util.Tools.resolve("tinymce.EditorManager"),D=function(r,t){return function(t){t.setDisabled(!f(r));var e=function(){return t.setDisabled(!f(r))};return r.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return r.off("StoreDraft RestoreDraft RemoveDraft",e)}}};!function e(){t.add("autosave",function(t){var e,r,n=o(!1);return t.editorManager.on("BeforeUnload",function(t){var e;i.each(p.get(),function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e&&(t.preventDefault(),t.returnValue=e)}),d(e=t,n),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){g(e)},onSetup:D(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){g(e)},onSetup:D(e)}),t.on("init",function(){t.getParam("autosave_restore_when_empty",!1)&&t.dom.isEmpty(t.getBody())&&v(t)}),{hasDraft:y(f,r=t),storeDraft:y(m,r),restoreDraft:y(v,r),removeDraft:y(l,r),isEmpty:y(c,r)}})}()}(window);

+ 9
- 0
js/tinymce/plugins/bbcode/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.util.Tools"),t=function(t){t=e.trim(t);var o=function(o,e){t=t.replace(o,e)};return o(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),o(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),o(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),o(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),o(/<font>(.*?)<\/font>/gi,"$1"),o(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),o(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),o(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),o(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),o(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),o(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),o(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),o(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),o(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),o(/<\/(strong|b)>/gi,"[/b]"),o(/<(strong|b)>/gi,"[b]"),o(/<\/(em|i)>/gi,"[/i]"),o(/<(em|i)>/gi,"[i]"),o(/<\/u>/gi,"[/u]"),o(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),o(/<u>/gi,"[u]"),o(/<blockquote[^>]*>/gi,"[quote]"),o(/<\/blockquote>/gi,"[/quote]"),o(/<br \/>/gi,"\n"),o(/<br\/>/gi,"\n"),o(/<br>/gi,"\n"),o(/<p>/gi,""),o(/<\/p>/gi,"\n"),o(/&nbsp;|\u00a0/gi," "),o(/&quot;/gi,'"'),o(/&lt;/gi,"<"),o(/&gt;/gi,">"),o(/&amp;/gi,"&"),t},i=function(t){t=e.trim(t);var o=function(o,e){t=t.replace(o,e)};return o(/\n/gi,"<br />"),o(/\[b\]/gi,"<strong>"),o(/\[\/b\]/gi,"</strong>"),o(/\[i\]/gi,"<em>"),o(/\[\/i\]/gi,"</em>"),o(/\[u\]/gi,"<u>"),o(/\[\/u\]/gi,"</u>"),o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),o(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),o(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),o(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),o(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;'),o(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;'),t};!function n(){o.add("bbcode",function(o){o.on("BeforeSetContent",function(o){o.content=i(o.content)}),o.on("PostProcess",function(o){o.set&&(o.content=i(o.content)),o.get&&(o.content=t(o.content))})})}()}();

+ 9
- 0
js/tinymce/plugins/charmap/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/code/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},o=function(e){return e.getContent({source_view:!0})},n=function(n){var e=o(n);n.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:e},onSubmit:function(e){t(n,e.getData().code),e.close()}})},c=function(e){e.addCommand("mceCodeEditor",function(){n(e)})},i=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return n(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return n(e)}})};!function u(){e.add("code",function(e){return c(e),i(e),{}})}()}();

+ 9
- 0
js/tinymce/plugins/codesample/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/colorpicker/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(o){"use strict";var i=tinymce.util.Tools.resolve("tinymce.PluginManager");!function n(){i.add("colorpicker",function(){o.console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")})}()}(window);

+ 9
- 0
js/tinymce/plugins/contextmenu/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(n){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager");!function e(){o.add("contextmenu",function(){n.console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")})}()}(window);

+ 9
- 0
js/tinymce/plugins/directionality/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(c){"use strict";var n,t,e,r,o,i,u=tinymce.util.Tools.resolve("tinymce.PluginManager"),f=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=function(n,t){var e,r=n.dom,o=n.selection.getSelectedBlocks();o.length&&(e=r.getAttrib(o[0],"dir"),f.each(o,function(n){r.getParent(n.parentNode,'*[dir="'+t+'"]',r.getRoot())||r.setAttrib(n,"dir",e!==t?t:null)}),n.nodeChanged())},l=function(n){n.addCommand("mceDirectionLTR",function(){d(n,"ltr")}),n.addCommand("mceDirectionRTL",function(){d(n,"rtl")})},a=function(n){return function(){return n}},m=a(!1),N=a(!0),s=m,g=N,T=function(){return E},E=(r={fold:function(n,t){return n()},is:s,isSome:s,isNone:g,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:t,map:T,ap:T,each:function(){},bind:T,flatten:T,exists:s,forall:g,filter:T,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:a("none()")},Object.freeze&&Object.freeze(r),r),O=function(e){var n=function(){return e},t=function(){return o},r=function(n){return n(e)},o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:g,isNone:s,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return O(n(e))},ap:function(n){return n.fold(T,function(n){return O(n(e))})},each:function(n){n(e)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(e)?o:E},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(s,function(n){return t(e,n)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},y=function(n){return null===n||n===undefined?E:O(n)},p=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:a(n)}},D={fromHtml:function(n,t){var e=(t||c.document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||1<e.childNodes.length)throw c.console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return p(e.childNodes[0])},fromTag:function(n,t){var e=(t||c.document).createElement(n);return p(e)},fromText:function(n,t){var e=(t||c.document).createTextNode(n);return p(e)},fromDom:p,fromPoint:function(n,t,e){var r=n.dom();return y(r.elementFromPoint(t,e)).map(p)}},h=(o="function",function(n){return function(n){if(null===n)return"null";var t=typeof n;return"object"===t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t}(n)===o}),_=Array.prototype.slice,v=(h(Array.from)&&Array.from,c.Node.ATTRIBUTE_NODE,c.Node.CDATA_SECTION_NODE,c.Node.COMMENT_NODE,c.Node.DOCUMENT_NODE,c.Node.DOCUMENT_TYPE_NODE,c.Node.DOCUMENT_FRAGMENT_NODE,c.Node.ELEMENT_NODE,c.Node.TEXT_NODE),C=(c.Node.PROCESSING_INSTRUCTION_NODE,c.Node.ENTITY_REFERENCE_NODE,c.Node.ENTITY_NODE,c.Node.NOTATION_NODE,"undefined"!=typeof c.window?c.window:Function("return this;")(),i=v,function(n){return n.dom().nodeType===i}),A=function(n,t){var e,r,o=n.dom(),i=c.window.getComputedStyle(o).getPropertyValue(t),u=""!==i||(r=C(e=n)?e.dom().parentNode:e.dom())!==undefined&&null!==r&&r.ownerDocument.body.contains(r)?i:w(o,t);return null===u?undefined:u},w=function(n,t){return(e=n).style!==undefined&&h(e.style.getPropertyValue)?n.style.getPropertyValue(t):"";var e},S=function(t,r){return function(e){var n=function(n){var t=D.fromDom(n.element);e.setActive(("rtl"===A(t,"direction")?"rtl":"ltr")===r)};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}}},R=function(n){n.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return n.execCommand("mceDirectionLTR")},onSetup:S(n,"ltr")}),n.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return n.execCommand("mceDirectionRTL")},onSetup:S(n,"rtl")})};!function M(){u.add("directionality",function(n){l(n),R(n)})}()}(window);

+ 9015
- 0
js/tinymce/plugins/emoticons/js/emojis.js
File diff suppressed because it is too large
View File


+ 2
- 0
js/tinymce/plugins/emoticons/js/emojis.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/emoticons/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/fullpage/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/fullscreen/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/help/plugin.min.js
File diff suppressed because it is too large
View File


+ 9
- 0
js/tinymce/plugins/hr/plugin.min.js View File

@@ -0,0 +1,9 @@
1
+/**
2
+ * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
+ * Licensed under the LGPL or a commercial license.
4
+ * For LGPL see License.txt in the project root for license information.
5
+ * For commercial licenses see https://www.tiny.cloud/
6
+ *
7
+ * Version: 5.0.14 (2019-08-19)
8
+ */
9
+!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"<hr />")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};!function e(){n.add("hr",function(n){o(n),t(n)})}()}();

+ 0
- 0
js/tinymce/plugins/image/plugin.min.js View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save