28667e96bdcc072a7485ff50021f54f555c59ea3
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 10 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 10 years ago

inc/jquery.php     10) 
inc/jquery.php     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.
inc/jquery.php     12) */
inc/jquery.php     13) 
inc/jquery.php     14) require_once('inc/base.php');
inc/jquery.php     15) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 16) if (!defined('__JAVASCRIPT_INCLUDED')) {
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

inc/javascript.php 17)     define('__JAVASCRIPT_INCLUDED', '1');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     18)     global $prefix;
inc/jquery.php     19)     html_header('
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

inc/javascript.php 20) <script type="text/javascript" src="'.$prefix.'js/common.js" ></script>
Bernd Wurst JQuery als Include HSTS-Int...

Bernd Wurst authored 10 years ago

inc/jquery.php     21) ');
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

inc/jquery.php     22) }
inc/jquery.php     23) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     24) function javascript($file = null, $module = null)
inc/jquery.php     25) {
inc/jquery.php     26)     global $go, $prefix;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

inc/jquery.php     27)     [$mod, $page] = explode('/', $go, 2);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 28)     if (!$file) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     29)         $file = $page.'.js';
inc/jquery.php     30)     }
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

inc/javascript.php 31)     if (!$module) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

inc/jquery.php     32)         $module = $mod;
inc/jquery.php     33)     }
inc/jquery.php     34)     if (file_exists('modules/'.$module.'/'.$file)) {
inc/jquery.php     35)         html_header('
Bernd Wurst JQuery/-UI integriert und V...

Bernd Wurst authored 10 years ago

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

Hanno authored 6 years ago

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