A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: geshi/geshi.php

Line Number: 4605

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4605
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Untitled - Stikked
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. AdlibRegister("_uhrrefresh", 250)
  4. #include <ButtonConstants.au3>
  5. #include <DateTimeConstants.au3>
  6. #include <GUIConstantsEx.au3>
  7. #include <Date.au3>
  8. #include <GUIConstantsEx.au3>
  9. #include <ProgressConstants.au3>
  10. #include <StaticConstants.au3>
  11. #include <WindowsConstants.au3>
  12. #include <Sound.au3>
  13. #include <Array.au3>
  14. ;Global start
  15. Global $alarm = False
  16. Global $Alarmton
  17. Global $max_zeit_zum_alarm_in_sec
  18. Global $gelaufene_zeit
  19. Global $altsec = 99
  20. Global $Alarmton
  21. ;Global ende
  22. Opt("GUIOnEventMode", 1)
  23. Opt('TrayAutoPause', 0)
  24. $titel = "Prozent Uhr 0.2 - by Douky"
  25. $Form = GUICreate($titel, 309, 399, 228, 196)
  26. GUISetOnEvent($GUI_EVENT_CLOSE, '_End')
  27. $Group_zeit = GUICtrlCreateGroup("Group_zeit", 8, 128, 289, 161)
  28. GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
  29. $Progress_Minuten = GUICtrlCreateProgress(12, 266, 278, 17)
  30. $Progress_Stunden = GUICtrlCreateProgress(12, 218, 278, 17)
  31. $Progress_Tag = GUICtrlCreateProgress(12, 170, 278, 17)
  32. $Label_Minuten = GUICtrlCreateLabel("Sekunde", 14, 241, 272, 20)
  33. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  34. $Label_Stunden = GUICtrlCreateLabel("Minute", 14, 194, 277, 20)
  35. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  36. $Label_Tag = GUICtrlCreateLabel("Stunde", 13, 145, 272, 24)
  37. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  38. GUICtrlCreateGroup("", -99, -99, 1, 1)
  39. $Group_datum = GUICtrlCreateGroup("Group_datum", 8, 0, 289, 121)
  40. GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
  41. $Progress_Monat = GUICtrlCreateProgress(14, 91, 278, 17)
  42. $Label_Monat = GUICtrlCreateLabel("Monat", 15, 68, 272, 20)
  43. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  44. $Progress_Jahr = GUICtrlCreateProgress(13, 45, 278, 17)
  45. $Label_Jahr = GUICtrlCreateLabel("Jahr", 14, 22, 280, 20)
  46. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  47. GUICtrlCreateGroup("", -99, -99, 1, 1)
  48. $Group_pizza = GUICtrlCreateGroup("Zeit bis zum Alarm: 00:00:00", 8, 296, 289, 97)
  49. GUICtrlSetFont(-1, 8, 800, 0, "Comic Sans MS")
  50. $Progress_Pizza = GUICtrlCreateProgress(12, 338, 278, 17)
  51. $Label_Pizza = GUICtrlCreateLabel("Alarm:" & @TAB & "(0.0%)", 14, 310, 276, 24)
  52. GUICtrlSetFont(-1, 14, 800, 0, "Comic Sans MS")
  53. $Button_pizzatimer = GUICtrlCreateButton("Aktivieren", 13, 362, 126, 25)
  54. GUICtrlSetOnEvent(-1, "_alarm_on_off")
  55. $Date1 = GUICtrlCreateDate("2011/02/14 22:56:6", 208, 362, 82, 24, BitOR($DTS_UPDOWN, $DTS_TIMEFORMAT))
  56. $Button_Weckeroff = GUICtrlCreateButton("Stop", 140, 362, 35, 25)
  57. GUICtrlSetOnEvent(-1, "_stop_sound")
  58. $Button_Config = GUICtrlCreateButton("MP3", 176, 362, 30, 25)
  59. GUICtrlSetOnEvent(-1, "_save")
  60. GUICtrlCreateGroup("", -99, -99, 1, 1)
  61. #EndRegion ### END Koda GUI section ###
  62. ;WinSetTrans($titel, "", 125)
  63. ControlDisable($titel, "", $Button_Weckeroff)
  64. GUICtrlSetData($Date1,@YEAR & "/" & @MON & "/" & @MDAY & " 00:00:00")
  65. Dim $keyname = "Alarmpfad"
  66.                 If @CPUArch = "X86" Then
  67.                         $regpfad = "HKEY_CURRENT_USER\Software\Prozentuhr"
  68.                 Else
  69.                         $regpfad = "HKLM64\SOFTWARE\Prozentuhr"
  70.                 EndIf
  71.         Sleep(250)
  72.  
  73. Func _save()
  74.         $Alarm_pfad = FileOpenDialog("Alarm Mp3 auswählen", "C:\", "Soundfile (*.mp3;*.wav)", 1 + 3)
  75.         If Not @error Then
  76.                 RegWrite($regpfad, $keyname, "REG_SZ", $Alarm_pfad)
  77.         EndIf
  78. EndFunc   ;==>_save
  79.  
  80.  
  81. Func _uhrrefresh()
  82.                 $Jahr_in_Sekunden = 31622400
  83.         Else
  84.                 $Jahr_in_Sekunden = 31536000
  85.         EndIf
  86.         _GUICtrlSetData($Group_zeit, "Es ist " & @HOUR & ":" & @MIN & ":" & @SEC & " Uhr")
  87.         _GUICtrlSetData($Group_datum, "Heute ist der " & @MDAY & "." & @MON & "." & @YEAR)
  88.  
  89.         $Jahrprozent = 100 / $Jahr_in_Sekunden * _DateDiff('s', @YEAR & "/01/01 00:00:00", _NowCalc())
  90.         _GUICtrlSetData($Progress_Jahr, $Jahrprozent)
  91.         _GUICtrlSetData($Label_Jahr, "Jahr" & @TAB & "(" & StringFormat("%.5f", $Jahrprozent) & '%' & ")")
  92.  
  93.         $Monatprozent = 100 / (_DateDaysInMonth(@YEAR, @MON) * 24 * 60 * 60) * _DateDiff('s', @YEAR & "/" & @MON & "/01 00:00:00", _NowCalc())
  94.         _GUICtrlSetData($Progress_Monat, $Monatprozent)
  95.         _GUICtrlSetData($Label_Monat, "Monat" & @TAB & "(" & StringFormat("%.5f", $Monatprozent) & '%' & ")")
  96.  
  97.         $Tagprozent = 100 / 86400 * (@HOUR * 60 * 60 + @MIN * 60 + @SEC)
  98.         _GUICtrlSetData($Progress_Tag, $Tagprozent)
  99.         _GUICtrlSetData($Label_Tag, "Tag" & @TAB & "(" & StringFormat("%.5f", $Tagprozent) & '%' & ")")
  100.  
  101.         ;Stunde
  102.         $Stundenprozent = 100 / 3600 * (@MIN * 60 + @SEC)
  103.         _GUICtrlSetData($Progress_Stunden, $Stundenprozent)
  104.         _GUICtrlSetData($Label_Stunden, "Stunde" & @TAB & "(" & StringFormat("%.3f", $Stundenprozent) & '%' & ")")
  105.         ;Stunde Ende
  106.  
  107.         ;Minuten
  108.         $Minutenprozent = 100 / 60 * @SEC
  109.         _GUICtrlSetData($Progress_Minuten, $Minutenprozent)
  110.         _GUICtrlSetData($Label_Minuten, "Minute" & @TAB & "(" & StringFormat("%.0f", $Minutenprozent) & '%' & ")")
  111.         ;Minuten Ende
  112.         If $alarm = True Then ControlDisable($titel, "", $Date1)
  113.         If $alarm = False Then ControlEnable($titel, "", $Date1)
  114.         If _SoundStatus($Alarmton) = "playing" And $Alarmton <> "" Then
  115.                 ControlEnable($titel, "", $Button_Weckeroff)
  116.                 ControlDisable($titel, "", $Button_Config)
  117.         Else
  118.                 ControlEnable($titel, "", $Button_Config)
  119.                 ControlDisable($titel, "", $Button_Weckeroff)
  120.         EndIf
  121. EndFunc   ;==>_uhrrefresh
  122.  
  123. Func _GUICtrlSetData($cID, $vData)
  124.         If GUICtrlRead($cID) <> $vData Then GUICtrlSetData($cID, $vData)
  125. EndFunc   ;==>_GUICtrlSetData
  126.  
  127. Func _1_sec_hochzaehlen($neusec)
  128.         If $neusec <> $altsec Then
  129.                 $altsec = @SEC
  130.                 $gelaufene_zeit = _DateAdd('s', 1, $gelaufene_zeit)
  131.         EndIf
  132. EndFunc   ;==>_1_sec_hochzaehlen
  133. Func _stop_sound()
  134.         If _SoundStatus($Alarmton) = "playing" Then _SoundStop($Alarmton)
  135. EndFunc   ;==>_stop_sound
  136.  
  137. Func _alarm_on_off()
  138.  
  139.  
  140.  
  141.         If RegRead($regpfad, $keyname) <> "" Then
  142.                 $Alarm_pfad = RegRead($regpfad, $keyname)
  143.  
  144.                 If $alarm = False Then
  145.                         If _SoundStatus($Alarmton) = "playing" Then _SoundStop($Alarmton)
  146.                         $Alarmton = _SoundOpen($Alarm_pfad)
  147.                         $max_zeit_zum_alarm_in_sec = _DateDiff("s", _NowCalc(), @YEAR & "/" & @MON & "/" & @MDAY & " " & GUICtrlRead($Date1))
  148.                         If $max_zeit_zum_alarm_in_sec > 0 Then
  149.                                 $alarm = True
  150.                                 _GUICtrlSetData($Button_pizzatimer, "Deaktivieren")
  151.                                 AdlibRegister("_alarm_timer", 250)
  152.                                 $gelaufene_zeit = _DateAdd('s', -1, @YEAR & "/" & @MON & "/" & @MDAY & " " & "00:00:00")
  153.                         Else
  154.                                 MsgBox(16, "Error", "Bitte wählen sie einen Zeitpunkt in der Zukunft.")
  155.                         EndIf
  156.                 Else
  157.                         If _SoundStatus($Alarmton) = "playing" Then _SoundStop($Alarmton)
  158.                         $alarm = False
  159.                         _GUICtrlSetData($Button_pizzatimer, "Aktivieren")
  160.                         _SoundClose($Alarmton)
  161.                         adlibunregister("_alarm_timer")
  162.                 EndIf
  163.         Else
  164.                 MsgBox(16, "Error", "Bitte wählen sie erst einen Alarmton aus.")
  165.         EndIf;### Tidy Error -> "endfunc" is closing previous "if" on line 147
  166. EndFunc   ;==>_alarm_on_off
  167.  
  168. Func _alarm_timer()
  169.         _GUICtrlSetData($Button_pizzatimer, "Stopp")
  170.         $zeit_zum_alarm_in_sec = _DateDiff("s", _NowCalc(), @YEAR & "/" & @MON & "/" & @MDAY & " " & GUICtrlRead($Date1))
  171.         ;_GUICtrlSetData($Progress_Minuten, $Minutenprozent)
  172.         Local $Alarm_restzeit, $iHours, $iMins, $iSecs
  173.         _TicksToTime($zeit_zum_alarm_in_sec * 1000, $iHours, $iMins, $iSecs)
  174.         $iHours = StringFormat("%02d", $iHours)
  175.         $iMins = StringFormat("%02d", $iMins)
  176.         $iSecs = StringFormat("%02d", $iSecs)
  177.         $Alarm_restzeit = $iHours & ":" & $iMins & ":" & $iSecs
  178.  
  179.         _1_sec_hochzaehlen(@SEC)
  180.  
  181.         $Alarmprozent = 100 / $max_zeit_zum_alarm_in_sec * _DateDiff('s', @YEAR & "/" & @MON & "/" & @MDAY & " " & "00:00:00", $gelaufene_zeit)
  182.         _GUICtrlSetData($Progress_Pizza, $Alarmprozent)
  183.         _GUICtrlSetData($Label_Pizza, "Alarm:" & @TAB & "(" & StringFormat("%.5f", $Alarmprozent) & '%' & ")")
  184.         _GUICtrlSetData($Group_pizza, "Zeit bis zum Alarm: " & $Alarm_restzeit)
  185.  
  186.         If $iHours = 0 And $iMins = 0 And $iSecs = 0 Then ;Alarm
  187.                 _SoundPlay($Alarmton)
  188.                 _GUICtrlSetData($Progress_Pizza, 100)
  189.                 _GUICtrlSetData($Label_Pizza, "Alarm:" & @TAB & "(100.0%)")
  190.                 $alarm = False
  191.                 adlibunregister("_alarm_timer")
  192.                 _GUICtrlSetData($Button_pizzatimer, "Aktivieren")
  193.         EndIf
  194.  
  195. EndFunc   ;==>_alarm_timer
  196.  
  197. Func _End()
  198.         _SoundClose($Alarmton)
  199.         Exit
  200. EndFunc   ;==>_End