芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/critterchoice.com/wp-content/plugins/wp-automatic/status_metabox.php
prefix; $post_id=$post->ID; $query="SELECT * FROM {$prefix}automatic_camps where camp_id=$post_id "; $rows=$wpdb->get_results($query); if (count($rows) == 0 ) { $arrow=plugins_url('images/down-arrow-icon.png',__FILE__); echo 'Update
campaign options
below then hit publish
'; }else{ //read last post $query="SELECT * FROM {$prefix}automatic_log where action='Posted:$post_id' order by id DESC"; $rows=$wpdb->get_results($query); if (count($rows)== 0 ){ $lastpost='None'; }else{ $row=$rows[0]; $lastpost= $row->data; } //read last processed $query="SELECT * FROM {$prefix}automatic_log where action like '%Processing Campaign:$post_id' order by id DESC limit 1"; $rows=$wpdb->get_results($query); if (count($rows)== 0 ){ $lastprocess='None'; }else{ $row=$rows[0]; $lastprocess= get_date_from_gmt($row->date); } ?>
Run campaign
Last Run
'. $lastprocess . '
' ?>
Last Post
'. wp_automatic_str_replace('New post posted:','',$lastpost) .'
' ?>