![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
![]() I need to find a way to run certain gallery scanner with cron. I don't find a case for this in the cron.php. Anyone know how to do this?
Something like this will do it. But I don't know what else to include. Code:
if( $configuration['import_rss'] ) { $DB->Update('UPDATE `PREFIX_scanner_configs` SET `current_status`=?,`status_updated`=? WHERE `config_id`=?', array("Importing galleries from RSS", time(), $config_id)); $result = $DB->Query('SELECT * FROM `PREFIX_rss_feeds`'); $total_feeds = $DB->NumRows($result); $current_feed = 0; while( $feed = $DB->NextRow($result) ) { $current_feed++; $DB->Update('UPDATE `PREFIX_scanner_configs` SET `current_status`=?,`status_updated`=? WHERE `config_id`=?', array("Importing galleries from RSS feed $current_feed of $total_feeds", time(), $config_id)); ImportFromRss($feed); } $DB->Free($result); } |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Solved.
![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Pay It Forward
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 76,920
|
__________________
TRUMP 2025 KEKAW!!! - Support The Laken Riley Act!!! END DACA - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com |
![]() |
![]() ![]() ![]() ![]() ![]() |