Skip to content

Commit

Permalink
Removed closing PHP tags (?>) at the ends of files as they are unnece…
Browse files Browse the repository at this point in the history
…ssary and can cause problems with unexpected output (eg see SF Bugs #288)

git-svn-id: http://svn.code.sf.net/p/mrbs/code/mrbs/trunk@2784 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
  • Loading branch information
cimorrison committed Nov 21, 2013
1 parent 30f04ad commit 58b8aae
Show file tree
Hide file tree
Showing 125 changed files with 44 additions and 129 deletions.
1 change: 0 additions & 1 deletion convert_db_to_utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,3 @@ function convert_one_db($db)
} // end of if ($alterdatabasecharset)
} // end of function convert_one_db()

?>
1 change: 0 additions & 1 deletion testdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@
}
}

?>
1 change: 0 additions & 1 deletion web/Blowfish.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,3 @@ function setKey($key)

}

?>
1 change: 0 additions & 1 deletion web/Blowfish/DefaultKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,3 @@ function Crypt_Blowfish_DefaultKey()

}

?>
2 changes: 1 addition & 1 deletion web/File/Passwd.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,4 @@ function staticAuth($type, $file, $user, $pass, $opt = '')
return call_user_func($func, $file, $user, $pass, $opt);
}
}
?>

1 change: 0 additions & 1 deletion web/File/Passwd/Authbasic.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,3 @@ function generatePassword($pass, $mode = FILE_PASSWD_DES, $salt = null)
return File_Passwd_Authbasic::generatePasswd($pass, $mode, $salt);
}
}
?>
1 change: 0 additions & 1 deletion web/File/Passwd/Authdigest.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,3 @@ function generatePassword($user, $realm, $pass)
return File_Passwd_Authdigest::generatePasswd($user, $realm, $pass);
}
}
?>
1 change: 0 additions & 1 deletion web/File/Passwd/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,3 @@ function _auth($file, $id, $sep = ':')
return false;
}
}
?>
1 change: 0 additions & 1 deletion web/File/Passwd/Custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,4 +590,3 @@ function _genPass($pass, $salt = null, $func = null)
return $return;
}
}
?>
1 change: 0 additions & 1 deletion web/File/Passwd/Cvs.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,4 +301,3 @@ function generatePassword($pass, $salt = null)
return File_Passwd_Cvs::generatePasswd($pass, $salt);
}
}
?>
2 changes: 1 addition & 1 deletion web/File/Passwd/Smb.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,4 +423,4 @@ function generatePassword($pass, $mode = 'nt')
return File_Passwd_Smb::generatePasswd($pass, $mode);
}
}
?>

1 change: 0 additions & 1 deletion web/File/Passwd/Unix.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,4 +657,3 @@ function generatePassword($pass, $mode = FILE_PASSWD_MD5, $salt = null)
}

}
?>
2 changes: 1 addition & 1 deletion web/PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -972,4 +972,4 @@ function toString() {
* c-basic-offset: 4
* End:
*/
?>

1 change: 0 additions & 1 deletion web/Themes/classic126/styling.inc
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ $main_cell_height = '17'; // (px) height of the cells in the main d
// ***** FONTS ************************
$standard_font_family = "Arial, 'Arial Unicode MS', Verdana, sans-serif";

?>
2 changes: 1 addition & 1 deletion web/Themes/default/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,4 @@ function print_theme_header($day, $month, $year, $area, $room)
<?php

} // end of print_theme_header()
?>

1 change: 0 additions & 1 deletion web/Themes/default/styling.inc
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,3 @@ $main_cell_height = '17'; // (px) height of the cells in the main d
// ***** FONTS ************************
$standard_font_family = "Arial, 'Arial Unicode MS', Verdana, sans-serif";

?>
1 change: 1 addition & 0 deletions web/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@

$returl = "admin.php?area=$area" . (!empty($error) ? "&error=$error" : "");
header("Location: $returl");

2 changes: 1 addition & 1 deletion web/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,4 +433,4 @@
}

output_trailer();
?>

1 change: 0 additions & 1 deletion web/approve_entry_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@
header("Location: $returl");
exit;

