This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Server-side socket management | |
* | |
* Copyright (C) 1999 Marcus Meissner, Ove Kåven | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ********************************************************************** | |
// | |
// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved. | |
// | |
// This copy of Ice is licensed to you under the terms described in the | |
// ICE_LICENSE file included in this distribution. | |
// | |
// ********************************************************************** | |
// | |
// Ice version 3.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern t_clan *clanlist_find_clan_by_clantag(int clantag) | |
{ | |
t_elem *curr; | |
t_clan *clan; | |
if (clantag == 0) | |
return NULL; | |
if (clanlist_head) | |
{ | |
LIST_TRAVERSE(clanlist_head, curr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbcodeParser.htmlToBBCode doesn't work with complex tags. | |
For instance: | |
bbcodeParser.addBBCode('[quote={TEXT1}]{TEXT2}[/quote]', '<div class=quote><cite>{TEXT1}</cite><p>{TEXT2}</p></div>'); | |
var bbcode = bbcodeParser.htmlToBBCode('<div class=quote><cite>Author</cite><p>My message</p></div>'); | |
It returns the same HTML string, but not BB code string. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Increase acct_leave count +1 when new ROW inserted into table `gameplayers`, if player left time less then game duration -5 munutes */ | |
DELIMITER $$ | |
CREATE | |
TRIGGER `leaver_trigger` BEFORE INSERT | |
ON `gameplayers` | |
FOR EACH ROW BEGIN | |
IF ( NEW.left < (SELECT duration FROM games WHERE games.id = NEW.gameid) - 60*5 ) THEN | |
UPDATE pvpgn_bnet SET pvpgn_bnet.acct_leave = pvpgn_bnet.acct_leave + 1 WHERE LOWER(NEW.name) = LOWER(pvpgn_bnet.username); | |
END IF; |