DeleteLinkByID($removeid); $results=$afflctable->DeleteDailyStatisticsByID($removeid); $results=$afflctable->DeleteTracksByID($removeid); } if ( isset( $_GET['reset'] ) ) { $resetid=$_GET['reset']; global $afflctable; $results=$afflctable->DeleteDailyStatisticsByID($resetid); $results=$afflctable->DeleteTracksByID($resetid); } ?> m_sort_item = 'createdate'; $this->m_sort_flag = 'desc'; if ( isset( $_GET['sort'] ) ) $this->m_sort_item = $_GET['sort']; if ( isset( $_GET['sortflag'] ) ) $this->m_sort_flag = $_GET['sortflag']; } function CreateSortLinkClass( $sortitem ) { if ( $this->m_sort_item == $sortitem ) { echo ( 'manage-column sorted ' . $this->m_sort_flag ); } else { echo ( 'manage-column sortable ' . $this->m_sort_flag ); } } function CreateSortURL( $sortitem ) { if ( 'asc' == $this->m_sort_flag ) { $nextsortflag = 'desc'; } else if ( 'desc' == $this->m_sort_flag ) { $nextsortflag = 'asc'; } $sorturl = admin_url('admin.php?page=affiliate-link-cloaking/affiliatelinkcloaking.php&sort=' . $sortitem . '&sortflag=' . $nextsortflag ); echo ( $sorturl ); } function ShowAllLink() { global $afflctable; $results=$afflctable->GetLinksAndHitsForMainUISortBy( time() , $this->m_sort_item, strtoupper($this->m_sort_flag) ); foreach( $results as $rowdata ) { echo('
You must set the "Permalinks" first to use affiliate link cloaking. Make sure it is not "Default". Here is Permalink Settings
| Link Title | Short Link | Affiliate Link | Hits | Unique Visitors | AutoShortLink | Create Date |
|---|---|---|---|---|---|---|
| Link Title | Short Link | Affiliate Link | Hits (Today/Month) |
Unique Visitors (Today/Month) |
AutoShortLink | Create Date |