?>
1 change: 0 additions & 1 deletion web/auth/auth_auth_basic.inc
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_crypt.inc
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_db.inc
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,3 @@ function authGetUserLevel($user)
return $result;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_db_ext.inc
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_ext.inc
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_imap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_imap_php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_ldap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,3 @@ function authLdapDebug($message)
}
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_nis.inc
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_none.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_nw.inc
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_pop3.inc
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,3 @@ function authGetUserLevel($user)
return 1;
}

?>
1 change: 0 additions & 1 deletion web/auth/auth_smtp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ function authGetUserLevel($user)
return 1;
}

?>
2 changes: 1 addition & 1 deletion web/check_slot_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
}

echo json_encode($result);
?>

1 change: 0 additions & 1 deletion web/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@
or areadefaults.inc.php. */


?>
1 change: 0 additions & 1 deletion web/day.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,3 @@

output_trailer();

?>
1 change: 0 additions & 1 deletion web/defaultincludes.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ require_once "dbsys.inc";
require_once "mrbs_auth.inc";
require "standard_vars.inc.php";

?>
1 change: 0 additions & 1 deletion web/del.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@
}
}

?>
2 changes: 1 addition & 1 deletion web/del_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@

// If you got this far then we got an access denied.
showAccessDenied($day, $month, $year, $area, "");
?>

2 changes: 1 addition & 1 deletion web/del_entry_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@


echo $result;
?>

2 changes: 1 addition & 1 deletion web/edit_area_room.php
Original file line number Diff line number Diff line change
Expand Up @@ -1241,4 +1241,4 @@ function create_field_entry_timezone()
}

output_trailer();
?>

4 changes: 3 additions & 1 deletion web/edit_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1412,4 +1412,6 @@ function create_field_entry_custom_field($field, $key, $disabled=FALSE)
</fieldset>
</form>

<?php output_trailer() ?>
<?php
output_trailer();

2 changes: 1 addition & 1 deletion web/edit_entry_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,4 +794,4 @@ function invalid_booking($message)
echo "</div>\n";

output_trailer();
?>

1 change: 0 additions & 1 deletion web/edit_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,4 +920,3 @@ function output_row(&$row)
output_trailer();
}

?>
1 change: 0 additions & 1 deletion web/escapeshellarg.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ function escapeshellarg($x)
return "'".preg_replace("/'/", "\\'", $x)."'";
}

?>
2 changes: 1 addition & 1 deletion web/functions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2554,4 +2554,4 @@ function is_cli()
return FALSE;
}
}
?>

2 changes: 0 additions & 2 deletions web/functions_ical.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1221,5 +1221,3 @@ function export_icalendar(&$res, $keep_private, $export_end=PHP_INT_MAX)
echo $icalendar;
}


?>
2 changes: 1 addition & 1 deletion web/functions_mail.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1321,4 +1321,4 @@ function sendMail($addresses, $subject, $text_body, $html_body, $attachment, $ch
}

// }}}
?>

1 change: 0 additions & 1 deletion web/functions_view.inc
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,3 @@ function create_details_body($data, $as_html=FALSE, $keep_private=FALSE, $room_d
return $tbody;
}

?>
2 changes: 1 addition & 1 deletion web/grab_globals.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ function get_form_var($variable, $type = 'string')
$cli_params = array_merge($cli_params, $param);
}
}
?>

2 changes: 1 addition & 1 deletion web/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
require_once "site_faq/site_faq" . $faqfilelang . ".html";

output_trailer();
?>

2 changes: 1 addition & 1 deletion web/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,4 @@ function process_event($vevent)
echo "</form>\n";

output_trailer();
?>

1 change: 0 additions & 1 deletion web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@

header("Location: $redirect_str");

?>
1 change: 0 additions & 1 deletion web/internalconfig.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,3 @@

error_reporting ($error_level);

