فهرست منبع

changed excludes

root 1 سال پیش
والد
کامیت
3311c4035c
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      .gitignore
  2. 1 1
      scripts/eyelib/database.pm

+ 2 - 0
.gitignore

@@ -5,3 +5,5 @@
 /html/js/jstree/
 /html/js/select2/
 /.vscode/
+/html/log/*.log
+/html/sessions/sess_*

+ 1 - 1
scripts/eyelib/database.pm

@@ -1911,7 +1911,7 @@ my $value = shift || $$;
 my $timeshift = shift || 60;
 
 Del_Variable($db,$name);
-my $clean_variables = time() + $timeshift;
+my $clean_variables = time() + $timeshift*60;
 my $clean_str=GetTimeStrByUnixTime($clean_variables);
 my $clean_variables_date=$db->quote($clean_str);
 do_sql($db,"INSERT INTO variables(name,value,clear_time) VALUES('".$name."','".$value."',".$clean_variables_date.");");