IMCDb Forum
Delete a Message
Reason of removal (sent to the user)

Do you really want to delete this message?  


antp
in the checkbox:

  1. if($autoresizeecho 'checked="checked"'


and the variable itself is initialized like that:

  1. if($validPost
  2. {  
  3. $autoresize = isset($_POST['autoresize']) && $_POST['autoresize']; 
  4. if(!$autoresize
  5. setcookie('imcdb_noautoresize'truetime() + 60*60*24*60); 
  6. else 
  7. setcookie('imcdb_noautoresize'false); 
  8. else 
  9. if(isset($_COOKIE['imcdb_noautoresize']) && $_COOKIE['imcdb_noautoresize']) 
  10. $autoresize = false
  11. else 
  12. $autoresize = true
  13. }


So by default it should be checked, and the state should be remembered.
The code is a little weird maybe.
I could imagine that the cookie would be wrongly read afterwards for some reason; but if there is no cookie defined at the first place, I don't see how it it could not being checked.
Maybe I should not pass any value instead of "false", to remove the cookie completely in case the box is checked...
Sign In :: Sign Up :: Lost your login or your password?
KelCommunity.be :: © 2004-2024 Akretio SPRL :: Powered by Kelare