File manager - Edit - /home/infoilmg/public_html/wp-content/plugins/fs-poster/App/Pages/Schedules/Controllers/Action.php
Back
<?php namespace FSPoster\App\Pages\Schedules\Controllers; use FSPoster\App\Providers\DB; use FSPoster\App\Providers\Helper; class Action { public function get_list () { $schedules = DB::DB()->get_results( DB::DB()->prepare( 'SELECT *, (SELECT COUNT(0) FROM `' . DB::table( 'feeds' ) . '` WHERE `schedule_id`=tb1.id and `is_sended`=1) AS `shares_count` FROM `' . DB::table( 'schedules' ) . '` tb1 WHERE `user_id`=%d AND `blog_id`=%d', [ get_current_user_id(), Helper::getBlogId() ] ), ARRAY_A ); $names_array1 = [ 'random2' => fsp__( 'Randomly ( without dublicates )' ), 'random' => fsp__( 'Randomly' ), 'old_first' => fsp__( 'Old posts first' ), 'new_first' => fsp__( 'New posts first' ) ]; $names_array2 = [ 'all' => fsp__( 'All posts' ), 'this_week' => fsp__( 'This week added posts' ), 'previously_week' => fsp__( 'Previous week added posts' ), 'this_month' => fsp__( 'This month added posts' ), 'previously_month' => fsp__( 'Previous month added posts' ), 'this_year' => fsp__( 'This year added posts' ), 'last_30_days' => fsp__( 'Last 30 days' ), 'last_60_days' => fsp__( 'Last 60 days' ), 'custom' => fsp__( 'Custom date range' ) ]; return [ 'schedules' => $schedules, 'namesArray1' => $names_array1, 'namesArray2' => $names_array2 ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings