Login | ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/webcounter/trunk/includes/functions.inc.php
(Generate patch)

Comparing trunk/includes/functions.inc.php (file contents):
Revision 3 by daniel-marschall, Sun Jan 9 00:00:01 2022 UTC vs.
Revision 7 by daniel-marschall, Sun Jan 9 00:44:28 2022 UTC

# Line 2 | Line 2
2  
3   /*
4   * PHP Counter mit Reloadsperre, Textdatenbank und Graphic-Libary (without Error Images)
5 < * (C)Copyright 2010 - 2019 Daniel Marschall
6 < * Revision: 2019-02-18
5 > * (C)Copyright 2010 - 2022 Daniel Marschall
6 > * Revision: 2022-01-09
7   */
8  
9   function pdox_execute($statement, $args=array()) {
# Line 73 | Line 73 | function rgb2hsl($r, $g, $b) {
73        if      ($var_R == $var_Max) $h = $del_B - $del_G;
74        else if ($var_G == $var_Max) $h = ( 1 / 3 ) + $del_R - $del_B;
75        else if ($var_B == $var_Max) $h = ( 2 / 3 ) + $del_G - $del_R;
76 +      else $h = 0; // should not happen
77  
78        if ($h < 0) $h++;
79        if ($h > 1) $h--;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines