Cosmetic - improved comments
authorNik Okuntseff <support@anuko.com>
Sun, 20 Mar 2016 22:44:32 +0000 (15:44 -0700)
committerNik Okuntseff <support@anuko.com>
Sun, 20 Mar 2016 22:44:32 +0000 (15:44 -0700)
16 files changed:
admin_options.php
admin_team_add.php
admin_team_delete.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
expenses.php
export.php
import.php

index 42c10bb..2a44e3e 100644 (file)
@@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.options'));
index 258f6ca..3ce0e66 100644 (file)
@@ -93,7 +93,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.user_exists'));
   }
-}
+} // POST
 
 $smarty->assign('auth_external', $auth->isPasswordExternal());
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index b53c5e9..2b308e5 100644 (file)
@@ -58,7 +58,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: admin_teams.php');
     exit();
   }
-}
+} // POST
 
 $smarty->assign('team_to_delete', $team_name);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index 3af6c3a..056ce53 100644 (file)
@@ -65,7 +65,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index 3d92d94..15146db 100644 (file)
@@ -70,7 +70,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.fieldForm.name.focus()"');
index 26ede87..2ffb83f 100644 (file)
@@ -62,7 +62,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionAddForm.name.focus()"');
index b46a3a5..f61225b 100644 (file)
@@ -64,7 +64,7 @@ if ($request->getMethod() == 'POST') {
     } else
       $errors->add($i18n->getKey('error.db'));
   }
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.optionEditForm.name.focus()"');
index a7d0887..a58c3d8 100644 (file)
@@ -117,7 +117,7 @@ if ($request->getMethod( )== 'POST') {
       exit();
     }
   }
-}
+} // POST
 
 // Elements of chartForm.
 $chart_form = new Form('chartForm');
index b718705..4aef5ab 100644 (file)
@@ -80,7 +80,7 @@ if ($request->getMethod() == 'POST') {
      } else
        $errors->add($i18n->getKey('error.client_exists'));
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.clientForm.name.focus()"');
index 8d3f65e..cdc20b6 100644 (file)
@@ -64,7 +64,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: clients.php');
     exit();
   }
-} // post
+} // POST
 
 $smarty->assign('client_to_delete', $client_to_delete);
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
index c24a427..747ed2b 100644 (file)
@@ -113,7 +113,7 @@ if ($request->getMethod() == 'POST') {
         $errors->add($i18n->getKey('error.client_exists'));
     }
   }
-} // post
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.edit_client'));
index 2f53126..69ceb66 100644 (file)
@@ -75,7 +75,7 @@ if ($request->getMethod() == 'POST') {
     header('Location: expenses.php');
     exit();
   }
-}
+} // POST
 
 $form = new Form('expenseItemForm');
 $form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
index 8ae6772..89ca38c 100644 (file)
@@ -203,7 +203,7 @@ if ($request->getMethod() == 'POST') {
     header("Location: expense_delete.php?id=$cl_id");
     exit();
   }
-} // End of if ($request->getMethod() == "POST")
+} // POST
 
 $smarty->assign('client_list', $client_list);
 $smarty->assign('project_list', $project_list);
index 8943fa9..0f93b3b 100644 (file)
@@ -98,8 +98,7 @@ if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->t
     'value'=>$cl_project,
     'data'=>$project_list,
     'datakeys'=>array('id','name'),
-    'empty'=>array(''=>$i18n->getKey('dropdown.select'))
-  ));
+    'empty'=>array(''=>$i18n->getKey('dropdown.select'))));
 
   // Dropdown for clients if the clients plugin is enabled.
   if (in_array('cl', explode(',', $user->plugins))) {
@@ -134,7 +133,7 @@ $form->addInput(array('type'=>'calendar','name'=>'date','highlight'=>'expenses',
 $form->addInput(array('type'=>'hidden','name'=>'browser_today','value'=>'')); // User current date, which gets filled in on btn_submit click.
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','onclick'=>'browser_today.value=get_date()','value'=>$i18n->getKey('button.submit')));
 
-// Determine lock date. Time entries earlier than lock date cannot be created or modified. 
+// Determine lock date. Time entries earlier than lock date cannot be created or modified.
 $lock_interval = $user->lock_interval;
 $lockdate = 0;
 if ($lock_interval > 0) {
index 3c46a5b..9f3694c 100644 (file)
@@ -75,7 +75,7 @@ if ($request->getMethod() == 'POST') {
     exit;
   } else
     $errors->add($i18n->getKey('error.sys'));
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.export'));
index a76af18..7d61e03 100644 (file)
@@ -38,7 +38,7 @@ if (!ttAccessCheck(right_administer_site)) {
 
 $form = new Form('importForm');
 $form->addInput(array('type'=>'upload','name'=>'xmlfile','value'=>'browse','maxsize'=>16777216)); // 16 MB file upload limit.
-// Note: for the above limit to work make sure to set upload_max_filesize and post_max_size in php.ini to at least 16M. 
+// Note: for the above limit to work make sure to set upload_max_filesize and post_max_size in php.ini to at least 16M.
 $form->addInput(array('type'=>'submit','name'=>'btn_submit','value'=>$i18n->getKey('button.import')));
 
 if ($request->getMethod() == 'POST') {
@@ -47,7 +47,7 @@ if ($request->getMethod() == 'POST') {
   $import->importXml();
   if ($errors->isEmpty())
     $messages->add($i18n->getKey('form.import.success'));
-}
+} // POST
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()) );
 $smarty->assign('title', $i18n->getKey('title.import'));