?>
1 change: 0 additions & 1 deletion web/js/refresh.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,3 @@ function(result){
};
<?php
}
?>
1 change: 0 additions & 1 deletion web/lang/lang.ca
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,3 @@ $vocab["failed_connect_db"] = "Error Fatal: Fallada al conectar a la base de da
$vocab["type.I"] = "Intern";
$vocab["type.E"] = "Extern";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,4 @@
// General
$vocab["fatal_db_error"] = "Závažná chyba: databáze bohužel není momentálně dostupná.";
$vocab["back"] = "Zpět";
?>

1 change: 0 additions & 1 deletion web/lang/lang.da
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,3 @@ $vocab["failed_connect_db"] = "Fatal fejl: kunne ikke forbinde til databasen";
$vocab["type.I"] = "Internt";
$vocab["type.E"] = "Eksternt";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.de
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,4 @@ $vocab["type.E"] = "Extern";
// General
$vocab["fatal_db_error"] = "Fataler Fehler: Leider steht die Datenbank im Moment nicht zur Verfügung.";
$vocab["back"] = "Zurück";
?>

1 change: 0 additions & 1 deletion web/lang/lang.el
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,3 @@ $vocab["failed_connect_db"] = "Κρίσιμο σφάλμα: Αποτυχία σ
$vocab["type.I"] = "Εσωτερικά";
$vocab["type.E"] = "Εξωτερικά";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.en
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,4 @@ $vocab["type.E"] = "External";
// General
$vocab["fatal_db_error"] = "Fatal error: unfortunately the database is not available at the moment.";
$vocab["back"] = "Back";
?>

2 changes: 1 addition & 1 deletion web/lang/lang.es
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,4 @@ $vocab["type.E"] = "Externa";

// General
$vocab["fatal_db_error"] = "Error: la base de datos no está disponible en este momento.";
?>

1 change: 0 additions & 1 deletion web/lang/lang.eu
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,3 @@ $vocab["failed_connect_db"] = "Errorea: Ezin izan da datubasearekiko konexioa b
$vocab["type.I"] = "Arrunta";
$vocab["type.E"] = "Berezia";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.fi
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,4 @@ $vocab["type.E"] = "Ulkoinen";
// General
$vocab["fatal_db_error"] = "Virhe: tietokanta ei ole käytettävissä.";
$vocab["back"] = "Takaisin";
?>

2 changes: 1 addition & 1 deletion web/lang/lang.fr
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,4 @@ $vocab["type.E"] = "Occasionnel";

// General
$vocab["back"] = "Retour";
?>

1 change: 0 additions & 1 deletion web/lang/lang.he
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,3 @@ $vocab["failed_connect_db"] = "תקלה: ההתחברות למערכת נכשל
// General
$vocab["fatal_db_error"] = "תקלה: המערכת אינה זמינה כרגע. נסה שוב מאוחר יותר.";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.hu
Original file line number Diff line number Diff line change
Expand Up @@ -426,4 +426,4 @@ $vocab["type.E"] = "Külső";
// General
$vocab["fatal_db_error"] = "Súlyos hiba történt: az adatbázis nem érhető el jelen pillanatban, kérlek, próbáld újra később.";
$vocab["back"] = "Vissza";
?>

1 change: 0 additions & 1 deletion web/lang/lang.it
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,3 @@ $vocab["restore_original"] = "Ripristina originali";
$vocab["type.I"] = "Interno";
$vocab["type.E"] = "Esterno";

?>
2 changes: 1 addition & 1 deletion web/lang/lang.ja
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,4 @@ $vocab["type.E"] = "外部";
// General
$vocab["fatal_db_error"] = "致命的なエラー: 残念ながら、データベースは現在利用可能ではありません。";
$vocab["back"] = "戻る";
?>

1 change: 0 additions & 1 deletion web/lang/lang.ko
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,3 @@ $vocab["failed_connect_db"] = "심각한 에러: 데이터베이스에 접속
$vocab["type.I"] = "내부회의";
$vocab["type.E"] = "외부회의";

?>
1 change: 0 additions & 1 deletion web/lang/lang.nl
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,3 @@ $vocab["failed_connect_db"] = "Fatale Fout: Verbinding naar database server mis
$vocab["type.I"] = "Intern";
$vocab["type.E"] = "Extern";

?>
Loading

0 comments on commit 58b8aae

Please sign in to comment.