get_row("SELECT bann_tempid,bann_tempname,bann_tempimg,bann_status FROM " . $wpdb->prefix . "bannerstyles WHERE bann_status='ON'"); require_once('../wp-content/plugins'.DIRECTORY_SEPARATOR.$folder_name.DIRECTORY_SEPARATOR.'apptha_wpdirectory.php'); // Load file for the plugin ?>
get_var("SELECT option_value FROM " . $wpdb->prefix . "options WHERE option_name='get_api_key'"); $get_title = unserialize($option_title); $strDomainName = $banner_url; preg_match("/^(http:\/\/)?([^\/]+)/i", $strDomainName, $subfolder); preg_match("/(?P[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i", $subfolder[2], $matches); $customerurl = $matches['domain']; $customerurl = str_replace("www.", "", $customerurl); $customerurl = str_replace(".", "D", $customerurl); $customerurl = strtoupper($customerurl); $get_option_title = appbanner_generate($customerurl); $options = get_option('get_api_key'); if ( !is_array($options) ) { $options = array('title'=>'', 'show'=>'', 'excerpt'=>'','exclude'=>''); } if(isset($_POST['submit_license'])) { $options['title'] = strip_tags(stripslashes($_POST['get_license'])); update_option('get_api_key', $options); } ?>

Note: For the best performance, the uploaded image size (height & width) should be similar to the Banner style dimensions specified in the banner style settings.

    »" * */ function pageList($curpage, $pages) { //Pagination $page_list = ""; if ($search != '') { $self = '?page=' . banner_img.'&style='.$_REQUEST['style']; } else { $self = '?page=' . banner_img.'&style='.$_REQUEST['style']; } /* Print the first and previous page links if necessary */ if (($curpage != 1) && ($curpage)) { $page_list .= " First "; } if (($curpage - 1) > 0) { $page_list .= "< "; } /* Print the numeric page list; make the current page unlinked and bold */ for ($i = 1; $i <= $pages; $i++) { if ($i == $curpage) { $page_list .= "" . $i . ""; } else { $page_list .= "" . $i . ""; } $page_list .= " "; } /* Print the Next and Last page links if necessary */ if (($curpage + 1) <= $pages) { $page_list .= "> "; } if (($curpage != $pages) && ($pages != 0)) { $page_list .= "Last "; } $page_list .= "\n"; return $page_list; } /* * string nextPrev (int curpage, int pages) * Returns "Previous | Next" string for individual pagination (it's a word!) */ function nextPrev($curpage, $pages) { //Pagination $next_prev = ""; if (($curpage - 1) <= 0) { $next_prev .= "Previous"; } else { $next_prev .= "Previous"; } $next_prev .= " | "; if (($curpage + 1) > $pages) { $next_prev .= "Next"; } else { $next_prev .= "Next"; } return $next_prev; } /*------------------------------- END OF PAGINATION -------------------------------*/ ?> get_var("SELECT bann_img FROM " . $wpdb->prefix . "bannerimages WHERE bann_imgid='$bann_imgid' "); $delete = $wpdb->query("DELETE FROM " . $wpdb->prefix . "bannerimages WHERE bann_imgid='$bann_imgid'"); $thumb_path = '../wp-content/uploads/apptha_banner_images/thumbnails/'; $big_path = '../wp-content/uploads/apptha_banner_images/uploads/'; if ($bann_imgname != '') { unlink($thumb_path . $bann_imgname); unlink($big_path . $bann_imgname); } } $msg = 'Photos Deleted Successfully'; } $options = get_option('mac_img_limit'); if (!is_array($options)) { $options = array('title' => '', 'show' => '', 'excerpt' => '', 'exclude' => ''); } if (isset($_POST['doaction_pagination'])) { $options['title'] = strip_tags(stripslashes($_POST['limit_page'])); update_option('mac_img_limit', $options); } $option_limit = $wpdb->get_var("SELECT option_value FROM " . $wpdb->prefix . "options WHERE option_name='mac_img_limit'"); $get_limit = unserialize($option_limit); ?>