]> wagnertech.de Git - timetracker.git/commitdiff
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 a7e567f6966f36b505b9fb5bd585713ca0824d62..05fa4800958f181feba8cbef2db6f5c6af763e87 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 19de9a7e4525d8dd1a23af2a28229416196ec458..987543c5897324f88dd81874645c8382ee6250e4 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 84057b0e240cd8ecbcd1a547d3b9f3305fa788ae..09ef866daa060552e2bbc214ea594cc483535c5e 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 656cb9bd2e1c0c85875bb74591cbccffe9dc12fb..965c2aba165fdea4816a27875d194dff73bf22bd 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 f368515ce0aa5bcb7afca351a2a306cb92622f13..196d85fafcf86a17b7dc487bc2b725f0fc317b23 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 a8de8e5ce50970e57f08596e3ae854ad27f33bc1..20da6eefc0457c1955fc89dac47869e7fe4ed522 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 bf5b17e8561157b5a1c4706b90dc93e12eb28596..78fc279c45c2be21ede8b96141e6d73b76bb3e14 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 a58c3d86c2376cc5088f6abd503285c7cd9c5c22..f63911023dd76b651c9c891306463eddf2519425 100644 (file)
@@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') {
       exit();
     }
   }
-} // POST
+} // isPost
 
 // Elements of chartForm.
 $chart_form = new Form('chartForm');
index 7a90d22b297fc85d808b12b4e24141e44ae38b56..275a65eef1ee417d3762ad46f00f4f375dc28bb8 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 e22704fad3f577d81abe35fb7469a692a73e1e2d..201d02ca0e2551dbbdd8c45b3e905a132dd67e14 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 c64618d18369f064bb030b49b72552763622e5c0..c7ad1581e0b68b4ef5553d311448b1ca6c823c36 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 d0b11cc87116de9e3b05d141e45061ee32f7eb75..14e708872b23598c583cec4c1bc228fa22814e52 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 1703c17626e8055f5a42c212aac5a7d736bad6c9..abd5c39c3c9447c5f1b0c556f74add278b27faf8 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 fb0e7567a5717a0441f230ec0e1d8266800e76c3..f0469497e40873c3a19c2f480386ad576407f518 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 e4a74eea53b88b9de498421e43a499df68c19586..d86628b6cf22dafd323691d85fc97306ea1c1183 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 347f6b43abee3e5e3de287b65625498d0aeaad31..4a1c4834a1fb9ed18d5d3899c76da7e527db0669 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 579155ab986d874f0c97eb73dfc55253c341bd1c..0d4735950f457625b9538f88137332396573453c 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 fba99ca326a585d037625fc90f4231e43d65dd3a..4ec28bcf2328ceed4a7cedf4fdaadf04aff253ac 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 886800c3d33addb144e4ac2c222ba67b8cbc3bf8..19b88eacc437003aac91c631e2192d153b0ea948 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 7e5d871973b18e4e5b270f58c4c78679d5d89970..91a5241ef105f64f4a37478cd2892272323fddc0 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 f353948ebac106a3656cbcf5bec6972f4eb7f215..4eca3deec878c04188ef51122fad041b0410ad76 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 4dde97d08109c731848a0b90909662c2dd0cb431..9e818e78adb35548667c6055eb804b95a282050d 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 7130b8cd349c5a456a17777d26052b2cc3010e96..46c89d92c43809f4bb9bcd9cf0cd3f6de5e94f03 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 6e3a4479118dd78041ea4375e6eb50002c7c4517..f210157508aee586428ac7641dc9abbaa5c70826 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 80bd33ea68575cf75a2b9a08278538f2e8ab34d8..80f46bb2e65b99ecb02f60799c4337e2abc5458b 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 cd0d748e01557cfdfca480bfbcd4940fad227fc8..a8a2e4989e9e272c4f94a934fb56e08a7b636c3c 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 f1452080611fe583f2e52a408402d5b286a49502..30a9d8fe33501c7d7d5c9a7d8baeb531b944ae65 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 0c51280035ee21697b75d4aa21cf9a56754bc84d..f07b8b61620e748ce0741fe12dc40692918abb4a 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 9c2ed4e9c89b18aad06f3b7cf7b9a95af0327418..f98421a5f476f59a1ec0c3f299dd7642641cee2b 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 a4c9db6c0403d69d1ba20e136343d47ce5eaccb8..e538fce50ba1ee24b041eca77c49729988e78fe4 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 c2a30c5cfab8ca7f253ee8f44a77ff42398d1faf..1c825d9fb1ab619c0a0c82fbcc8aac89edf994bb 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 b8a482a560dd3f4f074e78a73a9687a41fde4cf3..ac918a977421ae593ad38d0ae1882fe884dac1b6 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 7f2cd342652123b6df7670c68e45226fb069afe3..9cca73e55feb6998ad54bb8b94d25167364f5a21 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 03d77b641597f1c4c69b843e5f4fedde57e03314..9984460cc733d5a8d0698dd33873cdecc8d52333 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 a34238fbcc144e5b09b664fceb926414726e9114..dd4b9be3aedf827ab5ff4646723a9627cd6bb408 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 894526d2770cae4024fca9d245ad22e3250f9fec..90b12b2bd09e8a0f73015b239aaa0d639af9f194 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 15e8e7f58871f7537b337030b38d1a97bd814209..ff98c977784b922436ecc5ed3de2044964c07cc8 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 d4321fb2f71c969637a260aefeeefc5b5d80cebc..1c089197ee96e8426bec86ba2178f0e509f1e4c1 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 bdd99b5f2c80cf57c45bf6b9d554b3969fe244a2..943e9a92055a2ab53560f63dea8c98a1c8d14c7f 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 c79315d78d89ab4c7a09a407abda346585ce0c1a..08a79ebd6c59bc6344bf389decb1f5bc0f2a7dee 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 538d9c7a667777abca806e96af86dc07b554043b..26b1793c491a4c3d016bc26b9a85f5d11cff3b0c 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 7e4f7bf2e6cb5bff104292d36ece414e16d0a4fc..2dca2447c161f8ccab3df36528885964114348b1 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 26cbe695a00bac013e95f6e44dab840336d65e48..59300859aa5ab17f744c66d3a54cde927af6c364 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 092dcb43d9436e7ba7bc94315264dd2e41f39779..1f0a40dea943da718fc8b3deabb6c0ccd8a43ff2 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 1183b76766107acd49fc45784695ce5ee5f8a35b..1d588e8ef9cb31785cd55a39137a7e040f5fee54 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);