dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

9) This code is published under a 0BSD license.
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

10) 
11) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
12) */
13) 
14) require_once('inc/base.php');
15) 
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

16) if (! defined('__JQUERY_INCLUDED')) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

17)     define('__JQUERY_INCLUDED', '1');
18)     global $prefix;
19)     html_header('
Bernd Wurst JQuery-UI mit komplettem CS...

Bernd Wurst authored 10 years ago

20) <link rel="stylesheet" href="'.$prefix.'external/jquery/ui/jquery-ui.min.css" />
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

21) <script type="text/javascript" src="'.$prefix.'external/jquery/jquery.min.js" ></script>
Bernd Wurst JQuery-UI mit komplettem CS...

Bernd Wurst authored 10 years ago

22) <script type="text/javascript" src="'.$prefix.'external/jquery/ui/jquery-ui.min.js" ></script>
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

23) ');
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

24) }
25) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

26) function javascript($file = null, $module = null)
27) {
28)     global $go, $prefix;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

29)     [$mod, $page] = explode('/', $go, 2);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

30)     if (! $file) {
31)         $file = $page.'.js';
32)     }
33)     if (! $module) {
34)         $module = $mod;
35)     }
36)     if (file_exists('modules/'.$module.'/'.$file)) {
37)         html_header('
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

38) <script type="text/javascript" src="'.$prefix.'modules/'.$module.'/'.$file.'"></script>
39) ');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

40)     } else {
41)         DEBUG('Missing JS file: '.'modules/'.$module.'/'.$file);
42)         warning('Interner Fehler: Dieses Modul wollte JavaScript laden, das hat aber nicht geklappt.');
43)     }