Unknown Error Occurred, Try Again... Click Here"); if (!wp_verify_nonce($_POST['acurax_popunder_save_config'],'acurax_popunder_save_config')) die("

Unknown Error Occurred, Try Again... Click Here"); if(!current_user_can('manage_options')) die("

Sorry, You have no permission to do this action..."); //Form data sent $acurax_popunder_url_formdata = esc_url_raw($_POST['acurax_popunder_url']); if($acurax_popunder_url_formdata !="" ) { $acurax_popunder_array[]=$acurax_popunder_url_formdata; } if(!is_serialized($acurax_popunder_array)) { $acurax_popunder_array = serialize($acurax_popunder_array); } update_option('acurax_popunder_array', $acurax_popunder_array); $acurax_time_out = sanitize_text_field($_POST['acurax_popunder_timeout']); update_option('acurax_popunder_timeout', $acurax_time_out); $acx_popunder_message = "Acurax Popunder Settings Saved!"; } if($acx_popunder_message != "") { echo "

".$acx_popunder_message."

"; } // Our class extends the WP_List_Table class, so we need to make sure that it's there if( ! class_exists( 'WP_List_Table' ) ) { require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); } class Acx_Onclick_Popunder_My_List_Table extends WP_List_Table { function __construct() { global $status, $page; parent::__construct( array( 'singular' => __( 'url', 'mylisttable' ), //singular name of the listed records 'plural' => __( 'urls', 'mylisttable' ), //plural name of the listed records 'ajax' => false //does this table support ajax? ) ); } // here for compatibility with 4.3 function get_columns() { // Get options return $this->acx_onclick_popunder_get_columns(); } function acx_onclick_popunder_data() { $acurax_popunder_array=get_option('acurax_popunder_array'); if($acurax_popunder_array == "") { $acurax_popunder_array = array(); } else { if(is_serialized($acurax_popunder_array )) { $acurax_popunder_array = unserialize($acurax_popunder_array); } if(!is_array($acurax_popunder_array)) { $acurax_popunder_array = array($acurax_popunder_url); } } if(is_serialized($acurax_popunder_array )) { $acurax_popunder_array = unserialize($acurax_popunder_array); } $acurax_popunder_url_new = array(); foreach($acurax_popunder_array as $key => $value) { $acurax_popunder_url_new[]=array( 'ID'=>$key+1, 'URL'=>esc_url($value) ); } return $acurax_popunder_url_new; } function acx_onclick_popunder_get_columns() { $columns = array( 'ID' => 'Sl No', 'URL' => 'URL', ); return $columns; } function acx_onclick_popunder_prepare_items() { $columns = $this->acx_onclick_popunder_get_columns(); $hidden = array(); $sortable = $this->acx_onclick_popunder_get_sortable_columns(); $this->_column_headers = array($columns, $hidden, $sortable); $this->items = $this->acx_onclick_popunder_data(); usort( $this->items,array( &$this, 'acx_onclick_popunder_usort_reorder' ) ); } function column_URL($item) { $actions = array( 'delete' => sprintf('Delete',$_REQUEST['page'],'delete',$item['ID']), ); return sprintf('%1$s %2$s', $item['URL'], $this->row_actions($actions) ); } function acx_onclick_popunder_get_sortable_columns() { $sortable_columns = array( 'ID' => array('ID',false), 'URL' => array('URL',false), ); return $sortable_columns; } function acx_onclick_popunder_usort_reorder( $a, $b ) { // If no sort, default to title $orderby = ( ! empty( $_GET['orderby'] ) ) ? $_GET['orderby'] : 'ID'; // If no order, default to asc $order = ( ! empty($_GET['order'] ) ) ? $_GET['order'] : 'asc'; // Determine sort order $result = strnatcmp( $a[$orderby], $b[$orderby] ); // Send final sort direction to usort return ( $order === 'asc' ) ? $result : -$result; } function no_items() { _e( 'No URLs found !!!!' ); } function column_default( $item, $column_name ) { switch( $column_name ) { case 'ID': case 'URL': return $item[ $column_name ]; default: return print_r( $item, true ) ; //Show the whole array for troubleshooting purposes } } } function acx_onclick_popunder_render_list_page() { $myListTable = new Acx_Onclick_Popunder_My_List_Table(); echo '
'; $myListTable->acx_onclick_popunder_prepare_items(); $myListTable->display(); echo '
'; } ?>

Acurax Services >> Need Help on Wordpress? | Needs a Better Designed Website? | Need More Business? | Quick Support

" . __( 'Acurax Popunder Options', 'acx_popunder_config' ) . ""; $acx_popunder_ru = esc_url(str_replace( '%7E', '~', $_SERVER['REQUEST_URI'])); if($acx_popunder_ru != "") { $acx_popunder_ru = str_replace("action=delete&ID","acurax",$acx_popunder_ru); }?>

" . __( 'Add New Url', 'acx_popunder_config' ) . ""; ?>

http://www.acurax.com" );?>


" . __( 'General Settings', 'acx_popunder_config' ) . ""; ?>

Minutes. Needs to Define in Minutes, For Eg: '60' for 1 Hour" );?>


Current URLs" ); ?>



Something Not Working Well? Have a Doubt? Have a Suggestion? - Contact us now | Need a Custom Designed Theme For your Blog or Website? Need a Custom Header Image? - Contact us now