-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotocol.txt
More file actions
72 lines (54 loc) · 2.45 KB
/
protocol.txt
File metadata and controls
72 lines (54 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
type | dados[0] ; ******* | dados[1] ; ******* | dados[2]
REGISTO
type | regist ; username | ****** ; password | ******
type | status ; msg | Utilizador registado. Inicie sessao
type|status; logged|failed; msg|Username ja utilizado
LOGIN
type | login ; username | ****** ; password | ******
type | status ; msg | User ja fez login
type | status ; msg | Login com sucesso
type | status ; msg | Login com sucesso ; notificacao | Tornou se administrador
type | status ; msg | Utilizador necessita de criar utilizador
type | status ; msg | Password errada
ADMINISTRADOR
type | give_admin ; username1 | ****** ; username2 | *******
type | status ; msg | O user2 já e administrador
type | status ; msg | O user2 é agora administrador
type | status ; msg | Nao tem permissao
ADDURL
type | add_url ; url | ****** ; username | *****
type | status ; msg | Url ja presente
type | status ; msg | Url adicionado com sucesso
type | status ; msg | Nao tem permissao
LOGOUT
type | logout ; username | ******
type | status ; msg | logout com sucesso
type | status ; msg | nao tinha sessao iniciada
VER LIGACOES DE PAGINAS PARA UMA
type | list_links ; url | ****** ; username | ******
type | url_list ; item_count | 2; item_0_name | www.uc.pt ; item_1_name | www.dei.uc.pt
type | status ; msg | lista de links impressa
type | status ; msg | nao tem sessao iniciada
SEARCH
type | search ; search_term | ******
type | search ; search_term | ****** ; username | ********
type | status ; msg | pesquisa realizada
type | status ; msg | nao tem sessao iniciada
type | search_result ; item_0_title | Universidade de Coimbra ; item_0_url | uc.pt ; item_0_text | Desde 1290 a servir os estudantes ;
item_1_title | Académica de Coimbra; item_1_url | academica.pt ; item_1_text | A mais antiga do pais ;
item_count | 2;
HISTORY
type | history ; username | ********
type | status ; msg | historico enviado
type | status ; msg | ainda nao pesquisou
type | status ; msg | nao tem sessao iniciada
STATS ADMIN
type | stats_admin ; username | ******
type | status ; msg | sent... top 10 pages , top 10 searchs, list active multicast servers
type | status ; msg | nao tem permissao. tem de ser admin
type | status ; msg | nao tem sessao iniciada
----------------
VER URLS ( acho q nao é preciso ... )
type | see_urls ; username | ******
type | url_list ; item_count | 2; item_0_name | www.uc.pt ; item_1_name | www.dei.uc.pt
type | status ; msg | nao tem sessao iniciada ...