diff --git a/lmo/addon/classlib/classes/liga.class.php b/lmo/addon/classlib/classes/liga.class.php index 867d44d..3be97c4 100644 --- a/lmo/addon/classlib/classes/liga.class.php +++ b/lmo/addon/classlib/classes/liga.class.php @@ -463,7 +463,7 @@ function showDetailsHTML() { */ function ligaDatumAsString ($dateFormat=null) { $dateFormat = !is_null($dateFormat)?$dateFormat:$this->options->keyValues['DatF']; - return strftime ( $dateFormat , $this->ligaDatum); + return date($dateFormat, $this->ligaDatum); } /** diff --git a/lmo/addon/classlib/classes/pokalRunde.class.php b/lmo/addon/classlib/classes/pokalRunde.class.php index eccc05e..309edeb 100644 --- a/lmo/addon/classlib/classes/pokalRunde.class.php +++ b/lmo/addon/classlib/classes/pokalRunde.class.php @@ -1,9 +1,9 @@ + * @author Markus D�rfling * @version $Id$ * @package classlib */ @@ -17,7 +17,7 @@ class pokalRunde { var $roundNumber; /** - * Modus 0->Tabelle / 1-> KO / 2->KO mir Rückspiel / 3->best of 3 / 5->best of 5 / 7->best of 7 + * Modus 0->Tabelle / 1-> KO / 2->KO mir R�ckspiel / 3->best of 3 / 5->best of 5 / 7->best of 7 * @var integer * @access private */ @@ -71,17 +71,17 @@ function pokalRunde($roundNumber,$mode,$begin=0,$end=0,$spieltage=null) { } /** - * Gibt die Nummer der Runde zurück + * Gibt die Nummer der Runde zur�ck * * @access public - * @return integer Modus dér Runde + * @return integer Modus d�r Runde */ function getRoundNumber() { return $this->roundNumber; } /** - * Setzt den Modus dieser Runde zurück + * Setzt den Modus dieser Runde zur�ck * * @access public * @param integer value Modus der Runde @@ -92,10 +92,10 @@ function setMode($value) { } /** - * Gibt den aktuellen Modus dieser Runde zurück + * Gibt den aktuellen Modus dieser Runde zur�ck * * @access public - * @return integer Modus dér Runde + * @return integer Modus d�r Runde */ function getMode() { return $this->mode; @@ -113,8 +113,8 @@ function setBegin($value) { } /** - * Gibt den Timestamp der Rundenbegins zurück, wenn format angegeben ist wird - * das Datum im angegeben Format zurückgegeben + * Gibt den Timestamp der Rundenbegins zur�ck, wenn format angegeben ist wird + * das Datum im angegeben Format zur�ckgegeben * * @access public * @param string format der Datumsausgabe @@ -124,7 +124,7 @@ function setBegin($value) { function getBegin($format="") { if ($this->end != 0 ) { if ($format == "") return $this->begin; - else return strftime($format,$this->begin); + else return date($format,$this->begin); } else return false; } @@ -140,23 +140,23 @@ function setEnd($value) { } /** - * Gibt den Timestamp der Rundenendes zurück, wenn format angegeben ist wird - * das Datum im angegeben Format zurückgegeben + * Gibt den Timestamp der Rundenendes zur�ck, wenn format angegeben ist wird + * das Datum im angegeben Format zur�ckgegeben * * @access public * @param string format der Datumsausgabe * @see strftime() - * @return mixed Ende dér Runde + * @return mixed Ende d�r Runde */ function getEnd($format="") { if ($this->end != 0 ) { if ($format == "") return $this->end; - else return strftime($format,$this->end); + else return date($format,$this->end); } else return false; } /** - * Fügt Referenzen auf Partien dieser Runde hinzu + * F�gt Referenzen auf Partien dieser Runde hinzu * * @access public * @param array/object value Objecte der partien @@ -173,7 +173,7 @@ function addPartien(&$value) { } /** - * Gibt Partien dieser Runde zurück, ist $Number ="" wird das komplette Array übergeben + * Gibt Partien dieser Runde zur�ck, ist $Number ="" wird das komplette Array �bergeben * * @access public * @param integer Nummer der Partie @@ -186,7 +186,7 @@ function getPartien($number="") { } /** - * Fügt Referenzen auf die Spieltage (und die Partien dieses Spieltags) dieser Runde hinzu + * F�gt Referenzen auf die Spieltage (und die Partien dieses Spieltags) dieser Runde hinzu * * @access public * @param array/object value Objecte der Spieltage @@ -207,7 +207,7 @@ function addSpieltage(&$value) { } /** - * Gibt Spieltage dieser Runde zurück, ist $Number ="" wird das komplette Array übergeben + * Gibt Spieltage dieser Runde zur�ck, ist $Number ="" wird das komplette Array �bergeben * * @access public * @param integer Nummer des Spieltags @@ -220,7 +220,7 @@ function getSpieltage($number="") { } /** - * Gibt die Anzahl der Spieltage dieser Pokal Runde zurück + * Gibt die Anzahl der Spieltage dieser Pokal Runde zur�ck * * @access public * @return interger Anzahl der Spieltage diff --git a/lmo/addon/tipp/lmo-tippdir.php b/lmo/addon/tipp/lmo-tippdir.php index ea2d17a..757d534 100644 --- a/lmo/addon/tipp/lmo-tippdir.php +++ b/lmo/addon/tipp/lmo-tippdir.php @@ -120,7 +120,7 @@ $tippfile=PATH_TO_ADDONDIR."/tipp/".$tipp_dirtipp.substr($dummy[$k],0,-4)."_".str_replace(" ","_",$_SESSION['lmotippername']).".tip"; echo "
  • ".$t0.""; if (file_exists($tippfile)) { - echo "
    ".$text['tipp'][138]." ".strftime($defdateformat,filemtime($tippfile)).$t3.""; + echo "
    ".$text['tipp'][138]." ".date($defdateformat,filemtime($tippfile)).$t3.""; } echo "
  • "; } diff --git a/lmo/addon/tipp/lmo-tippeditko.php b/lmo/addon/tipp/lmo-tippeditko.php index 6b0e396..3e72fb1 100644 --- a/lmo/addon/tipp/lmo-tippeditko.php +++ b/lmo/addon/tipp/lmo-tippeditko.php @@ -41,7 +41,7 @@ if ($datm==1) { if ($mterm[$st-1][$i][$n]>0) { - $dum1=strftime($datf, $mterm[$st-1][$i][$n]); + $dum1=date($datf, $mterm[$st-1][$i][$n]); } else { $dum1=""; }?> diff --git a/lmo/addon/tipp/lmo-tippeditliga.php b/lmo/addon/tipp/lmo-tippeditliga.php index 27402cb..c9337cf 100644 --- a/lmo/addon/tipp/lmo-tippeditliga.php +++ b/lmo/addon/tipp/lmo-tippeditliga.php @@ -31,7 +31,7 @@ if ($datm==1) { if ($mterm[$st-1][$i]>0) { - $dum1=strftime($datf, $mterm[$st-1][$i]); + $dum1=strftdateime($datf, $mterm[$st-1][$i]); } else { $dum1=""; }?> diff --git a/lmo/addon/tipp/lmo-tippemail.php b/lmo/addon/tipp/lmo-tippemail.php index 753a953..b47ded1 100644 --- a/lmo/addon/tipp/lmo-tippemail.php +++ b/lmo/addon/tipp/lmo-tippemail.php @@ -218,7 +218,7 @@ $zeit = zeit($mterm[$st0][$dd], $datum1[$st0], $datum2[$st0]); if ($now < $zeit && $then > $zeit) { if ((($st == 0 && $goaltippa[$st0][$dd] == "_") || ($st > 0 && $goaltippa[$dd] == "_")) && $teama[$st0][$dd] > 0) { - $spiele = $spiele.$teams[$teama[$st0][$dd]]." - ".$teams[$teamb[$st0][$dd]]." (".$text['tipp'][87]." ".strftime("%A, %d.%m.%Y %R", $zeit).")\n"; + $spiele = $spiele.$teams[$teama[$st0][$dd]]." - ".$teams[$teamb[$st0][$dd]]." (".$text['tipp'][87]." ".date("l, d.m.Y H:i", $zeit).")\n"; } } } @@ -228,7 +228,7 @@ $zeit = zeit($mterm[$st0][$dd][$ddd], $datum1[$st0], $datum2[$st0]); if ($now < $zeit && $then > $zeit) { if ((($st == 0 && $goaltippa[$st0][$dd][$ddd] == "_") || ($st > 0 && $goaltippa[$dd][$ddd] == "_")) && $teama[$st0][$dd] > 0) { - $spiele = $spiele.$teams[$teama[$st0][$dd]]." - ".$teams[$teamb[$st0][$dd]]." (".$text['tipp'][87]." ".strftime("%A, %d.%m.%Y %R", $zeit).")\n"; + $spiele = $spiele.$teams[$teama[$st0][$dd]]." - ".$teams[$teamb[$st0][$dd]]." (".$text['tipp'][87]." ".date("l, d.m.Y H:i", $zeit).")\n"; } } } diff --git a/lmo/addon/tipp/lmo-tippemailviewer.php b/lmo/addon/tipp/lmo-tippemailviewer.php index 25fe243..5ec305f 100644 --- a/lmo/addon/tipp/lmo-tippemailviewer.php +++ b/lmo/addon/tipp/lmo-tippemailviewer.php @@ -101,7 +101,7 @@ array_push($spiel, $spiel0); array_push($teama, $teams[$teama0]); array_push($teamb, $teams[$teamb0]); - array_push($zeit, strftime("%A, %d.%m.%Y %R", $zeit0)); + array_push($zeit, date("l, d.m.Y H:i", $zeit0)); $anzspiele++; } } diff --git a/lmo/addon/tipp/lmo-tippopenfileviewer.php b/lmo/addon/tipp/lmo-tippopenfileviewer.php index 12a3a37..d690c58 100644 --- a/lmo/addon/tipp/lmo-tippopenfileviewer.php +++ b/lmo/addon/tipp/lmo-tippopenfileviewer.php @@ -136,7 +136,7 @@ $dummy1 = $dummy1+substr($deftime, 0, 2) * 60 * 60+substr($deftime, 3, 2) * 60; } if ($dummy1 > -1) { - $dum[2] = strftime("%d.%m.%Y", $dummy1); + $dum[2] = date("d.m.Y", $dummy1); } else { $dum[2] = ""; } @@ -150,7 +150,7 @@ $dummy2 = $dummy2+substr($deftime, 0, 2) * 60 * 60+substr($deftime, 3, 2) * 60; } if ($dummy2 > -1) { - $dum[2] = strftime("%d.%m.%Y", $dummy2); + $dum[2] = date("d.m.Y", $dummy2); } else { $dum[2] = ""; } diff --git a/lmo/addon/tipp/lmo-tippviewer.php b/lmo/addon/tipp/lmo-tippviewer.php index 9781210..b2796f7 100644 --- a/lmo/addon/tipp/lmo-tippviewer.php +++ b/lmo/addon/tipp/lmo-tippviewer.php @@ -99,11 +99,11 @@ $then1 = strtotime("+".($start+$tipp_viewertage)." day"); } - $now1 = strftime("%d.%m.%Y", $now1); + $now1 = date("d.m.Y", $now1); $now = mktime(0, 0, 0, substr($now1, 3, 2), substr($now1, 0, 2), substr($now1, -4)); - $then = strftime("%d.%m.%Y", $then1); + $then = date("d.m.Y", $then1); $then = mktime(0, 0, 0, substr($then, 3, 2), substr($then, 0, 2), substr($then, -4)); - $then1 = strftime("%d.%m.%Y", ($then-1)); + $then1 = date("d.m.Y", ($then-1)); for($liganr = 0; $liganr < $anzligen; $liganr++) { $file = $dateien[$liganr]; @@ -339,7 +339,7 @@ if ($datm[$i] == 1) { if ($mterm[$i] > 0) { $datf = $defdateformat; - $dum1 = strftime($datf, $mterm[$i]); + $dum1 = date($datf, $mterm[$i]); } }?> diff --git a/lmo/lmo-adminbasic.php b/lmo/lmo-adminbasic.php index 31c25ea..6a62253 100644 --- a/lmo/lmo-adminbasic.php +++ b/lmo/lmo-adminbasic.php @@ -263,10 +263,10 @@ @@ -275,27 +275,25 @@ > - +
    - %a =
    - %A =
    + D =
    + l =

    - %d =
    - %e =
    + d =
    + j =

    - %m =
    - %b =
    - %B =
    + m =
    + M =
    + F =

    - %y =
    - %Y =

    - %x =
    + y =
    + Y =

    - %H =
    - %M =
    - %R =
    - %r =
    + H =
    + i =
    + A =
    ?
    diff --git a/lmo/lmo-admincal.php b/lmo/lmo-admincal.php index 38e246b..964f011 100644 --- a/lmo/lmo-admincal.php +++ b/lmo/lmo-admincal.php @@ -130,7 +130,7 @@ function lmogeben(x){ if($heute==1){?> - "> -1) { - $datum1[$st-1] = strftime("%d.%m.%Y", $dummy); + $datum1[$st-1] = date("d.m.Y", $dummy); } else { $datum1[$st-1] = ""; } @@ -65,7 +65,7 @@ $datum = explode('.', $datum2[$st-1]); $dummy = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]); if ($dummy > -1) { - $datum2[$st-1] = strftime("%d.%m.%Y", $dummy); + $datum2[$st-1] = date("d.m.Y", $dummy); } else { $datum2[$st-1] = ""; } @@ -230,10 +230,10 @@ function array_values_recursive($ary) { $lmo_spieltermine=array_filter(array_values_recursive($mterm[$st-1]),"filterZero"); if (!empty($lmo_spieltermine)) { if (empty($datum1[$st-1])) { - $datum1[$st-1] = strftime("%d.%m.%Y", min($lmo_spieltermine)); + $datum1[$st-1] = date("d.m.Y", min($lmo_spieltermine)); } if (empty($datum2[$st-1])) { - $datum2[$st-1] = strftime("%d.%m.%Y", max($lmo_spieltermine)); + $datum2[$st-1] = date("d.m.Y", max($lmo_spieltermine)); } } @@ -377,9 +377,9 @@ function array_values_recursive($ary) { if ($lmtype == 0) {?> 0) { - $dum1 = strftime("%d.%m.%Y", $mterm[$st-1][$i]); - $dum2 = strftime("%H:%M", $mterm[$st-1][$i]); - $dum3 = $me[intval(strftime("%m", $mterm[$st-1][$i]))]." ".strftime("%Y", $mterm[$st-1][$i]); + $dum1 = date("d.m.Y", $mterm[$st-1][$i]); + $dum2 = date("H:i", $mterm[$st-1][$i]); + $dum3 = $me[intval(date("m", $mterm[$st-1][$i]))]." ".date("Y", $mterm[$st-1][$i]); } else { $dum1 = ""; $dum2 = ""; @@ -474,9 +474,9 @@ function array_values_recursive($ary) { }?> 0) { - $dum1 = strftime("%d.%m.%Y", $mterm[$st-1][$i][$n]); - $dum2 = strftime("%H:%M", $mterm[$st-1][$i][$n]); - $dum3 = $me[intval(strftime("%m", $mterm[$st-1][$i][$n]))]." ".strftime("%Y", $mterm[$st-1][$i][$n]); + $dum1 = date("d.m.Y", $mterm[$st-1][$i][$n]); + $dum2 = date("H:i", $mterm[$st-1][$i][$n]); + $dum3 = $me[intval(date("m", $mterm[$st-1][$i][$n]))]." ".date("Y", $mterm[$st-1][$i][$n]); } else { $dum1 = ""; $dum2 = ""; @@ -567,9 +567,9 @@ function array_values_recursive($ary) { $goalb[$st-1][$i][$n] = "_"; }?>   - + : - +   @@ -166,27 +166,25 @@
    > - +
    - %a =
    - %A =
    + D =
    + l =

    - %d =
    - %e =
    + d =
    + j =

    - %m =
    - %b =
    - %B =
    + m =
    + M =
    + F =

    - %y =
    - %Y =

    - %x =
    + y =
    + Y =

    - %H =
    - %M =
    - %R =
    - %p =
    + H =
    + i =
    + A =
    ?
    diff --git a/lmo/lmo-cal.php b/lmo/lmo-cal.php index 2964421..e82e457 100644 --- a/lmo/lmo-cal.php +++ b/lmo/lmo-cal.php @@ -22,7 +22,7 @@ $addk = $_SERVER['PHP_SELF']."?action=cal&file=".$file."&cal="; $addr = $_SERVER['PHP_SELF']."?action=results&file=".$file."&st="; $me = array("0", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); - $mb = strftime("%m%Y", strtotime("now")); + $mb = date("mY", strtotime("now")); $cal=isset($_GET['cal'])?$_GET['cal']:null; //Anzeigezeitraum festlegen @@ -40,7 +40,7 @@ $lmo_termine = array(); $lmo_termine=array_filter($mterm[$st-1],"filterZero"); //Nullwerte filtern if (!empty($lmo_termine)) { - $datum = explode('.', strftime("%d.%m.%Y",min($lmo_termine))); + $datum = explode('.', date("d.m.Y",min($lmo_termine))); $lmo_month_prev = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]." -1 month"); $lmo_month_this = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]); $lmo_month_next = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]." +1 month"); @@ -58,29 +58,29 @@ $cal = strftime("%m%Y", $lmo_month_this); } if (strlen($cal) > 4) { //Monatsanzeige - $ma = strftime("%m%Y", $lmo_month_prev); - $mc = strftime("%m%Y", $lmo_month_next); - $md = strftime("%B %Y", $lmo_month_this); - $ml = strftime("%Y", $lmo_month_this); - $mj = " ".$me[intval(strftime("%m", $lmo_month_this))]." ".strftime("%Y", $lmo_month_this); + $ma = date("mY", $lmo_month_prev); + $mc = date("mY", $lmo_month_next); + $md = date("F Y", $lmo_month_this); + $ml = date("Y", $lmo_month_this); + $mj = " ".$me[intval(date("m", $lmo_month_this))]." ".date("Y", $lmo_month_this); $dat1 = getdate(strtotime("1".$mj)); $erster = $dat1['wday']; } else { //Jahresanzeige - $ma = strftime("%Y", $lmo_month_prev); - $mc = strftime("%Y", $lmo_month_next); - $md = strftime("%Y", $lmo_month_this); - $mj = " ".strftime("%Y", $lmo_month_this); + $ma = date("Y", $lmo_month_prev); + $mc = date("Y", $lmo_month_next); + $md = date("Y", $lmo_month_this); + $mj = " ".date("Y", $lmo_month_this); } } if (strlen($cal) > 4) { //Monatsanzeige $lmo_arrays=32; - $lmo_daterule="%B %Y"; - $lmo_daterule2="%d"; + $lmo_daterule="F Y"; + $lmo_daterule2="d"; } else { //Jahresanzeige $lmo_arrays=13; - $lmo_daterule="%Y"; - $lmo_daterule2="%m"; + $lmo_daterule="Y"; + $lmo_daterule2="m"; } $lmo_stlink = array_pad(array(), $lmo_arrays, ''); @@ -88,8 +88,8 @@ $lmo_stlink_title = array_pad(array(), $lmo_arrays, ''); for($i = 0; $i < $anzsp; $i++) { - if (!empty($mterm[$j][$i]) && strftime($lmo_daterule, $mterm[$j][$i]) == $md) { //konkretes Spieldatum vorhanden - $a = intval(strftime($lmo_daterule2, $mterm[$j][$i])); + if (!empty($mterm[$j][$i]) && date($lmo_daterule, $mterm[$j][$i]) == $md) { //konkretes Spieldatum vorhanden + $a = intval(date($lmo_daterule2, $mterm[$j][$i])); if (($teama[$j][$i] != 0) && ($teamb[$j][$i] != 0)) { if (!empty($lmo_stlink_title[$a])) { $lmo_stlink_title[$a] = $lmo_stlink_title[$a].", "; @@ -116,17 +116,17 @@ } $z=array_filter($lmo_stlink_title,"filterZero"); - if (!empty($lmo_stdatum1) && empty($z) && strftime($lmo_daterule, $lmo_stdatum1) == $md) { //Nur Von... vorhanden - $a = intval(strftime($lmo_daterule2, $lmo_stdatum1)); + if (!empty($lmo_stdatum1) && empty($z) && date($lmo_daterule, $lmo_stdatum1) == $md) { //Nur Von... vorhanden + $a = intval(date($lmo_daterule2, $lmo_stdatum1)); $lmo_stlink_title[$a] = ($j+1).". ".$text[2]." (".$text[155].")"; if (!empty($lmo_stdatum2) && $lmo_stdatum2>$lmo_stdatum1) { //Von ... bis ... vorhanden - for($k = $a; $k <= intval(strftime($lmo_daterule2, $lmo_stdatum2)); $k++) { + for($k = $a; $k <= intval(date($lmo_daterule2, $lmo_stdatum2)); $k++) { $lmo_stlink_title[$k] = ($j+1).". ".$text[2]." (".$text[155].")"; } } } - if (!empty($lmo_stdatum2) && empty($z) && strftime($lmo_daterule, $lmo_stdatum2) == $md) { //Nur ...Bis vorhanden - $a = intval(strftime($lmo_daterule2, $lmo_stdatum2)); + if (!empty($lmo_stdatum2) && empty($z) && date($lmo_daterule, $lmo_stdatum2) == $md) { //Nur ...Bis vorhanden + $a = intval(date($lmo_daterule2, $lmo_stdatum2)); $lmo_stlink_title[$a] = ($j+1).". ".$text[2]." (".$text[155].")"; } diff --git a/lmo/lmo-dirlist.php b/lmo/lmo-dirlist.php index f9239e5..2fb131f 100644 --- a/lmo/lmo-dirlist.php +++ b/lmo/lmo-dirlist.php @@ -124,7 +124,7 @@ echo " ".$liga['aktueller_spieltag']; } ?>   -
    +
    [".$text[223]."]";} diff --git a/lmo/lmo-kocal.php b/lmo/lmo-kocal.php index 9dd870c..fe211ad 100644 --- a/lmo/lmo-kocal.php +++ b/lmo/lmo-kocal.php @@ -22,7 +22,7 @@ $addk = $_SERVER['PHP_SELF']."?action=cal&file=".$file."&cal="; $addr = $_SERVER['PHP_SELF']."?action=results&file=".$file."&st="; $me = array("0", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); - $mb = strftime("%m%Y", strtotime("now")); + $mb = date("mY", strtotime("now")); $cal=isset($_GET['cal'])?$_GET['cal']:null; //Anzeigezeitraum festlegen @@ -42,7 +42,7 @@ $lmo_termine=array_filter($mterm[$st-1][$n],"filterZero"); //Nullwerte filtern } if (!empty($lmo_termine)) { - $datum = explode('.', strftime("%d.%m.%Y",min($lmo_termine))); + $datum = explode('.', date("d.m.Y",min($lmo_termine))); $lmo_month_prev = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]." -1 month"); $lmo_month_this = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]); $lmo_month_next = strtotime($datum[0]." ".$me[intval($datum[1])]." ".$datum[2]." +1 month"); @@ -56,32 +56,32 @@ //Datenformate generieren if ($lmo_month_this != -1) { if (!isset($cal)) { - $cal = strftime("%m%Y", $lmo_month_this); + $cal = date("mY", $lmo_month_this); } if (strlen($cal) > 4) { //Monatsanzeige - $ma = strftime("%m%Y", $lmo_month_prev); - $mc = strftime("%m%Y", $lmo_month_next); - $md = strftime("%B %Y", $lmo_month_this); - $ml = strftime("%Y", $lmo_month_this); - $mj = " ".$me[intval(strftime("%m", $lmo_month_this))]." ".strftime("%Y", $lmo_month_this); + $ma = date("mY", $lmo_month_prev); + $mc = date("mY", $lmo_month_next); + $md = date("F Y", $lmo_month_this); + $ml = date("Y", $lmo_month_this); + $mj = " ".$me[intval(date("m", $lmo_month_this))]." ".date("Y", $lmo_month_this); $dat1 = getdate(strtotime("1".$mj)); $erster = $dat1['wday']; } else { //Jahresanzeige - $ma = strftime("%Y", $lmo_month_prev); - $mc = strftime("%Y", $lmo_month_next); - $md = strftime("%Y", $lmo_month_this); - $mj = " ".strftime("%Y", $lmo_month_this); + $ma = date("Y", $lmo_month_prev); + $mc = date("Y", $lmo_month_next); + $md = date("Y", $lmo_month_this); + $mj = " ".date("Y", $lmo_month_this); } } if (strlen($cal) > 4) { //Monatsanzeige $lmo_arrays=32; - $lmo_daterule="%B %Y"; - $lmo_daterule2="%d"; + $lmo_daterule="F Y"; + $lmo_daterule2="d"; } else { //Jahresanzeige $lmo_arrays=13; - $lmo_daterule="%Y"; - $lmo_daterule2="%m"; + $lmo_daterule="Y"; + $lmo_daterule2="m"; } $lmo_stlink = array_pad(array(), $lmo_arrays, ''); @@ -109,8 +109,8 @@ for($i = 0; $i < $anzsp; $i++) { for($n = 0; $n < $modus[$j]; $n++) { - if (!empty($mterm[$j][$i][$n]) && strftime($lmo_daterule, $mterm[$j][$i][$n]) == $md) { //konkretes Spieldatum vorhanden - $a = intval(strftime($lmo_daterule2, $mterm[$j][$i][$n])); + if (!empty($mterm[$j][$i][$n]) && date($lmo_daterule, $mterm[$j][$i][$n]) == $md) { //konkretes Spieldatum vorhanden + $a = intval(date($lmo_daterule2, $mterm[$j][$i][$n])); if (($teama[$j][$i] != 0) && ($teamb[$j][$i] != 0)) { if (!empty($lmo_stlink_title[$a])) { $lmo_stlink_title[$a] = $lmo_stlink_title[$a].", "; @@ -141,17 +141,17 @@ } $z=array_filter($lmo_stlink_title,"filterZero"); - if (!empty($lmo_stdatum1) && empty($z) && strftime($lmo_daterule, $lmo_stdatum1) == $md) { //Nur Von... vorhanden - $a = intval(strftime($lmo_daterule2, $lmo_stdatum1)); + if (!empty($lmo_stdatum1) && empty($z) && date($lmo_daterule, $lmo_stdatum1) == $md) { //Nur Von... vorhanden + $a = intval(date($lmo_daterule2, $lmo_stdatum1)); $lmo_stlink_title[$a] = ($j+1).". ".$text[2]." (".$text[155].")"; if (!empty($lmo_stdatum2) && $lmo_stdatum2>$lmo_stdatum1) { //Von ... bis ... vorhanden - for($k = $a; $k <= intval(strftime($lmo_daterule2, $lmo_stdatum2)); $k++) { + for($k = $a; $k <= intval(date($lmo_daterule2, $lmo_stdatum2)); $k++) { $lmo_stlink_title[$k] = ($j+1).". ".$text[2]." (".$text[155].")"; } } } - if (!empty($lmo_stdatum2) && empty($z) && strftime($lmo_daterule, $lmo_stdatum2) == $md) { //Nur ...Bis vorhanden - $a = intval(strftime($lmo_daterule2, $lmo_stdatum2)); + if (!empty($lmo_stdatum2) && empty($z) && date($lmo_daterule, $lmo_stdatum2) == $md) { //Nur ...Bis vorhanden + $a = intval(date($lmo_daterule2, $lmo_stdatum2)); $lmo_stlink_title[$a] = ($j+1).". ".$text[2]." (".$text[155].")"; } diff --git a/lmo/lmo-openfile.php b/lmo/lmo-openfile.php index 10581a2..ae709e6 100644 --- a/lmo/lmo-openfile.php +++ b/lmo/lmo-openfile.php @@ -26,7 +26,7 @@ $sekt=""; $datei = file(PATH_TO_LMO.'/'.$dirliga.$file); if ($datei) { - $stand=strftime($defdateformat,filemtime(PATH_TO_LMO.'/'.$dirliga.$file)); + $stand=date($defdateformat,filemtime(PATH_TO_LMO.'/'.$dirliga.$file)); $lmtype=0; for($tt=0;$tt-1){$datum1[$op3]=strftime("%d.%m.%Y",$dummy);}else{$datum1[$op3]="";}*/ + if($dummy>-1){$datum1[$op3]=date("d.m.Y",$dummy);}else{$datum1[$op3]="";}*/ } if(!empty($datum2[$op3])){ $dat=explode(".",$datum2[$op3]); if (checkdate($dat[1],$dat[0],$dat[2])) { - $datum2[$op3]=strftime("%d.%m.%Y",mktime(0,0,0,$dat[1],$dat[0],$dat[2])); + $datum2[$op3]=date("d.m.Y",mktime(0,0,0,$dat[1],$dat[0],$dat[2])); } else { $datum2[$op3]=""; } /*$dummy=strtotime(substr($datum2[$op3],0,2)." ".$me[intval(substr($datum2[$op3],3,2))]." ".substr($datum2[$op3],6,4)); - if($dummy>-1){$datum2[$op3]=strftime("%d.%m.%Y",$dummy);}else{$datum2[$op3]="";}*/ + if($dummy>-1){$datum2[$op3]=date("d.m.Y",$dummy);}else{$datum2[$op3]="";}*/ } for($j=0;$j<=$anzteams;$j++){ if($teamm[$j]==""){ diff --git a/lmo/lmo-openfiledat.php b/lmo/lmo-openfiledat.php index d61cdc0..cffecc7 100644 --- a/lmo/lmo-openfiledat.php +++ b/lmo/lmo-openfiledat.php @@ -22,7 +22,7 @@ if (substr($file, -4) == ".l98") { $daten = array(); $sekt = ""; - $stand = strftime($defdateformat, filemtime($dirliga.$file)); + $stand = date($defdateformat, filemtime($dirliga.$file)); $datei = fopen($dirliga.$file, "rb"); while ($datei && !feof($datei)) { $zeile = fgets($datei, 10000); @@ -147,14 +147,14 @@ } $op1 = substr($dum[0], 0, 4); $op2 = substr($dum[0], 0, 5); - $op3 = substr($dum[0], 5)-1; - $op4 = substr($dum[1], 2)-1; + $op3 = intval(substr($dum[0], 5))-1; + $op4 = intval(substr($dum[1], 2))-1; $op5 = substr($dum[0], 4); - $op6 = substr($dum[1], 2, -1)-1; - $op7 = substr($dum[1], -1)-1; + $op6 = intval(substr($dum[1], 2, -1))-1; + $op7 = intval(substr($dum[1], -1))-1; $op8 = substr($dum[1], 0, 2); if ($op3 == $st-1) { - ////////////////////////////////////////////////// nur der benötigte Spieltag wird eingelesen + ////////////////////////////////////////////////// nur der ben�tigte Spieltag wird eingelesen if (($op2 == "Round") && ($dum[1] == "D1")) { $datum1[$op3] = $dum[2]; } @@ -162,7 +162,7 @@ if ($datum1[$op3] != "") { $dummy = strtotime(substr($datum1[$op3], 0, 2)." ".$me[intval(substr($datum1[$op3], 3, 2))]." ".substr($datum1[$op3], 6, 4)); if ($dummy > -1) { - $datum1[$op3] = strftime("%d.%m.%Y", $dummy); + $datum1[$op3] = date("d.m.Y", $dummy); } else { $datum1[$op3] = ""; } @@ -175,7 +175,7 @@ if ($datum2[$op3] != "") { $dummy = strtotime(substr($datum2[$op3], 0, 2)." ".$me[intval(substr($datum2[$op3], 3, 2))]." ".substr($datum2[$op3], 6, 4)); if ($dummy > -1) { - $datum2[$op3] = strftime("%d.%m.%Y", $dummy); + $datum2[$op3] = date("d.m.Y", $dummy); } else { $datum2[$op3] = ""; } diff --git a/lmo/lmo-openfilename.php b/lmo/lmo-openfilename.php index e100549..0be8696 100644 --- a/lmo/lmo-openfilename.php +++ b/lmo/lmo-openfilename.php @@ -25,7 +25,7 @@ $datei = file(PATH_TO_LMO.'/'.$dirliga.'/'.basename($file)); if ($datei) { - $stand=strftime($defdateformat,filemtime(PATH_TO_LMO.'/'.$dirliga.'/'.basename($file))); + $stand=date($defdateformat,filemtime(PATH_TO_LMO.'/'.$dirliga.'/'.basename($file))); $lmtype=0; for($tt=0;$tt0){$actual=$st;}else{$actual=$stx;} -if($lmtype==0){ - for($i1=0;$i1<$anzsp;$i1++){ - if ($goala[$actual-1][$i1]=="-1") $goala[$actual-1][$i1]="_"; - if ($goalb[$actual-1][$i1]=="-1") $goalb[$actual-1][$i1]="_"; - } - $endtab=$actual; - include(PATH_TO_LMO."/lmo-calctable.php"); - - for($i1=0;$i1<$anzsp;$i1++){ - if ($goala[$actual-1][$i1]=="_") $goala[$actual-1][$i1]="-1"; - if ($goalb[$actual-1][$i1]=="_") $goalb[$actual-1][$i1]="-1"; - } -} -$actual=$st; -$datumanz=$actual-1; -if($lmtype==0 && $st>0){ - isset($tab0) ? $table1=$tab0 : $table1=$tab1; - if (isset($table1)) { - $wmlfile= fopen(PATH_TO_LMO.'/'.$diroutput.basename($file)."-st.html","wb"); - ob_start(); -?> - - - - <?php echo $titel?> - - - - - - -

    - - $val) { - $i1=$key; - if(($teama[$st-1][$i1]>0) && ($teamb[$st-1][$i1]>0)){ - $heimteam=$teams[$teama[$actual-1][$i1]]; - $gastteam=$teams[$teamb[$actual-1][$i1]]; - $heimtore=applyFactor($goala[$actual-1][$i1],$goalfaktor); - $gasttore=applyFactor($goalb[$actual-1][$i1],$goalfaktor); - if ($gasttore<0) $gasttore="_"; - if ($heimtore<0) $heimtore="_"; - if (($anzteams-($anzst/2+1))!=0){ - $spielfreiaa[$i1]=$teama[$actual-1][$i1]; - $spielfreibb[$i1]=$teamb[$actual-1][$i1]; - } - if($mterm[$actual-1][$i1]>0){ - $dum1=strftime($datf, $mterm[$actual-1][$i1]); - } else { - $dum1=""; - } // Anstosszeit einblenden - ?> - - - - - - - - - - - - - -
    .
     - :/:
    -

    :    -

    - - - - - - - - - - - - - - - - - - - - - - - -
    - .
           
         - :  -   -    
    -

    -

    - - $val) { - $i1=$key; - if(($teama[$st][$i1]>0) && ($teamb[$st][$i1]>0)){ - $heimteam=$teams[$teama[$actual][$i1]]; - $gastteam=$teams[$teamb[$actual][$i1]]; - $heimtore=applyFactor($goala[$actual][$i1],$goalfaktor); - $gasttore=applyFactor($goalb[$actual][$i1],$goalfaktor); - if ($gasttore<0) $gasttore="_"; - if ($heimtore<0) $heimtore="_"; - if (($anzteams-($anzst/2+1))!=0){ - $spielfreiaa[$i1]=$teama[$actual][$i1]; - $spielfreibb[$i1]=$teamb[$actual][$i1]; - } - if($mterm[$actual][$i1]>0){ - $dum1=strftime($datf, $mterm[$actual][$i1]); - } else { - $dum1=" "; - } // Anstosszeit einblenden - ?> - - - - - - - - - - - - - -
    .
     - :/:
    -

    :    -

    - - - +0){$actual=$st;}else{$actual=$stx;} +if($lmtype==0){ + for($i1=0;$i1<$anzsp;$i1++){ + if ($goala[$actual-1][$i1]=="-1") $goala[$actual-1][$i1]="_"; + if ($goalb[$actual-1][$i1]=="-1") $goalb[$actual-1][$i1]="_"; + } + $endtab=$actual; + include(PATH_TO_LMO."/lmo-calctable.php"); + + for($i1=0;$i1<$anzsp;$i1++){ + if ($goala[$actual-1][$i1]=="_") $goala[$actual-1][$i1]="-1"; + if ($goalb[$actual-1][$i1]=="_") $goalb[$actual-1][$i1]="-1"; + } +} +$actual=$st; +$datumanz=$actual-1; +if($lmtype==0 && $st>0){ + isset($tab0) ? $table1=$tab0 : $table1=$tab1; + if (isset($table1)) { + $wmlfile= fopen(PATH_TO_LMO.'/'.$diroutput.basename($file)."-st.html","wb"); + ob_start(); +?> + + + + <?php echo $titel?> + + + + + + +

    + + $val) { + $i1=$key; + if(($teama[$st-1][$i1]>0) && ($teamb[$st-1][$i1]>0)){ + $heimteam=$teams[$teama[$actual-1][$i1]]; + $gastteam=$teams[$teamb[$actual-1][$i1]]; + $heimtore=applyFactor($goala[$actual-1][$i1],$goalfaktor); + $gasttore=applyFactor($goalb[$actual-1][$i1],$goalfaktor); + if ($gasttore<0) $gasttore="_"; + if ($heimtore<0) $heimtore="_"; + if (($anzteams-($anzst/2+1))!=0){ + $spielfreiaa[$i1]=$teama[$actual-1][$i1]; + $spielfreibb[$i1]=$teamb[$actual-1][$i1]; + } + if($mterm[$actual-1][$i1]>0){ + $dum1=date($datf, $mterm[$actual-1][$i1]); + } else { + $dum1=""; + } // Anstosszeit einblenden + ?> + + + + + + + + + + + + + +
    .
     - :/:
    +

    :    +

    + + + + + + + + + + + + + + + + + + + + + + + +
    - .
           
         + :  +   +    
    +

    +

    + + $val) { + $i1=$key; + if(($teama[$st][$i1]>0) && ($teamb[$st][$i1]>0)){ + $heimteam=$teams[$teama[$actual][$i1]]; + $gastteam=$teams[$teamb[$actual][$i1]]; + $heimtore=applyFactor($goala[$actual][$i1],$goalfaktor); + $gasttore=applyFactor($goalb[$actual][$i1],$goalfaktor); + if ($gasttore<0) $gasttore="_"; + if ($heimtore<0) $heimtore="_"; + if (($anzteams-($anzst/2+1))!=0){ + $spielfreiaa[$i1]=$teama[$actual][$i1]; + $spielfreibb[$i1]=$teamb[$actual][$i1]; + } + if($mterm[$actual][$i1]>0){ + $dum1=date($datf, $mterm[$actual][$i1]); + } else { + $dum1=" "; + } // Anstosszeit einblenden + ?> + + + + + + + + + + + + + +
    .
     - :/:
    +

    :    +

    + + + diff --git a/lmo/lmo-savehtml1.php b/lmo/lmo-savehtml1.php index 2f13d52..80b16bb 100644 --- a/lmo/lmo-savehtml1.php +++ b/lmo/lmo-savehtml1.php @@ -1,203 +1,203 @@ -0){$actual=$anzst;}else{$actual=$stx;} -if($lmtype==0){ - for($i1=0;$i1<$anzsp;$i1++){ - if ($goala[$actual-1][$i1]=="-1") $goala[$actual-1][$i1]="_"; - if ($goalb[$actual-1][$i1]=="-1") $goalb[$actual-1][$i1]="_"; - } - $endtab=$actual; - include_once(PATH_TO_LMO."/lmo-calctable.php"); - - for($i1=0;$i1<$anzsp;$i1++){ - if ($goala[$actual-1][$i1]=="_") $goala[$actual-1][$i1]="-1"; - if ($goalb[$actual-1][$i1]=="_") $goalb[$actual-1][$i1]="-1"; - } -} -if($lmtype==0){ - isset($tab0) ? $table1=$tab0 : $table1=$tab1; - if (isset($table1)) { - $wmlfile= fopen(PATH_TO_LMO.'/'.$diroutput.basename($file)."-sp.html","wb"); - ob_start(); -?> - - - - <?php echo $titel?> - - - - - -

    - - - - -
    - - - - $val) { - $i1=$key; - if(($teama[$y1-1][$i1]>0) && ($teamb[$y1-1][$i1]>0)){ - $heimteam=$teams[$teama[$y1-1][$i1]]; - $gastteam=$teams[$teamb[$y1-1][$i1]]; - $heimtore=applyFactor($goala[$y1-1][$i1],$goalfaktor); - $gasttore=applyFactor($goalb[$y1-1][$i1],$goalfaktor); - if ($gasttore<0) $gasttore="_"; - if ($heimtore<0) $heimtore="_"; - // * Spielfrei-Hack-Beginn1 - Autor: Bernd Hoyer - eMail: info@salzland-info.de - if (($anzteams-($anzst/2+1))!=0){ - $spielfreiaa[$i1]=$teama[$y1-1][$i1]; - $spielfreibb[$i1]=$teamb[$y1-1][$i1]; - } - // * Spielfrei-Hack-Ende1- Autor: Bernd Hoyer - eMail: info@salzland-info.de - if($mterm[$y1-1][$i1]>0){$dum1=strftime($datf, $mterm[$y1-1][$i1]);}else{$dum1="";} // Anstosszeit einblenden -?> - - - - - - - - - - - - - - - - - - -
    .
     - :/:
    - -

    :    -

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
           
         -:  -   -    
    - - - - +0){$actual=$anzst;}else{$actual=$stx;} +if($lmtype==0){ + for($i1=0;$i1<$anzsp;$i1++){ + if ($goala[$actual-1][$i1]=="-1") $goala[$actual-1][$i1]="_"; + if ($goalb[$actual-1][$i1]=="-1") $goalb[$actual-1][$i1]="_"; + } + $endtab=$actual; + include_once(PATH_TO_LMO."/lmo-calctable.php"); + + for($i1=0;$i1<$anzsp;$i1++){ + if ($goala[$actual-1][$i1]=="_") $goala[$actual-1][$i1]="-1"; + if ($goalb[$actual-1][$i1]=="_") $goalb[$actual-1][$i1]="-1"; + } +} +if($lmtype==0){ + isset($tab0) ? $table1=$tab0 : $table1=$tab1; + if (isset($table1)) { + $wmlfile= fopen(PATH_TO_LMO.'/'.$diroutput.basename($file)."-sp.html","wb"); + ob_start(); +?> + + + + <?php echo $titel?> + + + + + +

    + + + + +
    + + + + $val) { + $i1=$key; + if(($teama[$y1-1][$i1]>0) && ($teamb[$y1-1][$i1]>0)){ + $heimteam=$teams[$teama[$y1-1][$i1]]; + $gastteam=$teams[$teamb[$y1-1][$i1]]; + $heimtore=applyFactor($goala[$y1-1][$i1],$goalfaktor); + $gasttore=applyFactor($goalb[$y1-1][$i1],$goalfaktor); + if ($gasttore<0) $gasttore="_"; + if ($heimtore<0) $heimtore="_"; + // * Spielfrei-Hack-Beginn1 - Autor: Bernd Hoyer - eMail: info@salzland-info.de + if (($anzteams-($anzst/2+1))!=0){ + $spielfreiaa[$i1]=$teama[$y1-1][$i1]; + $spielfreibb[$i1]=$teamb[$y1-1][$i1]; + } + // * Spielfrei-Hack-Ende1- Autor: Bernd Hoyer - eMail: info@salzland-info.de + if($mterm[$y1-1][$i1]>0){$dum1=date($datf, $mterm[$y1-1][$i1]);}else{$dum1="";} // Anstosszeit einblenden +?> + + + + + + + + + + + + + + + + + + +
    .
     - :/:
    + +

    :    +

    + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
           
         +:  +   +    
    + + + + diff --git a/lmo/lmo-showcross.php b/lmo/lmo-showcross.php index 67cb06e..01d825c 100644 --- a/lmo/lmo-showcross.php +++ b/lmo/lmo-showcross.php @@ -100,8 +100,8 @@ echo "
    "; } if ($mterm[$b][$a] > 0) { - $lmo_kreuz_longtime = ", ".strftime("%a. %d.%m.%Y %H:%M", $mterm[$b][$a]); - $lmo_kreuz_shorttime = strftime("%d.%m.", $mterm[$b][$a]); + $lmo_kreuz_longtime = ", ".date("D. d.m.Y H:i", $mterm[$b][$a]); + $lmo_kreuz_shorttime = date("d.m.", $mterm[$b][$a]); } else { $lmo_kreuz_longtime = ""; $lmo_kreuz_shorttime = ""; diff --git a/lmo/lmo-showkoprogram.php b/lmo/lmo-showkoprogram.php index 0c031ec..34a372a 100644 --- a/lmo/lmo-showkoprogram.php +++ b/lmo/lmo-showkoprogram.php @@ -128,7 +128,7 @@ for($n = 0; $n < $modus[$j]; $n++) { if ($datm == 1) { if ($mterm[$j][$i][$n] > 0) { - $dumn1 = ""; + $dumn1 = ""; $dumn2 = ""; } else { $dumn1 = ""; diff --git a/lmo/lmo-showkoresults.php b/lmo/lmo-showkoresults.php index 446bbc6..388ca31 100644 --- a/lmo/lmo-showkoresults.php +++ b/lmo/lmo-showkoresults.php @@ -83,8 +83,8 @@ } if($datm==1){ if($mterm[$st-1][$i][$n]>0){ - $dum1=strftime($datf, $mterm[$st-1][$i][$n]); - $dum2=strftime("%d.%m.%y", $mterm[$st-1][$i][$n]); + $dum1 = date($datf, $mterm[$st-1][$i][$n]); + $dum2 = date("d.m.y", $mterm[$st-1][$i][$n]); } else { $dum1=$dum2=""; }?> diff --git a/lmo/lmo-showprogram.php b/lmo/lmo-showprogram.php index 1e3be58..df5d95e 100644 --- a/lmo/lmo-showprogram.php +++ b/lmo/lmo-showprogram.php @@ -52,8 +52,8 @@
    0) { - $dum1=strftime($datf, $mterm[$j][$i]); - $dum2 = strftime("%d.%m.%y", $mterm[$j][$i]); + $dum1 = date($datf, $mterm[$j][$i]); + $dum2 = date("d.m.y", $mterm[$j][$i]); } else { $dum1=$dum2=""; }?> diff --git a/lmo/lmo-showresults.php b/lmo/lmo-showresults.php index 6d92f33..fb97005 100644 --- a/lmo/lmo-showresults.php +++ b/lmo/lmo-showresults.php @@ -44,8 +44,8 @@
    0) { - $dum1 = strftime($datf, $mterm[$st-1][$i]); - $dum2 = strftime("%d.%m.%y", $mterm[$st-1][$i]); + $dum1 = date($datf, $mterm[$st-1][$i]); + $dum2 = date("d.m.y", $mterm[$st-1][$i]); } else { $dum1 = $dum2 = ""; }?>