simple_page_mode(true);
//-------------------------------------------------------------------------------------------------
-function can_process()
+function can_process($new)
{
if (strlen($_POST['user_id']) < 4)
return false;
}
- if ($_POST['password'] != "")
+ if (!$new && ($_POST['password'] != ""))
{
if (strlen($_POST['password']) < 4)
{
if (($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') && check_csrf_token())
{
- if (can_process())
+ if (can_process($Mode == 'ADD_ITEM'))
{
if ($selected_id != -1)
{
alt_table_row_color($k);
- $last_visit_date = sql2date($myrow["last_visit_date"]);
+ $time_format = (user_date_format() == 0 ? "h:i a" : "H:i");
+ $last_visit_date = sql2date($myrow["last_visit_date"]). " " .
+ date($time_format, strtotime($myrow["last_visit_date"]));
/*The security_headings array is defined in config.php */
$not_me = strcasecmp($myrow["user_id"], $_SESSION["wa_current_user"]->username);