[Formatted code and update for PHP > 8.1 Tijmen de Mes **20241120094918 Ignore-this: 6def641037ec77a40eda52a2105a3842fc3db1592d7f25c8f65a20964521a0fdbe52b30e4947aec8 ] hunk ./library/sip_settings.php 6952 - $chapter=sprintf(_("Do Not Disturb")); + $chapter = sprintf(_("Do Not Disturb")); hunk ./library/sip_settings.php 6961 - print " -
- "; - - print " -
-
-

"; + print <<< END + +

+
+

+END hunk ./library/sip_settings.php 6969 - print "

-

"; + print "

"; hunk ./library/sip_settings.php 6971 - print "

"; - print "

"; + print "

"; hunk ./library/sip_settings.php 6973 - $timestamp=time(); - $LocalTime=getLocalTime($this->timezone, $timestamp); + $timestamp = time(); + $LocalTime = getLocalTime($this->timezone, $timestamp); hunk ./library/sip_settings.php 6977 - print " -

-
- "; + print "

"; hunk ./library/sip_settings.php 6992 - $class_e='error'; + $class_e = 'error'; hunk ./library/sip_settings.php 6994 - $class_e=''; + $class_e = ''; hunk ./library/sip_settings.php 7014 - $chapter=sprintf(_("Rules")); + $chapter = sprintf(_("Rules")); hunk ./library/sip_settings.php 7017 - print " -
- "; - - print ""; - print " - -
- "; + print <<< END +
+ + + +
+END hunk ./library/sip_settings.php 7030 - printf(' + printf( + ' hunk ./library/sip_settings.php 7033 - var minutes = %s; - ID=window.setTimeout("update();", 1000*60); - function update() { - minutes--; - document.sipsettings.minutes.value = minutes; - ID=window.setTimeout("update();",1000*60); - } - + var minutes = %s; + ID=window.setTimeout("update();", 1000*60); + function update() { + minutes--; + document.sipsettings.minutes.value = minutes; + ID=window.setTimeout("update();",1000*60); + } hunk ./library/sip_settings.php 7041 - ', $this->acceptRules['temporary']['duration']); - - print " acceptRules['temporary']['duration']; - print "\" disabled=true>"; - print " acceptRules['temporary']['duration']; - print "\"> "; - } else { - print " "; - print _("Minute(s)"); - print ""; - } + ', + $this->acceptRules['temporary']['duration'] + ); + + print " acceptRules['temporary']['duration']; + print "\" disabled=true>"; + print " acceptRules['temporary']['duration']; + print "\"> "; + } else { + print " "; + print _("Minute(s)"); + print ""; + } hunk ./library/sip_settings.php 7077 - $_name="radio_temporary"; - - $_checked_everybody=""; - $_checked_nobody=""; - $_checked_groups=""; - - if (is_array($this->acceptRules['temporary']['groups']) &&in_array("everybody", $this->acceptRules['temporary']['groups'])) { + $_name = "radio_temporary"; + + $_checked_everybody = ""; + $_checked_nobody = ""; + $_checked_groups = ""; + + if (is_array($this->acceptRules['temporary']['groups']) && in_array("everybody", $this->acceptRules['temporary']['groups'])) { hunk ./library/sip_settings.php 7106 - $c=count($this->acceptRules['groups']); + $c = count($this->acceptRules['groups']); hunk ./library/sip_settings.php 7109 - $class_groups="checked_groups"; + $class_groups = "checked_groups"; hunk ./library/sip_settings.php 7111 - $class_groups="note"; + $class_groups = "note"; hunk ./library/sip_settings.php 7116 - if (count($this->acceptRules['groups'])>2) { - - printf("", $_name, $_checked_groups); + if (count($this->acceptRules['groups']) > 2) { + printf( + "", + $_name, + $_checked_groups + ); hunk ./library/sip_settings.php 7129 - if (in_array($this->acceptRules['groups'][$_group], $this->acceptRules['temporary']['groups'])) { - $_checked="checked"; + if (is_array($this->acceptRules['temporary']['groups']) + && in_array($this->acceptRules['groups'][$_group], $this->acceptRules['temporary']['groups']) + ) { + $_checked = "checked"; hunk ./library/sip_settings.php 7134 - $_checked=""; + $_checked = ""; hunk ./library/sip_settings.php 7137 - $_name="groups_temporary[]"; - printf(" %s\n", - $_name, - $this->acceptRules['groups'][$_group], - $_checked, - $this->PhonebookGroups[$this->acceptRules['groups'][$_group]] + $_name = "groups_temporary[]"; + printf( + " %s\n", + $_name, + $this->acceptRules['groups'][$_group], + $_checked, + $this->PhonebookGroups[$this->acceptRules['groups'][$_group]] hunk ./library/sip_settings.php 7167 - hunk ./library/sip_settings.php 7298 - printf(" %s ", - $_name, - $this->acceptRules['groups'][$_group], - $profile, - $_checked, - $this->PhonebookGroups[$this->acceptRules['groups'][$_group]] + printf( + " %s ", + $_name, + $this->acceptRules['groups'][$_group], + $profile, + $_checked, + $this->PhonebookGroups[$this->acceptRules['groups'][$_group]]