Skip to content

Commit

Permalink
Move security check into Functions.php and fix it (ChurchCRM#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Feb 16, 2016
1 parent 9c81e02 commit 56ba9a8
Show file tree
Hide file tree
Showing 108 changed files with 1,223 additions and 1,354 deletions.
14 changes: 7 additions & 7 deletions churchinfo/AddEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@
<div class="box">
<div class="box-header">
<h3 class="box-title">
<?php if ($numRows == 0) {
echo gettext("No church events for ".date("F"));
<?php if ($numRows == 0) {
echo gettext("No church events for ".date("F"));
} else {
echo gettext("There ".($numRows == 1 ? "is ".$numRows." event":"are ".$numRows." events")." for ".date("F"));
echo gettext("There ".($numRows == 1 ? "is ".$numRows." event":"are ".$numRows." events")." for ".date("F"));
?></h3>
</div><!-- /.box-header -->
<div class="box-body table-responsive">
Expand Down Expand Up @@ -174,7 +174,7 @@
</td>
</tr>
<?php } ?>

</table>
</div>
</div>
Expand Down Expand Up @@ -309,8 +309,8 @@
</div>
</div>




<script>
$("#newEventStartDate").datepicker({format:'yyyy-mm-dd'});
Expand All @@ -319,4 +319,4 @@
$("#newEventEndTime").timepicker({showMeridian: false});
$("#eventsTable").dataTable();
</script>
<?php require "Include/Footer.php"; ?>
<?php require "Include/Footer.php" ?>
4 changes: 1 addition & 3 deletions churchinfo/AutoPaymentDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,4 @@
</table>
</form>

<?php
require "Include/Footer.php";
?>
<?php require "Include/Footer.php" ?>
Loading

0 comments on commit 56ba9a8

Please sign in to comment.