Skip to content

Commit

Permalink
Last Updated Datetime check
Browse files Browse the repository at this point in the history
- This check is on all activities. Uses the code for generated dateime
- Quick update to time_generated.php for slightly better reporting
  but could come back to deal properly with time formats
  • Loading branch information
caprenter committed Dec 8, 2011
1 parent c6b2377 commit d094cef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion processes/time_generated.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ function check_generated_time ($dir,$url) {
}

if (strlen($generated) != 19) {
$length = "too long";
if(strlen($generated) > 19) {
$length = "too long";
} else {
$length = "too short";
}
} else {
$length ="ok";
}
Expand Down
10 changes: 10 additions & 0 deletions time_updated.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
require_once('theme/header.php');
?>
<?php
require_once('processes/time_updated.php');
?>

<?php
require_once('theme/footer.php');
?>
1 change: 1 addition & 0 deletions variables/site_vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
//"transactions_by_year" => array("link"=>"transactions_by_year.php","title"=>"By Year"),
//"transactions_list" => array("link"=>"transactions_list.php","title"=>"List"),
"time_generated" => array("link"=> "time_generated.php", "title"=>"Generated Time"),
"time_updated" => array("link"=> "time_updated.php", "title"=>"Last Updated Time"),
//"budgets_missing_elements" => array("link"=>"budgets_missing_elements.php","title"=>"Missing Elements"),
);

Expand Down

0 comments on commit d094cef

Please sign in to comment.