WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Security Image
Getting the characters to change every day

Version: 4.0.37
printPrint


Security Image
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/18/07 - 01:14 PM:
quote post
#1
The manual says "random characters in the image change only once per day, since they're a transformation based on a daily cron setting"

What I can't find is how to get the regular crons (I assume these are the ones I need) installed on my Debian system. Any guidance?

Thanks

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/18/07 - 10:49 PM:
quote post
#2
It has nothing to do with operating system crons (and works on Windows just as well), it's Admin Panel -> Miscellaneous -> Crons, but there's no need to go there since it's pre-configured. Are you sure it's not changing daily?

If you were to get less than about 5 page views of the directory in a day then it wouldn't be able to run until the next person finally arrives. Even with the cache on a live site should get that many though.

Edited by Paul on 08/18/07 - 10:52 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/20/07 - 02:15 PM:
quote post
#3
Thanks for that.

The layout changes (implying that it's not a cache problem?) but it's still 'bkat'. I'll leave it a day or three and see what happens.

Do you think eAccelerator (i.e. the code is precompiled) would have an effect?
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/23/07 - 07:05 PM:
quote post
#4
Still no change after several days. I've no idea where to look and would welcome a pointer.

Thanks
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/23/07 - 07:49 PM:
quote post
#5
I can only see two possible ways to cause it to not change:
1) Never visit the site. If there are less than about 5 visits per day the cron wouldn't run. In theory the cache could lead to this but it seems unlikely.
2) Deleting the lastdaily record from the settings table for some reason.

You can change $settings->lastdaily to $settings->lastrotation in commonfuncs.php if somehow you have lastrotation working but not lastdaily. Suffice it to say it's impossible to reproduce your problem without further instructions though.

Edited by Paul on 08/23/07 - 07:53 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/24/07 - 06:18 AM:
quote post
#6
I imagine the site is very low access but 5 would be hard to imagine.

Looking at the settings table I see:

lastdaily 1133090606
lastautocron 1187928712
lastrotation 1133121094

In the administrator Cron Jobs there are no items listed. Should there be?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 08/24/07 - 06:51 AM:
quote post
#7
In the administrator Cron Jobs there are no items listed. Should there be?

Yes, that's the problem then, the third possibility I was forgetting. Here's what it shows me: http://www.webmastersite.net/screenshots/17065.jpg . You can add them manually. I believe they were first added in either 2.5 or 3.0, quite a while ago... I guess your upgrade to that version years ago didn't add them properly.

Edited by Paul on 08/24/07 - 06:55 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/25/07 - 05:11 PM:
quote post
#8
Inexplicably they would not add via the web interface so I put them in via myphpadmin. The periods are a bit wonky but I assume that will sort itself?

Attached Files:
Picture 8.png
(152 KB, 20 downloads)
attachment
kiwibob
Member

Usergroup: Customer
Joined: Oct 18, 2004
Total Topics: 4
Total Posts: 14
Posted 08/25/07 - 05:14 PM:
quote post
#9
Oh yes, running them has caused the code to change. Thanks very much smiling face
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.