diff --git a/icalclient.php b/icalclient.php
index 0ac31f41a..ee3bd13fd 100644
--- a/icalclient.php
+++ b/icalclient.php
@@ -142,9 +142,9 @@
if ( ( empty( $_SERVER['PHP_AUTH_USER'] )
or empty( $_SERVER['PHP_AUTH_PW'] ) )
and isset( $_REQUEST['BAD_HOSTING'] )
- and preg_match( '/Basic\s+(.*)$/i', $_REQUEST['BAD_HOSTING'], $matc ) )
+ AND preg_match ( '/Basic\s+(.*)$/i', $_REQUEST['BAD_HOSTING'], $match ) )
list( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) =
- explode( ':', base64_decode( $matc[1] ) );
+ explode ( ':', base64_decode ( $match[1] ) );
unset( $_ENV['REMOTE_USER'] );
diff --git a/includes/classes/WebCalendar.php b/includes/classes/WebCalendar.php
index 6514ae2c1..2a548cb03 100644
--- a/includes/classes/WebCalendar.php
+++ b/includes/classes/WebCalendar.php
@@ -575,10 +575,10 @@ function _initValidate() {
// Invalid session cookie.
$session_not_found = true;
} else {
- $cooie_check = explode('|', decode_string($encoded_login));
+ $cookie_check = explode('|', decode_string($encoded_login));
// First time after switching to PHP8 you may have
// incompatible cookies here.
- if ( empty($cooie_check[0]) || empty($cooie_check[1]))
+ if ( empty($cookie_check[0]) || empty($cookie_check[1]))
$session_not_found = true;
}
if ( ! $session_not_found ) {
@@ -784,8 +784,7 @@ function _initConnect() {
$lastname = $login_lastname;
$fullname = $login_fullname;
$is_admin = ( $login_is_admin == 'Y' );
- $is_nonuser = ( ! empty ( $GLOBALS['login_is_nonuser'] )
- && $GLOBALS['login_is_nonuser'] );
+ $is_nonuser = ! empty ( $GLOBALS['login_is_nonuser'] );
$user_email = $login_email;
} else {
// Invalid login.
diff --git a/includes/classes/hKit/hkit.class.php b/includes/classes/hKit/hkit.class.php
index 78c58d4dd..08035c98f 100644
--- a/includes/classes/hKit/hkit.class.php
+++ b/includes/classes/hKit/hkit.class.php
@@ -1,7 +1,8 @@
\ No newline at end of file
+?>
diff --git a/includes/css/styles.php b/includes/css/styles.php
index 82096d82e..693f50eb4 100644
--- a/includes/css/styles.php
+++ b/includes/css/styles.php
@@ -18,7 +18,7 @@
* while its declaration is 'color: red;'.
* Each declaration has two parts: 'property' & 'value'.
*
- * In the example above, there is only one declaraion ("color: red;").
+ * In the example above, there is only one declaration ("color: red;").
* For that declaration, the PROPERTY is "color" and the VALUE is "red".
*
* NOTE: Each property must be followed by a colon (:),
diff --git a/includes/functions.php b/includes/functions.php
index 82eaf8c03..cd0caa865 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -249,7 +249,7 @@ function build_entry_label ( $event, $popupid,
* @param string $time Input time in HHMMSS format
* @param bool $round_down Should we change 1100 to 1059?
* (This will make sure a 10AM-100AM appointment just
- * shows up in the 10AM slow and not in the 11AM slot
+ * shows up in the 10AM slot and not in the 11AM slot
* also.)
*
* @return int The time slot index.
@@ -1633,7 +1633,7 @@ function display_unapproved_events ( $user ) {
if ( $row && $row[0] > 0 )
$ret .= ( $MENU_ENABLED == 'N'
? '
' . str_replace ( 'XXX', $row[0],
translate ( 'You have XXX unapproved entries' ) ) . "\n"
: // Return something that won't display in bottom menu
@@ -4117,7 +4117,7 @@ function load_nonuser_preferences ( $nonuser ) {
}
/**
- * Returns a custom header, stylesheet or tailer.
+ * Returns a custom header, stylesheet or trailer.
*
* The data will be loaded from the webcal_user_template table.
* If the global variable $ALLOW_EXTERNAL_HEADER is set to 'Y',
@@ -4632,7 +4632,7 @@ function print_color_input_html ($varname, $title, $varval = '', $id='', $tag='d
}
return '<' . $tag . ' class="form-inline">' .
- (empty($title) ? '' : ('
')) .
+ (empty($title) ? '' : ('
')) .
'
' . $tag . '>';
diff --git a/includes/js/popups.js b/includes/js/popups.js
index 8c35070c2..39945343b 100644
--- a/includes/js/popups.js
+++ b/includes/js/popups.js
@@ -156,7 +156,7 @@ if( typeof document.getElementsBySelector == 'undefined' ) {
return ( e.getAttribute( attrName ) == attrValue );
};
break;
- case '~': // Match one of space seperated words.
+ case '~': // Match one of space separated words.
checkFunction = function( e ) {
return ( e.getAttribute( attrName ).match( new RegExp( '\\b'+attrValue+'\\b' ) ) );
};
diff --git a/includes/js/v_h_scrolls.js b/includes/js/v_h_scrolls.js
index 72d301142..2f21065b2 100644
--- a/includes/js/v_h_scrolls.js
+++ b/includes/js/v_h_scrolls.js
@@ -1,4 +1,4 @@
-/* This function needs to be seperate for each page that has scrollers.
+/* This function needs to be separate for each page that has scrollers.
function start() {
// Code each vertical scroller as follows:
// startScroll( 'id of scroller div', 'scroll content' );
diff --git a/includes/xcal.php b/includes/xcal.php
index e423785c9..17633eb30 100644
--- a/includes/xcal.php
+++ b/includes/xcal.php
@@ -2208,7 +2208,7 @@ function parse_ical ( $cal_file, $source = 'file' ) {
$event[$substate] = $match[1];
} elseif ( preg_match ( '/^EXDATE.*:(.+)$/i', $buff, $match ) ) {
$substate = 'exdate';
- // allows multiple ocurrances of EXDATE to be processed
+ // allows multiple occurrences of EXDATE to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $match[1];
else
@@ -2216,7 +2216,7 @@ function parse_ical ( $cal_file, $source = 'file' ) {
} elseif ( preg_match ( '/^RDATE.*:(.+)$/i', $buff, $match ) ) {
$substate = 'rdate';
- // allows multiple ocurrances of RDATE to be processed
+ // allows multiple occurrences of RDATE to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $match[1];
else
@@ -2224,7 +2224,7 @@ function parse_ical ( $cal_file, $source = 'file' ) {
} elseif ( preg_match ( '/^CATEGORIES.*:(.+)$/i', $buff, $match ) ) {
$substate = 'categories';
- // allows multiple ocurrances of CATEGORIES to be processed
+ // allows multiple occurrences of CATEGORIES to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $match[1];
else
@@ -2429,7 +2429,7 @@ function parse_hcal ( $hcal_array ) {
$event[$substate] = $value;
} elseif ( $key == 'EXDATE' ) {
$substate = 'exdate';
- // allows multiple ocurrances of EXDATE to be processed
+ // allows multiple occurrences of EXDATE to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $value;
else
@@ -2437,7 +2437,7 @@ function parse_hcal ( $hcal_array ) {
} elseif ( $key == 'RDATE' ) {
$substate = 'rdate';
- // allows multiple ocurrances of RDATE to be processed
+ // allows multiple occurrences of RDATE to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $value;
else
@@ -2445,7 +2445,7 @@ function parse_hcal ( $hcal_array ) {
} elseif ( $key == 'CATEGORIES' ) {
$substate = 'categories';
- // allows multiple ocurrances of CATEGORIES to be processed
+ // allows multiple occurrences of CATEGORIES to be processed
if ( isset ( $event[$substate] ) )
$event[$substate] .= ',' . $value;
else
diff --git a/install/install_adminuser.php b/install/install_adminuser.php
index 7adcb209b..d60a68045 100644
--- a/install/install_adminuser.php
+++ b/install/install_adminuser.php
@@ -1,6 +1,6 @@
diff --git a/install/sql/tables-mysql.sql b/install/sql/tables-mysql.sql
index 8d370c0e6..ab9724d25 100644
--- a/install/sql/tables-mysql.sql
+++ b/install/sql/tables-mysql.sql
@@ -93,7 +93,7 @@ CREATE TABLE webcal_entry (
cal_due_date INT DEFAULT NULL,
/* Task due time */
cal_due_time INT DEFAULT NULL,
- /* event priority: 1=Low, 2=Med, 3=High */
+ /* event priority: 1=High, 5=Med, 9=Low */
cal_priority INT DEFAULT 5,
/* 'E' = Event, 'M' = Repeating event, 'T' = Task */
cal_type CHAR(1) DEFAULT 'E',
diff --git a/layers_ajax.php b/layers_ajax.php
index 57db7ec96..9bc75d1db 100644
--- a/layers_ajax.php
+++ b/layers_ajax.php
@@ -28,12 +28,10 @@
$action = getValue ( 'action' );
$public = getValue ( 'public' );
-
-$sendPlainText = false;
$format = getValue ( 'format' );
-if ( ! empty ( $format ) &&
+
+$sendPlainText = ( ! empty ( $format ) &&
( $format == 'text' || $format == 'plain' ) );
-$sendPlainText = true;
$error = '';
diff --git a/purge.php b/purge.php
index b6f2b5d89..53510b3b0 100644
--- a/purge.php
+++ b/purge.php
@@ -96,7 +96,7 @@
$M_ids = get_ids ( 'SELECT DISTINCT(we.cal_id) FROM webcal_entry we,
webcal_entry_user weu, webcal_entry_repeats wer
WHERE we.cal_type = \'M\'
- AND we.cal_id = wer.cal_id AND we.cal_id = wer.cal_id '
+ AND we.cal_id = wer.cal_id AND weu.cal_id = wer.cal_id '
. "AND cal_end IS NOT NULL AND cal_end < '$end_date' $tail",
$ALL );
$ids = array_merge ( $E_ids, $M_ids );
diff --git a/remotecal_mgmt.php b/remotecal_mgmt.php
index 781694cad..b68c7e8b7 100644
--- a/remotecal_mgmt.php
+++ b/remotecal_mgmt.php
@@ -109,7 +109,7 @@
- ! A problem has been occurred while submitting your data.
+ ! A problem has occurred while submitting your data.