芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/critterchoice.com/wp-content/plugins/wp-automatic/p_log.php
prefix; $csv = plugins_url().'/wp-automatic/inc/csv.php'; //getting the id's of all posts available $query = "select camp_id from {$prefix}automatic_camps"; $rows=$wpdb->get_results($query); $filter=''; // campaign filter if(isset($_POST['id']) && $_POST['id'] != 'all'){ $id=$_POST['id']; $filter = " where action like '%$id' "; }else{ $id = ''; $act = ''; } // action type posted , Approved $action=''; if( isset( $_POST['action_type']) ){ $act=$_POST['action_type']; if ($act == 'posted' ){ $action=" action like 'Posted%' "; }elseif($act == 'approved'){ $action = " action like 'Comment approved%'"; } }else{ $action=''; } if ($action != ''){ if($filter == ''){ $filter=" where $action"; }else{ $filter.=" and $action"; } } // records number if(isset($_POST['number'])){ $num=$_POST['number']; }else{ $num='100'; } // define limit $limit=''; if (is_numeric($num)) $limit=" limit $num "; $qdate=''; // finally date filters `date` >= str_to_date( '07/03/11', '%m/%d/%y' ) if(isset($_POST['from']) && $_POST['from'] !='' ){ $from=$_POST['from']; $qdate=" `date` >= str_to_date( '$from', '%m/%d/%y' )"; } if(isset($_POST['to']) && $_POST['to'] !=''){ $to=$_POST['to']; if($qdate == ''){ $qdate.=" `date` <= str_to_date( '$to', '%m/%d/%y' )"; }else{ $qdate.=" and `date` <= str_to_date( '$to', '%m/%d/%y' )"; } } if($qdate != ''){ if($filter == ''){ $filter=" where $qdate"; }else{ $filter.="and $qdate"; } } // echo $filter; $query="SELECT * FROM {$prefix}automatic_log $filter ORDER BY id DESC $limit"; // echo $query; $res=$wpdb->get_results( $query); ?>
/wp-content/plugins/wp-automatic/css/style.css' rel='stylesheet' type='text/css'>
/wp-content/plugins/wp-automatic/css/uniform.css' rel='stylesheet' type='text/css'>
WP Automatic logs
All Campaigns
camp_id ) == 'publish'){ echo '
camp_id); echo ' value="'.$row->camp_id.'">'.get_the_title($row->camp_id).'
'; } } ?>
value="999">Records Number
value="100">100
value="500">500
value="1000">1000
value="all">All
value="">Show all actions
value="posted">Posted
From Date:
(optional)
To Date:
Current server time:
Index
Date
Type of action
Data Processed
index
Date
Type of action
Data Processed
action; //filter the data strip keyword /* $datas=explode(';',$rec->data); $data=$datas[0]; */ $data=$rec->data; if (stristr($action , 'Posted:')){ $url = plugins_url().'/wp-automatic'; $action = 'New Post'; //restoring link }elseif(stristr($action , ':')){ $action = explode(':', $action); $action = $action[0]; } $displayTitle = $rec->data; if(stristr($displayTitle , '><', '> (no title)<', $displayTitle); } echo'
'.$i.'
'. get_date_from_gmt( $rec->date ).'
'. $action.'
'.$displayTitle.'
'; $i++; } ?>