Changeset 10926
- Timestamp:
- 07/30/15 15:17:41 (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r10921 r10926 1662 1662 TUNTAB ttab; 1663 1663 int8_t preferlocalcards; 1664 uint32_t max_connections; 1664 1665 #ifdef CS_ANTICASC 1665 1666 int32_t ac_fakedelay; // When this is -1, the global ac_fakedelay is used -
trunk/module-webif.c
r10924 r10926 2952 2952 } 2953 2953 2954 //max_connections 2955 tpl_printf(vars, TPLADD, "MAXCONNECTIONS", "%d", account->max_connections); 2956 2954 2957 //User Max Idle 2955 2958 tpl_printf(vars, TPLADD, "UMAXIDLE", "%d", account->umaxidle); -
trunk/oscam-client.c
r10862 r10926 119 119 struct s_client *cl; 120 120 struct s_auth *account; 121 uint32_t con_count = 1; 121 122 cs_writelock(__func__, &fakeuser_lock); 122 123 for(cl = first_client->next; cl; cl = cl->next) … … 127 128 { 128 129 char buf[20]; 130 131 con_count++; 132 133 if(con_count <= account->max_connections) 134 { continue; } 135 129 136 if(uniq == 3 || uniq == 4) 130 137 { -
trunk/oscam-config-account.c
r10919 r10926 364 364 DEF_OPT_FUNC_X("chid" , OFS(fchid), ftab_fn, FTAB_ACCOUNT | FTAB_CHID), 365 365 DEF_OPT_FUNC("class" , OFS(cltab), class_fn), 366 DEF_OPT_UINT32("max_connections" , OFS(max_connections), 1), 366 367 #ifdef CS_CACHEEX 367 368 DEF_OPT_INT8("cacheex" , OFS(cacheex.mode), 0), -
trunk/webif/user_edit/user_edit.html
r10329 r10926 32 32 </TD> 33 33 </TR> 34 <TR><TD><A>Max. Connections:</A></TD><TD><input name="max_connections" class="short" type="text" maxlength="4" value="##MAXCONNECTIONS##"></TD></TR> 34 35 <TR><TD><A>Sleep:</A></TD><TD><input name="sleep" class="short" type="text" maxlength="4" value="##SLEEP##"></TD></TR> 35 36 ##TPLUSEREDITMONLEVEL##
Note:
See TracChangeset
for help on using the changeset viewer.