function eq()
{
- if(file_exists('setup/eq_config.local')) {
- include('setup/eq_config.local');
+ $base_path = $_SERVER['DOCUMENT_ROOT'];
+ if(file_exists("$base_path/eq/setup/eq_config.local")) {
+ include("$base_path/eq/setup/eq_config.local");
} else {
- include('setup/eq_config');
+ include("$base_path/eq/setup/eq_config");
}
-
+
$this->script_path = "$this->application_path"."/bin";
$this->max_presidency_members = 99;
$this->max_appointments = 32768;
// Print the hometeaching interview stats
for($m=$num_months; $m >=0; $m--) {
$month = $current_month - $m;
+ if($month < 0) { $month = 12 + $month; } // Handle going backwards over a year boundary
$month_begins = $month % $this->monthly_hometeaching_interview_stats;
+ //print "$month % $this->monthly_hometeaching_interview_stats = $month_begins <br>";
if($this->monthly_hometeaching_interview_stats == 1) { $month_begins = 1; }
if(($month_begins) == 1) { $total = $ints[$m]; }
else { $total += $ints[$m]; }
$totals = "<tr><td><b><font size=-2>$total_companionships Total Comps<br>Interview Totals:</font></b></td>";
for($m=$num_months; $m >=0; $m--) {
$month = $current_month - $m;
+ if($month < 0) { $month = 12 + $month; } // Handle going backwards over a year boundary
$month_begins = $month % $this->monthly_hometeaching_interview_stats;
if($this->monthly_hometeaching_interview_stats == 1) { $month_begins = 1; }
if(($month_begins) == 1) { $total = $total_ints[$m]; }