function ap_checkupdate($print = 1) { ${"GLOBALS"}["vycfuwwugno"] = "task"; global $wpdb, $t_f_ap_cnofig; ${${"GLOBALS"}["volqykc"]} = false; $lurtycboc = "task"; ${"GLOBALS"}["bhnxunehfxt"] = "t_f_ap_cnofig"; if ($wpdb->get_var("SHOW TABLES LIKE '{$t_f_ap_cnofig}'") != ${${"GLOBALS"}["ebfijjv"]}) { return; } ${${"GLOBALS"}["vycfuwwugno"]} = $wpdb->get_row("SELECT id,last_update_time,update_interval,is_running FROM " . ${${"GLOBALS"}["bhnxunehfxt"]} . " WHERE activation=1 ORDER BY id LIMIT 1"); $hvrskyepqx = "canUpdate"; if (${$lurtycboc} == null || $task->id == null || $task->id == "" || $task->id == 0) { return; } ${${"GLOBALS"}["jvvuejr"]} = 0; if ($task->is_running == 1 && current_time("timestamp") > $task->last_update_time + 120 * 60) { $ceitwtelzcv = "t_f_ap_cnofig"; $wpdb->query("update " . ${$ceitwtelzcv} . " set is_running = 0 where id=" . $task->id); } if (current_time("timestamp") > $task->last_update_time + $task->update_interval * 60 && $task->is_running == 0) { ${"GLOBALS"}["qwxcamlhsm"] = "canUpdate"; ${${"GLOBALS"}["qwxcamlhsm"]} = true; $wpdb->query("update " . ${${"GLOBALS"}["ebfijjv"]} . " set last_update_time = " . current_time("timestamp") . " where id=" . $task->id); } if (${$hvrskyepqx}) { ignore_user_abort(true); set_time_limit((int) get_option("wp_autopost_timeLimit")); $ulvddgo = "print"; fetch_apf($task->id, ${$ulvddgo}, 0); ${"GLOBALS"}["bxuwcib"] = "print"; if (${${"GLOBALS"}["bxuwcib"]}) { ob_flush(); flush(); } } }
$n--; echo '<p>' . __("If your browser doesn't start loading the next page automatically click this link:", 'wp-autopost') . '<a href="admin.php?page=wp-autopost/wp-autopost-tasklist.php&saction=fetch&id=' . $_GET['id'] . '&n=' . $n . '">' . __('Next content', 'wp-autopost') . '</a></p>'; echo '</div>'; echo '<script type="text/javascript"> function nextPage() { location.href = "admin.php?page=wp-autopost/wp-autopost-tasklist.php&saction=fetch&id=' . $_GET['id'] . '&n=' . $n . '"; } window.setTimeout( "nextPage()", 300 ); </script> '; } } else { if ($n <= $config->end_num) { fetchSingleList_apf($_GET['id'], $list_url, $n, $config); $n++; echo '<p>' . __("If your browser doesn't start loading the next page automatically click this link:", 'wp-autopost') . '<a href="admin.php?page=wp-autopost/wp-autopost-tasklist.php&saction=fetch&id=' . $_GET['id'] . '&n=' . $n . '">' . __('Next content', 'wp-autopost') . '</a></p>'; echo '</div>'; echo '<script type="text/javascript"> function nextPage() { location.href = "admin.php?page=wp-autopost/wp-autopost-tasklist.php&saction=fetch&id=' . $_GET['id'] . '&n=' . $n . '"; } window.setTimeout( "nextPage()", 300 ); </script> '; } } } else { fetch_apf($_GET['id']); } } if ($saction == 'abort') { $wpdb->query('UPDATE ' . $t_f_ap_cnofig . ' SET is_running = 0 WHERE id = ' . $_GET['id']); } if (isset($_GET['createExample']) && $_GET['createExample'] == 1) { createExample(); } ?> <?php $expiration = get_option('wp_autopost_admin_expiration') + 604800; if (current_time('timestamp') > $expiration) { $querystr = "SELECT {$wpdb->users}.ID,{$wpdb->users}.display_name FROM {$wpdb->users}"; $users = $wpdb->get_results($querystr, OBJECT);