A better comment
authorNik Okuntseff <support@anuko.com>
Tue, 22 Mar 2016 18:20:00 +0000 (11:20 -0700)
committerNik Okuntseff <support@anuko.com>
Tue, 22 Mar 2016 18:20:00 +0000 (11:20 -0700)
45 files changed:
admin_options.php
admin_team_delete.php
admin_team_edit.php
cf_custom_field_add.php
cf_custom_field_edit.php
cf_dropdown_option_add.php
cf_dropdown_option_edit.php
charts.php
client_add.php
client_delete.php
client_edit.php
expense_delete.php
expense_edit.php
export.php
import.php
invoice_add.php
invoice_delete.php
invoice_send.php
login.php
mobile/login.php
mobile/time.php
mobile/time_delete.php
mobile/time_edit.php
mobile/timer.php
notification_add.php
notification_delete.php
notification_edit.php
password_change.php
password_reset.php
profile_edit.php
project_add.php
project_delete.php
project_edit.php
register.php
report.php
reports.php
task_add.php
task_delete.php
task_edit.php
time.php
time_delete.php
time_edit.php
user_add.php
user_delete.php
user_edit.php

index a7e567f..05fa480 100644 (file)
@@ -62,7 +62,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.options'));
index 19de9a7..987543c 100644 (file)
@@ -58,7 +58,7 @@ if ($request->isPost()) {
     header('Location: admin_teams.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('team_to_delete', $team_name);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 84057b0..09ef866 100644 (file)
@@ -112,7 +112,7 @@ if ($request->isPost()) {
     header('Location: admin_teams.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('auth_external', $auth->isPasswordExternal());
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 656cb9b..965c2ab 100644 (file)
@@ -65,7 +65,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index f368515..196d85f 100644 (file)
@@ -70,7 +70,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index a8de8e5..20da6ee 100644 (file)
@@ -62,7 +62,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
index bf5b17e..78fc279 100644 (file)
@@ -64,7 +64,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
index a58c3d8..f639110 100644 (file)
@@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') {
       exit();
     }
   }
-} // POST
+} // isPost
 
 // Elements of chartForm.
 $chart_form = new Form('chartForm');
