GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   If you are using TGPX, can you check this? (https://gfy.com/showthread.php?t=1111907)

Zeiss 06-08-2013 08:45 AM

If you are using TGPX, can you check this?
 
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);
}

Ideas, please!

Zeiss 06-08-2013 09:20 AM

Solved. :thumbsup:1orglaugh

brassmonkey 06-08-2013 09:57 AM

Quote:

Originally Posted by Zealotry (Post 19660724)
Solved. :thumbsup:1orglaugh

glad you and yourself worked it out :thumbsup :1orglaugh


All times are GMT -7. The time now is 07:34 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123