# |
Jun 26th 2019, 09:33 |
challgren |
@chan create a function that first generates a random result, then check your database for the result if it returns 0 results the random is good to use if it returns a result then try again and do the same check |
# |
Jun 26th 2019, 09:33 |
dereuromark |
then use UUIDs^^ |
# |
Jun 26th 2019, 09:32 |
chan |
@challgren @dereuromark thanks for your advices. but i don't want to use `rand() and mt_rand`. because of these methods can cause duplicate. |
# |
Jun 26th 2019, 09:31 |
challgren |
Use mt_rand() my random code was written so long ago so Im firing from the hip here |
# |
Jun 26th 2019, 09:30 |
dereuromark |
most use mt_rand() etc |
# |
Jun 26th 2019, 09:29 |
challgren |
Its simple you can add a recursive call to check the db for the rand result and if its in use try again |
# |
Jun 26th 2019, 09:28 |
challgren |
ANd the current epoch is 1 digits exact and would be hard to have duplicate serial numbers |
# |
Jun 26th 2019, 09:28 |
saithitlwin |
@challgren is rand() good? because rand() can generate duplicate code. |
# |
Jun 26th 2019, 09:27 |
challgren |
why not something simple as `rand(1000000000, 9999999999);` |
# |
Jun 26th 2019, 09:26 |
chan |
@challgren length exactly 10 |
# |
Jun 26th 2019, 09:25 |
challgren |
Min length? max length? |
# |
Jun 26th 2019, 09:25 |
chan |
@challgren numeric |
# |
Jun 26th 2019, 09:24 |
challgren |
Numeric or alpha? |
# |
Jun 26th 2019, 09:24 |
chan |
@saithitlwin yes |
# |
Jun 26th 2019, 09:23 |
saithitlwin |
@chan Do you mean code generator to use as serial number? |
# |
Jun 26th 2019, 09:02 |
challgren |
Pretty much unmanaged since November of last year. So no updates or anything like that were done, which is why I'm leaning towards exim |
# |
Jun 26th 2019, 09:01 |
challgren |
It's a cPanel server |
# |
Jun 26th 2019, 09:00 |
challgren |
The hosting provider restored the backup and did some fixes. |
# |
Jun 26th 2019, 09:00 |
challgren |
Nope I don't work for them anymore. And I heard about it from a former coworker |
# |
Jun 26th 2019, 08:59 |
kgb.acct.personal |
Uhm. No logs? Trace? |
# |
Jun 26th 2019, 08:59 |
challgren |
But the site that did get hacked has pissed off a lot of people so it could have been any entry method |
# |
Jun 26th 2019, 08:57 |
challgren |
Hmmmm, it's pretty locked down and I used the proper sanitization. IDK I didn't get the full details other than all the passwords didn't work and the failure message was a demand for 1 BTC. They ended up restoring to a backup 3 days before the incident |
# |
Jun 26th 2019, 08:56 |
kgb.acct.personal |
Leaving a dot (.) if it actually was a cve |
# |
Jun 26th 2019, 08:55 |
kgb.acct.personal |
We have an in house sec team. Most of the time it's bad code |
# |
Jun 26th 2019, 08:52 |
challgren |
I personally don't give a crap about the site that got hacked. I'm just curious if they got in through maybe my code or the exim cve that's been in the wild |
# |
Jun 26th 2019, 08:50 |
challgren |
It was one of my sites, I don't run or manage the server and the person that does didn't do any investigation |
# |
Jun 26th 2019, 08:49 |
kgb.acct.personal |
Source? |
# |
Jun 26th 2019, 08:48 |
chan |
No, i want to develop to get serial number by using code manager or code generator. |
# |
Jun 26th 2019, 08:46 |
challgren |
Anyone ever hear of cakephp 2.10.13 getting hacked? Where the password hashes where changed and the login failure message changed? |
# |
Jun 26th 2019, 08:43 |
neon1024 |
Or do you mean a code versioning system like Git? |
# |
Jun 26th 2019, 08:43 |
neon1024 |
Are you looking for a CakePHP 2 freelance developer? |
# |
Jun 26th 2019, 08:43 |
neon1024 |
That doesn’t make any sense. |
# |
Jun 26th 2019, 08:31 |
chan |
please can you send reference link, explain me , about code manager for cakephp 2. |
# |
Jun 26th 2019, 08:17 |
imonsei |
morning neon |
# |
Jun 26th 2019, 08:17 |
imonsei |
woo it works \o/ |
# |
Jun 26th 2019, 08:01 |
neon1024 |
Morning all |
# |
Jun 26th 2019, 07:30 |
imonsei |
i'm gonna try it! |
# |
Jun 26th 2019, 07:30 |
imonsei |
... do you think i can just extend ControllerTask and override the bake() function if i want to put extra variables into the $actions = ['index', 'view', 'add', 'edit', 'delete',]; line? |
# |
Jun 26th 2019, 07:16 |
imonsei |
I OD'd on them and went too high and came in from the bottom again ;) |
# |
Jun 26th 2019, 07:05 |
admad |
i hear there are pills available online to boost your IQ :P |
# |
Jun 26th 2019, 07:00 |
imonsei |
i was too dumb to understand that the example files had to go into my own project's src folder. not the vender one or my bake theme one... imma go lay down for a bit |