| Bainsy | 2006-07-30 02:21:00 |
![]() Posts: 41 Topics participated: 17 Topics started: 5 First post: 2006-07-04 19:38:00 Last post: 2007-10-03 13:24:00 |
ok looking for someone clever to maybe help me understand this the tracker uses latin1 charset but if i change it to utf8 as in all the tables and everything the hash that is sent out to confirm a new user isnt found and it is not the same as the one in the database? any ideas on why?? thx |
![]() |
Charset's
| CoLdFuSiOn | 2006-07-30 11:13:00 |
![]() Posts: 2312 Topics participated: 1240 Topics started: 124 First post: 2006-02-25 21:12:00 Last post: 2009-01-03 14:56:00 |
This might be interesting to you: |
![]() |
| Bainsy | 2006-07-30 11:16:00 |
![]() Posts: 41 Topics participated: 17 Topics started: 5 First post: 2006-07-04 19:38:00 Last post: 2007-10-03 13:24:00 |
sprry double post wont happen again see below |
![]() |
| Bainsy | 2006-07-30 16:33:00 |
![]() Posts: 41 Topics participated: 17 Topics started: 5 First post: 2006-07-04 19:38:00 Last post: 2007-10-03 13:24:00 |
what would be wrong with changing function mksecret to function mksecret($len = 20) { |
![]() |
| CoLdFuSiOn | 2006-07-30 18:11:00 |
![]() Posts: 2312 Topics participated: 1240 Topics started: 124 First post: 2006-02-25 21:12:00 Last post: 2009-01-03 14:56:00 |
Nothing much...infact it's probally better than the original ;) |
![]() |
| DRRRR | 2006-07-30 18:16:00 |
![]() Posts: 510 Topics participated: 277 Topics started: 5 First post: 2006-03-13 22:18:00 Last post: 2006-10-25 20:54:00 |
his will make the secret normal chars is there anything wrong with doing it this way as exporting the database would'nt curupt the passwords? Nothing much, but i don't like the approach for typing that abcdef... yourself, PHP has a function for it. And why not just use something like substr( md5(uniqid(mt_rand())), 0, 20) Would only give you a-f and 0-9 and still gives you 20 chars back since the md5 would give 32 the substring is needed. No while loop needed, valid characters, no weird $chr = 'abcd' string needed. |
![]() |
| Bainsy | 2006-07-30 18:17:00 |
![]() Posts: 41 Topics participated: 17 Topics started: 5 First post: 2006-07-04 19:38:00 Last post: 2007-10-03 13:24:00 |
ok thx i just been messing around with this and the passwords dont curupt at all :) function mksecret($len = 20) { |
![]() |
Similar threads
| Topic | Posts | Last post | ||
|---|---|---|---|---|
| No similar threads |
Statistics
| Today's active topics · | |
|---|---|
| User(s) active in the past 30 minutes | |
| 37 Guests, 8 Members fo3-nik5, PyroX, MrMagic, mish12, Renagade, pitiunited, Peche10, mastergeek Opisy do gg , laptopy , Möbel , wyścigi , Kamienie pozycjonowanie Najtańsze kredyty hipoteczne Kredyty hipoteczne na firmę Avatary online bingo | |
| Often viewed topics | |
| · Problem with ID... · hash fails???:S · New BBCode · Invite With Bonus · Ratio Master · ballon tooltip · Add/Remove Style · Torrent Inline ... · Auto Cleanup! · RSS feed passke... · Null Announce. · User/ID · theme system · Preliminary XSS... · navigation in f... · new Message · browse.php · Rating using ajax · torrent uppload... · Warned users (o... | |
| Forthcoming Calendar Events within the next 5 days | |
| There are no forthcoming calendar events | |