index 7a90d22..275a65e 100644 (file)
@@ -80,7 +80,7 @@ if ($request->isPost()) {
      } else
        $err->add($i18n->getKey('error.client_exists'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');
index e22704f..201d02c 100644 (file)
@@ -64,7 +64,7 @@ if ($request->isPost()) {
     header('Location: clients.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('client_to_delete', $client_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index c64618d..c7ad158 100644 (file)
@@ -113,7 +113,7 @@ if ($request->isPost()) {
         $err->add($i18n->getKey('error.client_exists'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.edit_client'));
index d0b11cc..14e7088 100644 (file)
@@ -75,7 +75,7 @@ if ($request->isPost()) {
     header('Location: expenses.php');
     exit();
   }
-} // POST
+} // isPost
 
 $form = new Form('expenseItemForm');
 $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
index 1703c17..abd5c39 100644 (file)
@@ -203,7 +203,7 @@ if ($request->isPost()) {
     header("Location: expense_delete.php?id=$cl_id");
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('client_list', $client_list);
 $smarty->assign('project_list', $project_list);
index fb0e756..f046949 100644 (file)
@@ -75,7 +75,7 @@ if ($request->isPost()) {
     exit;
   } else
     $err->add($i18n->getKey('error.sys'));
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.export'));
index e4a74ee..d86628b 100644 (file)
@@ -47,7 +47,7 @@ if ($request->isPost()) {
   $import->importXml();
   if ($err->no())
     $messages->add($i18n->getKey('form.import.success'));
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()) );
 $smarty->assign('title', $i18n->getKey('title.import'));
index 347f6b4..4a1c483 100644 (file)
@@ -89,7 +89,7 @@ if ($request->isPost()) {
     }
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');
index 579155a..0d47359 100644 (file)
@@ -63,7 +63,7 @@ if ($request->isPost()) {
     header('Location: invoices.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('invoice_to_delete', $invoice_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index fba99ca..4ec28bc 100644 (file)
@@ -92,7 +92,7 @@ if ($request->isPost()) {
     else
       $err->add($i18n->getKey('error.mail_send'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('title', $i18n->getKey('title.send_invoice'));
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 886800c..19b88ea 100644 (file)
--- a/login.php
+++ b/login.php
@@ -78,7 +78,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.auth'));
   }
-} // POST
+} // isPost
 
 if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
   $err->add($i18n->getKey('error.no_teams'));
index 7e5d871..91a5241 100644 (file)
@@ -82,7 +82,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.auth'));
   }
-} // POST
+} // isPost
 
 if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
   $err->add($i18n->getKey('error.no_teams'));
index f353948..4eca3de 100644 (file)
@@ -286,7 +286,7 @@ if ($request->isPost()) {
       $err->add($i18n->getKey('error.db'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('next_date', $next_date);
 $smarty->assign('prev_date', $prev_date);
index 4dde97d..9e818e7 100644 (file)
@@ -90,7 +90,7 @@ if ($request->isPost()) {
     header('Location: time.php');
     exit();
   }
-} // POST
+} // isPost
 
 $form = new Form('timeRecordForm');
 $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
index 7130b8c..46c89d9 100644 (file)
@@ -333,7 +333,7 @@ if ($request->isPost()) {
     header("Location: time_delete.php?id=$cl_id");
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('client_list', $client_list);
 $smarty->assign('project_list', $project_list);
index 6e3a447..f210157 100644 (file)
@@ -287,7 +287,7 @@ if ($request->isPost()) {
       exit();
     }
   }
-} // POST
+} // isPost
 
 $week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $cl_date);
 $smarty->assign('week_total', $week_total);
index 80bd33e..80f46bb 100644 (file)
@@ -84,7 +84,7 @@ if ($request->isPost()) {
       } else
         $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.add_notification'));
index cd0d748..a8a2e49 100644 (file)
@@ -59,7 +59,7 @@ if ($request->isPost()) {
     header('Location: notifications.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('notification_to_delete', $notification_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index f145208..30a9d8f 100644 (file)
@@ -89,7 +89,7 @@ if ($request->isPost()) {
       } else
         $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.add_notification'));
index 0c51280..f07b8b6 100644 (file)
@@ -87,7 +87,7 @@ if ($request->isPost()) {
       $err->add($i18n->getKey('error.auth'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName() => $form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.change_password'));
index 9c2ed4e..f98421a 100644 (file)
@@ -110,7 +110,7 @@ if ($request->isPost()) {
       $smarty->assign('result_message', $res ? $i18n->getKey('form.reset_password.message') : $i18n->getKey('error.mail_send'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.resetPasswordForm.login.focus()"');
index a4c9db6..e538fce 100644 (file)
@@ -258,7 +258,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.db'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('auth_external', $auth->isPasswordExternal());
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index c2a30c5..1c825d9 100644 (file)
@@ -86,7 +86,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.project_exists'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.projectForm.project_name.focus()"');
index b8a482a..ac918a9 100644 (file)
@@ -59,7 +59,7 @@ if ($request->isPost()) {
     header('Location: projects.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('project_to_delete', $project_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 7f2cd34..9cca73e 100644 (file)
@@ -124,7 +124,7 @@ if ($request->isPost()) {
         $err->add($i18n->getKey('error.project_exists'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.projectForm.name.focus()"');
index 03d77b6..9984460 100644 (file)
@@ -100,7 +100,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.user_exists'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('title', $i18n->getKey('title.create_team'));
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index a34238f..dd4b9be 100644 (file)
@@ -80,7 +80,7 @@ if ($request->isPost()) {
   // Re-display this form.
   header('Location: report.php');
   exit();
-} // POST
+} // isPost
 
 $group_by = $bean->getAttribute('group_by');
 
index 894526d..90b12b2 100644 (file)
@@ -312,7 +312,7 @@ if ($request->isPost()) {
       exit();
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('project_list', $project_list);
 $smarty->assign('task_list', $task_list);
index 15e8e7f..ff98c97 100644 (file)
@@ -75,7 +75,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.task_exists'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.taskForm.name.focus()"');
index d4321fb..1c08919 100644 (file)
@@ -59,7 +59,7 @@ if ($request->isPost()) {
     header('Location: tasks.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('task_to_delete', $task_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index bdd99b5..943e9a9 100644 (file)
@@ -106,7 +106,7 @@ if ($request->isPost()) {
         $err->add($i18n->getKey('error.task_exists'));
     }
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.edit_task'));
index c79315d..08a79eb 100644 (file)
--- a/time.php
+++ b/time.php
@@ -350,7 +350,7 @@ if ($request->isPost()) {
       exit();
     }
   }
-} // POST
+} // isPost
 
 $week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date);
 
index 538d9c7..26b1793 100644 (file)
@@ -89,7 +89,7 @@ if ($request->isPost()) {
     header('Location: time.php');
     exit();
   }
-} // POST
+} // isPost
 
 $form = new Form('timeRecordForm');
 $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
index 7e4f7bf..2dca244 100644 (file)
@@ -393,7 +393,7 @@ if ($request->isPost()) {
     header("Location: time_delete.php?id=$cl_id");
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('client_list', $client_list);
 $smarty->assign('project_list', $project_list);
index 26cbe69..5930085 100644 (file)
@@ -164,7 +164,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.user_exists'));
   }
-} // POST
+} // isPost
 
 $smarty->assign('auth_external', $auth->isPasswordExternal());
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 092dcb4..1f0a40d 100644 (file)
@@ -91,7 +91,7 @@ if ($request->isPost()) {
     header('Location: users.php');
     exit();
   }
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.delete_user'));
index 1183b76..1d588e8 100644 (file)
@@ -223,7 +223,7 @@ if ($request->isPost()) {
     } else
       $err->add($i18n->getKey('error.user_exists'));
   }
-} // POST
+} // isPost
 
 $rates = ttProjectHelper::getRates($user_id);
 $smarty->assign('rates', $rates);