Add installer functionality for WordPress with FTP and database configuration
- Create SQL migration for prompt templates used in article and image generation. - Add migration to change publish interval from days to hours in the sites table. - Implement InstallerController to handle installation requests and validation. - Develop FtpService for FTP connections and file uploads. - Create InstallerService to manage the WordPress installation process, including downloading, extracting, and configuring WordPress. - Add index view for the installer with form inputs for FTP, database, and WordPress admin settings. - Implement progress tracking for the installation process with AJAX polling.
This commit is contained in:
@@ -19,7 +19,7 @@ class Site extends Model
|
||||
WHERE is_active = 1
|
||||
AND (
|
||||
last_published_at IS NULL
|
||||
OR DATE_ADD(last_published_at, INTERVAL publish_interval_days DAY) <= NOW()
|
||||
OR DATE_ADD(last_published_at, INTERVAL publish_interval_hours HOUR) <= NOW()
|
||||
)
|
||||
ORDER BY last_published_at ASC";
|
||||
$stmt = self::db()->query($sql);
|
||||
|
||||
Reference in New Issue
Block a user