msn-proxy-devel Mailing List for msn-proxy: the msn connection control (Page 9)
Brought to you by:
loos-br
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(10) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(45) |
Feb
(19) |
Mar
(21) |
Apr
(17) |
May
(43) |
Jun
(11) |
Jul
(3) |
Aug
(17) |
Sep
(17) |
Oct
(1) |
Nov
(4) |
Dec
(7) |
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(3) |
Dec
(4) |
| 2011 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
(19) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Fábio M. <ilu...@gm...> - 2009-02-25 17:06:52
|
A Microsoft disponibiliza algum link com as padronizações do protocolo do MSN? ou tem que dar um tcpdump e catar na unha? Acho que a atualização liberada ontem/hoje modificou o protocolo novamente.. 2009/2/19 Pierre Santana <pie...@gm...> > Fábio > > Vai depender muito da estrutura da sua rede. > Caso você use autenticação, terá que liberar algumas url para que o usuário > consiga conexão com alguns sites que usam https. > > > > 2009/2/19 Fábio Mello <ilu...@gm...> > >> Eu tive que 'liberar' o login.live.com, você teve que fazer isto aí >> também? >> >> 2009/2/19 aledr <mat...@gm...> >> >> 2009/2/19 Fábio Mello <ilu...@gm...>: >>> > Alguém utiliza o msn-proxy em um ambiente com proxy? >>> > Não encontrei nenhum wiki sobre isto, eu estou utilizando aqui na >>> empresa e >>> > aparentemente está ok... >>> > Só queria conferir minhas configurações e saber se devo bloquear algo >>> para >>> > saida no proxy(forçando sair por tcp). >>> >>> Fabio, todas as minhas instalações de servidor que possuem o msn-proxy >>> também possuem proxy http. >>> Não é necessário bloquear nada na saída do proxy pois o tráfego passa >>> somente pelo proxy-msn (redirecionamento do tráfego 1863). >>> Você pode ter uma garantia bloqueando o "gateway.dll" no proxy http. >>> Isto bloquearia o tráfego do MSN caso ele tentar utilizar a porta 80 >>> (se um usuário definir as configurações de proxy no MSN por exemplo). >>> >>> Obrigado. >>> >>> > 2009/2/19 Pierre Santana <pie...@gm...> >>> >> >>> >> Bom dia pessoal, >>> >> >>> >> Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. >>> >> Notei que o cliente enviou um comando UBN e o servidor retornou um >>> comando >>> >> UUN, o comando não foi aceito e trouxe resultado nulo. >>> >> >>> >> -- >>> >> Pierre Santana >>> >> System Administrator >>> >> Certified LPI >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, >>> >> CA >>> >> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> >> Enterprise >>> >> -Strategies to boost innovation and cut costs with open source >>> >> participation >>> >> -Receive a $600 discount off the registration fee with the source >>> code: >>> >> SFAD >>> >> http://p.sf.net/sfu/XcvMzF8H >>> >> _______________________________________________ >>> >> msn-proxy-devel mailing list >>> >> msn...@li... >>> >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >>> >> >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ >>> > Open Source Business Conference (OSBC), March 24-25, 2009, San >>> Francisco, CA >>> > -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> > -Strategies to boost innovation and cut costs with open source >>> participation >>> > -Receive a $600 discount off the registration fee with the source code: >>> SFAD >>> > http://p.sf.net/sfu/XcvMzF8H >>> > _______________________________________________ >>> > msn-proxy-devel mailing list >>> > msn...@li... >>> > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >>> -- >>> [ ]'s >>> Aledr - Alexandre >>> "OpenSource Solutions for SmallBusiness Problems" >>> >>> >>> ------------------------------------------------------------------------------ >>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >>> CA >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> Enterprise >>> -Strategies to boost innovation and cut costs with open source >>> participation >>> -Receive a $600 discount off the registration fee with the source code: >>> SFAD >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> msn-proxy-devel mailing list >>> msn...@li... >>> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >>> >> >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> msn-proxy-devel mailing list >> msn...@li... >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >> >> > > > -- > Pierre Santana > System Administrator > Certified LPI > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > |
|
From: Pierre S. <pie...@gm...> - 2009-02-19 14:41:22
|
Fábio Vai depender muito da estrutura da sua rede. Caso você use autenticação, terá que liberar algumas url para que o usuário consiga conexão com alguns sites que usam https. 2009/2/19 Fábio Mello <ilu...@gm...> > Eu tive que 'liberar' o login.live.com, você teve que fazer isto aí > também? > > 2009/2/19 aledr <mat...@gm...> > > 2009/2/19 Fábio Mello <ilu...@gm...>: >> > Alguém utiliza o msn-proxy em um ambiente com proxy? >> > Não encontrei nenhum wiki sobre isto, eu estou utilizando aqui na >> empresa e >> > aparentemente está ok... >> > Só queria conferir minhas configurações e saber se devo bloquear algo >> para >> > saida no proxy(forçando sair por tcp). >> >> Fabio, todas as minhas instalações de servidor que possuem o msn-proxy >> também possuem proxy http. >> Não é necessário bloquear nada na saída do proxy pois o tráfego passa >> somente pelo proxy-msn (redirecionamento do tráfego 1863). >> Você pode ter uma garantia bloqueando o "gateway.dll" no proxy http. >> Isto bloquearia o tráfego do MSN caso ele tentar utilizar a porta 80 >> (se um usuário definir as configurações de proxy no MSN por exemplo). >> >> Obrigado. >> >> > 2009/2/19 Pierre Santana <pie...@gm...> >> >> >> >> Bom dia pessoal, >> >> >> >> Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. >> >> Notei que o cliente enviou um comando UBN e o servidor retornou um >> comando >> >> UUN, o comando não foi aceito e trouxe resultado nulo. >> >> >> >> -- >> >> Pierre Santana >> >> System Administrator >> >> Certified LPI >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, >> >> CA >> >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> >> Enterprise >> >> -Strategies to boost innovation and cut costs with open source >> >> participation >> >> -Receive a $600 discount off the registration fee with the source code: >> >> SFAD >> >> http://p.sf.net/sfu/XcvMzF8H >> >> _______________________________________________ >> >> msn-proxy-devel mailing list >> >> msn...@li... >> >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >> >> >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Open Source Business Conference (OSBC), March 24-25, 2009, San >> Francisco, CA >> > -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> > -Strategies to boost innovation and cut costs with open source >> participation >> > -Receive a $600 discount off the registration fee with the source code: >> SFAD >> > http://p.sf.net/sfu/XcvMzF8H >> > _______________________________________________ >> > msn-proxy-devel mailing list >> > msn...@li... >> > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >> -- >> [ ]'s >> Aledr - Alexandre >> "OpenSource Solutions for SmallBusiness Problems" >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> msn-proxy-devel mailing list >> msn...@li... >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >> > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > -- Pierre Santana System Administrator Certified LPI |
|
From: Fábio M. <ilu...@gm...> - 2009-02-19 14:37:28
|
Eu tive que 'liberar' o login.live.com, você teve que fazer isto aí também? 2009/2/19 aledr <mat...@gm...> > 2009/2/19 Fábio Mello <ilu...@gm...>: > > Alguém utiliza o msn-proxy em um ambiente com proxy? > > Não encontrei nenhum wiki sobre isto, eu estou utilizando aqui na empresa > e > > aparentemente está ok... > > Só queria conferir minhas configurações e saber se devo bloquear algo > para > > saida no proxy(forçando sair por tcp). > > Fabio, todas as minhas instalações de servidor que possuem o msn-proxy > também possuem proxy http. > Não é necessário bloquear nada na saída do proxy pois o tráfego passa > somente pelo proxy-msn (redirecionamento do tráfego 1863). > Você pode ter uma garantia bloqueando o "gateway.dll" no proxy http. > Isto bloquearia o tráfego do MSN caso ele tentar utilizar a porta 80 > (se um usuário definir as configurações de proxy no MSN por exemplo). > > Obrigado. > > > 2009/2/19 Pierre Santana <pie...@gm...> > >> > >> Bom dia pessoal, > >> > >> Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. > >> Notei que o cliente enviou um comando UBN e o servidor retornou um > comando > >> UUN, o comando não foi aceito e trouxe resultado nulo. > >> > >> -- > >> Pierre Santana > >> System Administrator > >> Certified LPI > >> > >> > >> > ------------------------------------------------------------------------------ > >> Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, > >> CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the > >> Enterprise > >> -Strategies to boost innovation and cut costs with open source > >> participation > >> -Receive a $600 discount off the registration fee with the source code: > >> SFAD > >> http://p.sf.net/sfu/XcvMzF8H > >> _______________________________________________ > >> msn-proxy-devel mailing list > >> msn...@li... > >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > >> > > > > > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > > -Strategies to boost innovation and cut costs with open source > participation > > -Receive a $600 discount off the registration fee with the source code: > SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > msn-proxy-devel mailing list > > msn...@li... > > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- > [ ]'s > Aledr - Alexandre > "OpenSource Solutions for SmallBusiness Problems" > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > |
|
From: aledr <mat...@gm...> - 2009-02-19 14:36:29
|
2009/2/19 Fábio Mello <ilu...@gm...>: > Alguém utiliza o msn-proxy em um ambiente com proxy? > Não encontrei nenhum wiki sobre isto, eu estou utilizando aqui na empresa e > aparentemente está ok... > Só queria conferir minhas configurações e saber se devo bloquear algo para > saida no proxy(forçando sair por tcp). Fabio, todas as minhas instalações de servidor que possuem o msn-proxy também possuem proxy http. Não é necessário bloquear nada na saída do proxy pois o tráfego passa somente pelo proxy-msn (redirecionamento do tráfego 1863). Você pode ter uma garantia bloqueando o "gateway.dll" no proxy http. Isto bloquearia o tráfego do MSN caso ele tentar utilizar a porta 80 (se um usuário definir as configurações de proxy no MSN por exemplo). Obrigado. > 2009/2/19 Pierre Santana <pie...@gm...> >> >> Bom dia pessoal, >> >> Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. >> Notei que o cliente enviou um comando UBN e o servidor retornou um comando >> UUN, o comando não foi aceito e trouxe resultado nulo. >> >> -- >> Pierre Santana >> System Administrator >> Certified LPI >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> msn-proxy-devel mailing list >> msn...@li... >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel >> > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Fábio M. <ilu...@gm...> - 2009-02-19 13:41:21
|
Alguém utiliza o msn-proxy em um ambiente com proxy? Não encontrei nenhum wiki sobre isto, eu estou utilizando aqui na empresa e aparentemente está ok... Só queria conferir minhas configurações e saber se devo bloquear algo para saida no proxy(forçando sair por tcp). 2009/2/19 Pierre Santana <pie...@gm...> > Bom dia pessoal, > > Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. > Notei que o cliente enviou um comando UBN e o servidor retornou um comando > UUN, o comando não foi aceito e trouxe resultado nulo. > > -- > Pierre Santana > System Administrator > Certified LPI > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > |
|
From: Pierre S. <pie...@gm...> - 2009-02-19 13:23:32
|
Bom dia pessoal, Hoje me deparei com um problema, conversa de voz atrás do msn-proxy. Notei que o cliente enviou um comando UBN e o servidor retornou um comando UUN, o comando não foi aceito e trouxe resultado nulo. -- Pierre Santana System Administrator Certified LPI |
|
From: Luiz O. O S. <lo...@gm...> - 2009-02-16 11:09:03
|
> > Estou disposto a ajudar na interface web e fazer beta test. > > Alguém tem o e-mail da outra pessoa que também falou que poderia ajudar > > na > > interface web? > > > > Eu estou com uma versão quase pronta de uma interface web, faltam só > alguns detalhes. > Logo eu envio para o SVN e notifico a lista convidando para testes, > assim poderemos todos trabalhar em uma mesma direção. Exato ! O Alexandre é a pessoa que esta trabalhando e coordenando o desenvolvimento da interface web, toda e qualquer duvida pode ser discutida com ele ou aqui na lista (ainda melhor) onde estão inscritos a maior parte dos interessados em contribuir. []'s e obrigado, Luiz |
|
From: aledr <mat...@gm...> - 2009-02-15 17:19:32
|
2009/2/15 Fábio Mello <ilu...@gm...>: > Estou disposto a ajudar na interface web e fazer beta test. > Alguém tem o e-mail da outra pessoa que também falou que poderia ajudar na > interface web? > Eu estou com uma versão quase pronta de uma interface web, faltam só alguns detalhes. Logo eu envio para o SVN e notifico a lista convidando para testes, assim poderemos todos trabalhar em uma mesma direção. Obrigado. > 2009/2/14 Luiz Otavio O Souza <lo...@gm...> >> >> > Bom dia! >> > >> > Depois de um tempinho eu retornei. =D >> > Retomando a discussão sobre o banco de dados... >> > Luiz, você quer que eu envie o modelo atual que estou usando ou já >> > devo incluir os campos para fazer o controle de horários? >> > >> > Abraço! >> > -- >> > [ ]'s >> > Aledr - Alexandre >> > "OpenSource Solutions for SmallBusiness Problems" >> >> Alexandre, >> >> Se você já quiser incluir os campos para controle de horario, fique a >> vontade ! :) >> >> Assim que tiver algum tempo por aqui, vou instalar o redmine para nosso >> maior/melhor controle. >> >> Abraços, >> Luiz >> >> >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> Enterprise >> -Strategies to boost innovation and cut costs with open source >> participation >> -Receive a $600 discount off the registration fee with the source code: >> SFAD >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> msn-proxy-devel mailing list >> msn...@li... >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Fábio M. <ilu...@gm...> - 2009-02-15 14:15:08
|
Estou disposto a ajudar na interface web e fazer beta test. Alguém tem o e-mail da outra pessoa que também falou que poderia ajudar na interface web? 2009/2/14 Luiz Otavio O Souza <lo...@gm...> > > Bom dia! > > > > Depois de um tempinho eu retornei. =D > > Retomando a discussão sobre o banco de dados... > > Luiz, você quer que eu envie o modelo atual que estou usando ou já > > devo incluir os campos para fazer o controle de horários? > > > > Abraço! > > -- > > [ ]'s > > Aledr - Alexandre > > "OpenSource Solutions for SmallBusiness Problems" > > Alexandre, > > Se você já quiser incluir os campos para controle de horario, fique a > vontade ! :) > > Assim que tiver algum tempo por aqui, vou instalar o redmine para nosso > maior/melhor controle. > > Abraços, > Luiz > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > |
|
From: Luiz O. O S. <lo...@gm...> - 2009-02-14 13:34:33
|
> Bom dia! > > Depois de um tempinho eu retornei. =D > Retomando a discussão sobre o banco de dados... > Luiz, você quer que eu envie o modelo atual que estou usando ou já > devo incluir os campos para fazer o controle de horários? > > Abraço! > -- > [ ]'s > Aledr - Alexandre > "OpenSource Solutions for SmallBusiness Problems" Alexandre, Se você já quiser incluir os campos para controle de horario, fique a vontade ! :) Assim que tiver algum tempo por aqui, vou instalar o redmine para nosso maior/melhor controle. Abraços, Luiz |
|
From: aledr <mat...@gm...> - 2009-02-12 12:44:12
|
Bom dia! Depois de um tempinho eu retornei. =D Retomando a discussão sobre o banco de dados... Luiz, você quer que eu envie o modelo atual que estou usando ou já devo incluir os campos para fazer o controle de horários? Abraço! -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: <leo...@us...> - 2009-02-11 19:05:02
|
Revision: 104
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=104&view=rev
Author: leorogoski
Date: 2009-02-11 19:04:58 +0000 (Wed, 11 Feb 2009)
Log Message:
-----------
- Corre?\195?\167?\195?\163o de v?\195?\161rios memory leaks;
- Substitui?\195?\167?\195?\163o da fun?\195?\167?\195?\163o bzero (considerada depreciada) pela memset;
Modified Paths:
--------------
trunk/client.c
trunk/config.c
trunk/msn-proxy.c
trunk/msn-proxy.h
trunk/mysql.c
trunk/mysql.h
trunk/net-io.c
trunk/ns.c
trunk/p2p.c
trunk/sb.c
trunk/server.c
trunk/sql.c
trunk/user.c
trunk/user.h
trunk/xml.c
Modified: trunk/client.c
===================================================================
--- trunk/client.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/client.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -21,7 +21,7 @@
#include <errno.h>
#include <stdlib.h>
-#include <strings.h>
+#include <string.h>
#include <unistd.h>
#include "client.h"
@@ -50,7 +50,7 @@
client = (client_ *)malloc(sizeof(*client));
if (client == (client_ *)0)
die_nomem();
- bzero(client, sizeof(*client));
+ memset(client, 0, sizeof(*client));
/* prepare commands */
commands_init(&client->commands);
Modified: trunk/config.c
===================================================================
--- trunk/config.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/config.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -59,13 +59,14 @@
};
int config_default(config_ *config) {
- bzero(config, sizeof(*config));
+ memset(config, 0, sizeof(*config));
+
/* default config file path */
if (str_copys(&config->file, (unsigned char *)DEFAULT_CONFIG_PATH) == 0 ||
- str_cats(&config->file, (unsigned char *)DEFAULT_CONFIG_FILE) == 0) {
+ str_cats(&config->file, (unsigned char *)DEFAULT_CONFIG_FILE) == 0) {
- die_nomem();
+ die_nomem();
}
/* default M$ notification server */
@@ -273,7 +274,9 @@
}
int config_set_path(string *file, char *path) {
- str_zero(file);
+ /* Deallocate previous memory */
+ str_free(file);
+ str_zero(file);
if (str_cats(file, (unsigned char *)path) == 0)
die_nomem();
Modified: trunk/msn-proxy.c
===================================================================
--- trunk/msn-proxy.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/msn-proxy.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -37,10 +37,37 @@
config_ config;
struct event evctl;
struct event ev;
+struct event_base *base = (struct event_base *)0;
-void die_nomem(void) { perror("malloc"); exit(51); }
-void die_err(char *msg) { if (msg) { io_printf(1, "%S\n", msg); } exit(1); }
+/* prevents memory leaks when program exits */
+void cleanup(void) {
+
+ db_close(&config.mysql);
+ str_free(&config.default_ns_host);
+ str_free(&config.default_ns_port);
+ str_free(&config.defaults.internal_host);
+ str_free(&config.file);
+ str_free(&config.listen_host);
+ str_free(&config.listen_port);
+ str_free(&config.defaults.internal_host);
+ str_free(&config.mysql.db);
+ str_free(&config.mysql.host);
+ str_free(&config.mysql.pass);
+ str_free(&config.mysql.user);
+ if (base) {
+ event_base_free(base);
+ }
+ /* free sql tree - tables */
+ free_sqltable_tree(&config.mysql);
+ /* free users tree - contacts and users */
+ free_users_tree();
+
+}
+
+void die_nomem(void) { perror("malloc"); cleanup(); exit(51); }
+void die_err(char *msg) { if (msg) { io_printf(1, "%S\n", msg); } cleanup(); exit(1); }
void die_bug(void) { io_printf(1, "oops bug here ! call my doctor !\n"); exit(2); }
+void die_suc(char *msg) { if (msg) { io_printf(1, "%S\n", msg); cleanup(); } exit(1); }
void usage(void) {
io_printf(1,
@@ -82,8 +109,15 @@
exit(0);
}
+void sigdie(void) {
+ /* Exit with SUCCESS */
+ die_suc("exiting msn-proxy!\n");
+}
+
+
int
main(int argc, char **argv) {
+
int bg;
int ch;
int ctlfd;
@@ -154,7 +188,7 @@
/* detach */
if (bg == 0) {
//detach();
- } else {
+ } else {
daemonize();
}
@@ -177,6 +211,11 @@
/* set SIGALRM to reload ACL defaults */
sig_catch(SIGALRM, (void *)sql_read_defaults);
+ /* set some signals */
+ sig_catch(SIGTERM, sigdie);
+ sig_catch(SIGQUIT, sigdie);
+ sig_catch(SIGINT, sigdie);
+
print_config(&config);
ctlfd = unix_listen(config.backlog);
@@ -200,7 +239,7 @@
user_rb_init();
/* setup libevent */
- event_init();
+ base = event_init();
/*
* setup persistent event on listenfd
Modified: trunk/msn-proxy.h
===================================================================
--- trunk/msn-proxy.h 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/msn-proxy.h 2009-02-11 19:04:58 UTC (rev 104)
@@ -114,6 +114,10 @@
void die_nomem(void);
void die_err(char *msg);
+void die_bug(void);
+void die_suc(char *msg);
+void cleanup(void);
+void sigdie(void);
extern config_ config;
Modified: trunk/mysql.c
===================================================================
--- trunk/mysql.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/mysql.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -271,7 +271,7 @@
mysql->debug("SQL INIT: (%S)\n", db_error(mysql));
return(RFAIL);
}
- bzero(&mysql->pass.s, mysql->pass.len);
+ //memset(&mysql->pass.s, 0, mysql->pass.len);
mysql->connected = 1;
/* set auto-reconnect */
@@ -286,6 +286,8 @@
{
if (mysql->connected)
mysql_close(&mysql->mysql);
+ /* Free memory */
+ mysql_server_end();
mysql->connected = 0;
}
@@ -341,7 +343,7 @@
/* open file and read read */
fd = open((char *)table->name.s, O_RDONLY);
if (fd == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel abrir o arquivo [%S] [%S]\n",
+ io_printf(1, "n�o foi poss�vel abrir o arquivo [%S] [%S]\n",
table->name.s, strerror(errno));
db_table_free(table);
free(*table_);
@@ -351,7 +353,7 @@
len = io_read(fd, (char *)table->sql.s + table->sql.len,
table->sql.a - table->sql.len);
if (len == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel ler o arquivo [%S] [%S]\n",
+ io_printf(1, "n�o foi poss�vel ler o arquivo [%S] [%S]\n",
table->name.s, strerror(errno));
db_table_free(table);
free(*table_);
@@ -361,7 +363,7 @@
table->sql.len += len;
}
close(fd);
-
+
return(ROK);
}
@@ -378,7 +380,7 @@
RB_INIT(&mysql->table_head);
if (chdir(MYSQLTABLE) == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel ler o diret\xF3rio de configura\xE7\xE3o: "
+ io_printf(1, "n�o foi poss�vel ler o diret�rio de configura��o: "
"[%S%Stables] [%S]\n", configdir, print_bar(configdir),
strerror(errno));
return(RFAIL);
@@ -394,14 +396,14 @@
continue;
}
- bzero(&st, sizeof(st));
+ memset(&st, 0, sizeof(st));
if (stat(de->d_name, &st) == -1) {
- io_printf(1, "tabela n\xE3o carregada. stat: [%S]\n", strerror(errno));
+ io_printf(1, "tabela n�o carregada. stat: [%S]\n", strerror(errno));
continue;
}
if (st.st_size == 0) {
- io_printf(1, "o arquivo n\xE3o cont\xE9m dados [%S]\n", de->d_name);
+ io_printf(1, "o arquivo n�o cont�m dados [%S]\n", de->d_name);
continue;
}
@@ -428,27 +430,27 @@
char *p;
int curdir = -1;
- bzero(mysql, sizeof(mysql_));
+ memset(mysql, 0, sizeof(mysql_));
/* save the current dir */
curdir = open(".", O_RDONLY);
if (curdir == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel abrir o diret\xF3rio corrente: [%S]\n",
+ io_printf(1, "n�o foi poss�vel abrir o diret�rio corrente: [%S]\n",
strerror(errno));
goto fail;
}
/* chdir to config dir */
if (chdir(configdir) == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel ler o diret\xF3rio de configura\xE7\xE3o: "
+ io_printf(1, "n�o foi poss�vel ler o diret�rio de configura��o: "
"[%S] [%S]\n", configdir, strerror(errno));
goto fail;
}
/* check access to config */
- bzero(&sb, sizeof(sb));
+ memset(&sb, 0, sizeof(sb));
if (stat(MYSQLCONF, &sb) == -1) {
- io_printf(1, "n\xE3o foi poss\xEDvel verificar o arquivo de configura\xE7\xE3o: "
+ io_printf(1, "n�o foi poss�vel verificar o arquivo de configura��o: "
"[%S%Sconf] [%S]\n", configdir, print_bar(configdir),
strerror(errno));
goto fail;
@@ -460,7 +462,7 @@
fp = fopen(MYSQLCONF, "r");
if (fp == (FILE *)0) {
- io_printf(1, "n\xE3o foi poss\xEDvel abrir o arquivo de configura\xE7\xE3o: "
+ io_printf(1, "n�o foi poss�vel abrir o arquivo de configura��o: "
"[%S%Sconf] [%S]\n", configdir, print_bar(configdir),
strerror(errno));
goto fail;
@@ -488,7 +490,7 @@
/* check for buffer */
if (!p || !*p) {
- io_printf(1, "arquivo de configura\xE7\xE3o vazio ! [%S%Sconf]\n",
+ io_printf(1, "arquivo de configura��o vazio ! [%S%Sconf]\n",
configdir, print_bar(configdir));
goto fail;
}
@@ -509,7 +511,7 @@
/* user */
if (db_get_conf_key(&key, &p) == RFAIL) {
- label = "o usu\xE1rio";
+ label = "o usu�rio";
goto field_fail;
}
if (str_copys(&mysql->user, (unsigned char *)key) == 0) exit(51);
@@ -549,3 +551,18 @@
close(curdir);
return(RFAIL);
}
+
+/* remove tables from tree and memory */
+void free_sqltable_tree(mysql_ *mysql) {
+
+ struct table__ *table;
+ struct table__ *next;
+
+ for (table = RB_MIN(tables, &mysql->table_head); table != NULL; table = next) {
+ next = RB_NEXT(tables, &mysql->table_head, table);
+ RB_REMOVE(tables, &mysql->table_head, table);
+ db_table_free(table);
+ free(table);
+ }
+
+}
Modified: trunk/mysql.h
===================================================================
--- trunk/mysql.h 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/mysql.h 2009-02-11 19:04:58 UTC (rev 104)
@@ -92,4 +92,6 @@
void db_close(mysql_ *mysql);
int db_read_conf(mysql_ *mysql, const char *configdir);
+void free_sqltable_tree(mysql_ *mysql);
+
#endif
Modified: trunk/net-io.c
===================================================================
--- trunk/net-io.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/net-io.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -45,7 +45,7 @@
return(-1);
/* turn off linger */
- bzero(&linger, sizeof(linger));
+ memset(&linger, 0, sizeof(linger));
if (setsockopt(fd, SOL_SOCKET, SO_LINGER, (char *)&linger,
sizeof(linger)) == -1)
return(-1);
@@ -87,7 +87,7 @@
int err;
/* make hints */
- bzero(&hints, sizeof(hints));
+ memset(&hints, 0, sizeof(hints));
hints.ai_flags = AI_PASSIVE;
hints.ai_family = PF_INET;
hints.ai_socktype = SOCK_STREAM;
@@ -105,7 +105,7 @@
err = 1;
if ((listenfd = socket(res->ai_family, res->ai_socktype,
res->ai_protocol)) == -1 ||
- setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &err, sizeof(err)) ||
+ setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &err, sizeof(err)) ||
bind(listenfd, (struct sockaddr *)res->ai_addr,
(socklen_t)res->ai_addrlen) ||
listen(listenfd, backlog)) {
@@ -129,7 +129,7 @@
int err;
/* make hints */
- bzero(&hints, sizeof(hints));
+ memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
@@ -249,7 +249,7 @@
int resolve_client(string *str_host, struct sockaddr *sa, socklen_t sa_len) {
static char host[NI_MAXHOST];
- bzero(host, NI_MAXHOST);
+ memset(host, 0, NI_MAXHOST);
/* get the user network address */
if (getnameinfo(sa, sa_len, host, sizeof(host),
Modified: trunk/ns.c
===================================================================
--- trunk/ns.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/ns.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -52,7 +52,7 @@
case END:
/* connection reset by peer */
-
+
if (HAS_CMD(server)) {
/* close connection to ns server - wait flush of command queue */
@@ -334,7 +334,7 @@
proxy = (client_ *)malloc(sizeof(client_));
if (proxy == (client_ *)0)
die_nomem();
- bzero(proxy, sizeof(client_));
+ memset(proxy, 0, sizeof(client_));
/* bind to free port for new client connection */
proxy->fd = -1;
@@ -375,7 +375,7 @@
proxy = (client_ *)malloc(sizeof(client_));
if (proxy == (client_ *)0)
die_nomem();
- bzero(proxy, sizeof(client_));
+ memset(proxy, 0, sizeof(client_));
/* bind to free port for new client connection */
proxy->fd = -1;
@@ -412,8 +412,8 @@
/* prepare client sockaddr */
client_sa_len = sizeof(struct sockaddr);
- bzero(&client_sa, client_sa_len);
-
+ memset(&client_sa, 0, client_sa_len);
+
/* accept connection */
client_fd = accept(listenfd, &client_sa, &client_sa_len);
if (client_fd < 0) {
@@ -428,14 +428,14 @@
while (close(client_fd) != 0 && errno == EINTR);
return;
}
-
+
/* max users */
if (config->max_clients && user_inuse >= config->max_clients) {
log->debug("debug: Server full - too many clients\n");
while (close(client_fd) != 0 && errno == EINTR);
return;
}
-
+
/* new user */
user = user_alloc(&client_sa, client_sa_len);
if (user == NULL) {
@@ -474,7 +474,7 @@
/* prepare client sockaddr */
client_sa_len = sizeof(struct sockaddr);
- bzero(&client_sa, client_sa_len);
+ memset(&client_sa, 0, client_sa_len);
/* accept connection */
client_fd = accept(listenfd, &client_sa, &client_sa_len);
Modified: trunk/p2p.c
===================================================================
--- trunk/p2p.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/p2p.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -59,7 +59,7 @@
if (!p2p)
return(p2p);
- bzero(p2p, sizeof(p2p_));
+ memset(p2p, 0, sizeof(p2p_));
return(p2p);
}
Modified: trunk/sb.c
===================================================================
--- trunk/sb.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/sb.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -110,7 +110,7 @@
/* prepare client sockaddr */
client_sa_len = sizeof(struct sockaddr);
- bzero(&client_sa, client_sa_len);
+ memset(&client_sa, 0, client_sa_len);
/* accept connection */
client_fd = accept(listenfd, &client_sa, &client_sa_len);
@@ -340,7 +340,7 @@
case END:
/* connection reset by peer */
-
+
if (HAS_CMD(server)) {
/* close connection to ns server - wait flush of command queue */
Modified: trunk/server.c
===================================================================
--- trunk/server.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/server.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -100,7 +100,7 @@
die_nomem();
/* zero everything */
- bzero(server, sizeof(server_));
+ memset(server, 0, sizeof(server_));
server->fd = -1;
server->read.ev_fd = -1;
server->write.ev_fd = -1;
Modified: trunk/sql.c
===================================================================
--- trunk/sql.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/sql.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -152,6 +152,7 @@
return(RFAIL);
}
+ str_free(&sql);
return(ROK);
}
@@ -525,7 +526,7 @@
return(RFAIL);
}
-int
+int
read_commands(struct user_ *user) {
mysql_ *mysql = &config.mysql;
MYSQL_RES *res;
@@ -533,7 +534,7 @@
string sql;
char *ep;
char fmt[] = "SELECT commands FROM users WHERE email = '%q'";
-
+
str_zero(&sql);
sql.len = fmt_printf(NULL, fmt, user->email.s);
if (str_ready(&sql, sql.len + 1) == 0)
@@ -595,7 +596,7 @@
case NO:
user->commands |= SAVE_MSG;
break;
-
+
case RFAIL:
default:
return(RFAIL);
Modified: trunk/user.c
===================================================================
--- trunk/user.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/user.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -27,6 +27,7 @@
#include "protocol.h"
#include "array_cmd.h"
#include "msn-proxy.h"
+#include "contacts.h"
struct users_ users; /* users rb list data */
unsigned int user_id = 0;
@@ -193,7 +194,7 @@
user_alloc(struct sockaddr *sa, socklen_t sa_len) {
struct user_ *user = NULL;
log_ *log = &config.log;
-
+
/* alloc new user */
user = (struct user_ *)malloc(sizeof(struct user_));
if (user == NULL) die_nomem();
@@ -214,7 +215,7 @@
user = user_free(user);
return(NULL);
}
-
+
if (RB_INSERT(users_, &users, user)) {
log->debug("debug: fail to insert new user on tree (already there)\n");
user = user_free(user);
@@ -266,3 +267,30 @@
user = user_free(user);
}
+/* remove users from tree and memory */
+void free_users_tree(void) {
+
+ struct user_ *user;
+ struct user_ *next;
+
+ for (user = RB_MIN(users_, &users); user != NULL; user = next) {
+ next = RB_NEXT(users_, &users, user);
+ contacts_free(user);
+ RB_REMOVE(users_, &users, user);
+ str_free(&user->addr);
+ str_free(&user->dn);
+ str_free(&user->email);
+ str_free(user->ns.client->xfr);
+ str_free(&user->ns.server->host);
+ str_free(&user->ns.server->port);
+ str_free(&user->ns.server->commands.buf);
+ str_free(&user->ns.client->commands.buf);
+ str_free(&user->status);
+ free(user->ns.server);
+ free(user->ns.client);
+ free(user);
+ }
+
+}
+
+
Modified: trunk/user.h
===================================================================
--- trunk/user.h 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/user.h 2009-02-11 19:04:58 UTC (rev 104)
@@ -73,6 +73,7 @@
void user_disconnect(struct user_ *user);
int msnp12_update_dn(struct user_ *user, command *cmd, int args);
int msn_update_status(struct user_ *user, command *cmd, int args);
+void free_users_tree(void);
extern struct users_ users;
extern unsigned int user_max;
Modified: trunk/xml.c
===================================================================
--- trunk/xml.c 2009-02-05 20:15:10 UTC (rev 103)
+++ trunk/xml.c 2009-02-11 19:04:58 UTC (rev 104)
@@ -99,7 +99,7 @@
tag = (struct xml_tag_ *)malloc(sizeof(struct xml_tag_));
if (tag == NULL) exit(51);
- bzero(tag, sizeof(struct xml_tag_));
+ memset(tag, 0, sizeof(struct xml_tag_));
SLIST_INIT(&tag->xml_tag_opt_head);
SLIST_INIT(&tag->xml_tag_head);
return(tag);
@@ -150,7 +150,7 @@
}
if (tag_opt == NULL) {
tag_opt = (struct xml_tag_opt_ *)malloc(sizeof(struct xml_tag_opt_));
- bzero(tag_opt, sizeof(struct xml_tag_opt_));
+ memset(tag_opt, 0, sizeof(struct xml_tag_opt_));
}
if (tag_opt == NULL) exit(51);
@@ -273,6 +273,8 @@
SLIST_INSERT_HEAD(head, tag, xml_tag__);
+ str_free(&vrfy);
+
if (close == 1)
return(RCLOSE);
return(ROK);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: aledr <mat...@gm...> - 2009-02-11 13:28:11
|
On Wed, Feb 11, 2009 at 11:08 AM, Luiz -> Kees <lu...@ke...> wrote: > Bom dia eu gostaria de conhecer melhor o projeto e quem sabe dar alguma > humilde contribuição :D .., onde baixo o SVN, tem um server publico . ? Bom dia! As instruções para acesso somente-leitura ao SVN estão aqui[1]. Sinta-se à vontade para escrever modificações e postá-las na lista ou submeter patches no SF. [1]: http://sourceforge.net/svn/?group_id=197908 Até mais! > > Obrigado > Sds xD > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Luiz -> K. <lu...@ke...> - 2009-02-11 13:25:14
|
Bom dia eu gostaria de conhecer melhor o projeto e quem sabe dar alguma humilde contribuição :D .., onde baixo o SVN, tem um server publico . ? Obrigado Sds xD |
|
From: <lo...@us...> - 2009-02-05 20:15:14
|
Revision: 103
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=103&view=rev
Author: loos-br
Date: 2009-02-05 20:15:10 +0000 (Thu, 05 Feb 2009)
Log Message:
-----------
oops faltou o icone quando o usuario esta na lista de offline
Modified Paths:
--------------
trunk/php/fl.inc.php
Modified: trunk/php/fl.inc.php
===================================================================
--- trunk/php/fl.inc.php 2009-02-05 18:37:40 UTC (rev 102)
+++ trunk/php/fl.inc.php 2009-02-05 20:15:10 UTC (rev 103)
@@ -211,6 +211,13 @@
<td><a href="javascript: noop()" title="<?php echo $row['contact_email'] ?>"><?php echo $row['contact_dn'] ?>
<font color="gray"><?php echo $row['contact_info'] ?></font></a></td>
<?php
+ /* chat */
+ if ($row['contact_chat'] == "YES") {
+ echo "<td width=16><a href=\"javascript: popup('chat-to.php?email=";
+ echo $_REQUEST['email'] ."&to=". $row['contact_email'] ."')\">";
+ echo "<img src=\"imagens/send_im.gif\" alt=\"Chat\" height=16 width=16 border=0></a></td>\n";
+ }
+
/* flags */
if ((intval($row['contact_flags']) & 0x10) && 0) {
echo "<td width=16><img src=\"imagens/webcam.png\" alt=\"Webcam\" height=16 width=16 border=0></td>";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lo...@us...> - 2009-02-05 18:37:50
|
Revision: 102
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=102&view=rev
Author: loos-br
Date: 2009-02-05 18:37:40 +0000 (Thu, 05 Feb 2009)
Log Message:
-----------
adicionada a opcao de visualizar chats atraves da lista de contatos.
foi disponibilizado um campo na tabela informando quando o usuario tem algum log, nao sendo mais necessario vasculhar a tabela de logs para identificar.
funcionalidade antiga removida pela questao de desempenho e que volta agora da maneira correta.
Modified Paths:
--------------
trunk/ChangeLog
trunk/contacts-data.h
trunk/contacts.c
trunk/msg.c
trunk/msn-proxy.h
trunk/mysql/tables/contacts
trunk/php/al.inc.php
trunk/php/bl.inc.php
trunk/php/chat-to.php
trunk/php/chat.php
trunk/php/class.ctl.php
trunk/php/conf.php
trunk/php/default.array.cmd.inc.php
trunk/php/default.array.option.inc.php
trunk/php/default.array.status.inc.php
trunk/php/fl.inc.php
trunk/php/group.inc.php
trunk/php/header.inc.php
trunk/php/index.php
trunk/php/mysql.inc.php
trunk/php/save_contact_op.php
trunk/php/save_default_op.php
trunk/php/save_msg.php
trunk/php/save_user_op.php
trunk/php/user.inc.php
trunk/php/user.php
trunk/php/view-to.php
trunk/php/view.php
trunk/sql.c
Added Paths:
-----------
trunk/php/js.inc.php
Removed Paths:
-------------
trunk/php/ajax.inc.php
trunk/service-msn-proxy.tar.gz
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/ChangeLog 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,3 +1,10 @@
+2009-02-05
+
+- Adicionada a opcao de visualizar as conversas atraves da lista de contatos.
+ A mudanca na infra-estrutura do msn-proxy melhorou o tempo de resposta da
+ pagina principal.
+
+
2009-01-24
- Corrigidos varios bugs na parte de contatos e atualizacao de contatos para
Modified: trunk/contacts-data.h
===================================================================
--- trunk/contacts-data.h 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/contacts-data.h 2009-02-05 18:37:40 UTC (rev 102)
@@ -26,6 +26,7 @@
struct contact_ {
RB_ENTRY(contact_) contact__; /* RB list contact data */
+ int chat; /* has chat ? (yes/no) */
int updated; /* saved in db */
string status; /* status */
string group; /* group */
Modified: trunk/contacts.c
===================================================================
--- trunk/contacts.c 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/contacts.c 2009-02-05 18:37:40 UTC (rev 102)
@@ -76,6 +76,9 @@
io_printf(1, "debug contact: update: [%S]\n", update);
io_printf(1, "debug contact: c: [%s]\n", &contact->c);
io_printf(1, "debug contact: dn: [%s]\n", &contact->dn);
+ io_printf(1, "debug contact: chat: [%S]\n",
+ (contact->chat == YES) ? "YES" : "NO");
+
io_printf(1, "debug contact: deny: [");
if (contact->deny & CONTACT_DENY) {
io_printf(1, "CONTACT_DENY");
@@ -86,6 +89,7 @@
io_printf(1, "CONTACT_BLOCKED");
}
io_printf(1, "]\n");
+
io_printf(1, "debug contact: info: [%s]\n", &contact->info);
io_printf(1, "debug contact: flags: [%l]\n", contact->flags);
io_printf(1, "debug contact: flags2: [%l]\n", contact->flags2);
@@ -168,6 +172,7 @@
if (str_copy(&contact->c, c->s, c->len) == 0) die_nomem();
}
RB_INSERT(contacts, &user->contacts, contact);
+ contact->chat = NO;
contact->updated = NEW;
if (user->commands & CONTACT_DENY)
contact->deny |= CONTACT_DENY;
@@ -178,6 +183,7 @@
memset(save, 0, sizeof (struct contact_));
if (str_copy(&save->c, contact->c.s, contact->c.len) == 0) die_nomem();
save->deny = contact->deny;
+ save->chat = NO;
save->updated = NEW;
contact->updated = UPDATE;
contact->save = save;
Modified: trunk/msg.c
===================================================================
--- trunk/msg.c 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/msg.c 2009-02-05 18:37:40 UTC (rev 102)
@@ -311,7 +311,7 @@
int
msg_decode_utf8(struct sb_ *sb, command *cmd, msg_ *msg, int type) {
- struct contact_ *contact, f;
+ struct contact_ *contact, *save, f;
struct sb_user_ *sb_user;
struct user_ *user = sb->user;
string dn;
@@ -365,6 +365,15 @@
contact = RB_FIND(contacts, &user->contacts, &f);
contact_free(&f);
+ if (contact && contact->chat != YES) {
+
+ save = contact_update(user, &contact->c);
+ if (save) {
+ save->chat = YES;
+ (void)sql_contact_save(user, save);
+ }
+ }
+
if (to_start && str_cats(&to, (unsigned char *)", ") == 0)
die_nomem();
if (contact && contact->dn.len > 0 &&
Modified: trunk/msn-proxy.h
===================================================================
--- trunk/msn-proxy.h 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/msn-proxy.h 2009-02-05 18:37:40 UTC (rev 102)
@@ -90,7 +90,7 @@
#define P2P_FILE 0x00002000
#ifndef MSNPROXY_VERSION
-#define MSNPROXY_VERSION "0.6.4"
+#define MSNPROXY_VERSION "0.7a"
#endif
#ifndef MSNPROXY_RELEASE
Modified: trunk/mysql/tables/contacts
===================================================================
--- trunk/mysql/tables/contacts 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/mysql/tables/contacts 2009-02-05 18:37:40 UTC (rev 102)
@@ -3,6 +3,7 @@
`contact_email` varchar(255) not null default '',
`contact_dn` varchar(255) not null default '',
`contact_deny` int unsigned not null default 0,
+ `contact_chat` enum('NO', 'YES') not null default 'NO',
`contact_status` enum('NLN', 'BSY', 'IDL',
'BRB', 'AWY', 'PHN',
'LUN', 'HDN', 'OFF')
Deleted: trunk/php/ajax.inc.php
===================================================================
--- trunk/php/ajax.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/ajax.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,89 +0,0 @@
-<?php
-/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * $Id$
- */
-
-?>
-<script language="JavaScript">
-<!--
-
- function saveText(url, text) {
- url = url + '&value=' + text.value;
- submitChange(url);
- }
-
- function saveRadio(url, radio) {
- url = url + '&value=' + radio.value;
- submitChange(url);
- }
-
- function saveCheckBox(url, checkbox) {
- url = url + '&value=' + checkbox.checked;
- submitChange(url);
- }
-
- function saveSelect(url, select) {
- url = url + '&value=' + select.options[select.selectedIndex].value;
- submitChange(url);
- }
-
- function submitChange(url) {
-
- var http_request = false;
-
- if (window.XMLHttpRequest) { // Mozilla, Safari,...
- http_request = new XMLHttpRequest();
- if (http_request.overrideMimeType) {
- http_request.overrideMimeType('text/xml');
- }
- } else if (window.ActiveXObject) { // IE
- try {
- http_request = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- http_request = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (e) {}
- }
- }
-
- if (!http_request) {
- alert('Giving up :( Cannot create an XMLHTTP instance');
- return false;
- }
- http_request.onreadystatechange = function() { alertCheckUpdate(http_request); };
- http_request.open('GET', url, true);
- http_request.send(null);
- }
-
- function alertCheckUpdate(http_request) {
-
- if (http_request.readyState == 4) {
- if (http_request.status == 200) {
- //alert(http_request.responseText);
- if (http_request.responseText != 'ok')
- alert('Falha ao gravar alteracao !');
- } else {
- alert('There was a problem with the request.');
- }
- }
- }
-
-//-->
-</script>
Modified: trunk/php/al.inc.php
===================================================================
--- trunk/php/al.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/al.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/bl.inc.php
===================================================================
--- trunk/php/bl.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/bl.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/chat-to.php
===================================================================
--- trunk/php/chat-to.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/chat-to.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -29,7 +28,7 @@
<div align=center>
<?php
- if ($_REQUEST['back'] == "on") {
+ if (isset($_REQUEST['back']) && $_REQUEST['back'] == "on") {
echo "<a href=\"javascript: history.back()\">Voltar</a> | ";
}
?>
Modified: trunk/php/chat.php
===================================================================
--- trunk/php/chat.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/chat.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/class.ctl.php
===================================================================
--- trunk/php/class.ctl.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/class.ctl.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,4 +1,19 @@
<?php
+/*
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
/*
* $Id$
Modified: trunk/php/conf.php
===================================================================
--- trunk/php/conf.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/conf.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -76,7 +75,7 @@
}
}
- require("ajax.inc.php");
+ require("js.inc.php");
?>
<body bgcolor="#FFFFFF">
Modified: trunk/php/default.array.cmd.inc.php
===================================================================
--- trunk/php/default.array.cmd.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/default.array.cmd.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/default.array.option.inc.php
===================================================================
--- trunk/php/default.array.option.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/default.array.option.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/default.array.status.inc.php
===================================================================
--- trunk/php/default.array.status.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/default.array.status.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/fl.inc.php
===================================================================
--- trunk/php/fl.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/fl.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -118,6 +117,13 @@
<td><a href="javascript: noop()" title="<?php echo $row['contact_email'] ?>"><?php echo $row['contact_dn']?>
<font color="gray"><?php echo $row['contact_info'] ?></font></a></td>
<?php
+ /* chat */
+ if ($row['contact_chat'] == "YES") {
+ echo "<td width=16><a href=\"javascript: popup('chat-to.php?email=";
+ echo $_REQUEST['email'] ."&to=". $row['contact_email'] ."')\">";
+ echo "<img src=\"imagens/send_im.gif\" alt=\"Chat\" height=16 width=16 border=0></a></td>\n";
+ }
+
/* flags */
if ((intval($row['contact_flags']) & 0x10) && 0) {
echo "<td width=16><img src=\"imagens/webcam.png\" alt=\"Webcam\" height=16 width=16 border=0></td>";
Modified: trunk/php/group.inc.php
===================================================================
--- trunk/php/group.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/group.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/header.inc.php
===================================================================
--- trunk/php/header.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/header.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/index.php
===================================================================
--- trunk/php/index.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/index.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -60,7 +59,7 @@
$countoffl = mysql_num_rows($rsoffl);
require("user.inc.php");
- require("ajax.inc.php");
+ require("js.inc.php");
?>
<script language="JavaScript">
Added: trunk/php/js.inc.php
===================================================================
--- trunk/php/js.inc.php (rev 0)
+++ trunk/php/js.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -0,0 +1,118 @@
+<?php
+/*
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * $Id$
+ */
+
+?>
+<script language="JavaScript">
+<!--
+
+ function popup(url) {
+ window.open(url, '', 'height=450,width=550,scrollbars=yes');
+ }
+
+ function popup2(sb_id) {
+ url = 'view.php?sb_id=' + sb_id;
+ window.open(url, '', 'height=450,width=550,scrollbars=yes');
+ }
+
+ function showOptions(id) {
+ var itm = null;
+
+ if (document.getElementById) {
+ itm = document.getElementById(id);
+ } else if (document.all){
+ itm = document.all[id];
+ } else if (document.layers){
+ itm = document.layers[id];
+ }
+
+ if (!itm) {
+ // do nothing
+ }
+ else if (itm.style) {
+ if (itm.style.display == 'none') { itm.style.display = ''; }
+ else { itm.style.display = 'none'; }
+ }
+ else { itm.visibility = 'show'; }
+ }
+
+ function saveText(url, text) {
+ url = url + '&value=' + text.value;
+ submitChange(url);
+ }
+
+ function saveRadio(url, radio) {
+ url = url + '&value=' + radio.value;
+ submitChange(url);
+ }
+
+ function saveCheckBox(url, checkbox) {
+ url = url + '&value=' + checkbox.checked;
+ submitChange(url);
+ }
+
+ function saveSelect(url, select) {
+ url = url + '&value=' + select.options[select.selectedIndex].value;
+ submitChange(url);
+ }
+
+ function submitChange(url) {
+
+ var http_request = false;
+
+ if (window.XMLHttpRequest) { // Mozilla, Safari,...
+ http_request = new XMLHttpRequest();
+ if (http_request.overrideMimeType) {
+ http_request.overrideMimeType('text/xml');
+ }
+ } else if (window.ActiveXObject) { // IE
+ try {
+ http_request = new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ try {
+ http_request = new ActiveXObject("Microsoft.XMLHTTP");
+ } catch (e) {}
+ }
+ }
+
+ if (!http_request) {
+ alert('Giving up :( Cannot create an XMLHTTP instance');
+ return false;
+ }
+ http_request.onreadystatechange = function() { alertCheckUpdate(http_request); };
+ http_request.open('GET', url, true);
+ http_request.send(null);
+ }
+
+ function alertCheckUpdate(http_request) {
+
+ if (http_request.readyState == 4) {
+ if (http_request.status == 200) {
+ //alert(http_request.responseText);
+ if (http_request.responseText != 'ok')
+ alert('Falha ao gravar alteracao !');
+ } else {
+ alert('There was a problem with the request.');
+ }
+ }
+ }
+
+//-->
+</script>
Property changes on: trunk/php/js.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/mysql.inc.php
===================================================================
--- trunk/php/mysql.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/mysql.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/save_contact_op.php
===================================================================
--- trunk/php/save_contact_op.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/save_contact_op.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/save_default_op.php
===================================================================
--- trunk/php/save_default_op.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/save_default_op.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/save_msg.php
===================================================================
--- trunk/php/save_msg.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/save_msg.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/save_user_op.php
===================================================================
--- trunk/php/save_user_op.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/save_user_op.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/user.inc.php
===================================================================
--- trunk/php/user.inc.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/user.inc.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -31,9 +30,8 @@
$rs2 = mysql_query($sql, $mysql);
$sb = mysql_num_rows($rs2);
- $sql = "SELECT DISTINCT count(*) FROM log WHERE ";
- $sql .= "email = '".$row['email']."' AND (type = 'start' OR type = 'join') ";
- $sql .= "ORDER BY date DESC ";
+ $sql = "SELECT DISTINCT contact_chat FROM contacts WHERE ";
+ $sql .= "email = '".$row['email']."' AND contact_chat = 'YES' ";
$rsChat = mysql_query($sql, $mysql) or die ("SELECT FAIL");
$rowChat = mysql_fetch_array($rsChat);
@@ -71,7 +69,7 @@
<td>
<?php
/* user has any chat ? */
- if (intval($rowChat[0]) > 0) {
+ if ($rowChat[0] == "YES") {
?>
<a href="javascript: popup('chat.php?email=<?php echo $row[0] ?>')"
title="<?php echo $row[0] ?>"><img src="imagens/send_im.gif" border=0></a>
Modified: trunk/php/user.php
===================================================================
--- trunk/php/user.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/user.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -34,7 +33,7 @@
$rs = mysql_query($sql, $mysql) or die('fail to run query');
- require("ajax.inc.php");
+ require("js.inc.php");
?>
<script language="JavaScript">
Modified: trunk/php/view-to.php
===================================================================
--- trunk/php/view-to.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/view-to.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Modified: trunk/php/view.php
===================================================================
--- trunk/php/view.php 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/php/view.php 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,7 +1,6 @@
<?php
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
Deleted: trunk/service-msn-proxy.tar.gz
===================================================================
--- trunk/service-msn-proxy.tar.gz 2009-01-30 01:33:12 UTC (rev 101)
+++ trunk/service-msn-proxy.tar.gz 2009-02-05 18:37:40 UTC (rev 102)
@@ -1,2 +0,0 @@
-\x8B |
|
From: aledr <mat...@gm...> - 2009-01-31 13:37:31
|
2009/1/31 Luiz Otavio O Souza <lo...@gm...>: > Com relação a criar um novo release, coloquei o código do trunk em testes, > acho que seria interessante criar um release sim, porém poderiamos nos > programar para lançar releases. Como o projeto esta crescendo e > amadurecendo, acho que seria interessante especificar datas para novos > releases, assim chegaremos a versão 1.0 em breve. O que vocês acham? > Referente a novos campos no banco, poderiamos criar um script de verificação > para adição de novos campos automáticamente. > > Pierre, > > Seria muito interessante criar um roadmap para as proximas versões e também > o script de migração da base de dados. > > Alguem tem alguma sugestão de software para que a gente organize esse > roadmap junto a um wiki ? > Posso dar uma sugestão? Estou usando o Redmine[1] aqui e é fantástico, acredito que seja o melhor para a gerência de projetos. [1]: http://www.redmine.org > Pelo número de contatos que venho recebendo, vamos precisar preparar essa > versão muito rapidamente (evitando maiores problemas para os usuários que > estão usando uma versão bem sem vergonha ;)) > > []'s > Luiz > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: aledr <mat...@gm...> - 2009-01-31 12:46:35
|
2009/1/31 Luiz Otavio O Souza <lo...@gm...>: >> Assim que você atualizou o trunk eu atualizei o meu modelo com as >> modificações, vou postar aqui na lista para o pessoal poder opinar a >> respeito. Uma pergunta: as informações salvas no flag2 podem ser >> utilizadas de alguma forma na interface? > > Alexandre, > > Por enquanto eu vi que flag2 = 0 versão de cliente antiga, flag2 = 48 > messenger 9 como cliente. > > Essa informação é necessária para o bloqueio de contatos, na hora de liberar > o usuário eu preciso enviar "flag:flag2" caso seja uma conexão em msnp18. > > Talvez fosse interessante mostrar na interface a versão de protocolo que o > usuário esta usando (e dar uma margem para que você determine a versão do > client). Tranquilo, vou providenciar isso. =D > > []'s > Luiz > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-31 11:26:13
|
Com relação a criar um novo release, coloquei o código do trunk em testes, acho que seria interessante criar um release sim, porém poderiamos nos programar para lançar releases. Como o projeto esta crescendo e amadurecendo, acho que seria interessante especificar datas para novos releases, assim chegaremos a versão 1.0 em breve. O que vocês acham? Referente a novos campos no banco, poderiamos criar um script de verificação para adição de novos campos automáticamente. Pierre, Seria muito interessante criar um roadmap para as proximas versões e também o script de migração da base de dados. Alguem tem alguma sugestão de software para que a gente organize esse roadmap junto a um wiki ? Pelo número de contatos que venho recebendo, vamos precisar preparar essa versão muito rapidamente (evitando maiores problemas para os usuários que estão usando uma versão bem sem vergonha ;)) []'s Luiz |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-31 11:18:54
|
> Assim que você atualizou o trunk eu atualizei o meu modelo com as > modificações, vou postar aqui na lista para o pessoal poder opinar a > respeito. Uma pergunta: as informações salvas no flag2 podem ser > utilizadas de alguma forma na interface? Alexandre, Por enquanto eu vi que flag2 = 0 versão de cliente antiga, flag2 = 48 messenger 9 como cliente. Essa informação é necessária para o bloqueio de contatos, na hora de liberar o usuário eu preciso enviar "flag:flag2" caso seja uma conexão em msnp18. Talvez fosse interessante mostrar na interface a versão de protocolo que o usuário esta usando (e dar uma margem para que você determine a versão do client). []'s Luiz |
|
From: <lo...@us...> - 2009-01-30 02:22:15
|
Revision: 101
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=101&view=rev
Author: loos-br
Date: 2009-01-30 01:33:12 +0000 (Fri, 30 Jan 2009)
Log Message:
-----------
corrige o problema dos contatos no msnp11 e msnp15.
Modified Paths:
--------------
trunk/contacts.c
Modified: trunk/contacts.c
===================================================================
--- trunk/contacts.c 2009-01-27 15:14:25 UTC (rev 100)
+++ trunk/contacts.c 2009-01-30 01:33:12 UTC (rev 101)
@@ -927,7 +927,9 @@
switch (user->version) {
case MSNP18:
return msnp18_contact_change(user, cmd, args);
+ case MSNP15:
case MSNP13:
+ case MSNP12:
return msnp13_contact_change(user, cmd, args);
default:
return msnp8_contact_change(user, cmd, args);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Pierre S. <pie...@gm...> - 2009-01-30 00:32:50
|
Bom pessoal, Hoje estive bastante atarefado e não tive tempo nem pra olhar meu email, então venho responder ao email agora, 22:12 h hehe Com relação as alterações na base, eu apenas converti algumas tabelas para innodb para criar relacionamentos, principalmente para fazer com que as consultas fiquem mais rápidas (muito mais rápidas). Estou desenvolvendo alguns relatórios, com myisam não tem jeito não. Estou com uma base que já esta chegando aos 100mb em menos de 3 meses, então myisam não ajuda muito. Já fiz um relatório detalhado por período e usuário, contando com quantidade de mensagens enviadas e recebidas, chamadas enviadas e recebidas e tempo total das conversas com cada usuário. Estou desenvolvendo agora um relatório geral por período de todos os usuários e com os mesmos a resultados, porém por usuário cadastrado no msn-proxy. Fiz um gráfico dos 10 usuários que mais utilizam o msn durante o mês também. Ainda estou testando os relatórios e o geral esta dando trabalho para desenvolver pois são muitos timestamps para calcular. Assim que tiver aparentemente pronto eu subo para o trunk para que possamos, quem sabe, melhorar. Com relação a criar um novo release, coloquei o código do trunk em testes, acho que seria interessante criar um release sim, porém poderiamos nos programar para lançar releases. Como o projeto esta crescendo e amadurecendo, acho que seria interessante especificar datas para novos releases, assim chegaremos a versão 1.0 em breve. O que vocês acham? Referente a novos campos no banco, poderiamos criar um script de verificação para adição de novos campos automáticamente. Atenciosamente Pierre Santana 2009/1/29 Luiz Otavio O Souza <lo...@gm...> > > Luiz, você chegou a verificar se o que relatei sobre a webcam e > > contato bloqueado são válidos? > > Concordo como Evaldo. Podemos gerar uma release com as melhorias no > > suporte aos protocolos, mas sem incluir a nova interface, para que > > quando eu mandar para o SVN os pormenores estejam todos resolvidos. =D > > Consegui encontrar o erro do "1" no lugar do nome, tem um lugar aqui que > aconteceu isso, já estou providenciando a correção. Assim que possivel > também vou até esse lugar (msnp15) fazer o teste com o bloqueio de contatos > (e outros). > > Com o svn também é fácil criar um branch novo para a implementação da nova > interface enquanto o trunk segue no sentido atual de bugfixes e alguns > releases enquanto temos a liberdade de trabalhar em uma area separada para > a > nova interface e só depois fazer o merge dos códigos. Fiquem a vontade para > ver o que é melhor. > > Eu precisei incluir o campo flag2 para suportar o msnp18, ou seja, a base > já > era... alguam sugestão ? > > []'s > Luiz > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- Pierre Santana System Administrator Certified LPI |
|
From: aledr <mat...@gm...> - 2009-01-30 00:31:54
|
2009/1/29 Luiz Otavio O Souza <lo...@gm...>: >> Luiz, você chegou a verificar se o que relatei sobre a webcam e >> contato bloqueado são válidos? >> Concordo como Evaldo. Podemos gerar uma release com as melhorias no >> suporte aos protocolos, mas sem incluir a nova interface, para que >> quando eu mandar para o SVN os pormenores estejam todos resolvidos. =D > > Consegui encontrar o erro do "1" no lugar do nome, tem um lugar aqui que > aconteceu isso, já estou providenciando a correção. Assim que possivel > também vou até esse lugar (msnp15) fazer o teste com o bloqueio de contatos > (e outros). > > Com o svn também é fácil criar um branch novo para a implementação da nova > interface enquanto o trunk segue no sentido atual de bugfixes e alguns > releases enquanto temos a liberdade de trabalhar em uma area separada para a > nova interface e só depois fazer o merge dos códigos. Fiquem a vontade para > ver o que é melhor. > > Eu precisei incluir o campo flag2 para suportar o msnp18, ou seja, a base já > era... alguam sugestão ? Assim que você atualizou o trunk eu atualizei o meu modelo com as modificações, vou postar aqui na lista para o pessoal poder opinar a respeito. Uma pergunta: as informações salvas no flag2 podem ser utilizadas de alguma forma na interface? Até logo! > []'s > Luiz > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-29 22:53:43
|
> Luiz, você chegou a verificar se o que relatei sobre a webcam e > contato bloqueado são válidos? > Concordo como Evaldo. Podemos gerar uma release com as melhorias no > suporte aos protocolos, mas sem incluir a nova interface, para que > quando eu mandar para o SVN os pormenores estejam todos resolvidos. =D Consegui encontrar o erro do "1" no lugar do nome, tem um lugar aqui que aconteceu isso, já estou providenciando a correção. Assim que possivel também vou até esse lugar (msnp15) fazer o teste com o bloqueio de contatos (e outros). Com o svn também é fácil criar um branch novo para a implementação da nova interface enquanto o trunk segue no sentido atual de bugfixes e alguns releases enquanto temos a liberdade de trabalhar em uma area separada para a nova interface e só depois fazer o merge dos códigos. Fiquem a vontade para ver o que é melhor. Eu precisei incluir o campo flag2 para suportar o msnp18, ou seja, a base já era... alguam sugestão ? []'s Luiz |
|
From: aledr <mat...@gm...> - 2009-01-29 15:48:02
|
2009/1/29 Evaldo Gardenali <ev...@ga...>: > Oi, Luiz > > Luiz Otavio O Souza wrote: >>>> Bom dia Luiz >>>> >>>> Outra coisa que estou percebendo é a demora em trazer os resultados >>>> usando mysql depois que o banco começa a ficar meio grande (tenho >>>> msn-proxy rodando com bancos que já chegam a 90 mb em 3 meses), para >>>> isso há uma solução simples, converter as tabelas em innodb e criar >>>> relacionamentos. >>>> Eu já tenho isso em produção, ficou muito mais rápido. Vou fazer as >>>> alterações necessárias e envio sql do banco mysql usando innodb e com os >>>> relacionamentos. >>>> Até mesmo para futuros relatórios, com myisam o banco não vai dar conta. >>>> >>>> Atenciosamente >>>> Pierre Santana >>>> >>> Eu tenho o banco modelado com InnoDB e chaves estrangeiras, também em >>> produção, e já discuti com o Luiz essa questão. Ele ficou de analisar >>> o impacto sobre aqueles usuários que já possuem o MSN-Proxy em >>> funcionamento (levando em conta todas as outras melhorias/correções >>> que sugerimos). Estou no aguardo de um posicionamento dele para poder >>> enviar ao trunk do repositório. =D >>> >> >> > A estrutura das tabelas e a mesma? Se for, simplesmente incluir as 2 > opcoes e o usuario escolhe... Acho que é bem tranquilo isso. > Se nao for, corrigir as incoerencias, pois nao deveriam existir :) Se você considerar estrutura os campos disponíveis, sim, eles são os mesmos. Tanto que a minha estrutura atual não exige alteração alguma no daemon. O que eu fiz foi mudar a engine de MyISAM para InnoDB e adicionar relacionamentos com chaves estrangeiras, garantindo integridade relacional. Conversamos inclusive sobre a adição de alguns campos para permitir o controle de horário, mas isso está congelado por enquanto. Pierre, você fez alguma alteração diferente das minhas? > > De qualquer forma, seria interessante que o povo enviasse pra lista o > que tem de especial no seu banco de dados, ou no seu layout especifico, > para que o projeto siga o consenso. > >> Alexandre e Pierre, >> >> Estou em contato com o William Knob que também já contribuiu em outras >> oportunidades e agora também esta sugerindo algumas alterações na base de >> dados (estou aguardando um e-mail com os detalhes das alterações propostas). >> >> Estou encorajando o pessoal a trazer essas opções para a lista para que elas >> possam ser avaliadas aqui em grupo e assim possamos chegar um concenso sobre >> a base de dados. >> >> Devemos aproveitar as mudanças da próxima versão para mudar a base de dados >> no que for necessário, mas devemos fazer isso de maneira programada, >> evitando maiores problemas para o usuário (por ex. adicionar um campo na >> base a cada nova versão :/). O pensamento é este mesmo, você aprovando as novas alterações é só nos manter informados para que eu gere o código da interface de acordo. =D >> >> Tenho sim algumas duvidas sobre se os usuários estarão prontos para utilizar >> as tabelas innodb que podem requerer alguma configuração adicional no mysql. >> Vejo até hoje gente tentando instalar o msn-proxy com o mysql-4.x. Mas >> enfim, de nada adianta ficar preso as tabelas myisam. >> >> Vocês acham válido fechar mais um release com essas correções que já fizemos >> antes de começar as alterações maiores ? >> > Acho válido sim, pois pelo que percebo há bastante gente usando o daemon > em producão e tendo problemas com recentes frescuras de protocolo. Nem > todo mundo sabe usar, ou o chefe aceita usar snapshots do svn :) Luiz, você chegou a verificar se o que relatei sobre a webcam e contato bloqueado são válidos? Concordo como Evaldo. Podemos gerar uma release com as melhorias no suporte aos protocolos, mas sem incluir a nova interface, para que quando eu mandar para o SVN os pormenores estejam todos resolvidos. =D >> Abraços e obrigado, >> Luiz >> > Evaldo Gardenali > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |