diff --git a/CHANGELOG b/CHANGELOG index 7194029..e1d040f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ +Optimizations +More secure session key generation and password storage Add option to make your own font small Separate changing nickname and password +Use PHPs native timezones +Add message asking for manual refresh, when it stopped working Version 1.22.1 - Nov. 13, 2016 Performance optimizations diff --git a/chat.php b/chat.php index da7e9b5..50177c6 100644 --- a/chat.php +++ b/chat.php @@ -271,7 +271,15 @@ function print_stylesheet($init=false){ echo '.messages #chatters th,.messages #chatters td,.post #firstline{vertical-align:top;} '; echo '.approve_waiting #action td:only-child,.help #backcredit,.login td:only-child,.alogin td:only-child,.init td:only-child{text-align:center;} .sessions td,.sessions th,.approve_waiting td,.approve_waiting th{padding: 5px;} '; echo '.sessions td td{padding: 1px;} .messages #bottom_link{position:fixed;top:0.5em;right:0.5em;} .messages #top_link{position:fixed;bottom:0.5em;right:0.5em;} '; - echo '.post table,.controls table,.login table{border-spacing:0px;margin-left:auto;margin-right:auto;} .login table{border:2px solid;} .controls{overflow-y:none;}'; + echo '.post table,.controls table,.login table{border-spacing:0px;margin-left:auto;margin-right:auto;} .login table{border:2px solid;} .controls{overflow-y:none;} '; + echo '#manualrefresh{display:block;position:fixed;text-align:center;left:25%;width:50%;animation:timeout_messages '; + if(isset($U['refresh'])){ + echo $U['refresh']+10; + }else{ + echo '160'; + } + echo 's;z-index:2;background-color:#500000;border:2px solid #ff0000;} '; + echo '@keyframes timeout_messages{0%{top:-200%;} 99%{top:-200%;} 100%{top:0%;}}'; echo ''; if($init){ return; @@ -1444,6 +1452,7 @@ function send_messages(){ print_start('messages', $U['refresh'], "$_SERVER[SCRIPT_NAME]?action=view&session=$U[session]&lang=$language$nocache$sort"); echo ''; echo "$I[bottom]"; + echo "