projects
/
timetracker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e82b53
)
A better comment
author
Nik Okuntseff
<support@anuko.com>
Tue, 22 Mar 2016 18:20:00 +0000
(11:20 -0700)
committer
Nik Okuntseff
<support@anuko.com>
Tue, 22 Mar 2016 18:20:00 +0000
(11:20 -0700)
45 files changed:
admin_options.php
patch
|
blob
|
history
admin_team_delete.php
patch
|
blob
|
history
admin_team_edit.php
patch
|
blob
|
history
cf_custom_field_add.php
patch
|
blob
|
history
cf_custom_field_edit.php
patch
|
blob
|
history
cf_dropdown_option_add.php
patch
|
blob
|
history
cf_dropdown_option_edit.php
patch
|
blob
|
history
charts.php
patch
|
blob
|
history
client_add.php
patch
|
blob
|
history
client_delete.php
patch
|
blob
|
history
client_edit.php
patch
|
blob
|
history
expense_delete.php
patch
|
blob
|
history
expense_edit.php
patch
|
blob
|
history
export.php
patch
|
blob
|
history
import.php
patch
|
blob
|
history
invoice_add.php
patch
|
blob
|
history
invoice_delete.php
patch
|
blob
|
history
invoice_send.php
patch
|
blob
|
history
login.php
patch
|
blob
|
history
mobile/login.php
patch
|
blob
|
history
mobile/time.php
patch
|
blob
|
history
mobile/time_delete.php
patch
|
blob
|
history
mobile/time_edit.php
patch
|
blob
|
history
mobile/timer.php
patch
|
blob
|
history
notification_add.php
patch
|
blob
|
history
notification_delete.php
patch
|
blob
|
history
notification_edit.php
patch
|
blob
|
history
password_change.php
patch
|
blob
|
history
password_reset.php
patch
|
blob
|
history
profile_edit.php
patch
|
blob
|
history
project_add.php
patch
|
blob
|
history
project_delete.php
patch
|
blob
|
history
project_edit.php
patch
|
blob
|
history
register.php
patch
|
blob
|
history
report.php
patch
|
blob
|
history
reports.php
patch
|
blob
|
history
task_add.php
patch
|
blob
|
history
task_delete.php
patch
|
blob
|
history
task_edit.php
patch
|
blob
|
history
time.php
patch
|
blob
|
history
time_delete.php
patch
|
blob
|
history
time_edit.php
patch
|
blob
|
history
user_add.php
patch
|
blob
|
history
user_delete.php
patch
|
blob
|
history
user_edit.php
patch
|
blob
|
history
diff --git
a/admin_options.php
b/admin_options.php
index
a7e567f
..
05fa480
100644
(file)
--- a/
admin_options.php
+++ b/
admin_options.php
@@
-62,7
+62,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} else
$err->add($i18n->getKey('error.db'));
}
-} //
POST
+} //
isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.options'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.options'));
diff --git
a/admin_team_delete.php
b/admin_team_delete.php
index
19de9a7
..
987543c
100644
(file)
--- a/
admin_team_delete.php
+++ b/
admin_team_delete.php
@@
-58,7
+58,7
@@
if ($request->isPost()) {
header('Location: admin_teams.php');
exit();
}
header('Location: admin_teams.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('team_to_delete', $team_name);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('team_to_delete', $team_name);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/admin_team_edit.php
b/admin_team_edit.php
index
84057b0
..
09ef866
100644
(file)
--- a/
admin_team_edit.php
+++ b/
admin_team_edit.php
@@
-112,7
+112,7
@@
if ($request->isPost()) {
header('Location: admin_teams.php');
exit();
}
header('Location: admin_teams.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/cf_custom_field_add.php
b/cf_custom_field_add.php
index
656cb9b
..
965c2ab
100644
(file)
--- a/
cf_custom_field_add.php
+++ b/
cf_custom_field_add.php
@@
-65,7
+65,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
diff --git
a/cf_custom_field_edit.php
b/cf_custom_field_edit.php
index
f368515
..
196d85f
100644
(file)
--- a/
cf_custom_field_edit.php
+++ b/
cf_custom_field_edit.php
@@
-70,7
+70,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
diff --git
a/cf_dropdown_option_add.php
b/cf_dropdown_option_add.php
index
a8de8e5
..
20da6ee
100644
(file)
--- a/
cf_dropdown_option_add.php
+++ b/
cf_dropdown_option_add.php
@@
-62,7
+62,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
diff --git
a/cf_dropdown_option_edit.php
b/cf_dropdown_option_edit.php
index
bf5b17e
..
78fc279
100644
(file)
--- a/
cf_dropdown_option_edit.php
+++ b/
cf_dropdown_option_edit.php
@@
-64,7
+64,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
diff --git
a/charts.php
b/charts.php
index
a58c3d8
..
f639110
100644
(file)
--- a/
charts.php
+++ b/
charts.php
@@
-117,7
+117,7
@@
if ($request->getMethod( )== 'POST') {
exit();
}
}
exit();
}
}
-} //
POST
+} //
isPost
// Elements of chartForm.
$chart_form = new Form('chartForm');
// Elements of chartForm.
$chart_form = new Form('chartForm');
diff --git
a/client_add.php
b/client_add.php
index
7a90d22
..
275a65e
100644
(file)
--- a/
client_add.php
+++ b/
client_add.php
@@
-80,7
+80,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.client_exists'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');
diff --git
a/client_delete.php
b/client_delete.php
index
e22704f
..
201d02c
100644
(file)
--- a/
client_delete.php
+++ b/
client_delete.php
@@
-64,7
+64,7
@@
if ($request->isPost()) {
header('Location: clients.php');
exit();
}
header('Location: clients.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/client_edit.php
b/client_edit.php
index
c64618d
..
c7ad158
100644
(file)
--- a/
client_edit.php
+++ b/
client_edit.php
@@
-113,7
+113,7
@@
if ($request->isPost()) {
$err->add($i18n->getKey('error.client_exists'));
}
}
$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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.edit_client'));
diff --git
a/expense_delete.php
b/expense_delete.php
index
d0b11cc
..
14e7088
100644
(file)
--- a/
expense_delete.php
+++ b/
expense_delete.php
@@
-75,7
+75,7
@@
if ($request->isPost()) {
header('Location: expenses.php');
exit();
}
header('Location: expenses.php');
exit();
}
-} //
POST
+} //
isPost
$form = new Form('expenseItemForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
$form = new Form('expenseItemForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
diff --git
a/expense_edit.php
b/expense_edit.php
index
1703c17
..
abd5c39
100644
(file)
--- a/
expense_edit.php
+++ b/
expense_edit.php
@@
-203,7
+203,7
@@
if ($request->isPost()) {
header("Location: expense_delete.php?id=$cl_id");
exit();
}
header("Location: expense_delete.php?id=$cl_id");
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
diff --git
a/export.php
b/export.php
index
fb0e756
..
f046949
100644
(file)
--- a/
export.php
+++ b/
export.php
@@
-75,7
+75,7
@@
if ($request->isPost()) {
exit;
} else
$err->add($i18n->getKey('error.sys'));
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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.export'));
diff --git
a/import.php
b/import.php
index
e4a74ee
..
d86628b
100644
(file)
--- a/
import.php
+++ b/
import.php
@@
-47,7
+47,7
@@
if ($request->isPost()) {
$import->importXml();
if ($err->no())
$messages->add($i18n->getKey('form.import.success'));
$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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()) );
$smarty->assign('title', $i18n->getKey('title.import'));
diff --git
a/invoice_add.php
b/invoice_add.php
index
347f6b4
..
4a1c483
100644
(file)
--- a/
invoice_add.php
+++ b/
invoice_add.php
@@
-89,7
+89,7
@@
if ($request->isPost()) {
}
$err->add($i18n->getKey('error.db'));
}
}
$err->add($i18n->getKey('error.db'));
}
-} //
POST
+} //
isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.invoiceForm.number.focus()"');
diff --git
a/invoice_delete.php
b/invoice_delete.php
index
579155a
..
0d47359
100644
(file)
--- a/
invoice_delete.php
+++ b/
invoice_delete.php
@@
-63,7
+63,7
@@
if ($request->isPost()) {
header('Location: invoices.php');
exit();
}
header('Location: invoices.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('invoice_to_delete', $invoice_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('invoice_to_delete', $invoice_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/invoice_send.php
b/invoice_send.php
index
fba99ca
..
4ec28bc
100644
(file)
--- a/
invoice_send.php
+++ b/
invoice_send.php
@@
-92,7
+92,7
@@
if ($request->isPost()) {
else
$err->add($i18n->getKey('error.mail_send'));
}
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()));
$smarty->assign('title', $i18n->getKey('title.send_invoice'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/login.php
b/login.php
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'));
}
} else
$err->add($i18n->getKey('error.auth'));
}
-} //
POST
+} //
isPost
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
diff --git
a/mobile/login.php
b/mobile/login.php
index
7e5d871
..
91a5241
100644
(file)
--- a/
mobile/login.php
+++ b/
mobile/login.php
@@
-82,7
+82,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.auth'));
}
} else
$err->add($i18n->getKey('error.auth'));
}
-} //
POST
+} //
isPost
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
diff --git
a/mobile/time.php
b/mobile/time.php
index
f353948
..
4eca3de
100644
(file)
--- a/
mobile/time.php
+++ b/
mobile/time.php
@@
-286,7
+286,7
@@
if ($request->isPost()) {
$err->add($i18n->getKey('error.db'));
}
}
$err->add($i18n->getKey('error.db'));
}
}
-} //
POST
+} //
isPost
$smarty->assign('next_date', $next_date);
$smarty->assign('prev_date', $prev_date);
$smarty->assign('next_date', $next_date);
$smarty->assign('prev_date', $prev_date);
diff --git
a/mobile/time_delete.php
b/mobile/time_delete.php
index
4dde97d
..
9e818e7
100644
(file)
--- a/
mobile/time_delete.php
+++ b/
mobile/time_delete.php
@@
-90,7
+90,7
@@
if ($request->isPost()) {
header('Location: time.php');
exit();
}
header('Location: time.php');
exit();
}
-} //
POST
+} //
isPost
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
diff --git
a/mobile/time_edit.php
b/mobile/time_edit.php
index
7130b8c
..
46c89d9
100644
(file)
--- a/
mobile/time_edit.php
+++ b/
mobile/time_edit.php
@@
-333,7
+333,7
@@
if ($request->isPost()) {
header("Location: time_delete.php?id=$cl_id");
exit();
}
header("Location: time_delete.php?id=$cl_id");
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
diff --git
a/mobile/timer.php
b/mobile/timer.php
index
6e3a447
..
f210157
100644
(file)
--- a/
mobile/timer.php
+++ b/
mobile/timer.php
@@
-287,7
+287,7
@@
if ($request->isPost()) {
exit();
}
}
exit();
}
}
-} //
POST
+} //
isPost
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $cl_date);
$smarty->assign('week_total', $week_total);
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $cl_date);
$smarty->assign('week_total', $week_total);
diff --git
a/notification_add.php
b/notification_add.php
index
80bd33e
..
80f46bb
100644
(file)
--- a/
notification_add.php
+++ b/
notification_add.php
@@
-84,7
+84,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.add_notification'));
diff --git
a/notification_delete.php
b/notification_delete.php
index
cd0d748
..
a8a2e49
100644
(file)
--- a/
notification_delete.php
+++ b/
notification_delete.php
@@
-59,7
+59,7
@@
if ($request->isPost()) {
header('Location: notifications.php');
exit();
}
header('Location: notifications.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('notification_to_delete', $notification_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('notification_to_delete', $notification_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/notification_edit.php
b/notification_edit.php
index
f145208
..
30a9d8f
100644
(file)
--- a/
notification_edit.php
+++ b/
notification_edit.php
@@
-89,7
+89,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} 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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.add_notification'));
diff --git
a/password_change.php
b/password_change.php
index
0c51280
..
f07b8b6
100644
(file)
--- a/
password_change.php
+++ b/
password_change.php
@@
-87,7
+87,7
@@
if ($request->isPost()) {
$err->add($i18n->getKey('error.auth'));
}
}
$err->add($i18n->getKey('error.auth'));
}
}
-} //
POST
+} //
isPost
$smarty->assign('forms', array($form->getName() => $form->toArray()));
$smarty->assign('title', $i18n->getKey('title.change_password'));
$smarty->assign('forms', array($form->getName() => $form->toArray()));
$smarty->assign('title', $i18n->getKey('title.change_password'));
diff --git
a/password_reset.php
b/password_reset.php
index
9c2ed4e
..
f98421a
100644
(file)
--- a/
password_reset.php
+++ b/
password_reset.php
@@
-110,7
+110,7
@@
if ($request->isPost()) {
$smarty->assign('result_message', $res ? $i18n->getKey('form.reset_password.message') : $i18n->getKey('error.mail_send'));
}
}
$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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.resetPasswordForm.login.focus()"');
diff --git
a/profile_edit.php
b/profile_edit.php
index
a4c9db6
..
e538fce
100644
(file)
--- a/
profile_edit.php
+++ b/
profile_edit.php
@@
-258,7
+258,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.db'));
}
} else
$err->add($i18n->getKey('error.db'));
}
-} //
POST
+} //
isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/project_add.php
b/project_add.php
index
c2a30c5
..
1c825d9
100644
(file)
--- a/
project_add.php
+++ b/
project_add.php
@@
-86,7
+86,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.project_exists'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.projectForm.project_name.focus()"');
diff --git
a/project_delete.php
b/project_delete.php
index
b8a482a
..
ac918a9
100644
(file)
--- a/
project_delete.php
+++ b/
project_delete.php
@@
-59,7
+59,7
@@
if ($request->isPost()) {
header('Location: projects.php');
exit();
}
header('Location: projects.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('project_to_delete', $project_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('project_to_delete', $project_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/project_edit.php
b/project_edit.php
index
7f2cd34
..
9cca73e
100644
(file)
--- a/
project_edit.php
+++ b/
project_edit.php
@@
-124,7
+124,7
@@
if ($request->isPost()) {
$err->add($i18n->getKey('error.project_exists'));
}
}
$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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.projectForm.name.focus()"');
diff --git
a/register.php
b/register.php
index
03d77b6
..
9984460
100644
(file)
--- a/
register.php
+++ b/
register.php
@@
-100,7
+100,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.user_exists'));
}
} 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()));
$smarty->assign('title', $i18n->getKey('title.create_team'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/report.php
b/report.php
index
a34238f
..
dd4b9be
100644
(file)
--- a/
report.php
+++ b/
report.php
@@
-80,7
+80,7
@@
if ($request->isPost()) {
// Re-display this form.
header('Location: report.php');
exit();
// Re-display this form.
header('Location: report.php');
exit();
-} //
POST
+} //
isPost
$group_by = $bean->getAttribute('group_by');
$group_by = $bean->getAttribute('group_by');
diff --git
a/reports.php
b/reports.php
index
894526d
..
90b12b2
100644
(file)
--- a/
reports.php
+++ b/
reports.php
@@
-312,7
+312,7
@@
if ($request->isPost()) {
exit();
}
}
exit();
}
}
-} //
POST
+} //
isPost
$smarty->assign('project_list', $project_list);
$smarty->assign('task_list', $task_list);
$smarty->assign('project_list', $project_list);
$smarty->assign('task_list', $task_list);
diff --git
a/task_add.php
b/task_add.php
index
15e8e7f
..
ff98c97
100644
(file)
--- a/
task_add.php
+++ b/
task_add.php
@@
-75,7
+75,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.task_exists'));
}
} 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()"');
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('onload', 'onLoad="document.taskForm.name.focus()"');
diff --git
a/task_delete.php
b/task_delete.php
index
d4321fb
..
1c08919
100644
(file)
--- a/
task_delete.php
+++ b/
task_delete.php
@@
-59,7
+59,7
@@
if ($request->isPost()) {
header('Location: tasks.php');
exit();
}
header('Location: tasks.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('task_to_delete', $task_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('task_to_delete', $task_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/task_edit.php
b/task_edit.php
index
bdd99b5
..
943e9a9
100644
(file)
--- a/
task_edit.php
+++ b/
task_edit.php
@@
-106,7
+106,7
@@
if ($request->isPost()) {
$err->add($i18n->getKey('error.task_exists'));
}
}
$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'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.edit_task'));
diff --git
a/time.php
b/time.php
index
c79315d
..
08a79eb
100644
(file)
--- a/
time.php
+++ b/
time.php
@@
-350,7
+350,7
@@
if ($request->isPost()) {
exit();
}
}
exit();
}
}
-} //
POST
+} //
isPost
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date);
$week_total = ttTimeHelper::getTimeForWeek($user->getActiveUser(), $selected_date);
diff --git
a/time_delete.php
b/time_delete.php
index
538d9c7
..
26b1793
100644
(file)
--- a/
time_delete.php
+++ b/
time_delete.php
@@
-89,7
+89,7
@@
if ($request->isPost()) {
header('Location: time.php');
exit();
}
header('Location: time.php');
exit();
}
-} //
POST
+} //
isPost
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
diff --git
a/time_edit.php
b/time_edit.php
index
7e4f7bf
..
2dca244
100644
(file)
--- a/
time_edit.php
+++ b/
time_edit.php
@@
-393,7
+393,7
@@
if ($request->isPost()) {
header("Location: time_delete.php?id=$cl_id");
exit();
}
header("Location: time_delete.php?id=$cl_id");
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
$smarty->assign('client_list', $client_list);
$smarty->assign('project_list', $project_list);
diff --git
a/user_add.php
b/user_add.php
index
26cbe69
..
5930085
100644
(file)
--- a/
user_add.php
+++ b/
user_add.php
@@
-164,7
+164,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.user_exists'));
}
} else
$err->add($i18n->getKey('error.user_exists'));
}
-} //
POST
+} //
isPost
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('auth_external', $auth->isPasswordExternal());
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
diff --git
a/user_delete.php
b/user_delete.php
index
092dcb4
..
1f0a40d
100644
(file)
--- a/
user_delete.php
+++ b/
user_delete.php
@@
-91,7
+91,7
@@
if ($request->isPost()) {
header('Location: users.php');
exit();
}
header('Location: users.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.delete_user'));
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('title', $i18n->getKey('title.delete_user'));
diff --git
a/user_edit.php
b/user_edit.php
index
1183b76
..
1d588e8
100644
(file)
--- a/
user_edit.php
+++ b/
user_edit.php
@@
-223,7
+223,7
@@
if ($request->isPost()) {
} else
$err->add($i18n->getKey('error.user_exists'));
}
} else
$err->add($i18n->getKey('error.user_exists'));
}
-} //
POST
+} //
isPost
$rates = ttProjectHelper::getRates($user_id);
$smarty->assign('rates', $rates);
$rates = ttProjectHelper::getRates($user_id);
$smarty->assign('rates', $rates);