Changeset 4244 for trunk/licqweb
- Timestamp:
- 10/01/05 15:45:58 (3 years ago)
- Location:
- trunk/licqweb
- Files:
-
- 5 modified
-
CHANGELOG (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
licqweb.css (modified) (1 diff)
-
licqweb.js (modified) (3 diffs)
-
TODO (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licqweb/CHANGELOG
r4228 r4244 3 3 - get sent message timestamp from server 4 4 - use event tags from rms properly in rmsSendMessage() 5 - window focus issues 5 - sent messages with return characters get displayed properly 6 - added aim icons -
trunk/licqweb/index.php
r4237 r4244 19 19 </div> 20 20 <div id="contactList" class="box" style="left:10px;top:150px;display:none;"> 21 <div class="bar" onmousedown="init_drag(event, 'contactList')" id="nick">licqweb</div>22 <div id="contacts"></div>23 <div id="ownerStatus"></div>21 <div class="bar" onmousedown="init_drag(event, 'contactList')" id="nick">licqweb</div> 22 <div id="contacts"></div> 23 <div id="ownerStatus"></div> 24 24 </div> 25 25 <div id="statusMenu"></div> … … 30 30 $fd = fopen("http://www.licq.org/licqweb-news.txt", "r"); 31 31 if (!$fd) 32 $fd = fopen("http://www.thejon.org/licqweb-news.txt", "r"); 33 if ($fd) 34 { 35 $str = ""; 36 while(!feof($fd)) 37 $str .= fread($fd, 4096); 38 fclose($fd); 32 $fd = fopen("http://www.thejon.org/licqweb-news.txt", "r"); 33 if ($fd) { 34 $str = ""; 35 while(!feof($fd)) 36 $str .= fread($fd, 4096); 37 fclose($fd); 39 38 } 40 41 echo "<div id=\"newsid\" class=\"news\"><div class=\"bar\">News</div>".$str."</div>\n"; 39 echo "<div id=\"newsid\" class=\"news\"><div class=\"bar\">News</div>".$str."</div>\n"; 42 40 ?> 43 41 </body> -
trunk/licqweb/licqweb.css
r4234 r4244 184 184 185 185 .news { 186 position: absolute;187 top: 300;188 right: 0;189 bottom: 0;190 left: 0;191 width: 300px;192 height: 100px;193 margin: auto;194 background-color: #aaf;195 color: white;186 position: absolute; 187 top: 300; 188 right: 0; 189 bottom: 0; 190 left: 0; 191 width: 300px; 192 height: 100px; 193 margin: auto; 194 background-color: #aaf; 195 color: white; 196 196 } 197 197 .centre { -
trunk/licqweb/licqweb.js
r4237 r4244 154 154 } 155 155 contacthtml = ""; 156 var aimLower = 'abcdefghijklmnopqrstuvwxyz';157 var aimUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';156 var aimLower = 'abcdefghijklmnopqrstuvwxyz'; 157 var aimUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 158 158 for (var status in statuss) { 159 159 j = sortedContacts[status].length; … … 161 161 var contact = sortedContacts[status][i]; 162 162 var uclass = contact.status; 163 var pp = ""; 164 if (contact.pp.toLowerCase() == "licq" && 165 (aimLower.indexOf(contact.id.charAt(0), 0) != -1 || 166 aimUpper.indexOf(contact.id.charAt(0), 0) != -1)){ 167 163 var pp = ""; 164 if (contact.pp.toLowerCase() == "licq" && 165 (aimLower.indexOf(contact.id.charAt(0), 0) != -1 || 166 aimUpper.indexOf(contact.id.charAt(0), 0) != -1)) { 168 167 pp = "aim"; 168 } else { 169 pp = contact.pp.toLowerCase(); 169 170 } 170 else {171 pp = contact.pp.toLowerCase();172 }173 174 171 var imgsrc = "images/" + pp + "." + contact.status.toLowerCase() + ".png"; 175 172 if (parseInt(contact.nummsgs) > 0) { … … 254 251 var txt = document.getElementById(message.id + '-' + message.pp + '-txt'); 255 252 if (res == "done.") { 256 txt.innerHTML += "(" + ts + ") " + nick + ": " + message.message + "<br/>";253 txt.innerHTML += "(" + ts + ") " + nick + ": " + message.message.replace(/[\r\n]+/g, "<br/>") + "<br/>"; 257 254 } else { 258 255 txt.innerHTML += "--- Message failed!<br/>"; -
trunk/licqweb/TODO
r4238 r4244 2 2 * fix plaintext passwords 3 3 * fix invisible status images 4 * return characters in sent messages5 4 * html tags in user nicks + messages (should show unallowed html as plain text) 6 5 * messages from offline users 6 * focus issues 7 7 8 8 Other:
